]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixes for include guards, patch 1256967 Paul Cornett
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
8c80d384 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL 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 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 NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
a848cd7e 1930 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1931 DEFAULT_STD_FLAG=no
a848cd7e
SC
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
a03b8b04 1974 DEFAULT_STD_FLAG=no
a848cd7e
SC
1975 ;;
1976
cfda0ea8 1977 *-*-darwin* )
a848cd7e
SC
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e 1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
1e9e8aba 2002 ;;
a848cd7e
SC
2003
2004 *-*-beos* )
2005 USE_BEOS=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BEOS__ 1
2008_ACEOF
2009
2010 ;;
2011
2012 *)
2013 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2014echo "$as_me: error: unknown system type ${host}." >&2;}
2015 { (exit 1); exit 1; }; }
2016esac
2017
2018
2019
2020
2021 wx_arg_cache_file="configarg.cache"
2022 echo "loading argument cache $wx_arg_cache_file"
2023 rm -f ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}
2026
2027
2028DEBUG_CONFIGURE=0
2029if test $DEBUG_CONFIGURE = 1; then
2030 DEFAULT_wxUSE_UNIVERSAL=no
2031 DEFAULT_wxUSE_STL=no
2032
2033 DEFAULT_wxUSE_NANOX=no
2034
2035 DEFAULT_wxUSE_THREADS=yes
2036
2037 DEFAULT_wxUSE_SHARED=yes
2038 DEFAULT_wxUSE_OPTIMISE=no
2039 DEFAULT_wxUSE_PROFILE=no
2040 DEFAULT_wxUSE_NO_DEPS=no
2041 DEFAULT_wxUSE_NO_RTTI=no
2042 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2043 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2044 DEFAULT_wxUSE_PERMISSIVE=no
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047 DEFAULT_wxUSE_DEBUG_GDB=yes
2048 DEFAULT_wxUSE_MEM_TRACING=no
2049 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2050 DEFAULT_wxUSE_DMALLOC=no
2051 DEFAULT_wxUSE_APPLE_IEEE=no
2052
2053 DEFAULT_wxUSE_EXCEPTIONS=no
2054 DEFAULT_wxUSE_LOG=yes
2055 DEFAULT_wxUSE_LOGWINDOW=no
2056 DEFAULT_wxUSE_LOGGUI=no
2057 DEFAULT_wxUSE_LOGDIALOG=no
2058
2059 DEFAULT_wxUSE_GUI=yes
2060 DEFAULT_wxUSE_CONTROLS=no
2061
2062 DEFAULT_wxUSE_REGEX=no
2063 DEFAULT_wxUSE_XML=no
2064 DEFAULT_wxUSE_EXPAT=no
2065 DEFAULT_wxUSE_ZLIB=no
2066 DEFAULT_wxUSE_LIBPNG=no
2067 DEFAULT_wxUSE_LIBJPEG=no
2068 DEFAULT_wxUSE_LIBTIFF=no
2069 DEFAULT_wxUSE_LIBXPM=no
2070 DEFAULT_wxUSE_LIBMSPACK=no
2071 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2072 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2073 DEFAULT_wxUSE_ODBC=no
2074 DEFAULT_wxUSE_OPENGL=no
2075
2076 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2077 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2078 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2079 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2080 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2081 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2082 DEFAULT_wxUSE_CMDLINE_PARSER=no
2083 DEFAULT_wxUSE_DATETIME=no
2084 DEFAULT_wxUSE_TIMER=no
2085 DEFAULT_wxUSE_STOPWATCH=no
2086 DEFAULT_wxUSE_FILE=no
2087 DEFAULT_wxUSE_FFILE=no
07158944 2088 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2089 DEFAULT_wxUSE_TEXTBUFFER=no
2090 DEFAULT_wxUSE_TEXTFILE=no
2091 DEFAULT_wxUSE_SOUND=no
3b57de8b 2092 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2226else
2227 DEFAULT_wxUSE_UNIVERSAL=no
2228 DEFAULT_wxUSE_STL=no
2229
2230 DEFAULT_wxUSE_NANOX=no
2231
2232 DEFAULT_wxUSE_THREADS=yes
2233
2234 DEFAULT_wxUSE_SHARED=yes
2235 DEFAULT_wxUSE_OPTIMISE=yes
2236 DEFAULT_wxUSE_PROFILE=no
2237 DEFAULT_wxUSE_NO_DEPS=no
2238 DEFAULT_wxUSE_NO_RTTI=no
2239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2240 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_PERMISSIVE=no
2242 DEFAULT_wxUSE_DEBUG_FLAG=no
2243 DEFAULT_wxUSE_DEBUG_INFO=no
2244 DEFAULT_wxUSE_DEBUG_GDB=no
2245 DEFAULT_wxUSE_MEM_TRACING=no
2246 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2247 DEFAULT_wxUSE_DMALLOC=no
2248 DEFAULT_wxUSE_APPLE_IEEE=yes
2249
2250 DEFAULT_wxUSE_EXCEPTIONS=yes
2251 DEFAULT_wxUSE_LOG=yes
2252 DEFAULT_wxUSE_LOGWINDOW=yes
2253 DEFAULT_wxUSE_LOGGUI=yes
2254 DEFAULT_wxUSE_LOGDIALOG=yes
2255
2256 DEFAULT_wxUSE_GUI=yes
2257
2258 DEFAULT_wxUSE_REGEX=yes
2259 DEFAULT_wxUSE_XML=yes
2260 DEFAULT_wxUSE_EXPAT=yes
2261 DEFAULT_wxUSE_ZLIB=yes
2262 DEFAULT_wxUSE_LIBPNG=yes
2263 DEFAULT_wxUSE_LIBJPEG=yes
2264 DEFAULT_wxUSE_LIBTIFF=yes
2265 DEFAULT_wxUSE_LIBXPM=yes
2266 DEFAULT_wxUSE_LIBMSPACK=yes
2267 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2268 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2269 DEFAULT_wxUSE_ODBC=no
52cb607e 2270 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2271
2272 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2273 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2274 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2276 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2277 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2278 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2279 DEFAULT_wxUSE_DATETIME=yes
2280 DEFAULT_wxUSE_TIMER=yes
2281 DEFAULT_wxUSE_STOPWATCH=yes
2282 DEFAULT_wxUSE_FILE=yes
2283 DEFAULT_wxUSE_FFILE=yes
07158944 2284 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_TEXTBUFFER=yes
2286 DEFAULT_wxUSE_TEXTFILE=yes
2287 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2288 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
38b4a946
VZ
10047if test "$wxUSE_MSW" = "1"; then
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-dccache or --disable-dccache was given.
10054if test "${enable_dccache+set}" = set; then
10055 enableval="$enable_dccache"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10059 else
10060 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10073
10074fi;
10075
10076 eval "$ac_cv_use_dccache"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_DC_CACHEING" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089fi
10090
a848cd7e
SC
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-palette or --disable-palette was given.
10098if test "${enable_palette+set}" = set; then
10099 enableval="$enable_palette"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_palette='wxUSE_PALETTE=yes'
10103 else
10104 ac_cv_use_palette='wxUSE_PALETTE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10117
10118fi;
10119
10120 eval "$ac_cv_use_palette"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_PALETTE" = 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}-image" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-image or --disable-image was given.
10139if test "${enable_image+set}" = set; then
10140 enableval="$enable_image"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_image='wxUSE_IMAGE=yes'
10144 else
10145 ac_cv_use_image='wxUSE_IMAGE=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10158
10159fi;
10160
10161 eval "$ac_cv_use_image"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_IMAGE" = 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}-gif" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-gif or --disable-gif was given.
10180if test "${enable_gif+set}" = set; then
10181 enableval="$enable_gif"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_gif='wxUSE_GIF=yes'
10185 else
10186 ac_cv_use_gif='wxUSE_GIF=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10199
10200fi;
10201
10202 eval "$ac_cv_use_gif"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_GIF" = 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}-pcx" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-pcx or --disable-pcx was given.
10221if test "${enable_pcx+set}" = set; then
10222 enableval="$enable_pcx"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_pcx='wxUSE_PCX=yes'
10226 else
10227 ac_cv_use_pcx='wxUSE_PCX=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10240
10241fi;
10242
10243 eval "$ac_cv_use_pcx"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_PCX" = 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}-iff" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-iff or --disable-iff was given.
10262if test "${enable_iff+set}" = set; then
10263 enableval="$enable_iff"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_iff='wxUSE_IFF=yes'
10267 else
10268 ac_cv_use_iff='wxUSE_IFF=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_IFF" ${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_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10281
10282fi;
10283
10284 eval "$ac_cv_use_iff"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_IFF" = 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}-pnm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-pnm or --disable-pnm was given.
10303if test "${enable_pnm+set}" = set; then
10304 enableval="$enable_pnm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_pnm='wxUSE_PNM=yes'
10308 else
10309 ac_cv_use_pnm='wxUSE_PNM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_PNM" ${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_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10322
10323fi;
10324
10325 eval "$ac_cv_use_pnm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_PNM" = 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}-xpm" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-xpm or --disable-xpm was given.
10344if test "${enable_xpm+set}" = set; then
10345 enableval="$enable_xpm"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_xpm='wxUSE_XPM=yes'
10349 else
10350 ac_cv_use_xpm='wxUSE_XPM=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_XPM" ${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_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10363
10364fi;
10365
10366 eval "$ac_cv_use_xpm"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_XPM" = 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
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10385if test "${enable_ico_cur+set}" = set; then
10386 enableval="$enable_ico_cur"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10390 else
10391 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10404
10405fi;
10406
10407 eval "$ac_cv_use_ico_cur"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_ICO_CUR" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421fi
10422
10423
10424
ceec2216
RL
10425# Check whether --with-flavour or --without-flavour was given.
10426if test "${with_flavour+set}" = set; then
10427 withval="$with_flavour"
10428 WX_FLAVOUR="$withval"
10429fi;
10430
10431
10432
a848cd7e
SC
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-official_build or --disable-official_build was given.
10438if test "${enable_official_build+set}" = set; then
10439 enableval="$enable_official_build"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10443 else
10444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10457
10458fi;
10459
10460 eval "$ac_cv_use_official_build"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473# Check whether --enable-vendor or --disable-vendor was given.
10474if test "${enable_vendor+set}" = set; then
10475 enableval="$enable_vendor"
10476 VENDOR="$enableval"
10477fi;
10478if test "x$VENDOR" = "x"; then
10479 VENDOR="custom"
10480fi
10481
a848cd7e
SC
10482
10483
10484
10485 echo "saving argument cache $wx_arg_cache_file"
10486 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10487
10488
10489
10490echo "$as_me:$LINENO: checking for toolkit" >&5
10491echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10492
10493# In Wine, we need to default to MSW, not GTK or MOTIF
10494if test "$wxUSE_WINE" = "yes"; then
10495 DEFAULT_DEFAULT_wxUSE_GTK=0
10496 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10497 DEFAULT_DEFAULT_wxUSE_MSW=1
10498 wxUSE_SHARED=no
10499fi
10500
f597b41c 10501
a848cd7e
SC
10502if test "$wxUSE_GUI" = "yes"; then
10503
10504 if test "$USE_BEOS" = 1; then
10505 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10506echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509
10510 if test "$TOOLKIT_GIVEN" = 1; then
10511 for toolkit in `echo $ALL_TOOLKITS`; do
10512 var=wxUSE_$toolkit
10513 eval "value=\$${var}"
f34ca037
MW
10514 if test "x$value" = "xno"; then
10515 eval "$var=0"
10516 elif test "x$value" != "x"; then
10517 eval "$var=1"
10518 fi
10519
10520 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10521 eval "wx${toolkit}_VERSION=$value"
10522 fi
a848cd7e
SC
10523 done
10524 else
10525 for toolkit in `echo $ALL_TOOLKITS`; do
10526 if test "$has_toolkit_in_cache" != 1; then
10527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10528 else
10529 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10530
10531 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10532 if test "x$version" != "x"; then
10533 eval "wx${toolkit}_VERSION=$version"
10534 fi
a848cd7e
SC
10535 fi
10536 eval "wxUSE_$toolkit=\$${var}"
10537 done
10538 fi
10539
10540 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10541 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10542 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10543
10544 case "${host}" in
10545 *-pc-os2_emx | *-pc-os2-emx )
10546 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10547 esac
10548
10549 case "$NUM_TOOLKITS" in
10550 1)
10551 ;;
10552 0)
10553 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10554echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10555 { (exit 1); exit 1; }; }
10556 ;;
10557 *)
10558 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10559echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10560 { (exit 1); exit 1; }; }
10561 esac
10562
f34ca037
MW
10563 # to be removed when --disable-gtk2 isn't needed
10564 if test "x$wxUSE_GTK2" = "xyes"; then
10565 wxGTK_VERSION=2
10566 elif test "x$wxUSE_GTK2" = "xno"; then
10567 wxGTK_VERSION=1
10568 fi
10569
a848cd7e
SC
10570 for toolkit in `echo $ALL_TOOLKITS`; do
10571 var=wxUSE_$toolkit
10572 eval "value=\$${var}"
10573 if test "x$value" != x; then
10574 cache_var=CACHE_$toolkit
10575 eval "cache=\$${cache_var}"
10576 if test "$cache" = 1; then
10577 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10578 eval "version=\$wx${toolkit}_VERSION"
10579 if test "x$version" != "x"; then
10580 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10581 fi
a848cd7e
SC
10582 fi
10583 if test "$value" = 1; then
10584 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10585 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10586echo "${ECHO_T}$toolkit_echo" >&6
10587 fi
10588 fi
10589 done
10590else
10591 if test "x$host_alias" != "x"; then
10592 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10593echo "${ECHO_T}base ($host_alias hosted) only" >&6
10594 else
10595 echo "$as_me:$LINENO: result: base only" >&5
10596echo "${ECHO_T}base only" >&6
10597 fi
10598fi
10599
10600wants_win32=0
10601doesnt_want_win32=0
10602case "${host}" in
10603 *-*-cygwin*)
10604 if test "$wxUSE_MSW" = 1 ; then
10605 wants_win32=1
7275146d 10606 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10607 else
10608 doesnt_want_win32=1
10609 fi
10610 ;;
10611 *-*-mingw*)
10612 wants_win32=1
10613 ;;
10614esac
10615
10616if test "$wxUSE_WINE" = "yes"; then
10617 wants_win32=1
10618 CC=winegcc
10619 CXX=wineg++
a848cd7e
SC
10620 LDFLAGS_GUI="-mwindows"
10621fi
10622
10623if test "$wants_win32" = 1 ; then
10624 USE_UNIX=0
10625 USE_WIN32=1
10626 cat >>confdefs.h <<\_ACEOF
10627#define __WIN32__ 1
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define __WIN95__ 1
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define __WINDOWS__ 1
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define __GNUWIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define STRICT 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define WINVER 0x0400
10648_ACEOF
10649
10650fi
10651if test "$doesnt_want_win32" = 1 ; then
10652 USE_UNIX=1
10653 USE_WIN32=0
10654fi
10655
10656if test "$USE_UNIX" = 1 ; then
10657 wxUSE_UNIX=yes
10658 cat >>confdefs.h <<\_ACEOF
10659#define __UNIX__ 1
10660_ACEOF
10661
10662fi
10663
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
10683# So, don't put newlines in cache variables' values.
10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
10686{
10687 (set) 2>&1 |
10688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10689 *ac_space=\ *)
10690 # `set' does not quote correctly, so add quotes (double-quote
10691 # substitution turns \\\\ into \\, and sed turns \\ into \).
10692 sed -n \
ac1cb8d3
VS
10693 "s/'/'\\\\''/g;
10694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10695 ;;
10696 *)
10697 # `set' quotes correctly as required by POSIX, so do not add quotes.
10698 sed -n \
ac1cb8d3 10699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10700 ;;
10701 esac;
10702} |
10703 sed '
10704 t clear
10705 : clear
10706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707 t end
10708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709 : end' >>confcache
10710if diff $cache_file confcache >/dev/null 2>&1; then :; else
10711 if test -w $cache_file; then
10712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10713 cat confcache >$cache_file
10714 else
10715 echo "not updating unwritable cache $cache_file"
10716 fi
10717fi
10718rm -f confcache
10719
a848cd7e 10720CFLAGS=${CFLAGS:=}
6dcfc289
DE
10721
10722
10723 ac_ext=c
a848cd7e
SC
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}gcc; ac_word=$2
10731echo "$as_me:$LINENO: checking for $ac_word" >&5
10732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733if test "${ac_cv_prog_CC+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 if test -n "$CC"; then
10737 ac_cv_prog_CC="$CC" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751done
10752
10753fi
10754fi
10755CC=$ac_cv_prog_CC
10756if test -n "$CC"; then
10757 echo "$as_me:$LINENO: result: $CC" >&5
10758echo "${ECHO_T}$CC" >&6
10759else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762fi
10763
10764fi
10765if test -z "$ac_cv_prog_CC"; then
10766 ac_ct_CC=$CC
10767 # Extract the first word of "gcc", so it can be a program name with args.
10768set dummy gcc; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$ac_ct_CC"; then
10775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_ac_ct_CC="gcc"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793ac_ct_CC=$ac_cv_prog_ac_ct_CC
10794if test -n "$ac_ct_CC"; then
10795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10796echo "${ECHO_T}$ac_ct_CC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 CC=$ac_ct_CC
10803else
10804 CC="$ac_cv_prog_CC"
10805fi
10806
10807if test -z "$CC"; then
10808 if test -n "$ac_tool_prefix"; then
10809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10810set dummy ${ac_tool_prefix}cc; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_CC+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$CC"; then
10817 ac_cv_prog_CC="$CC" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_CC="${ac_tool_prefix}cc"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837 echo "$as_me:$LINENO: result: $CC" >&5
10838echo "${ECHO_T}$CC" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844fi
10845if test -z "$ac_cv_prog_CC"; then
10846 ac_ct_CC=$CC
10847 # Extract the first word of "cc", so it can be a program name with args.
10848set dummy cc; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 if test -n "$ac_ct_CC"; then
10855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_ac_ct_CC="cc"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
10871fi
10872fi
10873ac_ct_CC=$ac_cv_prog_ac_ct_CC
10874if test -n "$ac_ct_CC"; then
10875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10876echo "${ECHO_T}$ac_ct_CC" >&6
10877else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882 CC=$ac_ct_CC
10883else
10884 CC="$ac_cv_prog_CC"
10885fi
10886
10887fi
10888if test -z "$CC"; then
10889 # Extract the first word of "cc", so it can be a program name with args.
10890set dummy cc; ac_word=$2
10891echo "$as_me:$LINENO: checking for $ac_word" >&5
10892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10893if test "${ac_cv_prog_CC+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -n "$CC"; then
10897 ac_cv_prog_CC="$CC" # Let the user override the test.
10898else
10899 ac_prog_rejected=no
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10908 ac_prog_rejected=yes
10909 continue
10910 fi
10911 ac_cv_prog_CC="cc"
10912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915done
10916done
10917
10918if test $ac_prog_rejected = yes; then
10919 # We found a bogon in the path, so make sure we never use it.
10920 set dummy $ac_cv_prog_CC
10921 shift
10922 if test $# != 0; then
10923 # We chose a different compiler from the bogus one.
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10928 fi
10929fi
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$CC"; then
10943 if test -n "$ac_tool_prefix"; then
10944 for ac_prog in cl
10945 do
10946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_CC+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 if test -n "$CC"; then
10954 ac_cv_prog_CC="$CC" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
10970fi
10971fi
10972CC=$ac_cv_prog_CC
10973if test -n "$CC"; then
10974 echo "$as_me:$LINENO: result: $CC" >&5
10975echo "${ECHO_T}$CC" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 test -n "$CC" && break
10982 done
10983fi
10984if test -z "$CC"; then
10985 ac_ct_CC=$CC
10986 for ac_prog in cl
10987do
10988 # Extract the first word of "$ac_prog", so it can be a program name with args.
10989set dummy $ac_prog; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="$ac_prog"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 test -n "$ac_ct_CC" && break
11024done
11025
11026 CC=$ac_ct_CC
11027fi
11028
11029fi
11030
11031
11032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11033See \`config.log' for more details." >&5
11034echo "$as_me: error: no acceptable C compiler found in \$PATH
11035See \`config.log' for more details." >&2;}
11036 { (exit 1); exit 1; }; }
11037
11038# Provide some information about the compiler.
11039echo "$as_me:$LINENO:" \
11040 "checking for C compiler version" >&5
11041ac_compiler=`set X $ac_compile; echo $2`
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11043 (eval $ac_compiler --version </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11048 (eval $ac_compiler -v </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11053 (eval $ac_compiler -V </dev/null >&5) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }
11057
11058cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073ac_clean_files_save=$ac_clean_files
11074ac_clean_files="$ac_clean_files a.out a.exe b.out"
11075# Try to create an executable without -o first, disregard a.out.
11076# It will help us diagnose broken compilers, and finding out an intuition
11077# of exeext.
ac1cb8d3
VS
11078echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11079echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11082 (eval $ac_link_default) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 # Find the output, starting from the most likely. This scheme is
11087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11088# resort.
11089
11090# Be careful to initialize this variable, since it used to be cached.
11091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11092ac_cv_exeext=
11093# b.out is created by i960 compilers.
11094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11095do
11096 test -f "$ac_file" || continue
11097 case $ac_file in
11098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11099 ;;
a848cd7e 11100 conftest.$ac_ext )
ac1cb8d3
VS
11101 # This is the source file.
11102 ;;
a848cd7e 11103 [ab].out )
ac1cb8d3
VS
11104 # We found the default executable, but exeext='' is most
11105 # certainly right.
11106 break;;
a848cd7e 11107 *.* )
ac1cb8d3
VS
11108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11109 # FIXME: I believe we export ac_cv_exeext for Libtool,
11110 # but it would be cool to find out if it's true. Does anybody
11111 # maintain Libtool? --akim.
11112 export ac_cv_exeext
11113 break;;
a848cd7e 11114 * )
ac1cb8d3 11115 break;;
a848cd7e
SC
11116 esac
11117done
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C compiler cannot create executables
11125See \`config.log' for more details." >&2;}
11126 { (exit 77); exit 77; }; }
11127fi
11128
11129ac_exeext=$ac_cv_exeext
11130echo "$as_me:$LINENO: result: $ac_file" >&5
11131echo "${ECHO_T}$ac_file" >&6
11132
11133# Check the compiler produces executables we can run. If not, either
11134# the compiler is broken, or we cross compile.
11135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11138# If not cross compiling, check that we can run a simple program.
11139if test "$cross_compiling" != yes; then
11140 if { ac_try='./$ac_file'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cross_compiling=no
11147 else
11148 if test "$cross_compiling" = maybe; then
11149 cross_compiling=yes
11150 else
11151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11152If you meant to cross compile, use \`--host'.
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: cannot run C compiled programs.
11155If you meant to cross compile, use \`--host'.
11156See \`config.log' for more details." >&2;}
11157 { (exit 1); exit 1; }; }
11158 fi
11159 fi
11160fi
11161echo "$as_me:$LINENO: result: yes" >&5
11162echo "${ECHO_T}yes" >&6
11163
11164rm -f a.out a.exe conftest$ac_cv_exeext b.out
11165ac_clean_files=$ac_clean_files_save
11166# Check the compiler produces executables we can run. If not, either
11167# the compiler is broken, or we cross compile.
11168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11170echo "$as_me:$LINENO: result: $cross_compiling" >&5
11171echo "${ECHO_T}$cross_compiling" >&6
11172
11173echo "$as_me:$LINENO: checking for suffix of executables" >&5
11174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11182# work properly (i.e., refer to `conftest.exe'), while it won't with
11183# `rm'.
11184for ac_file in conftest.exe conftest conftest.*; do
11185 test -f "$ac_file" || continue
11186 case $ac_file in
11187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11189 export ac_cv_exeext
11190 break;;
a848cd7e
SC
11191 * ) break;;
11192 esac
11193done
11194else
11195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11196See \`config.log' for more details." >&5
11197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11198See \`config.log' for more details." >&2;}
11199 { (exit 1); exit 1; }; }
11200fi
11201
11202rm -f conftest$ac_cv_exeext
11203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11204echo "${ECHO_T}$ac_cv_exeext" >&6
11205
11206rm -f conftest.$ac_ext
11207EXEEXT=$ac_cv_exeext
11208ac_exeext=$EXEEXT
11209echo "$as_me:$LINENO: checking for suffix of object files" >&5
11210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11211if test "${ac_cv_objext+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.o conftest.obj
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11236 case $ac_file in
11237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11239 break;;
11240 esac
11241done
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of object files: cannot compile
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest.$ac_cv_objext conftest.$ac_ext
11254fi
11255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11256echo "${ECHO_T}$ac_cv_objext" >&6
11257OBJEXT=$ac_cv_objext
11258ac_objext=$OBJEXT
11259echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11260echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11261if test "${ac_cv_c_compiler_gnu+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274#ifndef __GNUC__
11275 choke me
11276#endif
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11284 (eval $ac_compile) 2>conftest.er1
a848cd7e 11285 ac_status=$?
ac1cb8d3
VS
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
a848cd7e
SC
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
6ebeb4c7 11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_compiler_gnu=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308ac_compiler_gnu=no
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11316GCC=`test $ac_compiler_gnu = yes && echo yes`
11317ac_test_CFLAGS=${CFLAGS+set}
11318ac_save_CFLAGS=$CFLAGS
9122d155 11319CFLAGS="-g"
a848cd7e
SC
11320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11322if test "${ac_cv_prog_cc_g+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11342 (eval $ac_compile) 2>conftest.er1
a848cd7e 11343 ac_status=$?
ac1cb8d3
VS
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
a848cd7e
SC
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
6ebeb4c7 11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_prog_cc_g=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366ac_cv_prog_cc_g=no
11367fi
ac1cb8d3 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11369fi
11370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11372if test "$ac_test_CFLAGS" = set; then
11373 CFLAGS=$ac_save_CFLAGS
11374elif test $ac_cv_prog_cc_g = yes; then
11375 if test "$GCC" = yes; then
11376 CFLAGS="-g -O2"
11377 else
11378 CFLAGS="-g"
11379 fi
11380else
11381 if test "$GCC" = yes; then
11382 CFLAGS="-O2"
11383 else
11384 CFLAGS=
11385 fi
11386fi
11387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11389if test "${ac_cv_prog_cc_stdc+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 ac_cv_prog_cc_stdc=no
11393ac_save_CC=$CC
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <stdarg.h>
11401#include <stdio.h>
11402#include <sys/types.h>
11403#include <sys/stat.h>
11404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11405struct buf { int x; };
11406FILE * (*rcsopen) (struct buf *, struct stat *, int);
11407static char *e (p, i)
11408 char **p;
11409 int i;
11410{
11411 return p[i];
11412}
11413static char *f (char * (*g) (char **, int), char **p, ...)
11414{
11415 char *s;
11416 va_list v;
11417 va_start (v,p);
11418 s = g (p, va_arg (v,int));
11419 va_end (v);
11420 return s;
11421}
ac1cb8d3
VS
11422
11423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11424 function prototypes and stuff, but not '\xHH' hex character constants.
11425 These don't provoke an error unfortunately, instead are silently treated
11426 as 'x'. The following induces an error, until -std1 is added to get
11427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11428 array size at least. It's necessary to write '\x00'==0 to get something
11429 that's true only with -std1. */
11430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11431
a848cd7e
SC
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
11438int
11439main ()
11440{
11441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446# Don't try gcc -ansi; that turns off useful extensions and
11447# breaks some systems' header files.
11448# AIX -qlanglvl=ansi
11449# Ultrix and OSF/1 -std1
11450# HP-UX 10.20 and later -Ae
11451# HP-UX older versions -Aa -D_HPUX_SOURCE
11452# SVR4 -Xc -D__EXTENSIONS__
11453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11454do
11455 CC="$ac_save_CC $ac_arg"
11456 rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11458 (eval $ac_compile) 2>conftest.er1
a848cd7e 11459 ac_status=$?
ac1cb8d3
VS
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
a848cd7e
SC
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
6ebeb4c7 11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_prog_cc_stdc=$ac_arg
11478break
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11485done
11486rm -f conftest.$ac_ext conftest.$ac_objext
11487CC=$ac_save_CC
11488
11489fi
11490
11491case "x$ac_cv_prog_cc_stdc" in
11492 x|xno)
11493 echo "$as_me:$LINENO: result: none needed" >&5
11494echo "${ECHO_T}none needed" >&6 ;;
11495 *)
11496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11498 CC="$CC $ac_cv_prog_cc_stdc" ;;
11499esac
11500
11501# Some people use a C++ compiler to compile C. Since we use `exit',
11502# in C++ we need to declare it. In case someone uses the same compiler
11503# for both compiling C and C++ we need to have the C++ compiler decide
11504# the declaration of exit, since it's the most demanding environment.
11505cat >conftest.$ac_ext <<_ACEOF
11506#ifndef __cplusplus
11507 choke me
11508#endif
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11512 (eval $ac_compile) 2>conftest.er1
a848cd7e 11513 ac_status=$?
ac1cb8d3
VS
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
a848cd7e
SC
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
6ebeb4c7 11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 for ac_declaration in \
ac1cb8d3 11532 '' \
a848cd7e
SC
11533 'extern "C" void std::exit (int) throw (); using std::exit;' \
11534 'extern "C" void std::exit (int); using std::exit;' \
11535 'extern "C" void exit (int) throw ();' \
11536 'extern "C" void exit (int);' \
11537 'void exit (int);'
11538do
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
de59c161 11545$ac_declaration
ac1cb8d3 11546#include <stdlib.h>
a848cd7e
SC
11547int
11548main ()
11549{
11550exit (42);
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
6ebeb4c7 11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 :
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581continue
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591int
11592main ()
11593{
11594exit (42);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
6ebeb4c7 11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 break
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627done
11628rm -f conftest*
11629if test -n "$ac_declaration"; then
11630 echo '#ifdef __cplusplus' >>confdefs.h
11631 echo $ac_declaration >>confdefs.h
11632 echo '#endif' >>confdefs.h
11633fi
11634
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
ac1cb8d3 11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11641ac_ext=c
11642ac_cpp='$CPP $CPPFLAGS'
11643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
ab0ad5f1
VZ
11647
11648
11649 ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11656echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11657if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666
11667int
11668main ()
11669{
11670
11671 #ifndef __INTEL_COMPILER
11672 choke me
11673 #endif
11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext
11680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705bakefile_cv_c_compiler___INTEL_COMPILER=no
11706
11707fi
11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709
11710
11711fi
11712echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11713echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11714 ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11721 :; INTELCC=yes
11722 else
11723 :;
11724 fi
11725
11726
11727 if test "x$GCC" != "xyes"; then
11728 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11729echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11730if test "${wx_cv_c_exto+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739
11740int
11741main ()
11742{
11743
11744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest.$ac_ext.o
11749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; then
11754 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11755 case $ac_file in
11756 conftest.$ac_ext.o)
11757 wx_cv_c_exto="-ext o"
11758 ;;
11759 *)
11760 ;;
11761 esac
11762done
11763else
11764 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11765See \`config.log' for more details." >&5
11766echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11767See \`config.log' for more details." >&2;}
11768 { (exit 1); exit 1; }; }
11769
11770fi
11771
11772rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11773
11774fi
11775echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11776echo "${ECHO_T}$wx_cv_c_exto" >&6
11777if test "x$wx_cv_c_exto" '!=' "x"; then
11778 if test "c" = "c"; then
11779 CFLAGS="$wx_cv_c_exto $CFLAGS"
11780 fi
11781 if test "c" = "cxx"; then
11782 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11783 fi
11784fi
11785
ab0ad5f1
VZ
11786 if test "x$wx_cv_c_exto" '!=' "x"; then
11787 unset ac_cv_prog_cc_g
11788 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11789ac_save_CFLAGS=$CFLAGS
9122d155 11790CFLAGS="-g"
480ccd21
DE
11791echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11792echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11793if test "${ac_cv_prog_cc_g+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802
11803int
11804main ()
11805{
11806
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
6ebeb4c7 11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_prog_cc_g=yes
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837ac_cv_prog_cc_g=no
11838fi
11839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11842echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11843if test "$ac_test_CFLAGS" = set; then
11844 CFLAGS=$ac_save_CFLAGS
11845elif test $ac_cv_prog_cc_g = yes; then
11846 if test "$GCC" = yes; then
11847 CFLAGS="-g -O2"
11848 else
11849 CFLAGS="-g"
11850 fi
11851else
11852 if test "$GCC" = yes; then
11853 CFLAGS="-O2"
11854 else
11855 CFLAGS=
11856 fi
11857fi
ab0ad5f1
VZ
11858 fi
11859 ac_ext=c
95986553
DE
11860ac_cpp='$CPP $CPPFLAGS'
11861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864
11865echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11866echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11867if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869else
11870 cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876
11877int
11878main ()
11879{
11880#ifndef __MWERKS__
11881 choke me
11882#endif
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
6ebeb4c7 11897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 bakefile_compiler_mwerks=yes
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914bakefile_compiler_mwerks=no
11915fi
11916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11918
11919fi
11920echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11921echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11922
0e6fa1d9 11923MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11924ac_ext=c
11925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930
ab0ad5f1 11931 ac_ext=c
9273ffba
DE
11932ac_cpp='$CPP $CPPFLAGS'
11933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936
11937echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11938echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11939if test "${wx_cv_c_compiler_xlc+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948
11949int
11950main ()
11951{
11952#ifndef __xlC__
11953 choke me
11954#endif
11955
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
6ebeb4c7 11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 wx_compiler_xlc=yes
11982else
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986wx_compiler_xlc=no
11987fi
11988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11990
11991fi
11992echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11993echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11994
0e6fa1d9 11995XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11996ac_ext=c
11997ac_cpp='$CPP $CPPFLAGS'
11998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002
a848cd7e 12003
6dcfc289 12004
0ad5d837
VZ
12005 ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12012echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12013if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026
12027 #ifndef _SGI_COMPILER_VERSION
12028 choke me
12029 #endif
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12062
12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066
12067fi
12068echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12069echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12070 ac_ext=c
12071ac_cpp='$CPP $CPPFLAGS'
12072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12077 :; SGICC=yes
12078 else
12079 :;
12080 fi
12081
12082
12083
12084
a9e5b1f0
MW
12085 ac_ext=c
12086ac_cpp='$CPP $CPPFLAGS'
12087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12089ac_compiler_gnu=$ac_cv_c_compiler_gnu
12090
12091 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12092echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12093if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102
12103int
12104main ()
12105{
12106
12107 #ifndef __SUNPRO_C
12108 choke me
12109 #endif
12110
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
6ebeb4c7 12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 bakefile_cv_c_compiler___SUNPRO_C=yes
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141bakefile_cv_c_compiler___SUNPRO_C=no
12142
12143fi
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145
12146
12147fi
12148echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12149echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12150 ac_ext=c
12151ac_cpp='$CPP $CPPFLAGS'
12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12157 :; SUNCC=yes
12158 else
12159 :;
12160 fi
12161
12162
ab0ad5f1 12163 fi
a9e5b1f0
MW
12164
12165
a848cd7e
SC
12166ac_ext=c
12167ac_cpp='$CPP $CPPFLAGS'
12168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12172echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12173# On Suns, sometimes $CPP names a directory.
12174if test -n "$CPP" && test -d "$CPP"; then
12175 CPP=
12176fi
12177if test -z "$CPP"; then
12178 if test "${ac_cv_prog_CPP+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 # Double quotes because CPP needs to be expanded
12182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12183 do
12184 ac_preproc_ok=false
12185for ac_c_preproc_warn_flag in '' yes
12186do
12187 # Use a header file that comes with gcc, so configuring glibc
12188 # with a fresh cross-compiler works.
12189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 # <limits.h> exists even on freestanding compilers.
12191 # On the NeXT, cc -E runs the code through the compiler's parser,
12192 # not just through cpp. "Syntax error" is here to catch this case.
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199#ifdef __STDC__
12200# include <limits.h>
12201#else
12202# include <assert.h>
12203#endif
ac1cb8d3 12204 Syntax error
a848cd7e
SC
12205_ACEOF
12206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12217 else
12218 ac_cpp_err=
12219 fi
12220else
12221 ac_cpp_err=yes
12222fi
12223if test -z "$ac_cpp_err"; then
12224 :
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 # Broken: fails on valid input.
12230continue
12231fi
12232rm -f conftest.err conftest.$ac_ext
12233
12234 # OK, works on sane cases. Now check whether non-existent headers
12235 # can be detected and how.
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <ac_nonexistent.h>
12243_ACEOF
12244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12255 else
12256 ac_cpp_err=
12257 fi
12258else
12259 ac_cpp_err=yes
12260fi
12261if test -z "$ac_cpp_err"; then
12262 # Broken: success on invalid input.
12263continue
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 # Passes both tests.
12269ac_preproc_ok=:
12270break
12271fi
12272rm -f conftest.err conftest.$ac_ext
12273
12274done
12275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12276rm -f conftest.err conftest.$ac_ext
12277if $ac_preproc_ok; then
12278 break
12279fi
12280
12281 done
12282 ac_cv_prog_CPP=$CPP
12283
12284fi
12285 CPP=$ac_cv_prog_CPP
12286else
12287 ac_cv_prog_CPP=$CPP
12288fi
12289echo "$as_me:$LINENO: result: $CPP" >&5
12290echo "${ECHO_T}$CPP" >&6
12291ac_preproc_ok=false
12292for ac_c_preproc_warn_flag in '' yes
12293do
12294 # Use a header file that comes with gcc, so configuring glibc
12295 # with a fresh cross-compiler works.
12296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 # <limits.h> exists even on freestanding compilers.
12298 # On the NeXT, cc -E runs the code through the compiler's parser,
12299 # not just through cpp. "Syntax error" is here to catch this case.
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#ifdef __STDC__
12307# include <limits.h>
12308#else
12309# include <assert.h>
12310#endif
ac1cb8d3 12311 Syntax error
a848cd7e
SC
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 :
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 # Broken: fails on valid input.
12337continue
12338fi
12339rm -f conftest.err conftest.$ac_ext
12340
12341 # OK, works on sane cases. Now check whether non-existent headers
12342 # can be detected and how.
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349#include <ac_nonexistent.h>
12350_ACEOF
12351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 # Broken: success on invalid input.
12370continue
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 # Passes both tests.
12376ac_preproc_ok=:
12377break
12378fi
12379rm -f conftest.err conftest.$ac_ext
12380
12381done
12382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12383rm -f conftest.err conftest.$ac_ext
12384if $ac_preproc_ok; then
12385 :
12386else
12387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12388See \`config.log' for more details." >&5
12389echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12390See \`config.log' for more details." >&2;}
12391 { (exit 1); exit 1; }; }
12392fi
12393
12394ac_ext=c
12395ac_cpp='$CPP $CPPFLAGS'
12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400
12401echo "$as_me:$LINENO: checking for egrep" >&5
12402echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12403if test "${ac_cv_prog_egrep+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12407 then ac_cv_prog_egrep='grep -E'
12408 else ac_cv_prog_egrep='egrep'
12409 fi
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12412echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12413 EGREP=$ac_cv_prog_egrep
12414
12415
12416if test $ac_cv_c_compiler_gnu = yes; then
12417 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12418echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12419if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 ac_pattern="Autoconf.*'x'"
12423 cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
12429#include <sgtty.h>
12430Autoconf TIOCGETP
12431_ACEOF
12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12434 ac_cv_prog_gcc_traditional=yes
12435else
12436 ac_cv_prog_gcc_traditional=no
12437fi
12438rm -f conftest*
12439
12440
12441 if test $ac_cv_prog_gcc_traditional = no; then
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448#include <termio.h>
12449Autoconf TCGETA
12450_ACEOF
12451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12453 ac_cv_prog_gcc_traditional=yes
12454fi
12455rm -f conftest*
12456
12457 fi
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12460echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12461 if test $ac_cv_prog_gcc_traditional = yes; then
12462 CC="$CC -traditional"
12463 fi
12464fi
12465
12466
12467
12468
12469ac_ext=cc
12470ac_cpp='$CXXCPP $CPPFLAGS'
12471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474
12475
12476CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12477
12478
12479 ac_ext=cc
a848cd7e
SC
12480ac_cpp='$CXXCPP $CPPFLAGS'
12481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12484if test -n "$ac_tool_prefix"; then
12485 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12486 do
12487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12489echo "$as_me:$LINENO: checking for $ac_word" >&5
12490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12491if test "${ac_cv_prog_CXX+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 if test -n "$CXX"; then
12495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12496else
12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $PATH
12499do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508done
12509done
12510
12511fi
12512fi
12513CXX=$ac_cv_prog_CXX
12514if test -n "$CXX"; then
12515 echo "$as_me:$LINENO: result: $CXX" >&5
12516echo "${ECHO_T}$CXX" >&6
12517else
12518 echo "$as_me:$LINENO: result: no" >&5
12519echo "${ECHO_T}no" >&6
12520fi
12521
12522 test -n "$CXX" && break
12523 done
12524fi
12525if test -z "$CXX"; then
12526 ac_ct_CXX=$CXX
12527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12528do
12529 # Extract the first word of "$ac_prog", so it can be a program name with args.
12530set dummy $ac_prog; ac_word=$2
12531echo "$as_me:$LINENO: checking for $ac_word" >&5
12532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12533if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 if test -n "$ac_ct_CXX"; then
12537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12538else
12539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540for as_dir in $PATH
12541do
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12546 ac_cv_prog_ac_ct_CXX="$ac_prog"
12547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12549 fi
12550done
12551done
12552
12553fi
12554fi
12555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12556if test -n "$ac_ct_CXX"; then
12557 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12558echo "${ECHO_T}$ac_ct_CXX" >&6
12559else
12560 echo "$as_me:$LINENO: result: no" >&5
12561echo "${ECHO_T}no" >&6
12562fi
12563
12564 test -n "$ac_ct_CXX" && break
12565done
12566test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12567
12568 CXX=$ac_ct_CXX
12569fi
12570
12571
12572# Provide some information about the compiler.
12573echo "$as_me:$LINENO:" \
12574 "checking for C++ compiler version" >&5
12575ac_compiler=`set X $ac_compile; echo $2`
12576{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12577 (eval $ac_compiler --version </dev/null >&5) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }
12581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12582 (eval $ac_compiler -v </dev/null >&5) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }
12586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12587 (eval $ac_compiler -V </dev/null >&5) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }
12591
12592echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12593echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12594if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607#ifndef __GNUC__
12608 choke me
12609#endif
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12617 (eval $ac_compile) 2>conftest.er1
a848cd7e 12618 ac_status=$?
ac1cb8d3
VS
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
a848cd7e
SC
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
6ebeb4c7 12624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_compiler_gnu=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641ac_compiler_gnu=no
12642fi
ac1cb8d3 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12645
12646fi
12647echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12648echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12649GXX=`test $ac_compiler_gnu = yes && echo yes`
12650ac_test_CXXFLAGS=${CXXFLAGS+set}
12651ac_save_CXXFLAGS=$CXXFLAGS
12652CXXFLAGS="-g"
12653echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12654echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12655if test "${ac_cv_prog_cxx_g+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664
12665int
12666main ()
12667{
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12675 (eval $ac_compile) 2>conftest.er1
a848cd7e 12676 ac_status=$?
ac1cb8d3
VS
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
a848cd7e
SC
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
6ebeb4c7 12682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_prog_cxx_g=yes
12695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699ac_cv_prog_cxx_g=no
12700fi
ac1cb8d3 12701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12702fi
12703echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12704echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12705if test "$ac_test_CXXFLAGS" = set; then
12706 CXXFLAGS=$ac_save_CXXFLAGS
12707elif test $ac_cv_prog_cxx_g = yes; then
12708 if test "$GXX" = yes; then
9122d155 12709 CXXFLAGS="-g -O2"
a848cd7e 12710 else
9122d155 12711 CXXFLAGS="-g"
a848cd7e
SC
12712 fi
12713else
12714 if test "$GXX" = yes; then
12715 CXXFLAGS="-O2"
12716 else
12717 CXXFLAGS=
12718 fi
12719fi
12720for ac_declaration in \
ac1cb8d3 12721 '' \
a848cd7e
SC
12722 'extern "C" void std::exit (int) throw (); using std::exit;' \
12723 'extern "C" void std::exit (int); using std::exit;' \
12724 'extern "C" void exit (int) throw ();' \
12725 'extern "C" void exit (int);' \
12726 'void exit (int);'
12727do
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
de59c161 12734$ac_declaration
ac1cb8d3 12735#include <stdlib.h>
a848cd7e
SC
12736int
12737main ()
12738{
12739exit (42);
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12746 (eval $ac_compile) 2>conftest.er1
a848cd7e 12747 ac_status=$?
ac1cb8d3
VS
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
a848cd7e
SC
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
6ebeb4c7 12753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 :
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770continue
12771fi
ac1cb8d3 12772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779$ac_declaration
12780int
12781main ()
12782{
12783exit (42);
12784 ;
12785 return 0;
12786}
12787_ACEOF
12788rm -f conftest.$ac_objext
12789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12790 (eval $ac_compile) 2>conftest.er1
a848cd7e 12791 ac_status=$?
ac1cb8d3
VS
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
a848cd7e
SC
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
6ebeb4c7 12797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 break
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814fi
ac1cb8d3 12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12816done
12817rm -f conftest*
12818if test -n "$ac_declaration"; then
12819 echo '#ifdef __cplusplus' >>confdefs.h
12820 echo $ac_declaration >>confdefs.h
12821 echo '#endif' >>confdefs.h
12822fi
12823
12824ac_ext=cc
12825ac_cpp='$CXXCPP $CPPFLAGS'
12826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12829
ab0ad5f1
VZ
12830
12831
12832 ac_ext=cc
12833ac_cpp='$CXXCPP $CPPFLAGS'
12834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837
12838 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
12839echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
12840if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
12849
12850int
12851main ()
12852{
12853
12854 #ifndef __INTEL_COMPILER
12855 choke me
12856 #endif
12857
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862rm -f conftest.$ac_objext
12863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888bakefile_cv_cxx_compiler___INTEL_COMPILER=no
12889
12890fi
12891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892
12893
12894fi
12895echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
12896echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
12897 ac_ext=cc
12898ac_cpp='$CXXCPP $CPPFLAGS'
12899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12902
12903 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
12904 :; INTELCXX=yes
12905 else
12906 :;
12907 fi
12908
12909
12910 if test "x$GXX" != "xyes"; then
12911 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12912echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12913if test "${wx_cv_cxx_exto+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915else
12916 cat >conftest.$ac_ext <<_ACEOF
12917/* confdefs.h. */
12918_ACEOF
12919cat confdefs.h >>conftest.$ac_ext
12920cat >>conftest.$ac_ext <<_ACEOF
12921/* end confdefs.h. */
12922
12923int
12924main ()
12925{
12926
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931rm -f conftest.$ac_objext conftest.$ac_ext.o
12932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; then
12937 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12938 case $ac_file in
12939 conftest.$ac_ext.o)
12940 wx_cv_cxx_exto="-ext o"
12941 ;;
12942 *)
12943 ;;
12944 esac
12945done
12946else
12947 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12948See \`config.log' for more details." >&5
12949echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12950See \`config.log' for more details." >&2;}
12951 { (exit 1); exit 1; }; }
12952
12953fi
12954
12955rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12956
12957fi
12958echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12959echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12960if test "x$wx_cv_cxx_exto" '!=' "x"; then
12961 if test "cxx" = "c"; then
12962 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12963 fi
12964 if test "cxx" = "cxx"; then
12965 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12966 fi
12967fi
12968
ab0ad5f1
VZ
12969 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12970 unset ac_cv_prog_cxx_g
12971 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12972ac_save_CXXFLAGS=$CXXFLAGS
12973CXXFLAGS="-g"
12974echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12975echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12976if test "${ac_cv_prog_cxx_g+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979 cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985
12986int
12987main ()
12988{
12989
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext
12995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
6ebeb4c7 13003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_prog_cxx_g=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020ac_cv_prog_cxx_g=no
13021fi
13022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13025echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13026if test "$ac_test_CXXFLAGS" = set; then
13027 CXXFLAGS=$ac_save_CXXFLAGS
13028elif test $ac_cv_prog_cxx_g = yes; then
13029 if test "$GXX" = yes; then
9122d155 13030 CXXFLAGS="-g -O2"
480ccd21 13031 else
9122d155 13032 CXXFLAGS="-g"
480ccd21
DE
13033 fi
13034else
13035 if test "$GXX" = yes; then
13036 CXXFLAGS="-O2"
13037 else
13038 CXXFLAGS=
13039 fi
13040fi
ab0ad5f1
VZ
13041 fi
13042 ac_ext=cc
95986553
DE
13043ac_cpp='$CXXCPP $CPPFLAGS'
13044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13047
13048echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13049echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13050if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 cat >conftest.$ac_ext <<_ACEOF
13054/* confdefs.h. */
13055_ACEOF
13056cat confdefs.h >>conftest.$ac_ext
13057cat >>conftest.$ac_ext <<_ACEOF
13058/* end confdefs.h. */
13059
13060int
13061main ()
13062{
13063#ifndef __MWERKS__
13064 choke me
13065#endif
13066
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071rm -f conftest.$ac_objext
13072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
6ebeb4c7 13080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 bakefile_compiler_mwerks=yes
13093else
13094 echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097bakefile_compiler_mwerks=no
13098fi
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13101
13102fi
13103echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13104echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13105
0e6fa1d9 13106MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13107ac_ext=cc
13108ac_cpp='$CXXCPP $CPPFLAGS'
13109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13112
13113
ab0ad5f1 13114 ac_ext=cc
9273ffba
DE
13115ac_cpp='$CXXCPP $CPPFLAGS'
13116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13119
13120echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13121echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13122if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131
13132int
13133main ()
13134{
13135#ifndef __xlC__
13136 choke me
13137#endif
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
6ebeb4c7 13152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 wx_compiler_xlc=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169wx_compiler_xlc=no
13170fi
13171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13172 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13173
13174fi
13175echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13176echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13177
0e6fa1d9 13178XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13179ac_ext=cc
13180ac_cpp='$CXXCPP $CPPFLAGS'
13181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
13185
95986553 13186
6dcfc289 13187
0ad5d837
VZ
13188 ac_ext=cc
13189ac_cpp='$CXXCPP $CPPFLAGS'
13190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193
13194 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13195echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13196if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199 cat >conftest.$ac_ext <<_ACEOF
13200/* confdefs.h. */
13201_ACEOF
13202cat confdefs.h >>conftest.$ac_ext
13203cat >>conftest.$ac_ext <<_ACEOF
13204/* end confdefs.h. */
13205
13206int
13207main ()
13208{
13209
13210 #ifndef _SGI_COMPILER_VERSION
13211 choke me
13212 #endif
13213
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218rm -f conftest.$ac_objext
13219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13245
13246fi
13247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13248
13249
13250fi
13251echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13252echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13253 ac_ext=cc
13254ac_cpp='$CXXCPP $CPPFLAGS'
13255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13258
13259 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13260 :; SGICXX=yes
13261 else
13262 :;
13263 fi
13264
13265
13266
13267
a9e5b1f0
MW
13268 ac_ext=cc
13269ac_cpp='$CXXCPP $CPPFLAGS'
13270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13273
13274 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13275echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13276if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278else
13279 cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285
13286int
13287main ()
13288{
13289
13290 #ifndef __SUNPRO_CC
13291 choke me
13292 #endif
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
13299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
6ebeb4c7 13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324bakefile_cv_cxx_compiler___SUNPRO_CC=no
13325
13326fi
13327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328
13329
13330fi
13331echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13332echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13333 ac_ext=cc
13334ac_cpp='$CXXCPP $CPPFLAGS'
13335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13338
13339 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13340 :; SUNCXX=yes
13341 else
13342 :;
13343 fi
13344
13345
ab0ad5f1 13346 fi
a9e5b1f0
MW
13347
13348
a848cd7e
SC
13349ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355
a848cd7e
SC
13356if test -n "$ac_tool_prefix"; then
13357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13359echo "$as_me:$LINENO: checking for $ac_word" >&5
13360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13361if test "${ac_cv_prog_RANLIB+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 if test -n "$RANLIB"; then
13365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378done
13379done
13380
13381fi
13382fi
13383RANLIB=$ac_cv_prog_RANLIB
13384if test -n "$RANLIB"; then
13385 echo "$as_me:$LINENO: result: $RANLIB" >&5
13386echo "${ECHO_T}$RANLIB" >&6
13387else
13388 echo "$as_me:$LINENO: result: no" >&5
13389echo "${ECHO_T}no" >&6
13390fi
13391
13392fi
13393if test -z "$ac_cv_prog_RANLIB"; then
13394 ac_ct_RANLIB=$RANLIB
13395 # Extract the first word of "ranlib", so it can be a program name with args.
13396set dummy ranlib; ac_word=$2
13397echo "$as_me:$LINENO: checking for $ac_word" >&5
13398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13399if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402 if test -n "$ac_ct_RANLIB"; then
13403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_prog_ac_ct_RANLIB="ranlib"
13413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417done
13418
13419 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13420fi
13421fi
13422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13423if test -n "$ac_ct_RANLIB"; then
13424 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13425echo "${ECHO_T}$ac_ct_RANLIB" >&6
13426else
13427 echo "$as_me:$LINENO: result: no" >&5
13428echo "${ECHO_T}no" >&6
13429fi
13430
13431 RANLIB=$ac_ct_RANLIB
13432else
13433 RANLIB="$ac_cv_prog_RANLIB"
13434fi
13435
13436
8c80d384
DE
13437if test -n "$ac_tool_prefix"; then
13438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13439set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13440echo "$as_me:$LINENO: checking for $ac_word" >&5
13441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13442if test "${ac_cv_prog_AR+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 if test -n "$AR"; then
13446 ac_cv_prog_AR="$AR" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13455 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460done
13461
13462fi
13463fi
13464AR=$ac_cv_prog_AR
13465if test -n "$AR"; then
13466 echo "$as_me:$LINENO: result: $AR" >&5
13467echo "${ECHO_T}$AR" >&6
13468else
13469 echo "$as_me:$LINENO: result: no" >&5
13470echo "${ECHO_T}no" >&6
13471fi
13472
8c80d384
DE
13473fi
13474if test -z "$ac_cv_prog_AR"; then
13475 ac_ct_AR=$AR
13476 # Extract the first word of "ar", so it can be a program name with args.
13477set dummy ar; ac_word=$2
13478echo "$as_me:$LINENO: checking for $ac_word" >&5
13479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13480if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 if test -n "$ac_ct_AR"; then
13484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13485else
13486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487for as_dir in $PATH
13488do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_prog_ac_ct_AR="ar"
13494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497done
13498done
13499
13500fi
13501fi
13502ac_ct_AR=$ac_cv_prog_ac_ct_AR
13503if test -n "$ac_ct_AR"; then
13504 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13505echo "${ECHO_T}$ac_ct_AR" >&6
13506else
13507 echo "$as_me:$LINENO: result: no" >&5
13508echo "${ECHO_T}no" >&6
13509fi
13510
13511 AR=$ac_ct_AR
13512else
13513 AR="$ac_cv_prog_AR"
13514fi
13515
a848cd7e 13516if test "x$AR" = "x" ; then
77ffb593
JS
13517 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13518echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13519 { (exit 1); exit 1; }; }
13520fi
13521
13522# Find a good install program. We prefer a C program (faster),
13523# so one script is as good as another. But avoid the broken or
13524# incompatible versions:
13525# SysV /etc/install, /usr/sbin/install
13526# SunOS /usr/etc/install
13527# IRIX /sbin/install
13528# AIX /bin/install
13529# AmigaOS /C/install, which installs bootblocks on floppy discs
13530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13533# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13534# ./install, which can be erroneously created by make from ./install.sh.
13535echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13536echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13537if test -z "$INSTALL"; then
13538if test "${ac_cv_path_install+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542for as_dir in $PATH
13543do
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 # Account for people who put trailing slashes in PATH elements.
13547case $as_dir/ in
13548 ./ | .// | /cC/* | \
13549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13551 /usr/ucb/* ) ;;
13552 *)
13553 # OSF1 and SCO ODT 3.0 have their own names for install.
13554 # Don't use installbsd from OSF since it installs stuff as root
13555 # by default.
13556 for ac_prog in ginstall scoinst install; do
13557 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13558 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13559 if test $ac_prog = install &&
13560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13561 # AIX install. It has an incompatible calling convention.
13562 :
13563 elif test $ac_prog = install &&
13564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13565 # program-specific install script used by HP pwplus--don't use.
13566 :
13567 else
13568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13569 break 3
13570 fi
13571 fi
a848cd7e
SC
13572 done
13573 done
13574 ;;
13575esac
13576done
13577
13578
13579fi
13580 if test "${ac_cv_path_install+set}" = set; then
13581 INSTALL=$ac_cv_path_install
13582 else
13583 # As a last resort, use the slow shell script. We don't cache a
13584 # path for INSTALL within a source directory, because that will
13585 # break other packages using the cache if that directory is
13586 # removed, or if the path is relative.
13587 INSTALL=$ac_install_sh
13588 fi
13589fi
13590echo "$as_me:$LINENO: result: $INSTALL" >&5
13591echo "${ECHO_T}$INSTALL" >&6
13592
13593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13594# It thinks the first close brace ends the variable substitution.
13595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13596
13597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13598
13599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13600
13601
13602case ${INSTALL} in
13603 /* ) # Absolute
13604 ;;
13605 ?:* ) # Drive letter, considered as absolute.
13606 ;;
13607 *)
13608 INSTALL=`pwd`/${INSTALL} ;;
13609esac
13610
a848cd7e
SC
13611
13612case "${host}" in
13613
cfda0ea8 13614 *-*-darwin* )
a848cd7e
SC
13615 INSTALL_PROGRAM="cp -fp"
13616 INSTALL_DATA="cp -fp"
13617 ;;
13618 *)
13619 ;;
13620esac
13621
8c80d384
DE
13622if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13625echo "$as_me:$LINENO: checking for $ac_word" >&5
13626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627if test "${ac_cv_prog_STRIP+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629else
13630 if test -n "$STRIP"; then
13631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645done
13646
a848cd7e
SC
13647fi
13648fi
13649STRIP=$ac_cv_prog_STRIP
13650if test -n "$STRIP"; then
13651 echo "$as_me:$LINENO: result: $STRIP" >&5
13652echo "${ECHO_T}$STRIP" >&6
13653else
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656fi
13657
8c80d384
DE
13658fi
13659if test -z "$ac_cv_prog_STRIP"; then
13660 ac_ct_STRIP=$STRIP
13661 # Extract the first word of "strip", so it can be a program name with args.
13662set dummy strip; ac_word=$2
13663echo "$as_me:$LINENO: checking for $ac_word" >&5
13664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13665if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 if test -n "$ac_ct_STRIP"; then
13669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_ac_ct_STRIP="strip"
13679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682done
13683done
13684
13685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13686fi
13687fi
13688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13689if test -n "$ac_ct_STRIP"; then
13690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13691echo "${ECHO_T}$ac_ct_STRIP" >&6
13692else
13693 echo "$as_me:$LINENO: result: no" >&5
13694echo "${ECHO_T}no" >&6
13695fi
13696
13697 STRIP=$ac_ct_STRIP
13698else
13699 STRIP="$ac_cv_prog_STRIP"
13700fi
13701
13702
13703if test "$wxUSE_WINE" = "yes"; then
13704 if test -n "$ac_tool_prefix"; then
13705 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13706set dummy ${ac_tool_prefix}wrc; ac_word=$2
13707echo "$as_me:$LINENO: checking for $ac_word" >&5
13708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13709if test "${ac_cv_prog_RESCOMP+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
13712 if test -n "$RESCOMP"; then
13713 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726done
13727done
13728
13729fi
13730fi
13731RESCOMP=$ac_cv_prog_RESCOMP
13732if test -n "$RESCOMP"; then
13733 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13734echo "${ECHO_T}$RESCOMP" >&6
13735else
13736 echo "$as_me:$LINENO: result: no" >&5
13737echo "${ECHO_T}no" >&6
13738fi
13739
13740fi
13741if test -z "$ac_cv_prog_RESCOMP"; then
13742 ac_ct_RESCOMP=$RESCOMP
13743 # Extract the first word of "wrc", so it can be a program name with args.
13744set dummy wrc; ac_word=$2
13745echo "$as_me:$LINENO: checking for $ac_word" >&5
13746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13747if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 if test -n "$ac_ct_RESCOMP"; then
13751 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_ac_ct_RESCOMP="wrc"
13761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764done
13765done
13766
13767fi
13768fi
13769ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13770if test -n "$ac_ct_RESCOMP"; then
13771 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13772echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13773else
13774 echo "$as_me:$LINENO: result: no" >&5
13775echo "${ECHO_T}no" >&6
13776fi
13777
13778 RESCOMP=$ac_ct_RESCOMP
13779else
13780 RESCOMP="$ac_cv_prog_RESCOMP"
13781fi
13782
13783else
13784 case "${host}" in
13785 *-*-cygwin* | *-*-mingw32* )
13786 if test -n "$ac_tool_prefix"; then
13787 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13788set dummy ${ac_tool_prefix}windres; ac_word=$2
13789echo "$as_me:$LINENO: checking for $ac_word" >&5
13790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13791if test "${ac_cv_prog_RESCOMP+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794 if test -n "$RESCOMP"; then
13795 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809done
13810
13811fi
13812fi
13813RESCOMP=$ac_cv_prog_RESCOMP
13814if test -n "$RESCOMP"; then
13815 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13816echo "${ECHO_T}$RESCOMP" >&6
13817else
13818 echo "$as_me:$LINENO: result: no" >&5
13819echo "${ECHO_T}no" >&6
13820fi
13821
13822fi
13823if test -z "$ac_cv_prog_RESCOMP"; then
13824 ac_ct_RESCOMP=$RESCOMP
13825 # Extract the first word of "windres", so it can be a program name with args.
13826set dummy windres; ac_word=$2
13827echo "$as_me:$LINENO: checking for $ac_word" >&5
13828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13829if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 if test -n "$ac_ct_RESCOMP"; then
13833 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_prog_ac_ct_RESCOMP="windres"
13843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13845 fi
13846done
13847done
13848
13849fi
13850fi
13851ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13852if test -n "$ac_ct_RESCOMP"; then
13853 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13854echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13855else
13856 echo "$as_me:$LINENO: result: no" >&5
13857echo "${ECHO_T}no" >&6
13858fi
13859
13860 RESCOMP=$ac_ct_RESCOMP
13861else
13862 RESCOMP="$ac_cv_prog_RESCOMP"
13863fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13868echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13870if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$DLLTOOL"; then
13874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
13889
13890fi
13891fi
13892DLLTOOL=$ac_cv_prog_DLLTOOL
13893if test -n "$DLLTOOL"; then
13894 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13895echo "${ECHO_T}$DLLTOOL" >&6
13896else
13897 echo "$as_me:$LINENO: result: no" >&5
13898echo "${ECHO_T}no" >&6
13899fi
13900
13901fi
13902if test -z "$ac_cv_prog_DLLTOOL"; then
13903 ac_ct_DLLTOOL=$DLLTOOL
13904 # Extract the first word of "dlltool", so it can be a program name with args.
13905set dummy dlltool; ac_word=$2
13906echo "$as_me:$LINENO: checking for $ac_word" >&5
13907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13908if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911 if test -n "$ac_ct_DLLTOOL"; then
13912 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13913else
13914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915for as_dir in $PATH
13916do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925done
13926done
13927
13928fi
13929fi
13930ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13931if test -n "$ac_ct_DLLTOOL"; then
13932 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13933echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13934else
13935 echo "$as_me:$LINENO: result: no" >&5
13936echo "${ECHO_T}no" >&6
13937fi
13938
13939 DLLTOOL=$ac_ct_DLLTOOL
13940else
13941 DLLTOOL="$ac_cv_prog_DLLTOOL"
13942fi
13943
13944 ;;
13945 esac
13946fi
a848cd7e
SC
13947
13948echo "$as_me:$LINENO: checking if make is GNU make" >&5
13949echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13950if test "${wx_cv_prog_makeisgnu+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953
13954 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13955 egrep -s GNU > /dev/null); then
13956 wx_cv_prog_makeisgnu="yes"
13957 else
13958 wx_cv_prog_makeisgnu="no"
13959 fi
13960
13961fi
13962echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13963echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13964
13965if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13966 IF_GNU_MAKE=""
13967else
13968 IF_GNU_MAKE="#"
13969fi
13970
13971
13972
13973if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13974echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13975echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13976if test "${wx_cv_prog_makevpath+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978else
13979
13980cat - << EOF > confMake
13981check : file
13982 cp \$? \$@
13983 cp \$? final_file
13984EOF
13985
13986if test ! -d sub ; then
13987 mkdir sub
13988fi
13989echo dummy > sub/file
13990${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13991RESULT=$?
13992rm -f sub/file check final_file confMake
13993rmdir sub
13994if test "$RESULT" = 0; then
13995 wx_cv_prog_makevpath="yes"
13996else
13997 wx_cv_prog_makevpath="no"
13998fi
13999
14000fi
14001echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14002echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14003
14004if test "x$wx_cv_prog_makevpath" != "xyes"; then
14005{ { echo "$as_me:$LINENO: error:
14006You need a make-utility that is able to use the variable
14007VPATH correctly.
14008If your version of make does not support VPATH correctly,
14009please install GNU-make (possibly as gmake), and start
14010configure with the following command:
14011export MAKE=gmake; ./configure for sh-type shells
14012setenv MAKE gmake; ./configure for csh-type shells
14013Also please do remember to use gmake in this case every time
14014you are trying to compile.
14015" >&5
14016echo "$as_me: error:
14017You need a make-utility that is able to use the variable
14018VPATH correctly.
14019If your version of make does not support VPATH correctly,
14020please install GNU-make (possibly as gmake), and start
14021configure with the following command:
14022export MAKE=gmake; ./configure for sh-type shells
14023setenv MAKE gmake; ./configure for csh-type shells
14024Also please do remember to use gmake in this case every time
14025you are trying to compile.
14026" >&2;}
14027 { (exit 1); exit 1; }; }
14028fi fi
14029echo "$as_me:$LINENO: checking whether ln -s works" >&5
14030echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14031LN_S=$as_ln_s
14032if test "$LN_S" = "ln -s"; then
14033 echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035else
14036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14037echo "${ECHO_T}no, using $LN_S" >&6
14038fi
14039
14040
14041
2113bc77 14042if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14043 CXXFLAGS="$CXXFLAGS -qunique"
14044fi
14045
4d7ec9f1
DE
14046case "${host}" in
14047 powerpc-*-darwin* )
14048 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14049echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056
14057int
14058main ()
14059{
14060#ifndef __POWERPC__
14061 choke me for lack of PowerPC
14062#endif
14063
14064 ;
14065 return 0;
14066}
14067_ACEOF
14068rm -f conftest.$ac_objext
14069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070 (eval $ac_compile) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
6ebeb4c7 14077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 echo "$as_me:$LINENO: result: yes" >&5
14090echo "${ECHO_T}yes" >&6
14091else
14092 echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
14095echo "$as_me:$LINENO: result: no" >&5
14096echo "${ECHO_T}no" >&6
14097 cat >>confdefs.h <<\_ACEOF
14098#define __POWERPC__ 1
14099_ACEOF
14100
14101
14102fi
14103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14104 ;;
14105esac
14106
14107case "${host}" in
14108 *-*-darwin* )
4d7ec9f1
DE
14109 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14110echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
14117#include <CoreFoundation/CFBase.h>
14118
14119int
14120main ()
14121{
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
6ebeb4c7 14136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest.$ac_objext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 echo "$as_me:$LINENO: result: yes" >&5
14149echo "${ECHO_T}yes" >&6
14150else
14151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154echo "$as_me:$LINENO: result: no" >&5
14155echo "${ECHO_T}no" >&6
14156 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14157echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164#define __CF_USE_FRAMEWORK_INCLUDES__
14165#include <CoreFoundation/CFBase.h>
14166
14167int
14168main ()
14169{
14170
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
6ebeb4c7 14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 echo "$as_me:$LINENO: result: yes" >&5
14197echo "${ECHO_T}yes" >&6
14198 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14204See \`config.log' for more details." >&5
14205echo "$as_me: error: no. CoreFoundation not available.
14206See \`config.log' for more details." >&2;}
14207 { (exit 1); exit 1; }; }
14208
14209fi
14210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211
14212
14213fi
14214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14215 ;;
14216esac
14217
a848cd7e
SC
14218case "${host}" in
14219 *-pc-os2_emx | *-pc-os2-emx )
14220 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14221 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14222echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14223if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 ac_check_lib_save_LIBS=$LIBS
14227LIBS="-lcExt $LIBS"
14228cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234
14235/* Override any gcc2 internal prototype to avoid an error. */
14236#ifdef __cplusplus
14237extern "C"
14238#endif
14239/* We use char because int might match the return type of a gcc2
14240 builtin and then its argument prototype would still apply. */
14241char drand48 ();
14242int
14243main ()
14244{
14245drand48 ();
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext conftest$ac_exeext
14251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14252 (eval $ac_link) 2>conftest.er1
a848cd7e 14253 ac_status=$?
ac1cb8d3
VS
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
a848cd7e
SC
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
6ebeb4c7 14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_cExt_drand48=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_cv_lib_cExt_drand48=no
14277fi
ac1cb8d3
VS
14278rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14280LIBS=$ac_check_lib_save_LIBS
14281fi
14282echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14283echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14284if test $ac_cv_lib_cExt_drand48 = yes; then
14285 LIBS="$LIBS -lcExt"
14286fi
14287
14288 else
14289 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14290 fi
69120ee4
VZ
14291 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14292echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14293if test "${wx_cv_gccversion+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295else
14296
391a765e
VS
14297 if test "$cross_compiling" = yes; then
14298 wx_cv_gccversion="EMX2"
14299
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307
391a765e 14308 #include <stdio.h>
a848cd7e 14309
391a765e
VS
14310 int main()
14311 {
14312 FILE *f=fopen("conftestval", "w");
14313 if (!f) exit(1);
14314 fprintf(f,
a848cd7e 14315 #if (__GNUC__ < 3)
391a765e
VS
14316 "EMX2"
14317 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14318 "EMX3"
14319 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14320 "Innotek5"
14321 #else
14322 "Innotek6"
a848cd7e 14323 #endif
391a765e
VS
14324 );
14325 exit(0);
14326 }
a848cd7e 14327
a848cd7e 14328_ACEOF
391a765e
VS
14329rm -f conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
ac1cb8d3
VS
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
391a765e 14340 wx_cv_gccversion=`cat conftestval`
a848cd7e 14341else
391a765e
VS
14342 echo "$as_me: program exited with status $ac_status" >&5
14343echo "$as_me: failed program was:" >&5
a848cd7e
SC
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
391a765e
VS
14346( exit $ac_status )
14347wx_cv_gccversion="EMX2"
a848cd7e 14348fi
391a765e 14349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14350fi
a848cd7e
SC
14351
14352fi
14353echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14354echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14355 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14356 LIBS="$LIBS -lstdcpp"
14357 LDFLAGS="$LDFLAGS -Zsysv-signals"
14358 else
391a765e 14359 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14360 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14361 LDFLAGS="$LDFLAGS -Zsysv-signals"
14362 else
14363 LIBS="$LIBS -lstdc++"
14364 fi
14365 fi
94acd38e
DE
14366 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14367 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14368echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14369 wxUSE_OMF=yes
2da0c077 14370 enable_omf=yes
a848cd7e
SC
14371 fi
14372 ;;
14373 *)
14374
14375
14376
14377 ac_ext=cc
14378ac_cpp='$CXXCPP $CPPFLAGS'
14379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14382
14383
95986553 14384 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14385echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14386if test "${ac_cv_string_strcasecmp+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
14389
14390 cat >conftest.$ac_ext <<_ACEOF
14391/* confdefs.h. */
14392_ACEOF
14393cat confdefs.h >>conftest.$ac_ext
14394cat >>conftest.$ac_ext <<_ACEOF
14395/* end confdefs.h. */
14396
14397 #include <string.h>
14398
14399int
14400main ()
14401{
14402
14403 strcasecmp("foo", "bar");
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext conftest$ac_exeext
14410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14411 (eval $ac_link) 2>conftest.er1
a848cd7e 14412 ac_status=$?
ac1cb8d3
VS
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
a848cd7e
SC
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
6ebeb4c7 14418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_string_strcasecmp=yes
14431else
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435ac_cv_string_strcasecmp=no
14436
14437fi
ac1cb8d3
VS
14438rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14440
14441fi
14442echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14443echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14444
14445 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14446 cat >>confdefs.h <<\_ACEOF
14447#define HAVE_STRCASECMP_IN_STRING_H 1
14448_ACEOF
14449
14450 else
14451 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14452echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14453if test "${ac_cv_strings_strcasecmp+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455else
14456
14457 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463
14464 #include <strings.h>
14465
14466int
14467main ()
14468{
14469
14470 strcasecmp("foo", "bar");
14471
14472 ;
14473 return 0;
14474}
14475_ACEOF
14476rm -f conftest.$ac_objext conftest$ac_exeext
14477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14478 (eval $ac_link) 2>conftest.er1
a848cd7e 14479 ac_status=$?
ac1cb8d3
VS
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
a848cd7e
SC
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
6ebeb4c7 14485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_strings_strcasecmp=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502ac_cv_strings_strcasecmp=no
14503
14504fi
ac1cb8d3
VS
14505rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14507
14508fi
14509echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14510echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14511
0c3c69fc 14512 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14513 cat >>confdefs.h <<\_ACEOF
14514#define HAVE_STRCASECMP_IN_STRINGS_H 1
14515_ACEOF
14516
14517 else
14518 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14519echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14520 { (exit 1); exit 1; }; }
14521 fi
14522 fi
14523
14524 ac_ext=c
14525ac_cpp='$CPP $CPPFLAGS'
14526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14528ac_compiler_gnu=$ac_cv_c_compiler_gnu
14529
14530 ;;
14531esac
14532
14533
14534echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14535echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14536if test "${ac_cv_header_stdc+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545#include <stdlib.h>
14546#include <stdarg.h>
14547#include <string.h>
14548#include <float.h>
14549
14550int
14551main ()
14552{
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14560 (eval $ac_compile) 2>conftest.er1
a848cd7e 14561 ac_status=$?
ac1cb8d3
VS
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
a848cd7e
SC
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
6ebeb4c7 14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_header_stdc=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_cv_header_stdc=no
14585fi
ac1cb8d3 14586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14587
14588if test $ac_cv_header_stdc = yes; then
14589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14590 cat >conftest.$ac_ext <<_ACEOF
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596#include <string.h>
14597
14598_ACEOF
14599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14600 $EGREP "memchr" >/dev/null 2>&1; then
14601 :
14602else
14603 ac_cv_header_stdc=no
14604fi
14605rm -f conftest*
14606
14607fi
14608
14609if test $ac_cv_header_stdc = yes; then
14610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14611 cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617#include <stdlib.h>
14618
14619_ACEOF
14620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "free" >/dev/null 2>&1; then
14622 :
14623else
14624 ac_cv_header_stdc=no
14625fi
14626rm -f conftest*
14627
14628fi
14629
14630if test $ac_cv_header_stdc = yes; then
14631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14632 if test "$cross_compiling" = yes; then
14633 :
14634else
14635 cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641#include <ctype.h>
14642#if ((' ' & 0x0FF) == 0x020)
14643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14645#else
14646# define ISLOWER(c) \
ac1cb8d3
VS
14647 (('a' <= (c) && (c) <= 'i') \
14648 || ('j' <= (c) && (c) <= 'r') \
14649 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14651#endif
14652
14653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14654int
14655main ()
14656{
14657 int i;
14658 for (i = 0; i < 256; i++)
14659 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14660 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14661 exit(2);
14662 exit (0);
14663}
14664_ACEOF
14665rm -f conftest$ac_exeext
14666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 :
14677else
14678 echo "$as_me: program exited with status $ac_status" >&5
14679echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682( exit $ac_status )
14683ac_cv_header_stdc=no
14684fi
ac1cb8d3 14685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14686fi
14687fi
14688fi
14689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14690echo "${ECHO_T}$ac_cv_header_stdc" >&6
14691if test $ac_cv_header_stdc = yes; then
14692
14693cat >>confdefs.h <<\_ACEOF
14694#define STDC_HEADERS 1
14695_ACEOF
14696
14697fi
14698
14699# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14710 inttypes.h stdint.h unistd.h
a848cd7e
SC
14711do
14712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14713echo "$as_me:$LINENO: checking for $ac_header" >&5
14714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14715if eval "test \"\${$as_ac_Header+set}\" = set"; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724$ac_includes_default
14725
14726#include <$ac_header>
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14730 (eval $ac_compile) 2>conftest.er1
a848cd7e 14731 ac_status=$?
ac1cb8d3
VS
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
a848cd7e
SC
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
6ebeb4c7 14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 eval "$as_ac_Header=yes"
14750else
14751 echo "$as_me: failed program was:" >&5
14752sed 's/^/| /' conftest.$ac_ext >&5
14753
14754eval "$as_ac_Header=no"
14755fi
ac1cb8d3 14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14757fi
14758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14760if test `eval echo '${'$as_ac_Header'}'` = yes; then
14761 cat >>confdefs.h <<_ACEOF
14762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14763_ACEOF
14764
14765fi
14766
14767done
14768
14769
14770
14771for ac_header in stdlib.h
14772do
14773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14774if eval "test \"\${$as_ac_Header+set}\" = set"; then
14775 echo "$as_me:$LINENO: checking for $ac_header" >&5
14776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14777if eval "test \"\${$as_ac_Header+set}\" = set"; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779fi
14780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14782else
14783 # Is the header compilable?
14784echo "$as_me:$LINENO: checking $ac_header usability" >&5
14785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14786cat >conftest.$ac_ext <<_ACEOF
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793#include <$ac_header>
14794_ACEOF
14795rm -f conftest.$ac_objext
14796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14797 (eval $ac_compile) 2>conftest.er1
a848cd7e 14798 ac_status=$?
ac1cb8d3
VS
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
a848cd7e
SC
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
6ebeb4c7 14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; } &&
14810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_header_compiler=yes
14817else
14818 echo "$as_me: failed program was:" >&5
14819sed 's/^/| /' conftest.$ac_ext >&5
14820
14821ac_header_compiler=no
14822fi
ac1cb8d3 14823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825echo "${ECHO_T}$ac_header_compiler" >&6
14826
14827# Is the header present?
14828echo "$as_me:$LINENO: checking $ac_header presence" >&5
14829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14830cat >conftest.$ac_ext <<_ACEOF
14831/* confdefs.h. */
14832_ACEOF
14833cat confdefs.h >>conftest.$ac_ext
14834cat >>conftest.$ac_ext <<_ACEOF
14835/* end confdefs.h. */
14836#include <$ac_header>
14837_ACEOF
14838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null; then
14846 if test -s conftest.err; then
14847 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14849 else
14850 ac_cpp_err=
14851 fi
14852else
14853 ac_cpp_err=yes
14854fi
14855if test -z "$ac_cpp_err"; then
14856 ac_header_preproc=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_header_preproc=no
14862fi
14863rm -f conftest.err conftest.$ac_ext
14864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14865echo "${ECHO_T}$ac_header_preproc" >&6
14866
14867# So? What about this header?
ac1cb8d3
VS
14868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14869 yes:no: )
a848cd7e
SC
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14874 ac_header_preproc=yes
a848cd7e 14875 ;;
ac1cb8d3 14876 no:yes:* )
a848cd7e
SC
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14889 (
14890 cat <<\_ASBOX
ac1cb8d3
VS
14891## ----------------------------------------- ##
14892## Report this to wx-dev@lists.wxwidgets.org ##
14893## ----------------------------------------- ##
a848cd7e
SC
14894_ASBOX
14895 ) |
14896 sed "s/^/$as_me: WARNING: /" >&2
14897 ;;
14898esac
14899echo "$as_me:$LINENO: checking for $ac_header" >&5
14900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14901if eval "test \"\${$as_ac_Header+set}\" = set"; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
ac1cb8d3 14904 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14905fi
14906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14908
14909fi
14910if test `eval echo '${'$as_ac_Header'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14913_ACEOF
14914
14915fi
14916
14917done
14918
14919
14920for ac_header in malloc.h
14921do
14922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo "$as_me:$LINENO: checking for $ac_header" >&5
14925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14926if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928fi
14929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931else
14932 # Is the header compilable?
14933echo "$as_me:$LINENO: checking $ac_header usability" >&5
14934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14935cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941$ac_includes_default
14942#include <$ac_header>
14943_ACEOF
14944rm -f conftest.$ac_objext
14945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14946 (eval $ac_compile) 2>conftest.er1
a848cd7e 14947 ac_status=$?
ac1cb8d3
VS
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
a848cd7e
SC
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
6ebeb4c7 14953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_header_compiler=yes
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_header_compiler=no
14971fi
ac1cb8d3 14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974echo "${ECHO_T}$ac_header_compiler" >&6
14975
14976# Is the header present?
14977echo "$as_me:$LINENO: checking $ac_header presence" >&5
14978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985#include <$ac_header>
14986_ACEOF
14987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } >/dev/null; then
14995 if test -s conftest.err; then
14996 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14998 else
14999 ac_cpp_err=
15000 fi
15001else
15002 ac_cpp_err=yes
15003fi
15004if test -z "$ac_cpp_err"; then
15005 ac_header_preproc=yes
15006else
15007 echo "$as_me: failed program was:" >&5
15008sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_header_preproc=no
15011fi
15012rm -f conftest.err conftest.$ac_ext
15013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15014echo "${ECHO_T}$ac_header_preproc" >&6
15015
15016# So? What about this header?
ac1cb8d3
VS
15017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15018 yes:no: )
a848cd7e
SC
15019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15023 ac_header_preproc=yes
a848cd7e 15024 ;;
ac1cb8d3 15025 no:yes:* )
a848cd7e
SC
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15038 (
15039 cat <<\_ASBOX
ac1cb8d3
VS
15040## ----------------------------------------- ##
15041## Report this to wx-dev@lists.wxwidgets.org ##
15042## ----------------------------------------- ##
a848cd7e
SC
15043_ASBOX
15044 ) |
15045 sed "s/^/$as_me: WARNING: /" >&2
15046 ;;
15047esac
15048echo "$as_me:$LINENO: checking for $ac_header" >&5
15049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15050if eval "test \"\${$as_ac_Header+set}\" = set"; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
ac1cb8d3 15053 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15054fi
15055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15057
15058fi
15059if test `eval echo '${'$as_ac_Header'}'` = yes; then
15060 cat >>confdefs.h <<_ACEOF
15061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15062_ACEOF
15063
15064fi
15065
15066done
15067
15068
15069for ac_header in unistd.h
15070do
15071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15072if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073 echo "$as_me:$LINENO: checking for $ac_header" >&5
15074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077fi
15078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15080else
15081 # Is the header compilable?
15082echo "$as_me:$LINENO: checking $ac_header usability" >&5
15083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15084cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090$ac_includes_default
15091#include <$ac_header>
15092_ACEOF
15093rm -f conftest.$ac_objext
15094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15095 (eval $ac_compile) 2>conftest.er1
a848cd7e 15096 ac_status=$?
ac1cb8d3
VS
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
a848cd7e
SC
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
6ebeb4c7 15102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_header_compiler=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119ac_header_compiler=no
15120fi
ac1cb8d3 15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15123echo "${ECHO_T}$ac_header_compiler" >&6
15124
15125# Is the header present?
15126echo "$as_me:$LINENO: checking $ac_header presence" >&5
15127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15128cat >conftest.$ac_ext <<_ACEOF
15129/* confdefs.h. */
15130_ACEOF
15131cat confdefs.h >>conftest.$ac_ext
15132cat >>conftest.$ac_ext <<_ACEOF
15133/* end confdefs.h. */
15134#include <$ac_header>
15135_ACEOF
15136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15147 else
15148 ac_cpp_err=
15149 fi
15150else
15151 ac_cpp_err=yes
15152fi
15153if test -z "$ac_cpp_err"; then
15154 ac_header_preproc=yes
15155else
15156 echo "$as_me: failed program was:" >&5
15157sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 ac_header_preproc=no
15160fi
15161rm -f conftest.err conftest.$ac_ext
15162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163echo "${ECHO_T}$ac_header_preproc" >&6
15164
15165# So? What about this header?
ac1cb8d3
VS
15166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15167 yes:no: )
a848cd7e
SC
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172 ac_header_preproc=yes
a848cd7e 15173 ;;
ac1cb8d3 15174 no:yes:* )
a848cd7e
SC
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15187 (
15188 cat <<\_ASBOX
ac1cb8d3
VS
15189## ----------------------------------------- ##
15190## Report this to wx-dev@lists.wxwidgets.org ##
15191## ----------------------------------------- ##
a848cd7e
SC
15192_ASBOX
15193 ) |
15194 sed "s/^/$as_me: WARNING: /" >&2
15195 ;;
15196esac
15197echo "$as_me:$LINENO: checking for $ac_header" >&5
15198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15199if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
ac1cb8d3 15202 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15203fi
15204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15206
15207fi
15208if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211_ACEOF
15212
15213fi
15214
15215done
15216
15217
15218for ac_header in wchar.h
15219do
15220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221if eval "test \"\${$as_ac_Header+set}\" = set"; then
15222 echo "$as_me:$LINENO: checking for $ac_header" >&5
15223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15224if eval "test \"\${$as_ac_Header+set}\" = set"; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226fi
15227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15229else
15230 # Is the header compilable?
15231echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239$ac_includes_default
15240#include <$ac_header>
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15244 (eval $ac_compile) 2>conftest.er1
a848cd7e 15245 ac_status=$?
ac1cb8d3
VS
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
a848cd7e
SC
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
6ebeb4c7 15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268ac_header_compiler=no
15269fi
ac1cb8d3 15270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272echo "${ECHO_T}$ac_header_compiler" >&6
15273
15274# Is the header present?
15275echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283#include <$ac_header>
15284_ACEOF
15285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15296 else
15297 ac_cpp_err=
15298 fi
15299else
15300 ac_cpp_err=yes
15301fi
15302if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_header_preproc=no
15309fi
15310rm -f conftest.err conftest.$ac_ext
15311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312echo "${ECHO_T}$ac_header_preproc" >&6
15313
15314# So? What about this header?
ac1cb8d3
VS
15315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
a848cd7e
SC
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
a848cd7e 15322 ;;
ac1cb8d3 15323 no:yes:* )
a848cd7e
SC
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15336 (
15337 cat <<\_ASBOX
ac1cb8d3
VS
15338## ----------------------------------------- ##
15339## Report this to wx-dev@lists.wxwidgets.org ##
15340## ----------------------------------------- ##
a848cd7e
SC
15341_ASBOX
15342 ) |
15343 sed "s/^/$as_me: WARNING: /" >&2
15344 ;;
15345esac
15346echo "$as_me:$LINENO: checking for $ac_header" >&5
15347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15348if eval "test \"\${$as_ac_Header+set}\" = set"; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
ac1cb8d3 15351 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15352fi
15353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15355
15356fi
15357if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360_ACEOF
15361
15362fi
15363
15364done
15365
15366
15367if test "$ac_cv_header_wchar_h" != "yes"; then
15368
15369for ac_header in wcstr.h
15370do
15371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372if eval "test \"\${$as_ac_Header+set}\" = set"; then
15373 echo "$as_me:$LINENO: checking for $ac_header" >&5
15374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15375if eval "test \"\${$as_ac_Header+set}\" = set"; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377fi
15378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15380else
15381 # Is the header compilable?
15382echo "$as_me:$LINENO: checking $ac_header usability" >&5
15383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15384cat >conftest.$ac_ext <<_ACEOF
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390$ac_includes_default
15391#include <$ac_header>
15392_ACEOF
15393rm -f conftest.$ac_objext
15394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15395 (eval $ac_compile) 2>conftest.er1
a848cd7e 15396 ac_status=$?
ac1cb8d3
VS
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
a848cd7e
SC
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
6ebeb4c7 15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler=yes
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419ac_header_compiler=no
15420fi
ac1cb8d3 15421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15423echo "${ECHO_T}$ac_header_compiler" >&6
15424
15425# Is the header present?
15426echo "$as_me:$LINENO: checking $ac_header presence" >&5
15427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15428cat >conftest.$ac_ext <<_ACEOF
15429/* confdefs.h. */
15430_ACEOF
15431cat confdefs.h >>conftest.$ac_ext
15432cat >>conftest.$ac_ext <<_ACEOF
15433/* end confdefs.h. */
15434#include <$ac_header>
15435_ACEOF
15436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null; then
15444 if test -s conftest.err; then
15445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15447 else
15448 ac_cpp_err=
15449 fi
15450else
15451 ac_cpp_err=yes
15452fi
15453if test -z "$ac_cpp_err"; then
15454 ac_header_preproc=yes
15455else
15456 echo "$as_me: failed program was:" >&5
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 ac_header_preproc=no
15460fi
15461rm -f conftest.err conftest.$ac_ext
15462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463echo "${ECHO_T}$ac_header_preproc" >&6
15464
15465# So? What about this header?
ac1cb8d3
VS
15466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 yes:no: )
a848cd7e
SC
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
a848cd7e 15473 ;;
ac1cb8d3 15474 no:yes:* )
a848cd7e
SC
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15487 (
15488 cat <<\_ASBOX
ac1cb8d3
VS
15489## ----------------------------------------- ##
15490## Report this to wx-dev@lists.wxwidgets.org ##
15491## ----------------------------------------- ##
a848cd7e
SC
15492_ASBOX
15493 ) |
15494 sed "s/^/$as_me: WARNING: /" >&2
15495 ;;
15496esac
15497echo "$as_me:$LINENO: checking for $ac_header" >&5
15498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15499if eval "test \"\${$as_ac_Header+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
ac1cb8d3 15502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15503fi
15504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15506
15507fi
15508if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511_ACEOF
15512
15513fi
15514
15515done
15516
15517fi
15518
15519
15520for ac_header in fnmatch.h
15521do
15522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523if eval "test \"\${$as_ac_Header+set}\" = set"; then
15524 echo "$as_me:$LINENO: checking for $ac_header" >&5
15525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15526if eval "test \"\${$as_ac_Header+set}\" = set"; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528fi
15529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15531else
15532 # Is the header compilable?
15533echo "$as_me:$LINENO: checking $ac_header usability" >&5
15534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15535cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h. */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
15541$ac_includes_default
15542#include <$ac_header>
15543_ACEOF
15544rm -f conftest.$ac_objext
15545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15546 (eval $ac_compile) 2>conftest.er1
a848cd7e 15547 ac_status=$?
ac1cb8d3
VS
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
a848cd7e
SC
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
6ebeb4c7 15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_header_compiler=yes
15566else
15567 echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
15570ac_header_compiler=no
15571fi
ac1cb8d3 15572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574echo "${ECHO_T}$ac_header_compiler" >&6
15575
15576# Is the header present?
15577echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15579cat >conftest.$ac_ext <<_ACEOF
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
15585#include <$ac_header>
15586_ACEOF
15587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } >/dev/null; then
15595 if test -s conftest.err; then
15596 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15598 else
15599 ac_cpp_err=
15600 fi
15601else
15602 ac_cpp_err=yes
15603fi
15604if test -z "$ac_cpp_err"; then
15605 ac_header_preproc=yes
15606else
15607 echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_header_preproc=no
15611fi
15612rm -f conftest.err conftest.$ac_ext
15613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15614echo "${ECHO_T}$ac_header_preproc" >&6
15615
15616# So? What about this header?
ac1cb8d3
VS
15617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15618 yes:no: )
a848cd7e
SC
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15623 ac_header_preproc=yes
a848cd7e 15624 ;;
ac1cb8d3 15625 no:yes:* )
a848cd7e
SC
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15638 (
15639 cat <<\_ASBOX
ac1cb8d3
VS
15640## ----------------------------------------- ##
15641## Report this to wx-dev@lists.wxwidgets.org ##
15642## ----------------------------------------- ##
a848cd7e
SC
15643_ASBOX
15644 ) |
15645 sed "s/^/$as_me: WARNING: /" >&2
15646 ;;
15647esac
15648echo "$as_me:$LINENO: checking for $ac_header" >&5
15649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15650if eval "test \"\${$as_ac_Header+set}\" = set"; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652else
ac1cb8d3 15653 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15654fi
15655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15657
15658fi
15659if test `eval echo '${'$as_ac_Header'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15662_ACEOF
15663
15664fi
15665
15666done
15667
15668
a848cd7e
SC
15669
15670for ac_header in langinfo.h
15671do
15672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673if eval "test \"\${$as_ac_Header+set}\" = set"; then
15674 echo "$as_me:$LINENO: checking for $ac_header" >&5
15675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15676if eval "test \"\${$as_ac_Header+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678fi
15679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15681else
15682 # Is the header compilable?
15683echo "$as_me:$LINENO: checking $ac_header usability" >&5
15684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15685cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
15691$ac_includes_default
15692#include <$ac_header>
15693_ACEOF
15694rm -f conftest.$ac_objext
15695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15696 (eval $ac_compile) 2>conftest.er1
a848cd7e 15697 ac_status=$?
ac1cb8d3
VS
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
a848cd7e
SC
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
6ebeb4c7 15703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_header_compiler=yes
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_header_compiler=no
15721fi
ac1cb8d3 15722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724echo "${ECHO_T}$ac_header_compiler" >&6
15725
15726# Is the header present?
15727echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15729cat >conftest.$ac_ext <<_ACEOF
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735#include <$ac_header>
15736_ACEOF
15737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } >/dev/null; then
15745 if test -s conftest.err; then
15746 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15748 else
15749 ac_cpp_err=
15750 fi
15751else
15752 ac_cpp_err=yes
15753fi
15754if test -z "$ac_cpp_err"; then
15755 ac_header_preproc=yes
15756else
15757 echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760 ac_header_preproc=no
15761fi
15762rm -f conftest.err conftest.$ac_ext
15763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764echo "${ECHO_T}$ac_header_preproc" >&6
15765
15766# So? What about this header?
ac1cb8d3
VS
15767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768 yes:no: )
a848cd7e
SC
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15773 ac_header_preproc=yes
a848cd7e 15774 ;;
ac1cb8d3 15775 no:yes:* )
a848cd7e
SC
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15788 (
15789 cat <<\_ASBOX
ac1cb8d3
VS
15790## ----------------------------------------- ##
15791## Report this to wx-dev@lists.wxwidgets.org ##
15792## ----------------------------------------- ##
a848cd7e
SC
15793_ASBOX
15794 ) |
15795 sed "s/^/$as_me: WARNING: /" >&2
15796 ;;
15797esac
15798echo "$as_me:$LINENO: checking for $ac_header" >&5
15799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15800if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802else
ac1cb8d3 15803 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15804fi
15805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15807
15808fi
15809if test `eval echo '${'$as_ac_Header'}'` = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15812_ACEOF
15813
15814fi
15815
15816done
15817
15818
15819case "${host}" in
15820 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15821 if test $ac_cv_header_langinfo_h = "yes" \
15822 -a \( "$wx_cv_gccversion" = "EMX2" \
15823 -o "$wx_cv_gccversion" = "EMX3" \
15824 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15825 LIBS="$LIBS -lintl"
15826 fi
15827 ;;
15828esac
15829
a848cd7e
SC
15830
15831echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15832echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15833if test "${ac_cv_c_const+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835else
15836 cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842
15843int
15844main ()
15845{
15846/* FIXME: Include the comments suggested by Paul. */
15847#ifndef __cplusplus
15848 /* Ultrix mips cc rejects this. */
15849 typedef int charset[2];
15850 const charset x;
15851 /* SunOS 4.1.1 cc rejects this. */
15852 char const *const *ccp;
15853 char **p;
15854 /* NEC SVR4.0.2 mips cc rejects this. */
15855 struct point {int x, y;};
15856 static struct point const zero = {0,0};
15857 /* AIX XL C 1.02.0.0 rejects this.
15858 It does not let you subtract one const X* pointer from another in
15859 an arm of an if-expression whose if-part is not a constant
15860 expression */
15861 const char *g = "string";
15862 ccp = &g + (g ? g-g : 0);
15863 /* HPUX 7.0 cc rejects these. */
15864 ++ccp;
15865 p = (char**) ccp;
15866 ccp = (char const *const *) p;
15867 { /* SCO 3.2v4 cc rejects this. */
15868 char *t;
15869 char const *s = 0 ? (char *) 0 : (char const *) 0;
15870
15871 *t++ = 0;
15872 }
15873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15874 int x[] = {25, 17};
15875 const int *foo = &x[0];
15876 ++foo;
15877 }
15878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15879 typedef const int *iptr;
15880 iptr p = 0;
15881 ++p;
15882 }
15883 { /* AIX XL C 1.02.0.0 rejects this saying
15884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15885 struct s { int j; const int *ap[3]; };
15886 struct s *b; b->j = 5;
15887 }
15888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15889 const int foo = 10;
15890 }
15891#endif
15892
15893 ;
15894 return 0;
15895}
15896_ACEOF
15897rm -f conftest.$ac_objext
15898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15899 (eval $ac_compile) 2>conftest.er1
a848cd7e 15900 ac_status=$?
ac1cb8d3
VS
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
a848cd7e
SC
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
6ebeb4c7 15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_c_const=yes
15919else
15920 echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
15923ac_cv_c_const=no
15924fi
ac1cb8d3 15925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15926fi
15927echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15928echo "${ECHO_T}$ac_cv_c_const" >&6
15929if test $ac_cv_c_const = no; then
15930
15931cat >>confdefs.h <<\_ACEOF
15932#define const
15933_ACEOF
15934
15935fi
15936
15937echo "$as_me:$LINENO: checking for inline" >&5
15938echo $ECHO_N "checking for inline... $ECHO_C" >&6
15939if test "${ac_cv_c_inline+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941else
15942 ac_cv_c_inline=no
15943for ac_kw in inline __inline__ __inline; do
15944 cat >conftest.$ac_ext <<_ACEOF
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
15950#ifndef __cplusplus
15951typedef int foo_t;
15952static $ac_kw foo_t static_foo () {return 0; }
15953$ac_kw foo_t foo () {return 0; }
15954#endif
15955
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15959 (eval $ac_compile) 2>conftest.er1
a848cd7e 15960 ac_status=$?
ac1cb8d3
VS
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
a848cd7e
SC
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
6ebeb4c7 15966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_c_inline=$ac_kw; break
15979else
15980 echo "$as_me: failed program was:" >&5
15981sed 's/^/| /' conftest.$ac_ext >&5
15982
15983fi
ac1cb8d3 15984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15985done
15986
15987fi
15988echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15989echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15990
15991
a848cd7e
SC
15992case $ac_cv_c_inline in
15993 inline | yes) ;;
ac1cb8d3
VS
15994 *)
15995 case $ac_cv_c_inline in
15996 no) ac_val=;;
15997 *) ac_val=$ac_cv_c_inline;;
15998 esac
15999 cat >>confdefs.h <<_ACEOF
16000#ifndef __cplusplus
16001#define inline $ac_val
16002#endif
de59c161 16003_ACEOF
ac1cb8d3 16004 ;;
a848cd7e
SC
16005esac
16006
16007
16008echo "$as_me:$LINENO: checking for char" >&5
16009echo $ECHO_N "checking for char... $ECHO_C" >&6
16010if test "${ac_cv_type_char+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019$ac_includes_default
16020int
16021main ()
16022{
16023if ((char *) 0)
16024 return 0;
16025if (sizeof (char))
16026 return 0;
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16033 (eval $ac_compile) 2>conftest.er1
a848cd7e 16034 ac_status=$?
ac1cb8d3
VS
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
a848cd7e
SC
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
6ebeb4c7 16040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_cv_type_char=yes
16053else
16054 echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057ac_cv_type_char=no
16058fi
ac1cb8d3 16059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16060fi
16061echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16062echo "${ECHO_T}$ac_cv_type_char" >&6
16063
16064echo "$as_me:$LINENO: checking size of char" >&5
16065echo $ECHO_N "checking size of char... $ECHO_C" >&6
16066if test "${ac_cv_sizeof_char+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069 if test "$ac_cv_type_char" = yes; then
16070 # The cast to unsigned long works around a bug in the HP C Compiler
16071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073 # This bug is HP SR number 8606223364.
16074 if test "$cross_compiling" = yes; then
16075 # Depending upon the size, compute the lo and hi bounds.
16076cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16087test_array [0] = 0
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16095 (eval $ac_compile) 2>conftest.er1
a848cd7e 16096 ac_status=$?
ac1cb8d3
VS
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
a848cd7e
SC
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
6ebeb4c7 16102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_lo=0 ac_mid=0
16115 while :; do
16116 cat >conftest.$ac_ext <<_ACEOF
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
16122$ac_includes_default
16123int
16124main ()
16125{
16126static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16127test_array [0] = 0
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest.$ac_objext
16134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16135 (eval $ac_compile) 2>conftest.er1
a848cd7e 16136 ac_status=$?
ac1cb8d3
VS
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
a848cd7e
SC
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
6ebeb4c7 16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_hi=$ac_mid; break
16155else
16156 echo "$as_me: failed program was:" >&5
16157sed 's/^/| /' conftest.$ac_ext >&5
16158
16159ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16160 if test $ac_lo -le $ac_mid; then
16161 ac_lo= ac_hi=
16162 break
16163 fi
16164 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16165fi
ac1cb8d3 16166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16167 done
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178$ac_includes_default
16179int
16180main ()
16181{
16182static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16183test_array [0] = 0
16184
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16191 (eval $ac_compile) 2>conftest.er1
a848cd7e 16192 ac_status=$?
ac1cb8d3
VS
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
a848cd7e
SC
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
6ebeb4c7 16198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_hi=-1 ac_mid=-1
16211 while :; do
16212 cat >conftest.$ac_ext <<_ACEOF
16213/* confdefs.h. */
16214_ACEOF
16215cat confdefs.h >>conftest.$ac_ext
16216cat >>conftest.$ac_ext <<_ACEOF
16217/* end confdefs.h. */
16218$ac_includes_default
16219int
16220main ()
16221{
16222static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16223test_array [0] = 0
16224
16225 ;
16226 return 0;
16227}
16228_ACEOF
16229rm -f conftest.$ac_objext
16230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16231 (eval $ac_compile) 2>conftest.er1
a848cd7e 16232 ac_status=$?
ac1cb8d3
VS
16233 grep -v '^ *+' conftest.er1 >conftest.err
16234 rm -f conftest.er1
16235 cat conftest.err >&5
a848cd7e
SC
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
6ebeb4c7 16238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; } &&
16244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_lo=$ac_mid; break
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16256 if test $ac_mid -le $ac_hi; then
16257 ac_lo= ac_hi=
16258 break
16259 fi
16260 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16261fi
ac1cb8d3 16262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16263 done
16264else
16265 echo "$as_me: failed program was:" >&5
16266sed 's/^/| /' conftest.$ac_ext >&5
16267
16268ac_lo= ac_hi=
16269fi
ac1cb8d3 16270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16271fi
ac1cb8d3 16272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16273# Binary search between lo and hi bounds.
16274while test "x$ac_lo" != "x$ac_hi"; do
16275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16276 cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282$ac_includes_default
16283int
16284main ()
16285{
16286static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16287test_array [0] = 0
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16295 (eval $ac_compile) 2>conftest.er1
a848cd7e 16296 ac_status=$?
ac1cb8d3
VS
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
a848cd7e
SC
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
6ebeb4c7 16302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_hi=$ac_mid
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319ac_lo=`expr '(' $ac_mid ')' + 1`
16320fi
ac1cb8d3 16321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16322done
16323case $ac_lo in
16324?*) ac_cv_sizeof_char=$ac_lo;;
16325'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16326See \`config.log' for more details." >&5
16327echo "$as_me: error: cannot compute sizeof (char), 77
16328See \`config.log' for more details." >&2;}
16329 { (exit 1); exit 1; }; } ;;
16330esac
16331else
16332 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16333 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16334echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16335 { (exit 1); exit 1; }; }
16336else
16337 cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
16343$ac_includes_default
16344long longval () { return (long) (sizeof (char)); }
16345unsigned long ulongval () { return (long) (sizeof (char)); }
16346#include <stdio.h>
16347#include <stdlib.h>
16348int
16349main ()
16350{
16351
16352 FILE *f = fopen ("conftest.val", "w");
16353 if (! f)
16354 exit (1);
16355 if (((long) (sizeof (char))) < 0)
16356 {
16357 long i = longval ();
16358 if (i != ((long) (sizeof (char))))
16359 exit (1);
16360 fprintf (f, "%ld\n", i);
16361 }
16362 else
16363 {
16364 unsigned long i = ulongval ();
16365 if (i != ((long) (sizeof (char))))
16366 exit (1);
16367 fprintf (f, "%lu\n", i);
16368 }
16369 exit (ferror (f) || fclose (f) != 0);
16370
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest$ac_exeext
16376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377 (eval $ac_link) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_cv_sizeof_char=`cat conftest.val`
16387else
16388 echo "$as_me: program exited with status $ac_status" >&5
16389echo "$as_me: failed program was:" >&5
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
16392( exit $ac_status )
16393{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16394See \`config.log' for more details." >&5
16395echo "$as_me: error: cannot compute sizeof (char), 77
16396See \`config.log' for more details." >&2;}
16397 { (exit 1); exit 1; }; }
16398fi
ac1cb8d3 16399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16400fi
16401fi
16402rm -f conftest.val
16403else
16404 ac_cv_sizeof_char=0
16405fi
16406fi
16407echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16408echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16409cat >>confdefs.h <<_ACEOF
16410#define SIZEOF_CHAR $ac_cv_sizeof_char
16411_ACEOF
16412
16413
16414echo "$as_me:$LINENO: checking for short" >&5
16415echo $ECHO_N "checking for short... $ECHO_C" >&6
16416if test "${ac_cv_type_short+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419 cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425$ac_includes_default
16426int
16427main ()
16428{
16429if ((short *) 0)
16430 return 0;
16431if (sizeof (short))
16432 return 0;
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16439 (eval $ac_compile) 2>conftest.er1
a848cd7e 16440 ac_status=$?
ac1cb8d3
VS
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
a848cd7e
SC
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
6ebeb4c7 16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_type_short=yes
16459else
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463ac_cv_type_short=no
16464fi
ac1cb8d3 16465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16466fi
16467echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16468echo "${ECHO_T}$ac_cv_type_short" >&6
16469
16470echo "$as_me:$LINENO: checking size of short" >&5
16471echo $ECHO_N "checking size of short... $ECHO_C" >&6
16472if test "${ac_cv_sizeof_short+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474else
16475 if test "$ac_cv_type_short" = yes; then
16476 # The cast to unsigned long works around a bug in the HP C Compiler
16477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16479 # This bug is HP SR number 8606223364.
16480 if test "$cross_compiling" = yes; then
16481 # Depending upon the size, compute the lo and hi bounds.
16482cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16493test_array [0] = 0
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16501 (eval $ac_compile) 2>conftest.er1
a848cd7e 16502 ac_status=$?
ac1cb8d3
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
a848cd7e
SC
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
6ebeb4c7 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_lo=0 ac_mid=0
16521 while :; do
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529int
16530main ()
16531{
16532static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16533test_array [0] = 0
16534
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16541 (eval $ac_compile) 2>conftest.er1
a848cd7e 16542 ac_status=$?
ac1cb8d3
VS
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
a848cd7e
SC
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
6ebeb4c7 16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_hi=$ac_mid; break
16561else
16562 echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16566 if test $ac_lo -le $ac_mid; then
16567 ac_lo= ac_hi=
16568 break
16569 fi
16570 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16571fi
ac1cb8d3 16572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16573 done
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
16578cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584$ac_includes_default
16585int
16586main ()
16587{
16588static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16589test_array [0] = 0
16590
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16597 (eval $ac_compile) 2>conftest.er1
a848cd7e 16598 ac_status=$?
ac1cb8d3
VS
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
a848cd7e
SC
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
6ebeb4c7 16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_hi=-1 ac_mid=-1
16617 while :; do
16618 cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
16624$ac_includes_default
16625int
16626main ()
16627{
16628static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16629test_array [0] = 0
16630
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16637 (eval $ac_compile) 2>conftest.er1
a848cd7e 16638 ac_status=$?
ac1cb8d3
VS
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
a848cd7e
SC
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
6ebeb4c7 16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } &&
16650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_lo=$ac_mid; break
16657else
16658 echo "$as_me: failed program was:" >&5
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
16661ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16662 if test $ac_mid -le $ac_hi; then
16663 ac_lo= ac_hi=
16664 break
16665 fi
16666 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16667fi
ac1cb8d3 16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16669 done
16670else
16671 echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674ac_lo= ac_hi=
16675fi
ac1cb8d3 16676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16677fi
ac1cb8d3 16678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16679# Binary search between lo and hi bounds.
16680while test "x$ac_lo" != "x$ac_hi"; do
16681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688$ac_includes_default
16689int
16690main ()
16691{
16692static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16693test_array [0] = 0
16694
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16701 (eval $ac_compile) 2>conftest.er1
a848cd7e 16702 ac_status=$?
ac1cb8d3
VS
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
a848cd7e
SC
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
6ebeb4c7 16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_hi=$ac_mid
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725ac_lo=`expr '(' $ac_mid ')' + 1`
16726fi
ac1cb8d3 16727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16728done
16729case $ac_lo in
16730?*) ac_cv_sizeof_short=$ac_lo;;
16731'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16732See \`config.log' for more details." >&5
16733echo "$as_me: error: cannot compute sizeof (short), 77
16734See \`config.log' for more details." >&2;}
16735 { (exit 1); exit 1; }; } ;;
16736esac
16737else
16738 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16739 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16740echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16741 { (exit 1); exit 1; }; }
16742else
16743 cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
16749$ac_includes_default
16750long longval () { return (long) (sizeof (short)); }
16751unsigned long ulongval () { return (long) (sizeof (short)); }
16752#include <stdio.h>
16753#include <stdlib.h>
16754int
16755main ()
16756{
16757
16758 FILE *f = fopen ("conftest.val", "w");
16759 if (! f)
16760 exit (1);
16761 if (((long) (sizeof (short))) < 0)
16762 {
16763 long i = longval ();
16764 if (i != ((long) (sizeof (short))))
16765 exit (1);
16766 fprintf (f, "%ld\n", i);
16767 }
16768 else
16769 {
16770 unsigned long i = ulongval ();
16771 if (i != ((long) (sizeof (short))))
16772 exit (1);
16773 fprintf (f, "%lu\n", i);
16774 }
16775 exit (ferror (f) || fclose (f) != 0);
16776
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest$ac_exeext
16782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783 (eval $ac_link) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_sizeof_short=`cat conftest.val`
16793else
16794 echo "$as_me: program exited with status $ac_status" >&5
16795echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798( exit $ac_status )
16799{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16800See \`config.log' for more details." >&5
16801echo "$as_me: error: cannot compute sizeof (short), 77
16802See \`config.log' for more details." >&2;}
16803 { (exit 1); exit 1; }; }
16804fi
ac1cb8d3 16805rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16806fi
16807fi
16808rm -f conftest.val
16809else
16810 ac_cv_sizeof_short=0
16811fi
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16814echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16815cat >>confdefs.h <<_ACEOF
16816#define SIZEOF_SHORT $ac_cv_sizeof_short
16817_ACEOF
16818
16819
16820echo "$as_me:$LINENO: checking for void *" >&5
16821echo $ECHO_N "checking for void *... $ECHO_C" >&6
16822if test "${ac_cv_type_void_p+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835if ((void * *) 0)
16836 return 0;
16837if (sizeof (void *))
16838 return 0;
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16845 (eval $ac_compile) 2>conftest.er1
a848cd7e 16846 ac_status=$?
ac1cb8d3
VS
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
a848cd7e
SC
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
6ebeb4c7 16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_type_void_p=yes
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869ac_cv_type_void_p=no
16870fi
ac1cb8d3 16871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16872fi
16873echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16874echo "${ECHO_T}$ac_cv_type_void_p" >&6
16875
16876echo "$as_me:$LINENO: checking size of void *" >&5
16877echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16878if test "${ac_cv_sizeof_void_p+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881 if test "$ac_cv_type_void_p" = yes; then
16882 # The cast to unsigned long works around a bug in the HP C Compiler
16883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16885 # This bug is HP SR number 8606223364.
16886 if test "$cross_compiling" = yes; then
16887 # Depending upon the size, compute the lo and hi bounds.
16888cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
6ebeb4c7 16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_lo=0 ac_mid=0
16927 while :; do
16928 cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934$ac_includes_default
16935int
16936main ()
16937{
16938static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16939test_array [0] = 0
16940
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16947 (eval $ac_compile) 2>conftest.er1
a848cd7e 16948 ac_status=$?
ac1cb8d3
VS
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
a848cd7e
SC
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
6ebeb4c7 16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_hi=$ac_mid; break
16967else
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
16971ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16972 if test $ac_lo -le $ac_mid; then
16973 ac_lo= ac_hi=
16974 break
16975 fi
16976 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16977fi
ac1cb8d3 16978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16979 done
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984cat >conftest.$ac_ext <<_ACEOF
16985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
16990$ac_includes_default
16991int
16992main ()
16993{
16994static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16995test_array [0] = 0
16996
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext
17002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17003 (eval $ac_compile) 2>conftest.er1
a848cd7e 17004 ac_status=$?
ac1cb8d3
VS
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
a848cd7e
SC
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
6ebeb4c7 17010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_hi=-1 ac_mid=-1
17023 while :; do
17024 cat >conftest.$ac_ext <<_ACEOF
17025/* confdefs.h. */
17026_ACEOF
17027cat confdefs.h >>conftest.$ac_ext
17028cat >>conftest.$ac_ext <<_ACEOF
17029/* end confdefs.h. */
17030$ac_includes_default
17031int
17032main ()
17033{
17034static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17035test_array [0] = 0
17036
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext
17042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17043 (eval $ac_compile) 2>conftest.er1
a848cd7e 17044 ac_status=$?
ac1cb8d3
VS
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
a848cd7e
SC
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
6ebeb4c7 17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_lo=$ac_mid; break
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17068 if test $ac_mid -le $ac_hi; then
17069 ac_lo= ac_hi=
17070 break
17071 fi
17072 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17073fi
ac1cb8d3 17074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17075 done
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080ac_lo= ac_hi=
17081fi
ac1cb8d3 17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17083fi
ac1cb8d3 17084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17085# Binary search between lo and hi bounds.
17086while test "x$ac_lo" != "x$ac_hi"; do
17087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17088 cat >conftest.$ac_ext <<_ACEOF
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
17094$ac_includes_default
17095int
17096main ()
17097{
17098static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17099test_array [0] = 0
17100
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17107 (eval $ac_compile) 2>conftest.er1
a848cd7e 17108 ac_status=$?
ac1cb8d3
VS
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
a848cd7e
SC
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
6ebeb4c7 17114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17126 ac_hi=$ac_mid
17127else
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131ac_lo=`expr '(' $ac_mid ')' + 1`
17132fi
ac1cb8d3 17133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17134done
17135case $ac_lo in
17136?*) ac_cv_sizeof_void_p=$ac_lo;;
17137'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17138See \`config.log' for more details." >&5
17139echo "$as_me: error: cannot compute sizeof (void *), 77
17140See \`config.log' for more details." >&2;}
17141 { (exit 1); exit 1; }; } ;;
17142esac
17143else
17144 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17145 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17146echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17147 { (exit 1); exit 1; }; }
17148else
17149 cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h. */
17155$ac_includes_default
17156long longval () { return (long) (sizeof (void *)); }
17157unsigned long ulongval () { return (long) (sizeof (void *)); }
17158#include <stdio.h>
17159#include <stdlib.h>
17160int
17161main ()
17162{
17163
17164 FILE *f = fopen ("conftest.val", "w");
17165 if (! f)
17166 exit (1);
17167 if (((long) (sizeof (void *))) < 0)
17168 {
17169 long i = longval ();
17170 if (i != ((long) (sizeof (void *))))
17171 exit (1);
17172 fprintf (f, "%ld\n", i);
17173 }
17174 else
17175 {
17176 unsigned long i = ulongval ();
17177 if (i != ((long) (sizeof (void *))))
17178 exit (1);
17179 fprintf (f, "%lu\n", i);
17180 }
17181 exit (ferror (f) || fclose (f) != 0);
17182
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest$ac_exeext
17188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_sizeof_void_p=`cat conftest.val`
17199else
17200 echo "$as_me: program exited with status $ac_status" >&5
17201echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204( exit $ac_status )
17205{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17206See \`config.log' for more details." >&5
17207echo "$as_me: error: cannot compute sizeof (void *), 77
17208See \`config.log' for more details." >&2;}
17209 { (exit 1); exit 1; }; }
17210fi
ac1cb8d3 17211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17212fi
17213fi
17214rm -f conftest.val
17215else
17216 ac_cv_sizeof_void_p=0
17217fi
17218fi
17219echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17220echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17221cat >>confdefs.h <<_ACEOF
17222#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17223_ACEOF
17224
17225
17226echo "$as_me:$LINENO: checking for int" >&5
17227echo $ECHO_N "checking for int... $ECHO_C" >&6
17228if test "${ac_cv_type_int+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241if ((int *) 0)
17242 return 0;
17243if (sizeof (int))
17244 return 0;
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17251 (eval $ac_compile) 2>conftest.er1
a848cd7e 17252 ac_status=$?
ac1cb8d3
VS
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
a848cd7e
SC
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
6ebeb4c7 17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_int=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275ac_cv_type_int=no
17276fi
ac1cb8d3 17277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17280echo "${ECHO_T}$ac_cv_type_int" >&6
17281
17282echo "$as_me:$LINENO: checking size of int" >&5
17283echo $ECHO_N "checking size of int... $ECHO_C" >&6
17284if test "${ac_cv_sizeof_int+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 if test "$ac_cv_type_int" = yes; then
17288 # The cast to unsigned long works around a bug in the HP C Compiler
17289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17291 # This bug is HP SR number 8606223364.
17292 if test "$cross_compiling" = yes; then
17293 # Depending upon the size, compute the lo and hi bounds.
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17313 (eval $ac_compile) 2>conftest.er1
a848cd7e 17314 ac_status=$?
ac1cb8d3
VS
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
a848cd7e
SC
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
6ebeb4c7 17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_lo=0 ac_mid=0
17333 while :; do
17334 cat >conftest.$ac_ext <<_ACEOF
17335/* confdefs.h. */
17336_ACEOF
17337cat confdefs.h >>conftest.$ac_ext
17338cat >>conftest.$ac_ext <<_ACEOF
17339/* end confdefs.h. */
17340$ac_includes_default
17341int
17342main ()
17343{
17344static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17345test_array [0] = 0
17346
17347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext
17352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17353 (eval $ac_compile) 2>conftest.er1
a848cd7e 17354 ac_status=$?
ac1cb8d3
VS
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
a848cd7e
SC
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
6ebeb4c7 17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_hi=$ac_mid; break
17373else
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
17377ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17378 if test $ac_lo -le $ac_mid; then
17379 ac_lo= ac_hi=
17380 break
17381 fi
17382 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17383fi
ac1cb8d3 17384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17385 done
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396$ac_includes_default
17397int
17398main ()
17399{
17400static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17401test_array [0] = 0
17402
17403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext
17408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17409 (eval $ac_compile) 2>conftest.er1
a848cd7e 17410 ac_status=$?
ac1cb8d3
VS
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
a848cd7e
SC
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
6ebeb4c7 17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_hi=-1 ac_mid=-1
17429 while :; do
17430 cat >conftest.$ac_ext <<_ACEOF
17431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
17436$ac_includes_default
17437int
17438main ()
17439{
17440static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17441test_array [0] = 0
17442
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext
17448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17449 (eval $ac_compile) 2>conftest.er1
a848cd7e 17450 ac_status=$?
ac1cb8d3
VS
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
a848cd7e
SC
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
6ebeb4c7 17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_lo=$ac_mid; break
17469else
17470 echo "$as_me: failed program was:" >&5
17471sed 's/^/| /' conftest.$ac_ext >&5
17472
17473ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17474 if test $ac_mid -le $ac_hi; then
17475 ac_lo= ac_hi=
17476 break
17477 fi
17478 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17479fi
ac1cb8d3 17480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17481 done
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_lo= ac_hi=
17487fi
ac1cb8d3 17488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17489fi
ac1cb8d3 17490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17491# Binary search between lo and hi bounds.
17492while test "x$ac_lo" != "x$ac_hi"; do
17493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17494 cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500$ac_includes_default
17501int
17502main ()
17503{
17504static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17505test_array [0] = 0
17506
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17513 (eval $ac_compile) 2>conftest.er1
a848cd7e 17514 ac_status=$?
ac1cb8d3
VS
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
a848cd7e
SC
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
6ebeb4c7 17520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_hi=$ac_mid
17533else
17534 echo "$as_me: failed program was:" >&5
17535sed 's/^/| /' conftest.$ac_ext >&5
17536
17537ac_lo=`expr '(' $ac_mid ')' + 1`
17538fi
ac1cb8d3 17539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17540done
17541case $ac_lo in
17542?*) ac_cv_sizeof_int=$ac_lo;;
17543'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17544See \`config.log' for more details." >&5
17545echo "$as_me: error: cannot compute sizeof (int), 77
17546See \`config.log' for more details." >&2;}
17547 { (exit 1); exit 1; }; } ;;
17548esac
17549else
17550 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17551 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17552echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17553 { (exit 1); exit 1; }; }
17554else
17555 cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561$ac_includes_default
17562long longval () { return (long) (sizeof (int)); }
17563unsigned long ulongval () { return (long) (sizeof (int)); }
17564#include <stdio.h>
17565#include <stdlib.h>
17566int
17567main ()
17568{
17569
17570 FILE *f = fopen ("conftest.val", "w");
17571 if (! f)
17572 exit (1);
17573 if (((long) (sizeof (int))) < 0)
17574 {
17575 long i = longval ();
17576 if (i != ((long) (sizeof (int))))
17577 exit (1);
17578 fprintf (f, "%ld\n", i);
17579 }
17580 else
17581 {
17582 unsigned long i = ulongval ();
17583 if (i != ((long) (sizeof (int))))
17584 exit (1);
17585 fprintf (f, "%lu\n", i);
17586 }
17587 exit (ferror (f) || fclose (f) != 0);
17588
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest$ac_exeext
17594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_sizeof_int=`cat conftest.val`
17605else
17606 echo "$as_me: program exited with status $ac_status" >&5
17607echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610( exit $ac_status )
17611{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17612See \`config.log' for more details." >&5
17613echo "$as_me: error: cannot compute sizeof (int), 77
17614See \`config.log' for more details." >&2;}
17615 { (exit 1); exit 1; }; }
17616fi
ac1cb8d3 17617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17618fi
17619fi
17620rm -f conftest.val
17621else
17622 ac_cv_sizeof_int=0
17623fi
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17626echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17627cat >>confdefs.h <<_ACEOF
17628#define SIZEOF_INT $ac_cv_sizeof_int
17629_ACEOF
17630
17631
17632echo "$as_me:$LINENO: checking for long" >&5
17633echo $ECHO_N "checking for long... $ECHO_C" >&6
17634if test "${ac_cv_type_long+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643$ac_includes_default
17644int
17645main ()
17646{
17647if ((long *) 0)
17648 return 0;
17649if (sizeof (long))
17650 return 0;
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
17656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17657 (eval $ac_compile) 2>conftest.er1
a848cd7e 17658 ac_status=$?
ac1cb8d3
VS
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
a848cd7e
SC
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
6ebeb4c7 17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_type_long=yes
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681ac_cv_type_long=no
17682fi
ac1cb8d3 17683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17684fi
17685echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17686echo "${ECHO_T}$ac_cv_type_long" >&6
17687
17688echo "$as_me:$LINENO: checking size of long" >&5
17689echo $ECHO_N "checking size of long... $ECHO_C" >&6
17690if test "${ac_cv_sizeof_long+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692else
17693 if test "$ac_cv_type_long" = yes; then
17694 # The cast to unsigned long works around a bug in the HP C Compiler
17695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17697 # This bug is HP SR number 8606223364.
17698 if test "$cross_compiling" = yes; then
17699 # Depending upon the size, compute the lo and hi bounds.
17700cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706$ac_includes_default
17707int
17708main ()
17709{
17710static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17711test_array [0] = 0
17712
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17719 (eval $ac_compile) 2>conftest.er1
a848cd7e 17720 ac_status=$?
ac1cb8d3
VS
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
a848cd7e
SC
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
6ebeb4c7 17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_lo=0 ac_mid=0
17739 while :; do
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746$ac_includes_default
17747int
17748main ()
17749{
17750static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17751test_array [0] = 0
17752
17753 ;
17754 return 0;
17755}
17756_ACEOF
17757rm -f conftest.$ac_objext
17758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17759 (eval $ac_compile) 2>conftest.er1
a848cd7e 17760 ac_status=$?
ac1cb8d3
VS
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
a848cd7e
SC
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
6ebeb4c7 17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_hi=$ac_mid; break
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17784 if test $ac_lo -le $ac_mid; then
17785 ac_lo= ac_hi=
17786 break
17787 fi
17788 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17789fi
ac1cb8d3 17790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17791 done
17792else
17793 echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802$ac_includes_default
17803int
17804main ()
17805{
17806static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17807test_array [0] = 0
17808
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext
17814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17815 (eval $ac_compile) 2>conftest.er1
a848cd7e 17816 ac_status=$?
ac1cb8d3
VS
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
a848cd7e
SC
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
6ebeb4c7 17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_hi=-1 ac_mid=-1
17835 while :; do
17836 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843int
17844main ()
17845{
17846static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17847test_array [0] = 0
17848
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext
17854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17855 (eval $ac_compile) 2>conftest.er1
a848cd7e 17856 ac_status=$?
ac1cb8d3
VS
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
a848cd7e
SC
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
6ebeb4c7 17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 ac_lo=$ac_mid; break
17875else
17876 echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17880 if test $ac_mid -le $ac_hi; then
17881 ac_lo= ac_hi=
17882 break
17883 fi
17884 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17885fi
ac1cb8d3 17886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17887 done
17888else
17889 echo "$as_me: failed program was:" >&5
17890sed 's/^/| /' conftest.$ac_ext >&5
17891
17892ac_lo= ac_hi=
17893fi
ac1cb8d3 17894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17895fi
ac1cb8d3 17896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17897# Binary search between lo and hi bounds.
17898while test "x$ac_lo" != "x$ac_hi"; do
17899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906$ac_includes_default
17907int
17908main ()
17909{
17910static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17911test_array [0] = 0
17912
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext
17918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17919 (eval $ac_compile) 2>conftest.er1
a848cd7e 17920 ac_status=$?
ac1cb8d3
VS
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
a848cd7e
SC
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
6ebeb4c7 17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 ac_hi=$ac_mid
17939else
17940 echo "$as_me: failed program was:" >&5
17941sed 's/^/| /' conftest.$ac_ext >&5
17942
17943ac_lo=`expr '(' $ac_mid ')' + 1`
17944fi
ac1cb8d3 17945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17946done
17947case $ac_lo in
17948?*) ac_cv_sizeof_long=$ac_lo;;
17949'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17950See \`config.log' for more details." >&5
17951echo "$as_me: error: cannot compute sizeof (long), 77
17952See \`config.log' for more details." >&2;}
17953 { (exit 1); exit 1; }; } ;;
17954esac
17955else
17956 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17957 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17958echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17959 { (exit 1); exit 1; }; }
17960else
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967$ac_includes_default
17968long longval () { return (long) (sizeof (long)); }
17969unsigned long ulongval () { return (long) (sizeof (long)); }
17970#include <stdio.h>
17971#include <stdlib.h>
17972int
17973main ()
17974{
17975
17976 FILE *f = fopen ("conftest.val", "w");
17977 if (! f)
17978 exit (1);
17979 if (((long) (sizeof (long))) < 0)
17980 {
17981 long i = longval ();
17982 if (i != ((long) (sizeof (long))))
17983 exit (1);
17984 fprintf (f, "%ld\n", i);
17985 }
17986 else
17987 {
17988 unsigned long i = ulongval ();
17989 if (i != ((long) (sizeof (long))))
17990 exit (1);
17991 fprintf (f, "%lu\n", i);
17992 }
17993 exit (ferror (f) || fclose (f) != 0);
17994
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest$ac_exeext
18000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001 (eval $ac_link) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_sizeof_long=`cat conftest.val`
18011else
18012 echo "$as_me: program exited with status $ac_status" >&5
18013echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016( exit $ac_status )
18017{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18018See \`config.log' for more details." >&5
18019echo "$as_me: error: cannot compute sizeof (long), 77
18020See \`config.log' for more details." >&2;}
18021 { (exit 1); exit 1; }; }
18022fi
ac1cb8d3 18023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18024fi
18025fi
18026rm -f conftest.val
18027else
18028 ac_cv_sizeof_long=0
18029fi
18030fi
18031echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18032echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18033cat >>confdefs.h <<_ACEOF
18034#define SIZEOF_LONG $ac_cv_sizeof_long
18035_ACEOF
18036
18037
18038echo "$as_me:$LINENO: checking for size_t" >&5
18039echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18040if test "${ac_cv_type_size_t+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18042else
18043 cat >conftest.$ac_ext <<_ACEOF
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
18049$ac_includes_default
18050int
18051main ()
18052{
18053if ((size_t *) 0)
18054 return 0;
18055if (sizeof (size_t))
18056 return 0;
18057 ;
18058 return 0;
18059}
18060_ACEOF
18061rm -f conftest.$ac_objext
18062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18063 (eval $ac_compile) 2>conftest.er1
a848cd7e 18064 ac_status=$?
ac1cb8d3
VS
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
a848cd7e
SC
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
6ebeb4c7 18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_type_size_t=yes
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087ac_cv_type_size_t=no
18088fi
ac1cb8d3 18089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18090fi
18091echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18092echo "${ECHO_T}$ac_cv_type_size_t" >&6
18093
18094echo "$as_me:$LINENO: checking size of size_t" >&5
18095echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18096if test "${ac_cv_sizeof_size_t+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 if test "$ac_cv_type_size_t" = yes; then
18100 # The cast to unsigned long works around a bug in the HP C Compiler
18101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18103 # This bug is HP SR number 8606223364.
18104 if test "$cross_compiling" = yes; then
18105 # Depending upon the size, compute the lo and hi bounds.
18106cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112$ac_includes_default
18113int
18114main ()
18115{
18116static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18117test_array [0] = 0
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext
18124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18125 (eval $ac_compile) 2>conftest.er1
a848cd7e 18126 ac_status=$?
ac1cb8d3
VS
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
a848cd7e
SC
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
6ebeb4c7 18132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_lo=0 ac_mid=0
18145 while :; do
18146 cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
18152$ac_includes_default
18153int
18154main ()
18155{
18156static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18157test_array [0] = 0
18158
18159 ;
18160 return 0;
18161}
18162_ACEOF
18163rm -f conftest.$ac_objext
18164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18165 (eval $ac_compile) 2>conftest.er1
a848cd7e 18166 ac_status=$?
ac1cb8d3
VS
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
a848cd7e
SC
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
6ebeb4c7 18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 ac_hi=$ac_mid; break
18185else
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18190 if test $ac_lo -le $ac_mid; then
18191 ac_lo= ac_hi=
18192 break
18193 fi
18194 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18195fi
ac1cb8d3 18196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18197 done
18198else
18199 echo "$as_me: failed program was:" >&5
18200sed 's/^/| /' conftest.$ac_ext >&5
18201
18202cat >conftest.$ac_ext <<_ACEOF
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208$ac_includes_default
18209int
18210main ()
18211{
18212static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18213test_array [0] = 0
18214
18215 ;
18216 return 0;
18217}
18218_ACEOF
18219rm -f conftest.$ac_objext
18220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18221 (eval $ac_compile) 2>conftest.er1
a848cd7e 18222 ac_status=$?
ac1cb8d3
VS
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
a848cd7e
SC
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
6ebeb4c7 18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_hi=-1 ac_mid=-1
18241 while :; do
18242 cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h. */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h. */
18248$ac_includes_default
18249int
18250main ()
18251{
18252static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18253test_array [0] = 0
18254
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext
18260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18261 (eval $ac_compile) 2>conftest.er1
a848cd7e 18262 ac_status=$?
ac1cb8d3
VS
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
a848cd7e
SC
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
6ebeb4c7 18268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_lo=$ac_mid; break
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18286 if test $ac_mid -le $ac_hi; then
18287 ac_lo= ac_hi=
18288 break
18289 fi
18290 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18291fi
ac1cb8d3 18292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18293 done
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298ac_lo= ac_hi=
18299fi
ac1cb8d3 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18301fi
ac1cb8d3 18302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18303# Binary search between lo and hi bounds.
18304while test "x$ac_lo" != "x$ac_hi"; do
18305 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18306 cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312$ac_includes_default
18313int
18314main ()
18315{
18316static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18317test_array [0] = 0
18318
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext
18324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18325 (eval $ac_compile) 2>conftest.er1
a848cd7e 18326 ac_status=$?
ac1cb8d3
VS
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
a848cd7e
SC
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
6ebeb4c7 18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_hi=$ac_mid
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349ac_lo=`expr '(' $ac_mid ')' + 1`
18350fi
ac1cb8d3 18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18352done
18353case $ac_lo in
18354?*) ac_cv_sizeof_size_t=$ac_lo;;
18355'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18356See \`config.log' for more details." >&5
18357echo "$as_me: error: cannot compute sizeof (size_t), 77
18358See \`config.log' for more details." >&2;}
18359 { (exit 1); exit 1; }; } ;;
18360esac
18361else
18362 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18363 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18364echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18365 { (exit 1); exit 1; }; }
18366else
18367 cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h. */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h. */
18373$ac_includes_default
18374long longval () { return (long) (sizeof (size_t)); }
18375unsigned long ulongval () { return (long) (sizeof (size_t)); }
18376#include <stdio.h>
18377#include <stdlib.h>
18378int
18379main ()
18380{
18381
18382 FILE *f = fopen ("conftest.val", "w");
18383 if (! f)
18384 exit (1);
18385 if (((long) (sizeof (size_t))) < 0)
18386 {
18387 long i = longval ();
18388 if (i != ((long) (sizeof (size_t))))
18389 exit (1);
18390 fprintf (f, "%ld\n", i);
18391 }
18392 else
18393 {
18394 unsigned long i = ulongval ();
18395 if (i != ((long) (sizeof (size_t))))
18396 exit (1);
18397 fprintf (f, "%lu\n", i);
18398 }
18399 exit (ferror (f) || fclose (f) != 0);
18400
18401 ;
18402 return 0;
18403}
18404_ACEOF
18405rm -f conftest$ac_exeext
18406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_sizeof_size_t=`cat conftest.val`
18417else
18418 echo "$as_me: program exited with status $ac_status" >&5
18419echo "$as_me: failed program was:" >&5
18420sed 's/^/| /' conftest.$ac_ext >&5
18421
18422( exit $ac_status )
18423{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18424See \`config.log' for more details." >&5
18425echo "$as_me: error: cannot compute sizeof (size_t), 77
18426See \`config.log' for more details." >&2;}
18427 { (exit 1); exit 1; }; }
18428fi
ac1cb8d3 18429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18430fi
18431fi
18432rm -f conftest.val
18433else
18434 ac_cv_sizeof_size_t=0
18435fi
18436fi
18437echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18438echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18439cat >>confdefs.h <<_ACEOF
18440#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18441_ACEOF
18442
18443
18444
18445case "${host}" in
18446 arm-*-linux* )
18447 echo "$as_me:$LINENO: checking for long long" >&5
18448echo $ECHO_N "checking for long long... $ECHO_C" >&6
18449if test "${ac_cv_type_long_long+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451else
18452 cat >conftest.$ac_ext <<_ACEOF
18453/* confdefs.h. */
18454_ACEOF
18455cat confdefs.h >>conftest.$ac_ext
18456cat >>conftest.$ac_ext <<_ACEOF
18457/* end confdefs.h. */
18458$ac_includes_default
18459int
18460main ()
18461{
18462if ((long long *) 0)
18463 return 0;
18464if (sizeof (long long))
18465 return 0;
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18472 (eval $ac_compile) 2>conftest.er1
a848cd7e 18473 ac_status=$?
ac1cb8d3
VS
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
a848cd7e
SC
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
6ebeb4c7 18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_type_long_long=yes
18492else
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496ac_cv_type_long_long=no
18497fi
ac1cb8d3 18498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18499fi
18500echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18501echo "${ECHO_T}$ac_cv_type_long_long" >&6
18502
18503echo "$as_me:$LINENO: checking size of long long" >&5
18504echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18505if test "${ac_cv_sizeof_long_long+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 if test "$ac_cv_type_long_long" = yes; then
18509 # The cast to unsigned long works around a bug in the HP C Compiler
18510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18512 # This bug is HP SR number 8606223364.
18513 if test "$cross_compiling" = yes; then
18514 # Depending upon the size, compute the lo and hi bounds.
18515cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521$ac_includes_default
18522int
18523main ()
18524{
18525static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18526test_array [0] = 0
18527
18528 ;
18529 return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext
18533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18534 (eval $ac_compile) 2>conftest.er1
a848cd7e 18535 ac_status=$?
ac1cb8d3
VS
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
a848cd7e
SC
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
6ebeb4c7 18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_lo=0 ac_mid=0
18554 while :; do
18555 cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561$ac_includes_default
18562int
18563main ()
18564{
18565static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18566test_array [0] = 0
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext
18573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18574 (eval $ac_compile) 2>conftest.er1
a848cd7e 18575 ac_status=$?
ac1cb8d3
VS
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
a848cd7e
SC
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
6ebeb4c7 18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 ac_hi=$ac_mid; break
18594else
18595 echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18599 if test $ac_lo -le $ac_mid; then
18600 ac_lo= ac_hi=
18601 break
18602 fi
18603 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18604fi
ac1cb8d3 18605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18606 done
18607else
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611cat >conftest.$ac_ext <<_ACEOF
18612/* confdefs.h. */
18613_ACEOF
18614cat confdefs.h >>conftest.$ac_ext
18615cat >>conftest.$ac_ext <<_ACEOF
18616/* end confdefs.h. */
18617$ac_includes_default
18618int
18619main ()
18620{
18621static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18622test_array [0] = 0
18623
18624 ;
18625 return 0;
18626}
18627_ACEOF
18628rm -f conftest.$ac_objext
18629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18630 (eval $ac_compile) 2>conftest.er1
a848cd7e 18631 ac_status=$?
ac1cb8d3
VS
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
a848cd7e
SC
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
6ebeb4c7 18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 ac_hi=-1 ac_mid=-1
18650 while :; do
18651 cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657$ac_includes_default
18658int
18659main ()
18660{
18661static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18662test_array [0] = 0
18663
18664 ;
18665 return 0;
18666}
18667_ACEOF
18668rm -f conftest.$ac_objext
18669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18670 (eval $ac_compile) 2>conftest.er1
a848cd7e 18671 ac_status=$?
ac1cb8d3
VS
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
a848cd7e
SC
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
6ebeb4c7 18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18689 ac_lo=$ac_mid; break
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18695 if test $ac_mid -le $ac_hi; then
18696 ac_lo= ac_hi=
18697 break
18698 fi
18699 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18700fi
ac1cb8d3 18701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18702 done
18703else
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707ac_lo= ac_hi=
18708fi
ac1cb8d3 18709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18710fi
ac1cb8d3 18711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18712# Binary search between lo and hi bounds.
18713while test "x$ac_lo" != "x$ac_hi"; do
18714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18715 cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
18720/* end confdefs.h. */
18721$ac_includes_default
18722int
18723main ()
18724{
18725static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18726test_array [0] = 0
18727
18728 ;
18729 return 0;
18730}
18731_ACEOF
18732rm -f conftest.$ac_objext
18733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18734 (eval $ac_compile) 2>conftest.er1
a848cd7e 18735 ac_status=$?
ac1cb8d3
VS
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
a848cd7e
SC
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
6ebeb4c7 18741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_hi=$ac_mid
18754else
18755 echo "$as_me: failed program was:" >&5
18756sed 's/^/| /' conftest.$ac_ext >&5
18757
18758ac_lo=`expr '(' $ac_mid ')' + 1`
18759fi
ac1cb8d3 18760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18761done
18762case $ac_lo in
18763?*) ac_cv_sizeof_long_long=$ac_lo;;
18764'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18765See \`config.log' for more details." >&5
18766echo "$as_me: error: cannot compute sizeof (long long), 77
18767See \`config.log' for more details." >&2;}
18768 { (exit 1); exit 1; }; } ;;
18769esac
18770else
18771 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18772 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18773echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18774 { (exit 1); exit 1; }; }
18775else
18776 cat >conftest.$ac_ext <<_ACEOF
18777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
18782$ac_includes_default
18783long longval () { return (long) (sizeof (long long)); }
18784unsigned long ulongval () { return (long) (sizeof (long long)); }
18785#include <stdio.h>
18786#include <stdlib.h>
18787int
18788main ()
18789{
18790
18791 FILE *f = fopen ("conftest.val", "w");
18792 if (! f)
18793 exit (1);
18794 if (((long) (sizeof (long long))) < 0)
18795 {
18796 long i = longval ();
18797 if (i != ((long) (sizeof (long long))))
18798 exit (1);
18799 fprintf (f, "%ld\n", i);
18800 }
18801 else
18802 {
18803 unsigned long i = ulongval ();
18804 if (i != ((long) (sizeof (long long))))
18805 exit (1);
18806 fprintf (f, "%lu\n", i);
18807 }
18808 exit (ferror (f) || fclose (f) != 0);
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest$ac_exeext
18815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816 (eval $ac_link) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 ac_cv_sizeof_long_long=`cat conftest.val`
18826else
18827 echo "$as_me: program exited with status $ac_status" >&5
18828echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831( exit $ac_status )
18832{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18833See \`config.log' for more details." >&5
18834echo "$as_me: error: cannot compute sizeof (long long), 77
18835See \`config.log' for more details." >&2;}
18836 { (exit 1); exit 1; }; }
18837fi
ac1cb8d3 18838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18839fi
18840fi
18841rm -f conftest.val
18842else
18843 ac_cv_sizeof_long_long=0
18844fi
18845fi
18846echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18847echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18848cat >>confdefs.h <<_ACEOF
18849#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18850_ACEOF
18851
18852
18853 ;;
18854 *-hp-hpux* )
18855 echo "$as_me:$LINENO: checking for long long" >&5
18856echo $ECHO_N "checking for long long... $ECHO_C" >&6
18857if test "${ac_cv_type_long_long+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
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{
18870if ((long long *) 0)
18871 return 0;
18872if (sizeof (long long))
18873 return 0;
18874 ;
18875 return 0;
18876}
18877_ACEOF
18878rm -f conftest.$ac_objext
18879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18880 (eval $ac_compile) 2>conftest.er1
a848cd7e 18881 ac_status=$?
ac1cb8d3
VS
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
a848cd7e
SC
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
6ebeb4c7 18887 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_type_long_long=yes
18900else
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904ac_cv_type_long_long=no
18905fi
ac1cb8d3 18906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18907fi
18908echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18909echo "${ECHO_T}$ac_cv_type_long_long" >&6
18910
18911echo "$as_me:$LINENO: checking size of long long" >&5
18912echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18913if test "${ac_cv_sizeof_long_long+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 if test "$ac_cv_type_long_long" = yes; then
18917 # The cast to unsigned long works around a bug in the HP C Compiler
18918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18920 # This bug is HP SR number 8606223364.
18921 if test "$cross_compiling" = yes; then
18922 # Depending upon the size, compute the lo and hi bounds.
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929$ac_includes_default
18930int
18931main ()
18932{
18933static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18934test_array [0] = 0
18935
18936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext
18941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18942 (eval $ac_compile) 2>conftest.er1
a848cd7e 18943 ac_status=$?
ac1cb8d3
VS
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
a848cd7e
SC
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
6ebeb4c7 18949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_lo=0 ac_mid=0
18962 while :; do
18963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h. */
18969$ac_includes_default
18970int
18971main ()
18972{
18973static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18974test_array [0] = 0
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18982 (eval $ac_compile) 2>conftest.er1
a848cd7e 18983 ac_status=$?
ac1cb8d3
VS
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
a848cd7e
SC
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
6ebeb4c7 18989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_hi=$ac_mid; break
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19007 if test $ac_lo -le $ac_mid; then
19008 ac_lo= ac_hi=
19009 break
19010 fi
19011 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19012fi
ac1cb8d3 19013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19014 done
19015else
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025$ac_includes_default
19026int
19027main ()
19028{
19029static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19030test_array [0] = 0
19031
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19038 (eval $ac_compile) 2>conftest.er1
a848cd7e 19039 ac_status=$?
ac1cb8d3
VS
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
a848cd7e
SC
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
6ebeb4c7 19045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_hi=-1 ac_mid=-1
19058 while :; do
19059 cat >conftest.$ac_ext <<_ACEOF
19060/* confdefs.h. */
19061_ACEOF
19062cat confdefs.h >>conftest.$ac_ext
19063cat >>conftest.$ac_ext <<_ACEOF
19064/* end confdefs.h. */
19065$ac_includes_default
19066int
19067main ()
19068{
19069static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19070test_array [0] = 0
19071
19072 ;
19073 return 0;
19074}
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19078 (eval $ac_compile) 2>conftest.er1
a848cd7e 19079 ac_status=$?
ac1cb8d3
VS
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
a848cd7e
SC
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
6ebeb4c7 19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_lo=$ac_mid; break
19098else
19099 echo "$as_me: failed program was:" >&5
19100sed 's/^/| /' conftest.$ac_ext >&5
19101
19102ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19103 if test $ac_mid -le $ac_hi; then
19104 ac_lo= ac_hi=
19105 break
19106 fi
19107 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19108fi
ac1cb8d3 19109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19110 done
19111else
19112 echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115ac_lo= ac_hi=
19116fi
ac1cb8d3 19117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19118fi
ac1cb8d3 19119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19120# Binary search between lo and hi bounds.
19121while test "x$ac_lo" != "x$ac_hi"; do
19122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19123 cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129$ac_includes_default
19130int
19131main ()
19132{
19133static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19134test_array [0] = 0
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
6ebeb4c7 19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_hi=$ac_mid
19162else
19163 echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166ac_lo=`expr '(' $ac_mid ')' + 1`
19167fi
ac1cb8d3 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169done
19170case $ac_lo in
19171?*) ac_cv_sizeof_long_long=$ac_lo;;
19172'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19173See \`config.log' for more details." >&5
19174echo "$as_me: error: cannot compute sizeof (long long), 77
19175See \`config.log' for more details." >&2;}
19176 { (exit 1); exit 1; }; } ;;
19177esac
19178else
19179 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19180 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19181echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19182 { (exit 1); exit 1; }; }
19183else
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190$ac_includes_default
19191long longval () { return (long) (sizeof (long long)); }
19192unsigned long ulongval () { return (long) (sizeof (long long)); }
19193#include <stdio.h>
19194#include <stdlib.h>
19195int
19196main ()
19197{
19198
19199 FILE *f = fopen ("conftest.val", "w");
19200 if (! f)
19201 exit (1);
19202 if (((long) (sizeof (long long))) < 0)
19203 {
19204 long i = longval ();
19205 if (i != ((long) (sizeof (long long))))
19206 exit (1);
19207 fprintf (f, "%ld\n", i);
19208 }
19209 else
19210 {
19211 unsigned long i = ulongval ();
19212 if (i != ((long) (sizeof (long long))))
19213 exit (1);
19214 fprintf (f, "%lu\n", i);
19215 }
19216 exit (ferror (f) || fclose (f) != 0);
19217
19218 ;
19219 return 0;
19220}
19221_ACEOF
19222rm -f conftest$ac_exeext
19223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_sizeof_long_long=`cat conftest.val`
19234else
19235 echo "$as_me: program exited with status $ac_status" >&5
19236echo "$as_me: failed program was:" >&5
19237sed 's/^/| /' conftest.$ac_ext >&5
19238
19239( exit $ac_status )
19240{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19241See \`config.log' for more details." >&5
19242echo "$as_me: error: cannot compute sizeof (long long), 77
19243See \`config.log' for more details." >&2;}
19244 { (exit 1); exit 1; }; }
19245fi
ac1cb8d3 19246rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19247fi
19248fi
19249rm -f conftest.val
19250else
19251 ac_cv_sizeof_long_long=0
19252fi
19253fi
19254echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19255echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19256cat >>confdefs.h <<_ACEOF
19257#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19258_ACEOF
19259
19260
19261 if test "$ac_cv_sizeof_long_long" != "0"; then
19262 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19263 fi
19264 ;;
19265 * )
19266 echo "$as_me:$LINENO: checking for long long" >&5
19267echo $ECHO_N "checking for long long... $ECHO_C" >&6
19268if test "${ac_cv_type_long_long+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270else
19271 cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277$ac_includes_default
19278int
19279main ()
19280{
19281if ((long long *) 0)
19282 return 0;
19283if (sizeof (long long))
19284 return 0;
19285 ;
19286 return 0;
19287}
19288_ACEOF
19289rm -f conftest.$ac_objext
19290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19291 (eval $ac_compile) 2>conftest.er1
a848cd7e 19292 ac_status=$?
ac1cb8d3
VS
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
a848cd7e
SC
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
6ebeb4c7 19298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_type_long_long=yes
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315ac_cv_type_long_long=no
19316fi
ac1cb8d3 19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19318fi
19319echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19320echo "${ECHO_T}$ac_cv_type_long_long" >&6
19321
19322echo "$as_me:$LINENO: checking size of long long" >&5
19323echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19324if test "${ac_cv_sizeof_long_long+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327 if test "$ac_cv_type_long_long" = yes; then
19328 # The cast to unsigned long works around a bug in the HP C Compiler
19329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19331 # This bug is HP SR number 8606223364.
19332 if test "$cross_compiling" = yes; then
19333 # Depending upon the size, compute the lo and hi bounds.
19334cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
19340$ac_includes_default
19341int
19342main ()
19343{
19344static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19345test_array [0] = 0
19346
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19353 (eval $ac_compile) 2>conftest.er1
a848cd7e 19354 ac_status=$?
ac1cb8d3
VS
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
a848cd7e
SC
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
6ebeb4c7 19360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_lo=0 ac_mid=0
19373 while :; do
19374 cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380$ac_includes_default
19381int
19382main ()
19383{
19384static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19385test_array [0] = 0
19386
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391rm -f conftest.$ac_objext
19392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19393 (eval $ac_compile) 2>conftest.er1
a848cd7e 19394 ac_status=$?
ac1cb8d3
VS
19395 grep -v '^ *+' conftest.er1 >conftest.err
19396 rm -f conftest.er1
19397 cat conftest.err >&5
a848cd7e
SC
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
6ebeb4c7 19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_hi=$ac_mid; break
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19418 if test $ac_lo -le $ac_mid; then
19419 ac_lo= ac_hi=
19420 break
19421 fi
19422 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19423fi
ac1cb8d3 19424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19425 done
19426else
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
19430cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436$ac_includes_default
19437int
19438main ()
19439{
19440static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19441test_array [0] = 0
19442
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext
19448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19449 (eval $ac_compile) 2>conftest.er1
a848cd7e 19450 ac_status=$?
ac1cb8d3
VS
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
a848cd7e
SC
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
6ebeb4c7 19456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_hi=-1 ac_mid=-1
19469 while :; do
19470 cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476$ac_includes_default
19477int
19478main ()
19479{
19480static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19481test_array [0] = 0
19482
19483 ;
19484 return 0;
19485}
19486_ACEOF
19487rm -f conftest.$ac_objext
19488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19489 (eval $ac_compile) 2>conftest.er1
a848cd7e 19490 ac_status=$?
ac1cb8d3
VS
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
a848cd7e
SC
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
6ebeb4c7 19496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_lo=$ac_mid; break
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19514 if test $ac_mid -le $ac_hi; then
19515 ac_lo= ac_hi=
19516 break
19517 fi
19518 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19519fi
ac1cb8d3 19520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19521 done
19522else
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526ac_lo= ac_hi=
19527fi
ac1cb8d3 19528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19529fi
ac1cb8d3 19530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19531# Binary search between lo and hi bounds.
19532while test "x$ac_lo" != "x$ac_hi"; do
19533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19534 cat >conftest.$ac_ext <<_ACEOF
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
19540$ac_includes_default
19541int
19542main ()
19543{
19544static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19545test_array [0] = 0
19546
19547 ;
19548 return 0;
19549}
19550_ACEOF
19551rm -f conftest.$ac_objext
19552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19553 (eval $ac_compile) 2>conftest.er1
a848cd7e 19554 ac_status=$?
ac1cb8d3
VS
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
a848cd7e
SC
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
6ebeb4c7 19560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } &&
19566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_hi=$ac_mid
19573else
19574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577ac_lo=`expr '(' $ac_mid ')' + 1`
19578fi
ac1cb8d3 19579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19580done
19581case $ac_lo in
19582?*) ac_cv_sizeof_long_long=$ac_lo;;
19583'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19584See \`config.log' for more details." >&5
19585echo "$as_me: error: cannot compute sizeof (long long), 77
19586See \`config.log' for more details." >&2;}
19587 { (exit 1); exit 1; }; } ;;
19588esac
19589else
19590 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19591 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19592echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19593 { (exit 1); exit 1; }; }
19594else
19595 cat >conftest.$ac_ext <<_ACEOF
19596/* confdefs.h. */
19597_ACEOF
19598cat confdefs.h >>conftest.$ac_ext
19599cat >>conftest.$ac_ext <<_ACEOF
19600/* end confdefs.h. */
19601$ac_includes_default
19602long longval () { return (long) (sizeof (long long)); }
19603unsigned long ulongval () { return (long) (sizeof (long long)); }
19604#include <stdio.h>
19605#include <stdlib.h>
19606int
19607main ()
19608{
19609
19610 FILE *f = fopen ("conftest.val", "w");
19611 if (! f)
19612 exit (1);
19613 if (((long) (sizeof (long long))) < 0)
19614 {
19615 long i = longval ();
19616 if (i != ((long) (sizeof (long long))))
19617 exit (1);
19618 fprintf (f, "%ld\n", i);
19619 }
19620 else
19621 {
19622 unsigned long i = ulongval ();
19623 if (i != ((long) (sizeof (long long))))
19624 exit (1);
19625 fprintf (f, "%lu\n", i);
19626 }
19627 exit (ferror (f) || fclose (f) != 0);
19628
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest$ac_exeext
19634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_sizeof_long_long=`cat conftest.val`
19645else
19646 echo "$as_me: program exited with status $ac_status" >&5
19647echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650( exit $ac_status )
19651{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19652See \`config.log' for more details." >&5
19653echo "$as_me: error: cannot compute sizeof (long long), 77
19654See \`config.log' for more details." >&2;}
19655 { (exit 1); exit 1; }; }
19656fi
ac1cb8d3 19657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19658fi
19659fi
19660rm -f conftest.val
19661else
19662 ac_cv_sizeof_long_long=0
19663fi
19664fi
19665echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19666echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19667cat >>confdefs.h <<_ACEOF
19668#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19669_ACEOF
19670
19671
19672esac
19673
238ecede
MW
19674echo "$as_me:$LINENO: checking for wchar_t" >&5
19675echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19676if test "${ac_cv_type_wchar_t+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678else
19679 cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
19685
83d8eb47
MW
19686 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19687 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19688 # error "fake wchar_t"
19689 #endif
19690 #ifdef HAVE_WCHAR_H
19691 # ifdef __CYGWIN__
19692 # include <stddef.h>
19693 # endif
19694 # include <wchar.h>
19695 #endif
19696 #ifdef HAVE_STDLIB_H
19697 # include <stdlib.h>
19698 #endif
19699 #include <stdio.h>
19700
19701
19702
19703int
19704main ()
19705{
19706if ((wchar_t *) 0)
19707 return 0;
19708if (sizeof (wchar_t))
19709 return 0;
19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext
19715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
6ebeb4c7 19723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_type_wchar_t=yes
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740ac_cv_type_wchar_t=no
19741fi
19742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19743fi
19744echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19745echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19746
a848cd7e
SC
19747echo "$as_me:$LINENO: checking size of wchar_t" >&5
19748echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19749if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
238ecede
MW
19752 if test "$ac_cv_type_wchar_t" = yes; then
19753 # The cast to unsigned long works around a bug in the HP C Compiler
19754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19756 # This bug is HP SR number 8606223364.
19757 if test "$cross_compiling" = yes; then
19758 # Depending upon the size, compute the lo and hi bounds.
19759cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
19765
83d8eb47
MW
19766 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19767 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19768 # error "fake wchar_t"
19769 #endif
19770 #ifdef HAVE_WCHAR_H
19771 # ifdef __CYGWIN__
19772 # include <stddef.h>
19773 # endif
19774 # include <wchar.h>
19775 #endif
19776 #ifdef HAVE_STDLIB_H
19777 # include <stdlib.h>
19778 #endif
19779 #include <stdio.h>
19780
19781
19782
19783int
19784main ()
19785{
19786static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19787test_array [0] = 0
19788
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
6ebeb4c7 19802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_lo=0 ac_mid=0
19815 while :; do
19816 cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
19822
83d8eb47
MW
19823 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19824 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19825 # error "fake wchar_t"
19826 #endif
19827 #ifdef HAVE_WCHAR_H
19828 # ifdef __CYGWIN__
19829 # include <stddef.h>
19830 # endif
19831 # include <wchar.h>
19832 #endif
19833 #ifdef HAVE_STDLIB_H
19834 # include <stdlib.h>
19835 #endif
19836 #include <stdio.h>
19837
19838
19839
19840int
19841main ()
19842{
19843static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19844test_array [0] = 0
19845
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
6ebeb4c7 19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_hi=$ac_mid; break
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876ac_lo=`expr $ac_mid + 1`
19877 if test $ac_lo -le $ac_mid; then
19878 ac_lo= ac_hi=
19879 break
19880 fi
19881 ac_mid=`expr 2 '*' $ac_mid + 1`
19882fi
19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19884 done
19885else
19886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h. */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h. */
19895
83d8eb47
MW
19896 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19897 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19898 # error "fake wchar_t"
19899 #endif
19900 #ifdef HAVE_WCHAR_H
19901 # ifdef __CYGWIN__
19902 # include <stddef.h>
19903 # endif
19904 # include <wchar.h>
19905 #endif
19906 #ifdef HAVE_STDLIB_H
19907 # include <stdlib.h>
19908 #endif
19909 #include <stdio.h>
19910
19911
19912
19913int
19914main ()
19915{
19916static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19917test_array [0] = 0
19918
19919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext
19924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
6ebeb4c7 19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_hi=-1 ac_mid=-1
19945 while :; do
19946 cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952
83d8eb47
MW
19953 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19954 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19955 # error "fake wchar_t"
19956 #endif
19957 #ifdef HAVE_WCHAR_H
19958 # ifdef __CYGWIN__
19959 # include <stddef.h>
19960 # endif
19961 # include <wchar.h>
19962 #endif
19963 #ifdef HAVE_STDLIB_H
19964 # include <stdlib.h>
19965 #endif
19966 #include <stdio.h>
19967
19968
19969
19970int
19971main ()
19972{
19973static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19974test_array [0] = 0
19975
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
6ebeb4c7 19989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_lo=$ac_mid; break
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006ac_hi=`expr '(' $ac_mid ')' - 1`
20007 if test $ac_mid -le $ac_hi; then
20008 ac_lo= ac_hi=
20009 break
20010 fi
20011 ac_mid=`expr 2 '*' $ac_mid`
20012fi
20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014 done
20015else
20016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019ac_lo= ac_hi=
20020fi
20021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022fi
20023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024# Binary search between lo and hi bounds.
20025while test "x$ac_lo" != "x$ac_hi"; do
20026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033
83d8eb47
MW
20034 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20035 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20036 # error "fake wchar_t"
20037 #endif
20038 #ifdef HAVE_WCHAR_H
20039 # ifdef __CYGWIN__
20040 # include <stddef.h>
20041 # endif
20042 # include <wchar.h>
20043 #endif
20044 #ifdef HAVE_STDLIB_H
20045 # include <stdlib.h>
20046 #endif
20047 #include <stdio.h>
a848cd7e 20048
a848cd7e 20049
a848cd7e 20050
238ecede
MW
20051int
20052main ()
20053{
20054static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20055test_array [0] = 0
a848cd7e 20056
238ecede
MW
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
6ebeb4c7 20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_hi=$ac_mid
20083else
20084 echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087ac_lo=`expr '(' $ac_mid ')' + 1`
20088fi
20089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090done
20091case $ac_lo in
20092?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20093'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20094See \`config.log' for more details." >&5
20095echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20096See \`config.log' for more details." >&2;}
20097 { (exit 1); exit 1; }; } ;;
20098esac
20099else
20100 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20101 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20102echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20103 { (exit 1); exit 1; }; }
a848cd7e
SC
20104else
20105 cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
20111
83d8eb47
MW
20112 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20113 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20114 # error "fake wchar_t"
20115 #endif
20116 #ifdef HAVE_WCHAR_H
20117 # ifdef __CYGWIN__
20118 # include <stddef.h>
20119 # endif
20120 # include <wchar.h>
20121 #endif
20122 #ifdef HAVE_STDLIB_H
20123 # include <stdlib.h>
20124 #endif
20125 #include <stdio.h>
20126
20127
20128
20129long longval () { return (long) (sizeof (wchar_t)); }
20130unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20131#include <stdio.h>
20132#include <stdlib.h>
20133int
20134main ()
20135{
a848cd7e 20136
238ecede
MW
20137 FILE *f = fopen ("conftest.val", "w");
20138 if (! f)
20139 exit (1);
20140 if (((long) (sizeof (wchar_t))) < 0)
20141 {
20142 long i = longval ();
20143 if (i != ((long) (sizeof (wchar_t))))
20144 exit (1);
20145 fprintf (f, "%ld\n", i);
20146 }
20147 else
20148 {
20149 unsigned long i = ulongval ();
20150 if (i != ((long) (sizeof (wchar_t))))
20151 exit (1);
20152 fprintf (f, "%lu\n", i);
20153 }
20154 exit (ferror (f) || fclose (f) != 0);
20155
20156 ;
20157 return 0;
20158}
a848cd7e
SC
20159_ACEOF
20160rm -f conftest$ac_exeext
20161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20168 ac_status=$?
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
238ecede 20171 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20172else
20173 echo "$as_me: program exited with status $ac_status" >&5
20174echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177( exit $ac_status )
238ecede
MW
20178{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20179See \`config.log' for more details." >&5
20180echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20181See \`config.log' for more details." >&2;}
20182 { (exit 1); exit 1; }; }
a848cd7e 20183fi
ac1cb8d3 20184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20185fi
a848cd7e 20186fi
238ecede
MW
20187rm -f conftest.val
20188else
20189 ac_cv_sizeof_wchar_t=0
20190fi
20191fi
20192echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20193echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20194cat >>confdefs.h <<_ACEOF
238ecede 20195#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20196_ACEOF
20197
20198
47a7e797
MW
20199if test "$ac_cv_sizeof_wchar_t" != "0"; then
20200 wxUSE_WCHAR_T=yes
20201else
20202 wxUSE_WCHAR_T=no
20203fi
238ecede 20204
ba3d13e1
VZ
20205echo "$as_me:$LINENO: checking for va_copy" >&5
20206echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20207if test "${wx_cv_func_va_copy+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20209else
20210
20211 cat >conftest.$ac_ext <<_ACEOF
20212
20213 #include <stdarg.h>
20214 void foo(char *f, ...)
20215 {
20216 va_list ap1, ap2;
20217 va_start(ap1, f);
20218 va_copy(ap2, ap1);
20219 va_end(ap2);
20220 va_end(ap1);
20221 }
5886b072
VZ
20222 int main()
20223 {
b902e639
VZ
20224 foo("hi", 17);
20225 return 0;
5886b072 20226 }
ba3d13e1
VZ
20227_ACEOF
20228rm -f conftest.$ac_objext conftest$ac_exeext
20229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230 (eval $ac_link) 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
6ebeb4c7 20237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest$ac_exeext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 wx_cv_func_va_copy=yes
20250else
20251 echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
20254wx_cv_func_va_copy=no
20255
20256fi
20257rm -f conftest.err conftest.$ac_objext \
20258 conftest$ac_exeext conftest.$ac_ext
20259
20260
20261fi
20262echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20263echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20264
20265if test $wx_cv_func_va_copy = "yes"; then
20266 cat >>confdefs.h <<\_ACEOF
20267#define HAVE_VA_COPY 1
20268_ACEOF
20269
20270else
20271 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20272echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20273if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276
20277 if test "$cross_compiling" = yes; then
20278 wx_cv_type_va_list_lvalue=yes
20279
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
20282
20283 #include <stdarg.h>
20284 int foo(char *f, ...)
20285 {
20286 va_list ap1, ap2;
20287 va_start(ap1, f);
20288 ap2 = ap1;
20289 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20290 return 1;
20291 va_end(ap2);
20292 va_end(ap1);
20293 return 0;
20294 }
20295 int main()
20296 {
20297 return foo("hi", 17);
20298 }
20299_ACEOF
20300rm -f conftest$ac_exeext
20301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20302 (eval $ac_link) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 wx_cv_type_va_list_lvalue=yes
20312else
20313 echo "$as_me: program exited with status $ac_status" >&5
20314echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317( exit $ac_status )
20318wx_cv_type_va_list_lvalue=no
20319fi
20320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20321fi
20322
20323
20324fi
20325echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20326echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20327
20328 if test $wx_cv_type_va_list_lvalue != "yes"; then
20329 cat >>confdefs.h <<\_ACEOF
20330#define VA_LIST_IS_ARRAY 1
20331_ACEOF
20332
20333 fi
20334fi
20335
a848cd7e
SC
20336# Check whether --enable-largefile or --disable-largefile was given.
20337if test "${enable_largefile+set}" = set; then
20338 enableval="$enable_largefile"
20339
20340fi;
20341if test "$enable_largefile" != no; then
20342 wx_largefile=no
20343
20344 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20345echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20346if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348else
20349
20350 cat >conftest.$ac_ext <<_ACEOF
20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
20356#define _FILE_OFFSET_BITS 64
20357 #include <sys/types.h>
20358int
20359main ()
20360{
20361typedef struct {
20362 unsigned int field: sizeof(off_t) == 8;
20363} wxlf;
20364
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20371 (eval $ac_compile) 2>conftest.er1
a848cd7e 20372 ac_status=$?
ac1cb8d3
VS
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
a848cd7e
SC
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
6ebeb4c7 20378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_sys_file_offset_bits=64
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395ac_cv_sys_file_offset_bits=no
20396fi
ac1cb8d3 20397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20398
20399
20400fi
20401echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20402echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20403
20404 if test "$ac_cv_sys_file_offset_bits" != no; then
20405 wx_largefile=yes
20406 cat >>confdefs.h <<_ACEOF
20407#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20408_ACEOF
20409
20410 fi
20411
20412 if test "x$wx_largefile" != "xyes"; then
20413
20414 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20415echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20416if test "${ac_cv_sys_large_files+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419
20420 cat >conftest.$ac_ext <<_ACEOF
20421/* confdefs.h. */
20422_ACEOF
20423cat confdefs.h >>conftest.$ac_ext
20424cat >>conftest.$ac_ext <<_ACEOF
20425/* end confdefs.h. */
20426#define _LARGE_FILES 1
20427 #include <sys/types.h>
20428int
20429main ()
20430{
20431typedef struct {
20432 unsigned int field: sizeof(off_t) == 8;
20433} wxlf;
20434
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20441 (eval $ac_compile) 2>conftest.er1
a848cd7e 20442 ac_status=$?
ac1cb8d3
VS
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
a848cd7e
SC
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
6ebeb4c7 20448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_cv_sys_large_files=1
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465ac_cv_sys_large_files=no
20466fi
ac1cb8d3 20467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20468
20469
20470fi
20471echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20472echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20473
20474 if test "$ac_cv_sys_large_files" != no; then
20475 wx_largefile=yes
20476 cat >>confdefs.h <<_ACEOF
20477#define _LARGE_FILES $ac_cv_sys_large_files
20478_ACEOF
20479
20480 fi
20481
20482 fi
20483
20484 echo "$as_me:$LINENO: checking if large file support is available" >&5
20485echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20486 if test "x$wx_largefile" = "xyes"; then
20487 cat >>confdefs.h <<\_ACEOF
20488#define HAVE_LARGEFILE_SUPPORT 1
20489_ACEOF
20490
20491 fi
20492 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20493echo "${ECHO_T}$wx_largefile" >&6
20494fi
20495
5b674b9d
DE
20496
20497if test "x$wx_largefile" = "xyes"; then
20498 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20499 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20500
20501 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20502 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20503echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20504if test "${wx_cv_STDC_EXT_required+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506else
20507
20508
20509
20510 ac_ext=cc
20511ac_cpp='$CXXCPP $CPPFLAGS'
20512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20515
20516 cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522
20523int
20524main ()
20525{
20526
20527 #ifndef __STDC_EXT__
20528 choke me
20529 #endif
20530
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext
20536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 wx_cv_STDC_EXT_required=no
20557else
20558 echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561wx_cv_STDC_EXT_required=yes
20562
20563fi
20564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20565 ac_ext=c
20566ac_cpp='$CPP $CPPFLAGS'
20567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570
20571
20572
20573fi
20574echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20575echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20576 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20577 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20578 fi
20579 fi
5b674b9d
DE
20580 else
20581 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20582 fi
20583 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20584echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20585if test "${ac_cv_sys_largefile_source+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587else
20588 while :; do
20589 ac_cv_sys_largefile_source=no
20590 cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h. */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h. */
20596#include <stdio.h>
20597int
20598main ()
20599{
20600return !fseeko;
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext
20606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20607 (eval $ac_compile) 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
6ebeb4c7 20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; } &&
20620 { ac_try='test -s conftest.$ac_objext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 break
20627else
20628 echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5
20630
20631fi
20632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20633 cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639#define _LARGEFILE_SOURCE 1
20640#include <stdio.h>
20641int
20642main ()
20643{
20644return !fseeko;
20645 ;
20646 return 0;
20647}
20648_ACEOF
20649rm -f conftest.$ac_objext
20650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
6ebeb4c7 20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_sys_largefile_source=1; break
20671else
20672 echo "$as_me: failed program was:" >&5
20673sed 's/^/| /' conftest.$ac_ext >&5
20674
20675fi
20676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20677 break
20678done
20679fi
20680echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20681echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20682if test "$ac_cv_sys_largefile_source" != no; then
20683
20684cat >>confdefs.h <<_ACEOF
20685#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20686_ACEOF
20687
20688fi
20689rm -f conftest*
20690
20691# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20692# in glibc 2.1.3, but that breaks too many other things.
20693# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20694echo "$as_me:$LINENO: checking for fseeko" >&5
20695echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20696if test "${ac_cv_func_fseeko+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699 cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */
20701_ACEOF
20702cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */
20705#include <stdio.h>
20706int
20707main ()
20708{
20709return fseeko && fseeko (stdin, 0, 0);
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext
20715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
6ebeb4c7 20723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest$ac_exeext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ac_cv_func_fseeko=yes
20736else
20737 echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740ac_cv_func_fseeko=no
20741fi
20742rm -f conftest.err conftest.$ac_objext \
20743 conftest$ac_exeext conftest.$ac_ext
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20746echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20747if test $ac_cv_func_fseeko = yes; then
20748
20749cat >>confdefs.h <<\_ACEOF
20750#define HAVE_FSEEKO 1
20751_ACEOF
20752
20753fi
20754
5b674b9d
DE
20755 if test "$ac_cv_sys_largefile_source" != no; then
20756 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20757 fi
20758 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20759fi
20760
20761echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20762echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20763if test "${ac_cv_c_bigendian+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766 ac_cv_c_bigendian=unknown
20767# See if sys/param.h defines the BYTE_ORDER macro.
20768cat >conftest.$ac_ext <<_ACEOF
20769/* confdefs.h. */
20770_ACEOF
20771cat confdefs.h >>conftest.$ac_ext
20772cat >>conftest.$ac_ext <<_ACEOF
20773/* end confdefs.h. */
20774#include <sys/types.h>
20775#include <sys/param.h>
20776int
20777main ()
20778{
20779
20780#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20781 bogus endian macros
20782#endif
20783 ;
20784 return 0;
20785}
20786_ACEOF
20787rm -f conftest.$ac_objext
20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20789 (eval $ac_compile) 2>conftest.er1
a848cd7e 20790 ac_status=$?
ac1cb8d3
VS
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
a848cd7e
SC
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
6ebeb4c7 20796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 # It does; now see whether it defined to BIG_ENDIAN or not.
20809cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
20815#include <sys/types.h>
20816#include <sys/param.h>
20817int
20818main ()
20819{
20820
20821#if BYTE_ORDER != BIG_ENDIAN
20822 not big endian
20823#endif
20824 ;
20825 return 0;
20826}
20827_ACEOF
20828rm -f conftest.$ac_objext
20829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20830 (eval $ac_compile) 2>conftest.er1
a848cd7e 20831 ac_status=$?
ac1cb8d3
VS
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
a848cd7e
SC
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
6ebeb4c7 20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_cv_c_bigendian=yes
20850else
20851 echo "$as_me: failed program was:" >&5
20852sed 's/^/| /' conftest.$ac_ext >&5
20853
20854ac_cv_c_bigendian=no
20855fi
ac1cb8d3 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20857else
20858 echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861fi
ac1cb8d3 20862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20863if test $ac_cv_c_bigendian = unknown; then
20864if test "$cross_compiling" = yes; then
20865 ac_cv_c_bigendian=unknown
20866else
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873main () {
20874 /* Are we little or big endian? From Harbison&Steele. */
20875 union
20876 {
20877 long l;
20878 char c[sizeof (long)];
20879 } u;
20880 u.l = 1;
20881 exit (u.c[sizeof (long) - 1] == 1);
20882}
20883_ACEOF
20884rm -f conftest$ac_exeext
20885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_c_bigendian=no
20896else
20897 echo "$as_me: program exited with status $ac_status" >&5
20898echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901( exit $ac_status )
20902ac_cv_c_bigendian=yes
20903fi
ac1cb8d3 20904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20905fi
20906fi
20907fi
20908echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20909echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20910if test $ac_cv_c_bigendian = unknown; then
20911 { 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
20912echo "$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;}
20913fi
20914if test $ac_cv_c_bigendian = yes; then
20915 cat >>confdefs.h <<\_ACEOF
20916#define WORDS_BIGENDIAN 1
20917_ACEOF
20918
20919fi
20920
20921
20922ac_ext=cc
20923ac_cpp='$CXXCPP $CPPFLAGS'
20924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20927echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20928echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20929if test -z "$CXXCPP"; then
20930 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933 # Double quotes because CXXCPP needs to be expanded
20934 for CXXCPP in "$CXX -E" "/lib/cpp"
20935 do
20936 ac_preproc_ok=false
20937for ac_cxx_preproc_warn_flag in '' yes
20938do
20939 # Use a header file that comes with gcc, so configuring glibc
20940 # with a fresh cross-compiler works.
20941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20942 # <limits.h> exists even on freestanding compilers.
20943 # On the NeXT, cc -E runs the code through the compiler's parser,
20944 # not just through cpp. "Syntax error" is here to catch this case.
20945 cat >conftest.$ac_ext <<_ACEOF
20946/* confdefs.h. */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
20950/* end confdefs.h. */
20951#ifdef __STDC__
20952# include <limits.h>
20953#else
20954# include <assert.h>
20955#endif
ac1cb8d3 20956 Syntax error
a848cd7e
SC
20957_ACEOF
20958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20960 ac_status=$?
20961 grep -v '^ *+' conftest.er1 >conftest.err
20962 rm -f conftest.er1
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } >/dev/null; then
20966 if test -s conftest.err; then
20967 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20969 else
20970 ac_cpp_err=
20971 fi
20972else
20973 ac_cpp_err=yes
20974fi
20975if test -z "$ac_cpp_err"; then
20976 :
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 # Broken: fails on valid input.
20982continue
20983fi
20984rm -f conftest.err conftest.$ac_ext
20985
20986 # OK, works on sane cases. Now check whether non-existent headers
20987 # can be detected and how.
20988 cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994#include <ac_nonexistent.h>
20995_ACEOF
20996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20998 ac_status=$?
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } >/dev/null; then
21004 if test -s conftest.err; then
21005 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21007 else
21008 ac_cpp_err=
21009 fi
21010else
21011 ac_cpp_err=yes
21012fi
21013if test -z "$ac_cpp_err"; then
21014 # Broken: success on invalid input.
21015continue
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 # Passes both tests.
21021ac_preproc_ok=:
21022break
21023fi
21024rm -f conftest.err conftest.$ac_ext
21025
21026done
21027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21028rm -f conftest.err conftest.$ac_ext
21029if $ac_preproc_ok; then
21030 break
21031fi
21032
21033 done
21034 ac_cv_prog_CXXCPP=$CXXCPP
21035
21036fi
21037 CXXCPP=$ac_cv_prog_CXXCPP
21038else
21039 ac_cv_prog_CXXCPP=$CXXCPP
21040fi
21041echo "$as_me:$LINENO: result: $CXXCPP" >&5
21042echo "${ECHO_T}$CXXCPP" >&6
21043ac_preproc_ok=false
21044for ac_cxx_preproc_warn_flag in '' yes
21045do
21046 # Use a header file that comes with gcc, so configuring glibc
21047 # with a fresh cross-compiler works.
21048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21049 # <limits.h> exists even on freestanding compilers.
21050 # On the NeXT, cc -E runs the code through the compiler's parser,
21051 # not just through cpp. "Syntax error" is here to catch this case.
21052 cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h. */
21058#ifdef __STDC__
21059# include <limits.h>
21060#else
21061# include <assert.h>
21062#endif
ac1cb8d3 21063 Syntax error
a848cd7e
SC
21064_ACEOF
21065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } >/dev/null; then
21073 if test -s conftest.err; then
21074 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21076 else
21077 ac_cpp_err=
21078 fi
21079else
21080 ac_cpp_err=yes
21081fi
21082if test -z "$ac_cpp_err"; then
21083 :
21084else
21085 echo "$as_me: failed program was:" >&5
21086sed 's/^/| /' conftest.$ac_ext >&5
21087
21088 # Broken: fails on valid input.
21089continue
21090fi
21091rm -f conftest.err conftest.$ac_ext
21092
21093 # OK, works on sane cases. Now check whether non-existent headers
21094 # can be detected and how.
21095 cat >conftest.$ac_ext <<_ACEOF
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
21101#include <ac_nonexistent.h>
21102_ACEOF
21103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } >/dev/null; then
21111 if test -s conftest.err; then
21112 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21114 else
21115 ac_cpp_err=
21116 fi
21117else
21118 ac_cpp_err=yes
21119fi
21120if test -z "$ac_cpp_err"; then
21121 # Broken: success on invalid input.
21122continue
21123else
21124 echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 # Passes both tests.
21128ac_preproc_ok=:
21129break
21130fi
21131rm -f conftest.err conftest.$ac_ext
21132
21133done
21134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21135rm -f conftest.err conftest.$ac_ext
21136if $ac_preproc_ok; then
21137 :
21138else
21139 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21140See \`config.log' for more details." >&5
21141echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21142See \`config.log' for more details." >&2;}
21143 { (exit 1); exit 1; }; }
21144fi
21145
21146ac_ext=cc
21147ac_cpp='$CXXCPP $CPPFLAGS'
21148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151
21152
21153
21154
21155
21156 ac_ext=cc
21157ac_cpp='$CXXCPP $CPPFLAGS'
21158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161
21162
21163
21164for ac_header in iostream
21165do
21166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21167if eval "test \"\${$as_ac_Header+set}\" = set"; then
21168 echo "$as_me:$LINENO: checking for $ac_header" >&5
21169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21170if eval "test \"\${$as_ac_Header+set}\" = set"; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172fi
21173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21175else
21176 # Is the header compilable?
21177echo "$as_me:$LINENO: checking $ac_header usability" >&5
21178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21179cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185$ac_includes_default
21186#include <$ac_header>
21187_ACEOF
21188rm -f conftest.$ac_objext
21189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21190 (eval $ac_compile) 2>conftest.er1
a848cd7e 21191 ac_status=$?
ac1cb8d3
VS
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
a848cd7e
SC
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
6ebeb4c7 21197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_header_compiler=yes
21210else
21211 echo "$as_me: failed program was:" >&5
21212sed 's/^/| /' conftest.$ac_ext >&5
21213
21214ac_header_compiler=no
21215fi
ac1cb8d3 21216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21218echo "${ECHO_T}$ac_header_compiler" >&6
21219
21220# Is the header present?
21221echo "$as_me:$LINENO: checking $ac_header presence" >&5
21222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21223cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
21229#include <$ac_header>
21230_ACEOF
21231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } >/dev/null; then
21239 if test -s conftest.err; then
21240 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21242 else
21243 ac_cpp_err=
21244 fi
21245else
21246 ac_cpp_err=yes
21247fi
21248if test -z "$ac_cpp_err"; then
21249 ac_header_preproc=yes
21250else
21251 echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_header_preproc=no
21255fi
21256rm -f conftest.err conftest.$ac_ext
21257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21258echo "${ECHO_T}$ac_header_preproc" >&6
21259
21260# So? What about this header?
ac1cb8d3
VS
21261case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21262 yes:no: )
a848cd7e
SC
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21267 ac_header_preproc=yes
a848cd7e 21268 ;;
ac1cb8d3 21269 no:yes:* )
a848cd7e
SC
21270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21282 (
21283 cat <<\_ASBOX
ac1cb8d3
VS
21284## ----------------------------------------- ##
21285## Report this to wx-dev@lists.wxwidgets.org ##
21286## ----------------------------------------- ##
a848cd7e
SC
21287_ASBOX
21288 ) |
21289 sed "s/^/$as_me: WARNING: /" >&2
21290 ;;
21291esac
21292echo "$as_me:$LINENO: checking for $ac_header" >&5
21293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21294if eval "test \"\${$as_ac_Header+set}\" = set"; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296else
ac1cb8d3 21297 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21298fi
21299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21301
21302fi
21303if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306_ACEOF
21307
21308fi
21309
21310done
21311
21312
21313 if test "$ac_cv_header_iostream" = "yes" ; then
21314 :
21315 else
21316 cat >>confdefs.h <<\_ACEOF
21317#define wxUSE_IOSTREAMH 1
21318_ACEOF
21319
21320 fi
21321
21322 ac_ext=c
21323ac_cpp='$CPP $CPPFLAGS'
21324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21326ac_compiler_gnu=$ac_cv_c_compiler_gnu
21327
21328
21329
21330
21331 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21332echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21333if test "${wx_cv_cpp_bool+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336
21337
21338
21339 ac_ext=cc
21340ac_cpp='$CXXCPP $CPPFLAGS'
21341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21344
21345
21346 cat >conftest.$ac_ext <<_ACEOF
21347/* confdefs.h. */
21348_ACEOF
21349cat confdefs.h >>conftest.$ac_ext
21350cat >>conftest.$ac_ext <<_ACEOF
21351/* end confdefs.h. */
21352
21353
21354int
21355main ()
21356{
21357
21358 bool b = true;
21359
21360 return 0;
21361
21362 ;
21363 return 0;
21364}
21365_ACEOF
21366rm -f conftest.$ac_objext
21367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21368 (eval $ac_compile) 2>conftest.er1
a848cd7e 21369 ac_status=$?
ac1cb8d3
VS
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
a848cd7e
SC
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
6ebeb4c7 21375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387
21388 wx_cv_cpp_bool=yes
21389
21390else
21391 echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
21394
21395 wx_cv_cpp_bool=no
21396
21397
21398fi
ac1cb8d3 21399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21400
21401 ac_ext=c
21402ac_cpp='$CPP $CPPFLAGS'
21403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21405ac_compiler_gnu=$ac_cv_c_compiler_gnu
21406
21407
21408fi
21409echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21410echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21411
21412 if test "$wx_cv_cpp_bool" = "yes"; then
21413 cat >>confdefs.h <<\_ACEOF
21414#define HAVE_BOOL 1
21415_ACEOF
21416
21417 fi
21418
21419
21420
21421 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21422echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21423if test "${wx_cv_explicit+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426
21427
21428
21429 ac_ext=cc
21430ac_cpp='$CXXCPP $CPPFLAGS'
21431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21434
21435
21436 cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442
21443 class Foo { public: explicit Foo(int) {} };
21444
21445int
21446main ()
21447{
21448
21449 return 0;
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21457 (eval $ac_compile) 2>conftest.er1
a848cd7e 21458 ac_status=$?
ac1cb8d3
VS
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
a848cd7e
SC
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
6ebeb4c7 21464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476
21477 cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h. */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h. */
21483
21484 class Foo { public: explicit Foo(int) {} };
21485 static void TakeFoo(const Foo& foo) { }
21486
21487int
21488main ()
21489{
21490
21491 TakeFoo(17);
21492 return 0;
21493
21494 ;
21495 return 0;
21496}
21497_ACEOF
21498rm -f conftest.$ac_objext
21499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21500 (eval $ac_compile) 2>conftest.er1
a848cd7e 21501 ac_status=$?
ac1cb8d3
VS
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
a848cd7e
SC
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
6ebeb4c7 21507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; } &&
21513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 wx_cv_explicit=no
21520else
21521 echo "$as_me: failed program was:" >&5
21522sed 's/^/| /' conftest.$ac_ext >&5
21523
21524wx_cv_explicit=yes
21525
21526fi
ac1cb8d3 21527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21528
21529else
21530 echo "$as_me: failed program was:" >&5
21531sed 's/^/| /' conftest.$ac_ext >&5
21532
21533wx_cv_explicit=no
21534
21535fi
ac1cb8d3 21536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21537
21538 ac_ext=c
21539ac_cpp='$CPP $CPPFLAGS'
21540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21542ac_compiler_gnu=$ac_cv_c_compiler_gnu
21543
21544
21545fi
21546echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21547echo "${ECHO_T}$wx_cv_explicit" >&6
21548
21549 if test "$wx_cv_explicit" = "yes"; then
21550 cat >>confdefs.h <<\_ACEOF
21551#define HAVE_EXPLICIT 1
21552_ACEOF
21553
21554 fi
21555
21556
21557echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21558echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21559if test "${ac_cv_cxx_const_cast+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562
21563
21564 ac_ext=cc
21565ac_cpp='$CXXCPP $CPPFLAGS'
21566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21569
21570 cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h. */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h. */
21576
21577int
21578main ()
21579{
21580int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21581 ;
21582 return 0;
21583}
21584_ACEOF
21585rm -f conftest.$ac_objext
21586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21587 (eval $ac_compile) 2>conftest.er1
a848cd7e 21588 ac_status=$?
ac1cb8d3
VS
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
a848cd7e
SC
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
6ebeb4c7 21594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } &&
21600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_cv_cxx_const_cast=yes
21607else
21608 echo "$as_me: failed program was:" >&5
21609sed 's/^/| /' conftest.$ac_ext >&5
21610
21611ac_cv_cxx_const_cast=no
21612fi
ac1cb8d3 21613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21614 ac_ext=c
21615ac_cpp='$CPP $CPPFLAGS'
21616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21618ac_compiler_gnu=$ac_cv_c_compiler_gnu
21619
21620
21621fi
21622echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21623echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21624if test "$ac_cv_cxx_const_cast" = yes; then
21625
21626cat >>confdefs.h <<\_ACEOF
21627#define HAVE_CONST_CAST
21628_ACEOF
21629
21630fi
21631
7714864e
RL
21632echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21633echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21634if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636else
21637
21638
21639 ac_ext=cc
21640ac_cpp='$CXXCPP $CPPFLAGS'
21641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21644
21645 cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h. */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h. */
21651#include <typeinfo>
21652class Base { public : Base () {} virtual void f () = 0;};
21653class Derived : public Base { public : Derived () {} virtual void f () {} };
21654class Unrelated { public : Unrelated () {} };
21655int g (Unrelated&) { return 0; }
21656int
21657main ()
21658{
21659
21660Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21661 ;
21662 return 0;
21663}
21664_ACEOF
21665rm -f conftest.$ac_objext
21666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667 (eval $ac_compile) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
6ebeb4c7 21674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_cxx_reinterpret_cast=yes
21687else
21688 echo "$as_me: failed program was:" >&5
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
21691ac_cv_cxx_reinterpret_cast=no
21692fi
21693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 ac_ext=c
21695ac_cpp='$CPP $CPPFLAGS'
21696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698ac_compiler_gnu=$ac_cv_c_compiler_gnu
21699
21700
21701fi
21702echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21703echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21704if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21705
21706cat >>confdefs.h <<\_ACEOF
21707#define HAVE_REINTERPRET_CAST
21708_ACEOF
21709
21710fi
21711
a848cd7e
SC
21712echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21713echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21714if test "${ac_cv_cxx_static_cast+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716else
21717
21718
21719 ac_ext=cc
21720ac_cpp='$CXXCPP $CPPFLAGS'
21721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21724
21725 cat >conftest.$ac_ext <<_ACEOF
21726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
21731#include <typeinfo>
21732class Base { public : Base () {} virtual void f () = 0; };
21733class Derived : public Base { public : Derived () {} virtual void f () {} };
21734int g (Derived&) { return 0; }
21735int
21736main ()
21737{
21738
21739Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext
21745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21746 (eval $ac_compile) 2>conftest.er1
a848cd7e 21747 ac_status=$?
ac1cb8d3
VS
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
a848cd7e
SC
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
6ebeb4c7 21753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_cv_cxx_static_cast=yes
21766else
21767 echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
21770ac_cv_cxx_static_cast=no
21771fi
ac1cb8d3 21772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21773 ac_ext=c
21774ac_cpp='$CPP $CPPFLAGS'
21775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21777ac_compiler_gnu=$ac_cv_c_compiler_gnu
21778
21779
21780fi
21781echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21782echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21783if test "$ac_cv_cxx_static_cast" = yes; then
21784
21785cat >>confdefs.h <<\_ACEOF
21786#define HAVE_STATIC_CAST
21787_ACEOF
21788
21789fi
21790
21791
3c28b7cb
MW
21792if test "x$SUNCXX" = xyes; then
21793 CXXFLAGS="$CXXFLAGS -features=tmplife"
21794fi
21795
9122d155
VZ
21796if test "x$SUNCC" = xyes; then
21797 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21798fi
21799
0ad5d837
VZ
21800if test "x$SGICC" = "xyes"; then
21801 CFLAGS="$CFLAGS -woff 3970"
21802fi
21803if test "x$SGICXX" = "xyes"; then
21804 CXXFLAGS="$CXXFLAGS -woff 3970"
21805fi
21806
f56c22b4 21807if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21808 ac_ext=cc
21809ac_cpp='$CXXCPP $CPPFLAGS'
21810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21813
21814
f56c22b4
MW
21815 if test "$wxUSE_UNICODE" = "yes"; then
21816 std_string="std::wstring"
21817 char_type="wchar_t"
21818 else
21819 std_string="std::string"
21820 char_type="char"
21821 fi
21822
21823 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21824echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21825 cat >conftest.$ac_ext <<_ACEOF
21826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h. */
21831#include <string>
a848cd7e
SC
21832int
21833main ()
21834{
f56c22b4 21835$std_string foo;
a848cd7e
SC
21836 ;
21837 return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext
21841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21842 (eval $ac_compile) 2>conftest.er1
a848cd7e 21843 ac_status=$?
ac1cb8d3
VS
21844 grep -v '^ *+' conftest.er1 >conftest.err
21845 rm -f conftest.er1
21846 cat conftest.err >&5
a848cd7e
SC
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } &&
6ebeb4c7 21849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; } &&
21855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 echo "$as_me:$LINENO: result: yes" >&5
21862echo "${ECHO_T}yes" >&6
0a08f02a
MB
21863 cat >>confdefs.h <<\_ACEOF
21864#define HAVE_STD_WSTRING 1
21865_ACEOF
21866
a848cd7e
SC
21867else
21868 echo "$as_me: failed program was:" >&5
21869sed 's/^/| /' conftest.$ac_ext >&5
21870
21871echo "$as_me:$LINENO: result: no" >&5
21872echo "${ECHO_T}no" >&6
f56c22b4
MW
21873 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21874echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21875 cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
21881
21882 #ifdef HAVE_WCHAR_H
21883 # ifdef __CYGWIN__
21884 # include <stddef.h>
21885 # endif
21886 # include <wchar.h>
21887 #endif
21888 #ifdef HAVE_STDLIB_H
21889 # include <stdlib.h>
21890 #endif
21891 #include <stdio.h>
21892 #include <string>
21893
21894int
21895main ()
21896{
f56c22b4
MW
21897std::basic_string<$char_type> foo;
21898 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext
21904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21905 (eval $ac_compile) 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } &&
6ebeb4c7 21912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; } &&
21918 { ac_try='test -s conftest.$ac_objext'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 echo "$as_me:$LINENO: result: yes" >&5
21925echo "${ECHO_T}yes" >&6
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930echo "$as_me:$LINENO: result: no" >&5
21931echo "${ECHO_T}no" >&6
f56c22b4 21932 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21933 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21934echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21935 { (exit 1); exit 1; }; }
21936 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21937 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21938echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21939 { (exit 1); exit 1; }; }
f56c22b4
MW
21940 else
21941 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21942echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21943 wxUSE_STD_STRING=no
21944 fi
21945
0a08f02a 21946
a848cd7e 21947fi
ac1cb8d3 21948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21949
0a08f02a
MB
21950fi
21951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21952
21953 ac_ext=c
21954ac_cpp='$CPP $CPPFLAGS'
21955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21957ac_compiler_gnu=$ac_cv_c_compiler_gnu
21958
21959fi
21960
21961if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21962 ac_ext=cc
21963ac_cpp='$CXXCPP $CPPFLAGS'
21964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21967
21968
21969 echo "$as_me:$LINENO: checking for std::istream" >&5
21970echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21971if test "${ac_cv_type_std__istream+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973else
21974 cat >conftest.$ac_ext <<_ACEOF
21975/* confdefs.h. */
21976_ACEOF
21977cat confdefs.h >>conftest.$ac_ext
21978cat >>conftest.$ac_ext <<_ACEOF
21979/* end confdefs.h. */
21980#include <iostream>
21981
21982int
21983main ()
21984{
21985if ((std::istream *) 0)
21986 return 0;
21987if (sizeof (std::istream))
21988 return 0;
21989 ;
21990 return 0;
21991}
21992_ACEOF
21993rm -f conftest.$ac_objext
21994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21995 (eval $ac_compile) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
6ebeb4c7 22002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest.$ac_objext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_type_std__istream=yes
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019ac_cv_type_std__istream=no
22020fi
22021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022fi
22023echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22024echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22025if test $ac_cv_type_std__istream = yes; then
22026
22027cat >>confdefs.h <<_ACEOF
22028#define HAVE_STD__ISTREAM 1
22029_ACEOF
22030
22031
22032else
22033 wxUSE_STD_IOSTREAM=no
22034fi
22035echo "$as_me:$LINENO: checking for std::ostream" >&5
22036echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22037if test "${ac_cv_type_std__ostream+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046#include <iostream>
22047
22048int
22049main ()
22050{
22051if ((std::ostream *) 0)
22052 return 0;
22053if (sizeof (std::ostream))
22054 return 0;
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22061 (eval $ac_compile) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
6ebeb4c7 22068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_type_std__ostream=yes
22081else
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
22085ac_cv_type_std__ostream=no
22086fi
22087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088fi
22089echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22090echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22091if test $ac_cv_type_std__ostream = yes; then
22092
22093cat >>confdefs.h <<_ACEOF
22094#define HAVE_STD__OSTREAM 1
22095_ACEOF
22096
22097
22098else
22099 wxUSE_STD_IOSTREAM=no
22100fi
22101
22102
22103 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22104 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22105 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22106echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22107 { (exit 1); exit 1; }; }
22108 else
22109 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22110echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22111 fi
f56c22b4
MW
22112 fi
22113
22114 ac_ext=c
22115ac_cpp='$CPP $CPPFLAGS'
22116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22118ac_compiler_gnu=$ac_cv_c_compiler_gnu
22119
22120fi
22121
22122if test "$wxUSE_STL" = "yes"; then
22123 ac_ext=cc
22124ac_cpp='$CXXCPP $CPPFLAGS'
22125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128
22129
22130 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22131echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <string>
0a08f02a
MB
22139 #include <functional>
22140 #include <algorithm>
22141 #include <vector>
22142 #include <list>
a848cd7e
SC
22143int
22144main ()
22145{
0a08f02a
MB
22146std::vector<int> moo;
22147 std::list<int> foo;
22148 std::vector<int>::iterator it =
22149 std::find_if(moo.begin(), moo.end(),
22150 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22151 ;
22152 return 0;
22153}
22154_ACEOF
22155rm -f conftest.$ac_objext
22156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22157 (eval $ac_compile) 2>conftest.er1
a848cd7e 22158 ac_status=$?
ac1cb8d3
VS
22159 grep -v '^ *+' conftest.er1 >conftest.err
22160 rm -f conftest.er1
22161 cat conftest.err >&5
a848cd7e
SC
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } &&
6ebeb4c7 22164 { ac_try='test -z "$ac_cxx_werror_flag" || 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'
a848cd7e
SC
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 echo "$as_me:$LINENO: result: yes" >&5
22177echo "${ECHO_T}yes" >&6
a848cd7e
SC
22178else
22179 echo "$as_me: failed program was:" >&5
22180sed 's/^/| /' conftest.$ac_ext >&5
22181
22182echo "$as_me:$LINENO: result: no" >&5
22183echo "${ECHO_T}no" >&6
0a08f02a
MB
22184 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22185echo "$as_me: error: Basic STL functionality missing" >&2;}
22186 { (exit 1); exit 1; }; }
a848cd7e 22187fi
ac1cb8d3 22188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22189
22190 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22191echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198#include <string>
22199int
22200main ()
22201{
22202std::string foo, bar;
22203 foo.compare(bar);
22204 foo.compare(1, 1, bar);
22205 foo.compare(1, 1, bar, 1, 1);
22206 foo.compare("");
22207 foo.compare(1, 1, "");
22208 foo.compare(1, 1, "", 2);
22209 ;
22210 return 0;
22211}
22212_ACEOF
22213rm -f conftest.$ac_objext
22214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22215 (eval $ac_compile) 2>conftest.er1
a848cd7e 22216 ac_status=$?
ac1cb8d3
VS
22217 grep -v '^ *+' conftest.er1 >conftest.err
22218 rm -f conftest.er1
22219 cat conftest.err >&5
a848cd7e
SC
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } &&
6ebeb4c7 22222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
22234 echo "$as_me:$LINENO: result: yes" >&5
22235echo "${ECHO_T}yes" >&6
22236 cat >>confdefs.h <<\_ACEOF
22237#define HAVE_STD_STRING_COMPARE 1
22238_ACEOF
22239
22240else
22241 echo "$as_me: failed program was:" >&5
22242sed 's/^/| /' conftest.$ac_ext >&5
22243
22244echo "$as_me:$LINENO: result: no" >&5
22245echo "${ECHO_T}no" >&6
22246fi
ac1cb8d3 22247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22248
22249 if test "${ac_cv_header_hash_map+set}" = set; then
22250 echo "$as_me:$LINENO: checking for hash_map" >&5
22251echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22252if test "${ac_cv_header_hash_map+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22254fi
22255echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22256echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22257else
22258 # Is the header compilable?
22259echo "$as_me:$LINENO: checking hash_map usability" >&5
22260echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22261cat >conftest.$ac_ext <<_ACEOF
22262/* confdefs.h. */
22263_ACEOF
22264cat confdefs.h >>conftest.$ac_ext
22265cat >>conftest.$ac_ext <<_ACEOF
22266/* end confdefs.h. */
22267$ac_includes_default
22268#include <hash_map>
22269_ACEOF
22270rm -f conftest.$ac_objext
22271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22272 (eval $ac_compile) 2>conftest.er1
bdcade0a 22273 ac_status=$?
ac1cb8d3
VS
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
bdcade0a
MB
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
6ebeb4c7 22279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_header_compiler=yes
22292else
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296ac_header_compiler=no
22297fi
ac1cb8d3 22298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22300echo "${ECHO_T}$ac_header_compiler" >&6
22301
22302# Is the header present?
22303echo "$as_me:$LINENO: checking hash_map presence" >&5
22304echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22305cat >conftest.$ac_ext <<_ACEOF
22306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
22311#include <hash_map>
22312_ACEOF
22313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } >/dev/null; then
22321 if test -s conftest.err; then
22322 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22324 else
22325 ac_cpp_err=
22326 fi
22327else
22328 ac_cpp_err=yes
22329fi
22330if test -z "$ac_cpp_err"; then
22331 ac_header_preproc=yes
22332else
22333 echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336 ac_header_preproc=no
22337fi
22338rm -f conftest.err conftest.$ac_ext
22339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22340echo "${ECHO_T}$ac_header_preproc" >&6
22341
22342# So? What about this header?
ac1cb8d3
VS
22343case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22344 yes:no: )
bdcade0a
MB
22345 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22346echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22347 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22348echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22349 ac_header_preproc=yes
bdcade0a 22350 ;;
ac1cb8d3 22351 no:yes:* )
bdcade0a
MB
22352 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22353echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22354 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22355echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22357echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22359echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22360 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22361echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22362 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22363echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22364 (
22365 cat <<\_ASBOX
ac1cb8d3
VS
22366## ----------------------------------------- ##
22367## Report this to wx-dev@lists.wxwidgets.org ##
22368## ----------------------------------------- ##
bdcade0a
MB
22369_ASBOX
22370 ) |
22371 sed "s/^/$as_me: WARNING: /" >&2
22372 ;;
22373esac
22374echo "$as_me:$LINENO: checking for hash_map" >&5
22375echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22376if test "${ac_cv_header_hash_map+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378else
22379 ac_cv_header_hash_map=$ac_header_preproc
22380fi
22381echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22382echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22383
22384fi
22385if test $ac_cv_header_hash_map = yes; then
22386 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22387echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22388 cat >conftest.$ac_ext <<_ACEOF
22389/* confdefs.h. */
22390_ACEOF
22391cat confdefs.h >>conftest.$ac_ext
22392cat >>conftest.$ac_ext <<_ACEOF
22393/* end confdefs.h. */
22394#include <hash_map>
22395 #include <hash_set>
22396int
22397main ()
22398{
22399std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22400 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22401 ;
22402 return 0;
22403}
22404_ACEOF
22405rm -f conftest.$ac_objext
22406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22407 (eval $ac_compile) 2>conftest.er1
bdcade0a 22408 ac_status=$?
ac1cb8d3
VS
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
bdcade0a
MB
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } &&
6ebeb4c7 22414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; } &&
22420 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 echo "$as_me:$LINENO: result: yes" >&5
22427echo "${ECHO_T}yes" >&6
22428 cat >>confdefs.h <<\_ACEOF
22429#define HAVE_HASH_MAP 1
22430_ACEOF
22431
22432 cat >>confdefs.h <<\_ACEOF
22433#define HAVE_STD_HASH_MAP 1
22434_ACEOF
22435
22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
22440echo "$as_me:$LINENO: result: no" >&5
22441echo "${ECHO_T}no" >&6
22442fi
ac1cb8d3 22443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22444
22445fi
22446
22447
22448
22449 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22450 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22451echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22452if test "${ac_cv_header_ext_hash_map+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454fi
22455echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22456echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22457else
22458 # Is the header compilable?
22459echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22460echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22461cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467$ac_includes_default
22468#include <ext/hash_map>
22469_ACEOF
22470rm -f conftest.$ac_objext
22471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22472 (eval $ac_compile) 2>conftest.er1
bdcade0a 22473 ac_status=$?
ac1cb8d3
VS
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
bdcade0a
MB
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
6ebeb4c7 22479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; } &&
22485 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; }; then
22491 ac_header_compiler=yes
22492else
22493 echo "$as_me: failed program was:" >&5
22494sed 's/^/| /' conftest.$ac_ext >&5
22495
22496ac_header_compiler=no
22497fi
ac1cb8d3 22498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22500echo "${ECHO_T}$ac_header_compiler" >&6
22501
22502# Is the header present?
22503echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22504echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22505cat >conftest.$ac_ext <<_ACEOF
22506/* confdefs.h. */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h. */
22511#include <ext/hash_map>
22512_ACEOF
22513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22515 ac_status=$?
22516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } >/dev/null; then
22521 if test -s conftest.err; then
22522 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22524 else
22525 ac_cpp_err=
22526 fi
22527else
22528 ac_cpp_err=yes
22529fi
22530if test -z "$ac_cpp_err"; then
22531 ac_header_preproc=yes
22532else
22533 echo "$as_me: failed program was:" >&5
22534sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 ac_header_preproc=no
22537fi
22538rm -f conftest.err conftest.$ac_ext
22539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22540echo "${ECHO_T}$ac_header_preproc" >&6
22541
22542# So? What about this header?
ac1cb8d3
VS
22543case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22544 yes:no: )
bdcade0a
MB
22545 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22546echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22547 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22548echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22549 ac_header_preproc=yes
bdcade0a 22550 ;;
ac1cb8d3 22551 no:yes:* )
bdcade0a
MB
22552 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22553echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22554 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22555echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22556 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22557echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22558 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22559echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22560 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22561echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22562 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22563echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22564 (
22565 cat <<\_ASBOX
ac1cb8d3
VS
22566## ----------------------------------------- ##
22567## Report this to wx-dev@lists.wxwidgets.org ##
22568## ----------------------------------------- ##
bdcade0a
MB
22569_ASBOX
22570 ) |
22571 sed "s/^/$as_me: WARNING: /" >&2
22572 ;;
22573esac
22574echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22575echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22576if test "${ac_cv_header_ext_hash_map+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578else
22579 ac_cv_header_ext_hash_map=$ac_header_preproc
22580fi
22581echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22582echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22583
22584fi
22585if test $ac_cv_header_ext_hash_map = yes; then
22586 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22587echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22588 cat >conftest.$ac_ext <<_ACEOF
22589/* confdefs.h. */
22590_ACEOF
22591cat confdefs.h >>conftest.$ac_ext
22592cat >>conftest.$ac_ext <<_ACEOF
22593/* end confdefs.h. */
22594#include <ext/hash_map>
22595 #include <ext/hash_set>
22596int
22597main ()
22598{
22599__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22600 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22601 ;
22602 return 0;
22603}
22604_ACEOF
22605rm -f conftest.$ac_objext
22606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22607 (eval $ac_compile) 2>conftest.er1
bdcade0a 22608 ac_status=$?
ac1cb8d3
VS
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
bdcade0a
MB
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
6ebeb4c7 22614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 echo "$as_me:$LINENO: result: yes" >&5
22627echo "${ECHO_T}yes" >&6
22628 cat >>confdefs.h <<\_ACEOF
22629#define HAVE_EXT_HASH_MAP 1
22630_ACEOF
22631
22632 cat >>confdefs.h <<\_ACEOF
22633#define HAVE_GNU_CXX_HASH_MAP 1
22634_ACEOF
22635
22636else
22637 echo "$as_me: failed program was:" >&5
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
22640echo "$as_me:$LINENO: result: no" >&5
22641echo "${ECHO_T}no" >&6
22642fi
ac1cb8d3 22643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22644
22645fi
22646
22647
a848cd7e
SC
22648
22649 ac_ext=c
22650ac_cpp='$CPP $CPPFLAGS'
22651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22653ac_compiler_gnu=$ac_cv_c_compiler_gnu
22654
22655fi
22656
22657
22658SEARCH_INCLUDE="\
22659 /usr/local/include \
22660 \
22661 /usr/Motif-2.1/include \
22662 /usr/Motif-1.2/include \
22663 /usr/include/Motif1.2 \
a848cd7e
SC
22664 \
22665 /usr/dt/include \
22666 /usr/openwin/include \
22667 \
22668 /usr/include/Xm \
22669 \
22670 /usr/X11R6/include \
22671 /usr/X11R6.4/include \
22672 /usr/X11R5/include \
22673 /usr/X11R4/include \
22674 \
22675 /usr/include/X11R6 \
22676 /usr/include/X11R5 \
22677 /usr/include/X11R4 \
22678 \
22679 /usr/local/X11R6/include \
22680 /usr/local/X11R5/include \
22681 /usr/local/X11R4/include \
22682 \
22683 /usr/local/include/X11R6 \
22684 /usr/local/include/X11R5 \
22685 /usr/local/include/X11R4 \
22686 \
22687 /usr/X11/include \
22688 /usr/include/X11 \
22689 /usr/local/X11/include \
22690 /usr/local/include/X11 \
22691 \
a848cd7e 22692 /usr/XFree86/include/X11 \
e051b34e
MW
22693 /usr/pkg/include \
22694 \
a848cd7e
SC
22695 /usr/openwin/share/include"
22696
6f9cf1e6 22697echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 22698echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
22699
22700case "${host}" in
22701 *-*-irix6* )
22702 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704else
22705
c687b303
VZ
22706 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
22707 for e in a so sl dylib dll.a; do
22708 libc="$d/libc.$e"
22709 if test -f $libc; then
22710 save_LIBS="$LIBS"
22711 LIBS="$libc"
22712 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
22713int main() { return 0; }
22714_ACEOF
22715rm -f conftest.$ac_objext conftest$ac_exeext
22716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22717 (eval $ac_link) 2>conftest.er1
22718 ac_status=$?
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
22724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest$ac_exeext'
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
22736 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
22737else
22738 echo "$as_me: failed program was:" >&5
22739sed 's/^/| /' conftest.$ac_ext >&5
22740
22741fi
22742rm -f conftest.err conftest.$ac_objext \
22743 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
22744 LIBS="$save_LIBS"
22745 if test "x$wx_cv_std_libpath" != "x"; then
22746 break 2
22747 fi
22748 fi
22749 done
22750 done
22751 if test "x$wx_cv_std_libpath" = "x"; then
22752 wx_cv_std_libpath="lib"
0ad5d837 22753 fi
0ad5d837
VZ
22754
22755
22756fi
6f9cf1e6
MW
22757
22758 ;;
22759
22760 *-*-solaris2* )
22761 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
22762 wx_cv_std_libpath="lib/64"
22763 else
22764 wx_cv_std_libpath="lib"
22765 fi
22766 ;;
22767
22768 *-*-linux* )
22769 if test "$ac_cv_sizeof_void_p" = 8 -a \
22770 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
22771 wx_cv_std_libpath="lib64"
22772 else
22773 wx_cv_std_libpath="lib"
22774 fi
c687b303
VZ
22775 ;;
22776
22777 *)
22778 wx_cv_std_libpath="lib";
22779 ;;
22780esac
0ad5d837 22781
6f9cf1e6
MW
22782echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
22783echo "${ECHO_T}$wx_cv_std_libpath" >&6
22784
22785SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 22786
3eca31dc
MW
22787if test "$build" != "$host" -a "$GCC" = yes; then
22788 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22789 cross_root=`dirname $cross_root`
22790 cross_root=`dirname $cross_root`
22791
22792 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22793 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22794
22795 if test -z "$PKG_CONFIG_PATH"; then
22796 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22797 export PKG_CONFIG_PATH
22798 fi
22799
22800 if test -z "$x_includes" -o "$x_includes" = NONE; then
22801
22802ac_find_includes=
22803for ac_dir in $SEARCH_INCLUDE /usr/include;
22804 do
22805 if test -f "$ac_dir/X11/Intrinsic.h"; then
22806 ac_find_includes=$ac_dir
22807 break
22808 fi
22809 done
22810
22811 x_includes=$ac_find_includes
22812 fi
22813 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22814
0ad5d837
VZ
22815 ac_find_libraries=
22816 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
22817 do
22818 for ac_extension in a so sl dylib dll.a; do
22819 if test -f "$ac_dir/libXt.$ac_extension"; then
22820 ac_find_libraries=$ac_dir
22821 break 2
22822 fi
22823 done
22824 done
22825
22826 x_libraries=$ac_find_libraries
22827 fi
22828 fi
22829fi
22830
a848cd7e
SC
22831
22832cat >confcache <<\_ACEOF
22833# This file is a shell script that caches the results of configure
22834# tests run on this system so they can be shared between configure
22835# scripts and configure runs, see configure's option --config-cache.
22836# It is not useful on other systems. If it contains results you don't
22837# want to keep, you may remove or edit it.
22838#
22839# config.status only pays attention to the cache file if you give it
22840# the --recheck option to rerun configure.
22841#
22842# `ac_cv_env_foo' variables (set or unset) will be overridden when
22843# loading this file, other *unset* `ac_cv_foo' will be assigned the
22844# following values.
22845
22846_ACEOF
22847
22848# The following way of writing the cache mishandles newlines in values,
22849# but we know of no workaround that is simple, portable, and efficient.
22850# So, don't put newlines in cache variables' values.
22851# Ultrix sh set writes to stderr and can't be redirected directly,
22852# and sets the high bit in the cache file unless we assign to the vars.
22853{
22854 (set) 2>&1 |
22855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22856 *ac_space=\ *)
22857 # `set' does not quote correctly, so add quotes (double-quote
22858 # substitution turns \\\\ into \\, and sed turns \\ into \).
22859 sed -n \
ac1cb8d3
VS
22860 "s/'/'\\\\''/g;
22861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22862 ;;
22863 *)
22864 # `set' quotes correctly as required by POSIX, so do not add quotes.
22865 sed -n \
ac1cb8d3 22866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22867 ;;
22868 esac;
22869} |
22870 sed '
22871 t clear
22872 : clear
22873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22874 t end
22875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22876 : end' >>confcache
22877if diff $cache_file confcache >/dev/null 2>&1; then :; else
22878 if test -w $cache_file; then
22879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22880 cat confcache >$cache_file
22881 else
22882 echo "not updating unwritable cache $cache_file"
22883 fi
22884fi
22885rm -f confcache
22886
22887if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22888 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22889echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22890if test "${wx_cv_lib_glibc21+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892else
22893
22894 cat >conftest.$ac_ext <<_ACEOF
22895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
22900#include <features.h>
22901int
22902main ()
22903{
22904
22905 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22906 not glibc 2.1
a848cd7e
SC
22907 #endif
22908
22909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext
22914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22915 (eval $ac_compile) 2>conftest.er1
a848cd7e 22916 ac_status=$?
ac1cb8d3
VS
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
a848cd7e
SC
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
6ebeb4c7 22922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22925 ac_status=$?
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934
22935 wx_cv_lib_glibc21=yes
22936
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941
22942 wx_cv_lib_glibc21=no
22943
22944
22945fi
ac1cb8d3 22946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22947
22948fi
22949echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22950echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22951 if test "$wx_cv_lib_glibc21" = "yes"; then
22952 cat >>confdefs.h <<\_ACEOF
22953#define wxHAVE_GLIBC2 1
22954_ACEOF
22955
22956 fi
22957fi
22958
22959if test "x$wx_cv_lib_glibc21" = "xyes"; then
22960 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22961 cat >>confdefs.h <<\_ACEOF
22962#define _GNU_SOURCE 1
22963_ACEOF
22964
22965 fi
22966fi
22967
22968
22969
22970if test "$wxUSE_REGEX" != "no"; then
22971 cat >>confdefs.h <<\_ACEOF
22972#define wxUSE_REGEX 1
22973_ACEOF
22974
22975
22976 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22977 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22978echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22979 wxUSE_REGEX=builtin
22980 fi
22981
22982 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22983 if test "${ac_cv_header_regex_h+set}" = set; then
22984 echo "$as_me:$LINENO: checking for regex.h" >&5
22985echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22986if test "${ac_cv_header_regex_h+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22988fi
22989echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22990echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22991else
22992 # Is the header compilable?
22993echo "$as_me:$LINENO: checking regex.h usability" >&5
22994echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22995cat >conftest.$ac_ext <<_ACEOF
22996/* confdefs.h. */
22997_ACEOF
22998cat confdefs.h >>conftest.$ac_ext
22999cat >>conftest.$ac_ext <<_ACEOF
23000/* end confdefs.h. */
23001$ac_includes_default
23002#include <regex.h>
23003_ACEOF
23004rm -f conftest.$ac_objext
23005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23006 (eval $ac_compile) 2>conftest.er1
a848cd7e 23007 ac_status=$?
ac1cb8d3
VS
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
a848cd7e
SC
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
6ebeb4c7 23013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_header_compiler=yes
23026else
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
23030ac_header_compiler=no
23031fi
ac1cb8d3 23032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23034echo "${ECHO_T}$ac_header_compiler" >&6
23035
23036# Is the header present?
23037echo "$as_me:$LINENO: checking regex.h presence" >&5
23038echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23039cat >conftest.$ac_ext <<_ACEOF
23040/* confdefs.h. */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h. */
23045#include <regex.h>
23046_ACEOF
23047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null; then
23055 if test -s conftest.err; then
23056 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23058 else
23059 ac_cpp_err=
23060 fi
23061else
23062 ac_cpp_err=yes
23063fi
23064if test -z "$ac_cpp_err"; then
23065 ac_header_preproc=yes
23066else
23067 echo "$as_me: failed program was:" >&5
23068sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 ac_header_preproc=no
23071fi
23072rm -f conftest.err conftest.$ac_ext
23073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23074echo "${ECHO_T}$ac_header_preproc" >&6
23075
23076# So? What about this header?
ac1cb8d3
VS
23077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23078 yes:no: )
a848cd7e
SC
23079 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23080echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23081 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23082echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23083 ac_header_preproc=yes
a848cd7e 23084 ;;
ac1cb8d3 23085 no:yes:* )
a848cd7e
SC
23086 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23087echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23088 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23089echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23091echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23093echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23094 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23095echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23096 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23097echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23098 (
23099 cat <<\_ASBOX
ac1cb8d3
VS
23100## ----------------------------------------- ##
23101## Report this to wx-dev@lists.wxwidgets.org ##
23102## ----------------------------------------- ##
a848cd7e
SC
23103_ASBOX
23104 ) |
23105 sed "s/^/$as_me: WARNING: /" >&2
23106 ;;
23107esac
23108echo "$as_me:$LINENO: checking for regex.h" >&5
23109echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23110if test "${ac_cv_header_regex_h+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113 ac_cv_header_regex_h=$ac_header_preproc
23114fi
23115echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23116echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23117
23118fi
23119if test $ac_cv_header_regex_h = yes; then
23120
23121for ac_func in regcomp
23122do
23123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23124echo "$as_me:$LINENO: checking for $ac_func" >&5
23125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23126if eval "test \"\${$as_ac_var+set}\" = set"; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129 cat >conftest.$ac_ext <<_ACEOF
23130/* confdefs.h. */
23131_ACEOF
23132cat confdefs.h >>conftest.$ac_ext
23133cat >>conftest.$ac_ext <<_ACEOF
23134/* end confdefs.h. */
ac1cb8d3
VS
23135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23137#define $ac_func innocuous_$ac_func
23138
a848cd7e
SC
23139/* System header to define __stub macros and hopefully few prototypes,
23140 which can conflict with char $ac_func (); below.
23141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23143
a848cd7e
SC
23144#ifdef __STDC__
23145# include <limits.h>
23146#else
23147# include <assert.h>
23148#endif
ac1cb8d3
VS
23149
23150#undef $ac_func
23151
a848cd7e
SC
23152/* Override any gcc2 internal prototype to avoid an error. */
23153#ifdef __cplusplus
23154extern "C"
23155{
23156#endif
23157/* We use char because int might match the return type of a gcc2
23158 builtin and then its argument prototype would still apply. */
23159char $ac_func ();
23160/* The GNU C library defines this for functions which it implements
23161 to always fail with ENOSYS. Some functions are actually named
23162 something starting with __ and the normal name is an alias. */
23163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23164choke me
23165#else
23166char (*f) () = $ac_func;
23167#endif
23168#ifdef __cplusplus
23169}
23170#endif
23171
23172int
23173main ()
23174{
23175return f != $ac_func;
23176 ;
23177 return 0;
23178}
23179_ACEOF
23180rm -f conftest.$ac_objext conftest$ac_exeext
23181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23182 (eval $ac_link) 2>conftest.er1
a848cd7e 23183 ac_status=$?
ac1cb8d3
VS
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
a848cd7e
SC
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
6ebeb4c7 23189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 eval "$as_ac_var=yes"
23202else
23203 echo "$as_me: failed program was:" >&5
23204sed 's/^/| /' conftest.$ac_ext >&5
23205
23206eval "$as_ac_var=no"
23207fi
ac1cb8d3
VS
23208rm -f conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23210fi
23211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23213if test `eval echo '${'$as_ac_var'}'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23216_ACEOF
23217
23218fi
23219done
23220
23221fi
23222
23223
23224
23225 if test "x$ac_cv_func_regcomp" != "xyes"; then
23226 if test "$wxUSE_REGEX" = "sys" ; then
23227 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23228echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23229 { (exit 1); exit 1; }; }
23230 else
23231 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23232echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23233 wxUSE_REGEX=builtin
23234 fi
23235 else
23236 wxUSE_REGEX=sys
23237 cat >>confdefs.h <<\_ACEOF
23238#define WX_NO_REGEX_ADVANCED 1
23239_ACEOF
23240
23241 fi
23242 fi
23243fi
23244
23245
23246ZLIB_LINK=
23247if test "$wxUSE_ZLIB" != "no" ; then
23248 cat >>confdefs.h <<\_ACEOF
23249#define wxUSE_ZLIB 1
23250_ACEOF
23251
23252
23253 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23254 if test "$USE_DARWIN" = 1; then
23255 system_zlib_h_ok="yes"
23256 else
23257 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23258echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23259if test "${ac_cv_header_zlib_h+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261else
23262 if test "$cross_compiling" = yes; then
23263 unset ac_cv_header_zlib_h
23264
23265else
23266 cat >conftest.$ac_ext <<_ACEOF
23267/* confdefs.h. */
23268_ACEOF
23269cat confdefs.h >>conftest.$ac_ext
23270cat >>conftest.$ac_ext <<_ACEOF
23271/* end confdefs.h. */
23272
23273 #include <zlib.h>
23274 #include <stdio.h>
23275
23276 int main()
23277 {
23278 FILE *f=fopen("conftestval", "w");
23279 if (!f) exit(1);
23280 fprintf(f, "%s",
23281 ZLIB_VERSION[0] == '1' &&
23282 (ZLIB_VERSION[2] > '1' ||
23283 (ZLIB_VERSION[2] == '1' &&
23284 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23285 exit(0);
23286 }
23287
23288_ACEOF
23289rm -f conftest$ac_exeext
23290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291 (eval $ac_link) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_cv_header_zlib_h=`cat conftestval`
23301else
23302 echo "$as_me: program exited with status $ac_status" >&5
23303echo "$as_me: failed program was:" >&5
23304sed 's/^/| /' conftest.$ac_ext >&5
23305
23306( exit $ac_status )
23307ac_cv_header_zlib_h=no
23308fi
ac1cb8d3 23309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23310fi
23311
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23314echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23315 if test "${ac_cv_header_zlib_h+set}" = set; then
23316 echo "$as_me:$LINENO: checking for zlib.h" >&5
23317echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23318if test "${ac_cv_header_zlib_h+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23320fi
23321echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23322echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23323else
23324 # Is the header compilable?
23325echo "$as_me:$LINENO: checking zlib.h usability" >&5
23326echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23327cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333$ac_includes_default
23334#include <zlib.h>
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23338 (eval $ac_compile) 2>conftest.er1
a848cd7e 23339 ac_status=$?
ac1cb8d3
VS
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
a848cd7e
SC
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
6ebeb4c7 23345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_header_compiler=yes
23358else
23359 echo "$as_me: failed program was:" >&5
23360sed 's/^/| /' conftest.$ac_ext >&5
23361
23362ac_header_compiler=no
23363fi
ac1cb8d3 23364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23366echo "${ECHO_T}$ac_header_compiler" >&6
23367
23368# Is the header present?
23369echo "$as_me:$LINENO: checking zlib.h presence" >&5
23370echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23371cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377#include <zlib.h>
23378_ACEOF
23379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23381 ac_status=$?
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } >/dev/null; then
23387 if test -s conftest.err; then
23388 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23390 else
23391 ac_cpp_err=
23392 fi
23393else
23394 ac_cpp_err=yes
23395fi
23396if test -z "$ac_cpp_err"; then
23397 ac_header_preproc=yes
23398else
23399 echo "$as_me: failed program was:" >&5
23400sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 ac_header_preproc=no
23403fi
23404rm -f conftest.err conftest.$ac_ext
23405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23406echo "${ECHO_T}$ac_header_preproc" >&6
23407
23408# So? What about this header?
ac1cb8d3
VS
23409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23410 yes:no: )
a848cd7e
SC
23411 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23412echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23413 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23414echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23415 ac_header_preproc=yes
a848cd7e 23416 ;;
ac1cb8d3 23417 no:yes:* )
a848cd7e
SC
23418 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23419echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23420 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23421echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23422 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23423echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23424 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23425echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23426 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23427echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23428 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23429echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23430 (
23431 cat <<\_ASBOX
ac1cb8d3
VS
23432## ----------------------------------------- ##
23433## Report this to wx-dev@lists.wxwidgets.org ##
23434## ----------------------------------------- ##
a848cd7e
SC
23435_ASBOX
23436 ) |
23437 sed "s/^/$as_me: WARNING: /" >&2
23438 ;;
23439esac
23440echo "$as_me:$LINENO: checking for zlib.h" >&5
23441echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23442if test "${ac_cv_header_zlib_h+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23444else
23445 ac_cv_header_zlib_h=$ac_header_preproc
23446fi
23447echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23448echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23449
23450fi
23451
23452
23453
23454 system_zlib_h_ok=$ac_cv_header_zlib_h
23455 fi
23456
23457 if test "$system_zlib_h_ok" = "yes"; then
23458 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23459echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23460if test "${ac_cv_lib_z_deflate+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23462else
23463 ac_check_lib_save_LIBS=$LIBS
23464LIBS="-lz $LIBS"
23465cat >conftest.$ac_ext <<_ACEOF
23466/* confdefs.h. */
23467_ACEOF
23468cat confdefs.h >>conftest.$ac_ext
23469cat >>conftest.$ac_ext <<_ACEOF
23470/* end confdefs.h. */
23471
23472/* Override any gcc2 internal prototype to avoid an error. */
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476/* We use char because int might match the return type of a gcc2
23477 builtin and then its argument prototype would still apply. */
23478char deflate ();
23479int
23480main ()
23481{
23482deflate ();
23483 ;
23484 return 0;
23485}
23486_ACEOF
23487rm -f conftest.$ac_objext conftest$ac_exeext
23488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23489 (eval $ac_link) 2>conftest.er1
a848cd7e 23490 ac_status=$?
ac1cb8d3
VS
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
a848cd7e
SC
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
6ebeb4c7 23496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; } &&
23502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23505 ac_status=$?
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_cv_lib_z_deflate=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
23513ac_cv_lib_z_deflate=no
23514fi
ac1cb8d3
VS
23515rm -f conftest.err conftest.$ac_objext \
23516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23517LIBS=$ac_check_lib_save_LIBS
23518fi
23519echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23520echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23521if test $ac_cv_lib_z_deflate = yes; then
23522 ZLIB_LINK=" -lz"
23523fi
23524
23525 fi
23526
23527 if test "x$ZLIB_LINK" = "x" ; then
23528 if test "$wxUSE_ZLIB" = "sys" ; then
23529 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23530echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23531 { (exit 1); exit 1; }; }
23532 else
23533 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23534echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23535 wxUSE_ZLIB=builtin
23536 fi
23537 else
23538 wxUSE_ZLIB=sys
23539 fi
23540 fi
23541fi
23542
23543
23544PNG_LINK=
23545if test "$wxUSE_LIBPNG" != "no" ; then
23546 cat >>confdefs.h <<\_ACEOF
23547#define wxUSE_LIBPNG 1
23548_ACEOF
23549
23550
23551 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23552 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23553echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23554 wxUSE_LIBPNG=sys
23555 fi
23556
23557 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23558 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23559echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23560 wxUSE_LIBPNG=builtin
23561 fi
23562
23563 if test "$wxUSE_MGL" != 1 ; then
23564 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23565 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23566echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23567if test "${ac_cv_header_png_h+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 if test "$cross_compiling" = yes; then
23571 unset ac_cv_header_png_h
23572
23573else
23574 cat >conftest.$ac_ext <<_ACEOF
23575/* confdefs.h. */
23576_ACEOF
23577cat confdefs.h >>conftest.$ac_ext
23578cat >>conftest.$ac_ext <<_ACEOF
23579/* end confdefs.h. */
23580
23581 #include <png.h>
23582 #include <stdio.h>
23583
23584 int main()
23585 {
23586 FILE *f=fopen("conftestval", "w");
23587 if (!f) exit(1);
23588 fprintf(f, "%s",
23589 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23590 exit(0);
23591 }
23592
23593_ACEOF
23594rm -f conftest$ac_exeext
23595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596 (eval $ac_link) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_header_png_h=`cat conftestval`
23606else
23607 echo "$as_me: program exited with status $ac_status" >&5
23608echo "$as_me: failed program was:" >&5
23609sed 's/^/| /' conftest.$ac_ext >&5
23610
23611( exit $ac_status )
23612ac_cv_header_png_h=no
23613fi
ac1cb8d3 23614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23615fi
23616
23617fi
23618echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23619echo "${ECHO_T}$ac_cv_header_png_h" >&6
23620 if test "${ac_cv_header_png_h+set}" = set; then
23621 echo "$as_me:$LINENO: checking for png.h" >&5
23622echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23623if test "${ac_cv_header_png_h+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625fi
23626echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23627echo "${ECHO_T}$ac_cv_header_png_h" >&6
23628else
23629 # Is the header compilable?
23630echo "$as_me:$LINENO: checking png.h usability" >&5
23631echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23632cat >conftest.$ac_ext <<_ACEOF
23633/* confdefs.h. */
23634_ACEOF
23635cat confdefs.h >>conftest.$ac_ext
23636cat >>conftest.$ac_ext <<_ACEOF
23637/* end confdefs.h. */
23638$ac_includes_default
23639#include <png.h>
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23643 (eval $ac_compile) 2>conftest.er1
a848cd7e 23644 ac_status=$?
ac1cb8d3
VS
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
a848cd7e
SC
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
6ebeb4c7 23650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_header_compiler=yes
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667ac_header_compiler=no
23668fi
ac1cb8d3 23669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23671echo "${ECHO_T}$ac_header_compiler" >&6
23672
23673# Is the header present?
23674echo "$as_me:$LINENO: checking png.h presence" >&5
23675echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23676cat >conftest.$ac_ext <<_ACEOF
23677/* confdefs.h. */
23678_ACEOF
23679cat confdefs.h >>conftest.$ac_ext
23680cat >>conftest.$ac_ext <<_ACEOF
23681/* end confdefs.h. */
23682#include <png.h>
23683_ACEOF
23684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } >/dev/null; then
23692 if test -s conftest.err; then
23693 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23695 else
23696 ac_cpp_err=
23697 fi
23698else
23699 ac_cpp_err=yes
23700fi
23701if test -z "$ac_cpp_err"; then
23702 ac_header_preproc=yes
23703else
23704 echo "$as_me: failed program was:" >&5
23705sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_header_preproc=no
23708fi
23709rm -f conftest.err conftest.$ac_ext
23710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23711echo "${ECHO_T}$ac_header_preproc" >&6
23712
23713# So? What about this header?
ac1cb8d3
VS
23714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23715 yes:no: )
a848cd7e
SC
23716 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23717echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23718 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23719echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23720 ac_header_preproc=yes
a848cd7e 23721 ;;
ac1cb8d3 23722 no:yes:* )
a848cd7e
SC
23723 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23724echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23725 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23726echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23727 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23728echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23729 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23730echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23731 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23732echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23733 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23734echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23735 (
23736 cat <<\_ASBOX
ac1cb8d3
VS
23737## ----------------------------------------- ##
23738## Report this to wx-dev@lists.wxwidgets.org ##
23739## ----------------------------------------- ##
a848cd7e
SC
23740_ASBOX
23741 ) |
23742 sed "s/^/$as_me: WARNING: /" >&2
23743 ;;
23744esac
23745echo "$as_me:$LINENO: checking for png.h" >&5
23746echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23747if test "${ac_cv_header_png_h+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23749else
23750 ac_cv_header_png_h=$ac_header_preproc
23751fi
23752echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23753echo "${ECHO_T}$ac_cv_header_png_h" >&6
23754
23755fi
23756
23757
23758
23759 if test "$ac_cv_header_png_h" = "yes"; then
23760 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23761echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23762if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764else
23765 ac_check_lib_save_LIBS=$LIBS
23766LIBS="-lpng -lz -lm $LIBS"
23767cat >conftest.$ac_ext <<_ACEOF
23768/* confdefs.h. */
23769_ACEOF
23770cat confdefs.h >>conftest.$ac_ext
23771cat >>conftest.$ac_ext <<_ACEOF
23772/* end confdefs.h. */
23773
23774/* Override any gcc2 internal prototype to avoid an error. */
23775#ifdef __cplusplus
23776extern "C"
23777#endif
23778/* We use char because int might match the return type of a gcc2
23779 builtin and then its argument prototype would still apply. */
23780char png_check_sig ();
23781int
23782main ()
23783{
23784png_check_sig ();
23785 ;
23786 return 0;
23787}
23788_ACEOF
23789rm -f conftest.$ac_objext conftest$ac_exeext
23790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23791 (eval $ac_link) 2>conftest.er1
a848cd7e 23792 ac_status=$?
ac1cb8d3
VS
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
a848cd7e
SC
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } &&
6ebeb4c7 23798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; } &&
23804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ac_cv_lib_png_png_check_sig=yes
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815ac_cv_lib_png_png_check_sig=no
23816fi
ac1cb8d3
VS
23817rm -f conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23819LIBS=$ac_check_lib_save_LIBS
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23822echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23823if test $ac_cv_lib_png_png_check_sig = yes; then
23824 PNG_LINK=" -lpng -lz"
23825fi
23826
23827 fi
23828
23829 if test "x$PNG_LINK" = "x" ; then
23830 if test "$wxUSE_LIBPNG" = "sys" ; then
23831 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23832echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23833 { (exit 1); exit 1; }; }
23834 else
23835 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23836echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23837 wxUSE_LIBPNG=builtin
23838 fi
23839 else
23840 wxUSE_LIBPNG=sys
23841 fi
23842 fi
23843 fi
23844
23845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23846fi
23847
23848
23849JPEG_LINK=
23850if test "$wxUSE_LIBJPEG" != "no" ; then
23851 cat >>confdefs.h <<\_ACEOF
23852#define wxUSE_LIBJPEG 1
23853_ACEOF
23854
23855
23856 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23857 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23858echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23859 wxUSE_LIBJPEG=sys
23860 fi
23861
23862 if test "$wxUSE_MGL" != 1 ; then
23863 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23864 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23865echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23866 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875
23876 #undef HAVE_STDLIB_H
23877 #include <stdio.h>
23878 #include <jpeglib.h>
23879
23880int
23881main ()
23882{
23883
23884
23885 ;
23886 return 0;
23887}
23888_ACEOF
23889rm -f conftest.$ac_objext
23890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23891 (eval $ac_compile) 2>conftest.er1
a848cd7e 23892 ac_status=$?
ac1cb8d3
VS
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
a848cd7e
SC
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
6ebeb4c7 23898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 ac_cv_header_jpeglib_h=yes
23911else
23912 echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915ac_cv_header_jpeglib_h=no
23916
23917fi
ac1cb8d3 23918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23919
23920fi
23921
23922 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23923echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23924
23925 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23926 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23927echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23928if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930else
23931 ac_check_lib_save_LIBS=$LIBS
23932LIBS="-ljpeg $LIBS"
23933cat >conftest.$ac_ext <<_ACEOF
23934/* confdefs.h. */
23935_ACEOF
23936cat confdefs.h >>conftest.$ac_ext
23937cat >>conftest.$ac_ext <<_ACEOF
23938/* end confdefs.h. */
23939
23940/* Override any gcc2 internal prototype to avoid an error. */
23941#ifdef __cplusplus
23942extern "C"
23943#endif
23944/* We use char because int might match the return type of a gcc2
23945 builtin and then its argument prototype would still apply. */
23946char jpeg_read_header ();
23947int
23948main ()
23949{
23950jpeg_read_header ();
23951 ;
23952 return 0;
23953}
23954_ACEOF
23955rm -f conftest.$ac_objext conftest$ac_exeext
23956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23957 (eval $ac_link) 2>conftest.er1
a848cd7e 23958 ac_status=$?
ac1cb8d3
VS
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
a848cd7e
SC
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
6ebeb4c7 23964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_cv_lib_jpeg_jpeg_read_header=yes
23977else
23978 echo "$as_me: failed program was:" >&5
23979sed 's/^/| /' conftest.$ac_ext >&5
23980
23981ac_cv_lib_jpeg_jpeg_read_header=no
23982fi
ac1cb8d3
VS
23983rm -f conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23985LIBS=$ac_check_lib_save_LIBS
23986fi
23987echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23988echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23989if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23990 JPEG_LINK=" -ljpeg"
23991fi
23992
23993 fi
23994
23995 if test "x$JPEG_LINK" = "x" ; then
23996 if test "$wxUSE_LIBJPEG" = "sys" ; then
23997 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23998echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23999 { (exit 1); exit 1; }; }
24000 else
24001 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24002echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24003 wxUSE_LIBJPEG=builtin
24004 fi
24005 else
24006 wxUSE_LIBJPEG=sys
24007 fi
24008 fi
24009 fi
24010fi
24011
24012
24013TIFF_LINK=
24014TIFF_PREREQ_LINKS=-lm
24015if test "$wxUSE_LIBTIFF" != "no" ; then
24016 cat >>confdefs.h <<\_ACEOF
24017#define wxUSE_LIBTIFF 1
24018_ACEOF
24019
24020
24021 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24022 if test "$wxUSE_LIBJPEG" = "sys"; then
24023 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24024 fi
24025 if test "$wxUSE_ZLIB" = "sys"; then
24026 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24027 fi
24028 if test "${ac_cv_header_tiffio_h+set}" = set; then
24029 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24030echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24031if test "${ac_cv_header_tiffio_h+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033fi
24034echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24035echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24036else
24037 # Is the header compilable?
24038echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24039echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24040cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
24046$ac_includes_default
24047#include <tiffio.h>
24048_ACEOF
24049rm -f conftest.$ac_objext
24050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24051 (eval $ac_compile) 2>conftest.er1
a848cd7e 24052 ac_status=$?
ac1cb8d3
VS
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
a848cd7e
SC
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } &&
6ebeb4c7 24058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 ac_header_compiler=yes
24071else
24072 echo "$as_me: failed program was:" >&5
24073sed 's/^/| /' conftest.$ac_ext >&5
24074
24075ac_header_compiler=no
24076fi
ac1cb8d3 24077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24079echo "${ECHO_T}$ac_header_compiler" >&6
24080
24081# Is the header present?
24082echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24083echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24084cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090#include <tiffio.h>
24091_ACEOF
24092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } >/dev/null; then
24100 if test -s conftest.err; then
24101 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24103 else
24104 ac_cpp_err=
24105 fi
24106else
24107 ac_cpp_err=yes
24108fi
24109if test -z "$ac_cpp_err"; then
24110 ac_header_preproc=yes
24111else
24112 echo "$as_me: failed program was:" >&5
24113sed 's/^/| /' conftest.$ac_ext >&5
24114
24115 ac_header_preproc=no
24116fi
24117rm -f conftest.err conftest.$ac_ext
24118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24119echo "${ECHO_T}$ac_header_preproc" >&6
24120
24121# So? What about this header?
ac1cb8d3
VS
24122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24123 yes:no: )
a848cd7e
SC
24124 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24125echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24126 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24127echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24128 ac_header_preproc=yes
a848cd7e 24129 ;;
ac1cb8d3 24130 no:yes:* )
a848cd7e
SC
24131 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24132echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24133 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24134echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24135 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24136echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24137 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24138echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24139 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24140echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24141 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24142echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24143 (
24144 cat <<\_ASBOX
ac1cb8d3
VS
24145## ----------------------------------------- ##
24146## Report this to wx-dev@lists.wxwidgets.org ##
24147## ----------------------------------------- ##
a848cd7e
SC
24148_ASBOX
24149 ) |
24150 sed "s/^/$as_me: WARNING: /" >&2
24151 ;;
24152esac
24153echo "$as_me:$LINENO: checking for tiffio.h" >&5
24154echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24155if test "${ac_cv_header_tiffio_h+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157else
24158 ac_cv_header_tiffio_h=$ac_header_preproc
24159fi
24160echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24161echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24162
24163fi
24164if test $ac_cv_header_tiffio_h = yes; then
24165
24166 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24167echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24168if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170else
24171 ac_check_lib_save_LIBS=$LIBS
24172LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24173cat >conftest.$ac_ext <<_ACEOF
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179
24180/* Override any gcc2 internal prototype to avoid an error. */
24181#ifdef __cplusplus
24182extern "C"
24183#endif
24184/* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24186char TIFFError ();
24187int
24188main ()
24189{
24190TIFFError ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195rm -f conftest.$ac_objext conftest$ac_exeext
24196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24197 (eval $ac_link) 2>conftest.er1
a848cd7e 24198 ac_status=$?
ac1cb8d3
VS
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
a848cd7e
SC
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } &&
6ebeb4c7 24204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 ac_cv_lib_tiff_TIFFError=yes
24217else
24218 echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221ac_cv_lib_tiff_TIFFError=no
24222fi
ac1cb8d3
VS
24223rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24225LIBS=$ac_check_lib_save_LIBS
24226fi
24227echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24228echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24229if test $ac_cv_lib_tiff_TIFFError = yes; then
24230 TIFF_LINK=" -ltiff"
24231fi
24232
24233
24234
24235fi
24236
24237
24238
24239 if test "x$TIFF_LINK" = "x" ; then
24240 if test "$wxUSE_LIBTIFF" = "sys" ; then
24241 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24242echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24243 { (exit 1); exit 1; }; }
24244 else
24245 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24246echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24247 wxUSE_LIBTIFF=builtin
24248 fi
24249 else
24250 wxUSE_LIBTIFF=sys
24251 fi
24252 fi
24253fi
24254
24255
47a7e797
MW
24256if test "$wxUSE_WCHAR_T" != "yes"; then
24257 if test "$wxUSE_EXPAT" != "no"; then
24258 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24259echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24260 wxUSE_EXPAT=no
24261 fi
24262 if test "$wxUSE_XML" != "no"; then
24263 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24264echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24265 wxUSE_XML=no
24266 fi
24267fi
24268
a848cd7e
SC
24269if test "$wxUSE_EXPAT" != "no"; then
24270 wxUSE_XML=yes
24271 cat >>confdefs.h <<\_ACEOF
24272#define wxUSE_EXPAT 1
24273_ACEOF
24274
24275 cat >>confdefs.h <<\_ACEOF
24276#define wxUSE_XML 1
24277_ACEOF
24278
24279
24280 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24281 if test "${ac_cv_header_expat_h+set}" = set; then
24282 echo "$as_me:$LINENO: checking for expat.h" >&5
24283echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24284if test "${ac_cv_header_expat_h+set}" = set; then
24285 echo $ECHO_N "(cached) $ECHO_C" >&6
24286fi
24287echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24288echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24289else
24290 # Is the header compilable?
24291echo "$as_me:$LINENO: checking expat.h usability" >&5
24292echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24293cat >conftest.$ac_ext <<_ACEOF
24294/* confdefs.h. */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h. */
24299$ac_includes_default
24300#include <expat.h>
24301_ACEOF
24302rm -f conftest.$ac_objext
24303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24304 (eval $ac_compile) 2>conftest.er1
a848cd7e 24305 ac_status=$?
ac1cb8d3
VS
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
a848cd7e
SC
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } &&
6ebeb4c7 24311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_header_compiler=yes
24324else
24325 echo "$as_me: failed program was:" >&5
24326sed 's/^/| /' conftest.$ac_ext >&5
24327
24328ac_header_compiler=no
24329fi
ac1cb8d3 24330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24332echo "${ECHO_T}$ac_header_compiler" >&6
24333
24334# Is the header present?
24335echo "$as_me:$LINENO: checking expat.h presence" >&5
24336echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24337cat >conftest.$ac_ext <<_ACEOF
24338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
24343#include <expat.h>
24344_ACEOF
24345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } >/dev/null; then
24353 if test -s conftest.err; then
24354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24356 else
24357 ac_cpp_err=
24358 fi
24359else
24360 ac_cpp_err=yes
24361fi
24362if test -z "$ac_cpp_err"; then
24363 ac_header_preproc=yes
24364else
24365 echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
24368 ac_header_preproc=no
24369fi
24370rm -f conftest.err conftest.$ac_ext
24371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24372echo "${ECHO_T}$ac_header_preproc" >&6
24373
24374# So? What about this header?
ac1cb8d3
VS
24375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24376 yes:no: )
a848cd7e
SC
24377 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24378echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24379 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24380echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24381 ac_header_preproc=yes
a848cd7e 24382 ;;
ac1cb8d3 24383 no:yes:* )
a848cd7e
SC
24384 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24385echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24386 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24387echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24388 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24389echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24390 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24391echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24392 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24393echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24394 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24395echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24396 (
24397 cat <<\_ASBOX
ac1cb8d3
VS
24398## ----------------------------------------- ##
24399## Report this to wx-dev@lists.wxwidgets.org ##
24400## ----------------------------------------- ##
a848cd7e
SC
24401_ASBOX
24402 ) |
24403 sed "s/^/$as_me: WARNING: /" >&2
24404 ;;
24405esac
24406echo "$as_me:$LINENO: checking for expat.h" >&5
24407echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24408if test "${ac_cv_header_expat_h+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410else
24411 ac_cv_header_expat_h=$ac_header_preproc
24412fi
24413echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24414echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24415
24416fi
24417if test $ac_cv_header_expat_h = yes; then
24418 found_expat_h=1
24419fi
24420
24421
24422 if test "x$found_expat_h" = "x1"; then
24423 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24424echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24425if test "${wx_cv_expat_is_not_broken+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24427else
24428
24429
24430
24431 ac_ext=cc
24432ac_cpp='$CXXCPP $CPPFLAGS'
24433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24436
24437 cat >conftest.$ac_ext <<_ACEOF
24438/* confdefs.h. */
24439_ACEOF
24440cat confdefs.h >>conftest.$ac_ext
24441cat >>conftest.$ac_ext <<_ACEOF
24442/* end confdefs.h. */
24443#include <expat.h>
24444int
24445main ()
24446{
24447
24448 ;
24449 return 0;
24450}
24451_ACEOF
24452rm -f conftest.$ac_objext
24453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24454 (eval $ac_compile) 2>conftest.er1
a848cd7e 24455 ac_status=$?
ac1cb8d3
VS
24456 grep -v '^ *+' conftest.er1 >conftest.err
24457 rm -f conftest.er1
24458 cat conftest.err >&5
a848cd7e
SC
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); } &&
6ebeb4c7 24461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; } &&
24467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 wx_cv_expat_is_not_broken=yes
24474else
24475 echo "$as_me: failed program was:" >&5
24476sed 's/^/| /' conftest.$ac_ext >&5
24477
24478wx_cv_expat_is_not_broken=no
24479
24480fi
ac1cb8d3 24481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24482 ac_ext=c
24483ac_cpp='$CPP $CPPFLAGS'
24484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24486ac_compiler_gnu=$ac_cv_c_compiler_gnu
24487
24488
24489
24490fi
24491echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24492echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24493 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24494 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24495echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24496if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24497 echo $ECHO_N "(cached) $ECHO_C" >&6
24498else
24499 ac_check_lib_save_LIBS=$LIBS
24500LIBS="-lexpat $LIBS"
24501cat >conftest.$ac_ext <<_ACEOF
24502/* confdefs.h. */
24503_ACEOF
24504cat confdefs.h >>conftest.$ac_ext
24505cat >>conftest.$ac_ext <<_ACEOF
24506/* end confdefs.h. */
24507
24508/* Override any gcc2 internal prototype to avoid an error. */
24509#ifdef __cplusplus
24510extern "C"
24511#endif
24512/* We use char because int might match the return type of a gcc2
24513 builtin and then its argument prototype would still apply. */
24514char XML_ParserCreate ();
24515int
24516main ()
24517{
24518XML_ParserCreate ();
24519 ;
24520 return 0;
24521}
24522_ACEOF
24523rm -f conftest.$ac_objext conftest$ac_exeext
24524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24525 (eval $ac_link) 2>conftest.er1
a848cd7e 24526 ac_status=$?
ac1cb8d3
VS
24527 grep -v '^ *+' conftest.er1 >conftest.err
24528 rm -f conftest.er1
24529 cat conftest.err >&5
a848cd7e
SC
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } &&
6ebeb4c7 24532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; } &&
24538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24544 ac_cv_lib_expat_XML_ParserCreate=yes
24545else
24546 echo "$as_me: failed program was:" >&5
24547sed 's/^/| /' conftest.$ac_ext >&5
24548
24549ac_cv_lib_expat_XML_ParserCreate=no
24550fi
ac1cb8d3
VS
24551rm -f conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24553LIBS=$ac_check_lib_save_LIBS
24554fi
24555echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24556echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24557if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24558 EXPAT_LINK=" -lexpat"
24559fi
24560
24561 fi
24562 fi
24563 if test "x$EXPAT_LINK" = "x" ; then
24564 if test "$wxUSE_EXPAT" = "sys" ; then
24565 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24566echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24567 { (exit 1); exit 1; }; }
24568 else
24569 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24570echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24571 wxUSE_EXPAT=builtin
24572 fi
24573 else
24574 wxUSE_EXPAT=sys
24575 fi
24576 fi
24577 if test "$wxUSE_EXPAT" = "builtin" ; then
24578
24579
24580subdirs="$subdirs src/expat"
24581
24582 fi
24583fi
24584
24585
24586
24587if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24588 if test "${ac_cv_header_mspack_h+set}" = set; then
24589 echo "$as_me:$LINENO: checking for mspack.h" >&5
24590echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24591if test "${ac_cv_header_mspack_h+set}" = set; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24593fi
24594echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24595echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24596else
24597 # Is the header compilable?
24598echo "$as_me:$LINENO: checking mspack.h usability" >&5
24599echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24600cat >conftest.$ac_ext <<_ACEOF
24601/* confdefs.h. */
24602_ACEOF
24603cat confdefs.h >>conftest.$ac_ext
24604cat >>conftest.$ac_ext <<_ACEOF
24605/* end confdefs.h. */
24606$ac_includes_default
24607#include <mspack.h>
24608_ACEOF
24609rm -f conftest.$ac_objext
24610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24611 (eval $ac_compile) 2>conftest.er1
a848cd7e 24612 ac_status=$?
ac1cb8d3
VS
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
a848cd7e
SC
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
6ebeb4c7 24618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); }; } &&
24624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; }; then
24630 ac_header_compiler=yes
24631else
24632 echo "$as_me: failed program was:" >&5
24633sed 's/^/| /' conftest.$ac_ext >&5
24634
24635ac_header_compiler=no
24636fi
ac1cb8d3 24637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24639echo "${ECHO_T}$ac_header_compiler" >&6
24640
24641# Is the header present?
24642echo "$as_me:$LINENO: checking mspack.h presence" >&5
24643echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24644cat >conftest.$ac_ext <<_ACEOF
24645/* confdefs.h. */
24646_ACEOF
24647cat confdefs.h >>conftest.$ac_ext
24648cat >>conftest.$ac_ext <<_ACEOF
24649/* end confdefs.h. */
24650#include <mspack.h>
24651_ACEOF
24652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24654 ac_status=$?
24655 grep -v '^ *+' conftest.er1 >conftest.err
24656 rm -f conftest.er1
24657 cat conftest.err >&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } >/dev/null; then
24660 if test -s conftest.err; then
24661 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24663 else
24664 ac_cpp_err=
24665 fi
24666else
24667 ac_cpp_err=yes
24668fi
24669if test -z "$ac_cpp_err"; then
24670 ac_header_preproc=yes
24671else
24672 echo "$as_me: failed program was:" >&5
24673sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_preproc=no
24676fi
24677rm -f conftest.err conftest.$ac_ext
24678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24679echo "${ECHO_T}$ac_header_preproc" >&6
24680
24681# So? What about this header?
ac1cb8d3
VS
24682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24683 yes:no: )
a848cd7e
SC
24684 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24685echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24686 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24687echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24688 ac_header_preproc=yes
a848cd7e 24689 ;;
ac1cb8d3 24690 no:yes:* )
a848cd7e
SC
24691 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24692echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24693 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24694echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24695 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24696echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24698echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24699 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24700echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24701 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24702echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24703 (
24704 cat <<\_ASBOX
ac1cb8d3
VS
24705## ----------------------------------------- ##
24706## Report this to wx-dev@lists.wxwidgets.org ##
24707## ----------------------------------------- ##
a848cd7e
SC
24708_ASBOX
24709 ) |
24710 sed "s/^/$as_me: WARNING: /" >&2
24711 ;;
24712esac
24713echo "$as_me:$LINENO: checking for mspack.h" >&5
24714echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24715if test "${ac_cv_header_mspack_h+set}" = set; then
24716 echo $ECHO_N "(cached) $ECHO_C" >&6
24717else
24718 ac_cv_header_mspack_h=$ac_header_preproc
24719fi
24720echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24721echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24722
24723fi
24724if test $ac_cv_header_mspack_h = yes; then
24725 found_mspack_h=1
24726fi
24727
24728
24729 if test "x$found_mspack_h" = "x1"; then
24730 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24731echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24732if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 ac_check_lib_save_LIBS=$LIBS
24736LIBS="-lmspack $LIBS"
24737cat >conftest.$ac_ext <<_ACEOF
24738/* confdefs.h. */
24739_ACEOF
24740cat confdefs.h >>conftest.$ac_ext
24741cat >>conftest.$ac_ext <<_ACEOF
24742/* end confdefs.h. */
24743
24744/* Override any gcc2 internal prototype to avoid an error. */
24745#ifdef __cplusplus
24746extern "C"
24747#endif
24748/* We use char because int might match the return type of a gcc2
24749 builtin and then its argument prototype would still apply. */
24750char mspack_create_chm_decompressor ();
24751int
24752main ()
24753{
24754mspack_create_chm_decompressor ();
24755 ;
24756 return 0;
24757}
24758_ACEOF
24759rm -f conftest.$ac_objext conftest$ac_exeext
24760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24761 (eval $ac_link) 2>conftest.er1
a848cd7e 24762 ac_status=$?
ac1cb8d3
VS
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
a848cd7e
SC
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
6ebeb4c7 24768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24771 ac_status=$?
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; } &&
24774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24781else
24782 echo "$as_me: failed program was:" >&5
24783sed 's/^/| /' conftest.$ac_ext >&5
24784
24785ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24786fi
ac1cb8d3
VS
24787rm -f conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24789LIBS=$ac_check_lib_save_LIBS
24790fi
24791echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24792echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24793if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24794 MSPACK_LINK=" -lmspack"
24795fi
24796
24797 fi
24798 if test "x$MSPACK_LINK" = "x" ; then
24799 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24800 fi
24801fi
24802
24803if test "$wxUSE_LIBMSPACK" != "no"; then
24804 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24805#define wxUSE_LIBMSPACK 1
24806_ACEOF
24807
a848cd7e
SC
24808fi
24809
24810
24811
24812AFMINSTALL=
24813WIN32INSTALL=
24814
24815TOOLKIT=
24816TOOLKIT_INCLUDE=
24817WIDGET_SET=
24818
24819if test "$USE_WIN32" = 1 ; then
24820
24821for ac_header in w32api.h
24822do
24823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24824if eval "test \"\${$as_ac_Header+set}\" = set"; then
24825 echo "$as_me:$LINENO: checking for $ac_header" >&5
24826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24827if eval "test \"\${$as_ac_Header+set}\" = set"; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24829fi
24830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24832else
24833 # Is the header compilable?
24834echo "$as_me:$LINENO: checking $ac_header usability" >&5
24835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24836cat >conftest.$ac_ext <<_ACEOF
24837/* confdefs.h. */
24838_ACEOF
24839cat confdefs.h >>conftest.$ac_ext
24840cat >>conftest.$ac_ext <<_ACEOF
24841/* end confdefs.h. */
24842$ac_includes_default
24843#include <$ac_header>
24844_ACEOF
24845rm -f conftest.$ac_objext
24846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24847 (eval $ac_compile) 2>conftest.er1
a848cd7e 24848 ac_status=$?
ac1cb8d3
VS
24849 grep -v '^ *+' conftest.er1 >conftest.err
24850 rm -f conftest.er1
24851 cat conftest.err >&5
a848cd7e
SC
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
6ebeb4c7 24854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 ac_header_compiler=yes
24867else
24868 echo "$as_me: failed program was:" >&5
24869sed 's/^/| /' conftest.$ac_ext >&5
24870
24871ac_header_compiler=no
24872fi
ac1cb8d3 24873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24875echo "${ECHO_T}$ac_header_compiler" >&6
24876
24877# Is the header present?
24878echo "$as_me:$LINENO: checking $ac_header presence" >&5
24879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24880cat >conftest.$ac_ext <<_ACEOF
24881/* confdefs.h. */
24882_ACEOF
24883cat confdefs.h >>conftest.$ac_ext
24884cat >>conftest.$ac_ext <<_ACEOF
24885/* end confdefs.h. */
24886#include <$ac_header>
24887_ACEOF
24888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24890 ac_status=$?
24891 grep -v '^ *+' conftest.er1 >conftest.err
24892 rm -f conftest.er1
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } >/dev/null; then
24896 if test -s conftest.err; then
24897 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24899 else
24900 ac_cpp_err=
24901 fi
24902else
24903 ac_cpp_err=yes
24904fi
24905if test -z "$ac_cpp_err"; then
24906 ac_header_preproc=yes
24907else
24908 echo "$as_me: failed program was:" >&5
24909sed 's/^/| /' conftest.$ac_ext >&5
24910
24911 ac_header_preproc=no
24912fi
24913rm -f conftest.err conftest.$ac_ext
24914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24915echo "${ECHO_T}$ac_header_preproc" >&6
24916
24917# So? What about this header?
ac1cb8d3
VS
24918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24919 yes:no: )
a848cd7e
SC
24920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24924 ac_header_preproc=yes
a848cd7e 24925 ;;
ac1cb8d3 24926 no:yes:* )
a848cd7e
SC
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24939 (
24940 cat <<\_ASBOX
ac1cb8d3
VS
24941## ----------------------------------------- ##
24942## Report this to wx-dev@lists.wxwidgets.org ##
24943## ----------------------------------------- ##
a848cd7e
SC
24944_ASBOX
24945 ) |
24946 sed "s/^/$as_me: WARNING: /" >&2
24947 ;;
24948esac
24949echo "$as_me:$LINENO: checking for $ac_header" >&5
24950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24951if eval "test \"\${$as_ac_Header+set}\" = set"; then
24952 echo $ECHO_N "(cached) $ECHO_C" >&6
24953else
ac1cb8d3 24954 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24955fi
24956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24958
24959fi
24960if test `eval echo '${'$as_ac_Header'}'` = yes; then
24961 cat >>confdefs.h <<_ACEOF
24962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24963_ACEOF
24964
24965fi
24966
24967done
24968
24969 if test "${ac_cv_header_windows_h+set}" = set; then
24970 echo "$as_me:$LINENO: checking for windows.h" >&5
24971echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24972if test "${ac_cv_header_windows_h+set}" = set; then
24973 echo $ECHO_N "(cached) $ECHO_C" >&6
24974fi
24975echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24976echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24977else
24978 # Is the header compilable?
24979echo "$as_me:$LINENO: checking windows.h usability" >&5
24980echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24981cat >conftest.$ac_ext <<_ACEOF
24982/* confdefs.h. */
24983_ACEOF
24984cat confdefs.h >>conftest.$ac_ext
24985cat >>conftest.$ac_ext <<_ACEOF
24986/* end confdefs.h. */
24987$ac_includes_default
24988#include <windows.h>
24989_ACEOF
24990rm -f conftest.$ac_objext
24991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24992 (eval $ac_compile) 2>conftest.er1
a848cd7e 24993 ac_status=$?
ac1cb8d3
VS
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
a848cd7e
SC
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
6ebeb4c7 24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_header_compiler=yes
25012else
25013 echo "$as_me: failed program was:" >&5
25014sed 's/^/| /' conftest.$ac_ext >&5
25015
25016ac_header_compiler=no
25017fi
ac1cb8d3 25018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25020echo "${ECHO_T}$ac_header_compiler" >&6
25021
25022# Is the header present?
25023echo "$as_me:$LINENO: checking windows.h presence" >&5
25024echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25025cat >conftest.$ac_ext <<_ACEOF
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031#include <windows.h>
25032_ACEOF
25033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } >/dev/null; then
25041 if test -s conftest.err; then
25042 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25044 else
25045 ac_cpp_err=
25046 fi
25047else
25048 ac_cpp_err=yes
25049fi
25050if test -z "$ac_cpp_err"; then
25051 ac_header_preproc=yes
25052else
25053 echo "$as_me: failed program was:" >&5
25054sed 's/^/| /' conftest.$ac_ext >&5
25055
25056 ac_header_preproc=no
25057fi
25058rm -f conftest.err conftest.$ac_ext
25059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060echo "${ECHO_T}$ac_header_preproc" >&6
25061
25062# So? What about this header?
ac1cb8d3
VS
25063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25064 yes:no: )
a848cd7e
SC
25065 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25066echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25067 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25068echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25069 ac_header_preproc=yes
a848cd7e 25070 ;;
ac1cb8d3 25071 no:yes:* )
a848cd7e
SC
25072 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25073echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25074 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25075echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25077echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25079echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25080 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25081echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25082 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25083echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25084 (
25085 cat <<\_ASBOX
ac1cb8d3
VS
25086## ----------------------------------------- ##
25087## Report this to wx-dev@lists.wxwidgets.org ##
25088## ----------------------------------------- ##
a848cd7e
SC
25089_ASBOX
25090 ) |
25091 sed "s/^/$as_me: WARNING: /" >&2
25092 ;;
25093esac
25094echo "$as_me:$LINENO: checking for windows.h" >&5
25095echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25096if test "${ac_cv_header_windows_h+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_cv_header_windows_h=$ac_header_preproc
25100fi
25101echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25102echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25103
25104fi
25105if test $ac_cv_header_windows_h = yes; then
25106 :
25107else
25108
25109 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25110echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25111 { (exit 1); exit 1; }; }
25112
25113fi
25114
25115
25116
25117 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25118
25119 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25120 LIBS="$LIBS -loleacc"
25121 fi
25122
25123 case "${host}" in
25124 *-*-cygwin* )
25125 LIBS="$LIBS -lkernel32 -luser32"
25126 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25127 esac
25128
25129 if test "$wxUSE_ODBC" = "sys" ; then
25130 wxUSE_ODBC = "yes"
25131 fi
25132 if test "$wxUSE_ODBC" = "yes" ; then
25133 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25134 cat >>confdefs.h <<\_ACEOF
25135#define wxUSE_ODBC 1
25136_ACEOF
25137
25138 fi
25139
25140 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25141 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25142
25143 WIN32INSTALL=win32install
25144fi
25145
25146if test "$wxUSE_GUI" = "yes"; then
25147 USE_GUI=1
25148
25149 GUI_TK_LIBRARY=
25150
25151 WXGTK12=
25152 WXGTK127=
25153 WXGTK20=
25154 WXGPE=
25155
207bc66c
RN
25156 if test "$wxUSE_COCOA" = 1 ; then
25157 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25158 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25159echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25160 wxUSE_PRINTING_ARCHITECTURE=no
25161 fi
25162 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25163 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25164echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25165 wxUSE_DRAG_AND_DROP=no
25166 fi
25167 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25168 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25169echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25170 wxUSE_DRAGIMAGE=no
25171 fi
25172 fi
25173
a848cd7e
SC
25174 if test "$wxUSE_MSW" = 1 ; then
25175 TOOLKIT=MSW
25176 GUIDIST=MSW_DIST
25177
ceec2216 25178 case "${host}" in
a848cd7e
SC
25179 *-*-mingw32* )
25180 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25181 esac
25182 fi
25183
25184 if test "$wxUSE_GTK" = 1; then
25185 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25186echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25187
25188 gtk_version_cached=1
25189 if test "${wx_cv_lib_gtk+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191else
25192
25193 gtk_version_cached=0
25194 echo "$as_me:$LINENO: result: " >&5
25195echo "${ECHO_T}" >&6
25196
25197 GTK_MODULES=
25198 if test "$wxUSE_THREADS" = "yes"; then
25199 GTK_MODULES=gthread
25200 fi
25201
f597b41c 25202 wx_cv_lib_gtk=
5001df0d
MW
25203 if test "x$wxGTK_VERSION" != "x1"
25204 then
25205 case "${host}" in
25206 *-*-solaris2* )
25207 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25208 enable_gtktest=no
25209 fi
25210 esac
25211
a848cd7e
SC
25212 # Check whether --enable-gtktest or --disable-gtktest was given.
25213if test "${enable_gtktest+set}" = set; then
25214 enableval="$enable_gtktest"
25215
25216else
25217 enable_gtktest=yes
25218fi;
25219
25220 pkg_config_args=gtk+-2.0
25221 for module in . $GTK_MODULES
25222 do
25223 case "$module" in
25224 gthread)
25225 pkg_config_args="$pkg_config_args gthread-2.0"
25226 ;;
25227 esac
25228 done
25229
25230 no_gtk=""
25231
25232 # Extract the first word of "pkg-config", so it can be a program name with args.
25233set dummy pkg-config; ac_word=$2
25234echo "$as_me:$LINENO: checking for $ac_word" >&5
25235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239 case $PKG_CONFIG in
25240 [\\/]* | ?:[\\/]*)
25241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25242 ;;
25243 *)
25244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245for as_dir in $PATH
25246do
25247 IFS=$as_save_IFS
25248 test -z "$as_dir" && as_dir=.
25249 for ac_exec_ext in '' $ac_executable_extensions; do
25250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25253 break 2
25254 fi
25255done
25256done
25257
25258 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25259 ;;
25260esac
25261fi
25262PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25263
25264if test -n "$PKG_CONFIG"; then
25265 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25266echo "${ECHO_T}$PKG_CONFIG" >&6
25267else
25268 echo "$as_me:$LINENO: result: no" >&5
25269echo "${ECHO_T}no" >&6
25270fi
25271
25272
25273 if test x$PKG_CONFIG != xno ; then
25274 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25275 :
25276 else
c2218763 25277 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25278 no_gtk=yes
25279 PKG_CONFIG=no
25280 fi
25281 else
25282 no_gtk=yes
25283 fi
25284
25285 min_gtk_version=2.0.0
25286 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25287echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25288
25289 if test x$PKG_CONFIG != xno ; then
25290 ## don't try to run the test against uninstalled libtool libs
25291 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25292 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25293 enable_gtktest=no
25294 fi
25295
25296 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25297 :
25298 else
25299 no_gtk=yes
25300 fi
25301 fi
25302
25303 if test x"$no_gtk" = x ; then
25304 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25305 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25306 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25307 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25308 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25310 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25312 if test "x$enable_gtktest" = "xyes" ; then
25313 ac_save_CFLAGS="$CFLAGS"
25314 ac_save_LIBS="$LIBS"
25315 CFLAGS="$CFLAGS $GTK_CFLAGS"
25316 LIBS="$GTK_LIBS $LIBS"
25317 rm -f conf.gtktest
25318 if test "$cross_compiling" = yes; then
25319 echo $ac_n "cross compiling; assumed OK... $ac_c"
25320else
25321 cat >conftest.$ac_ext <<_ACEOF
25322/* confdefs.h. */
25323_ACEOF
25324cat confdefs.h >>conftest.$ac_ext
25325cat >>conftest.$ac_ext <<_ACEOF
25326/* end confdefs.h. */
25327
25328#include <gtk/gtk.h>
25329#include <stdio.h>
25330#include <stdlib.h>
25331
25332int
25333main ()
25334{
25335 int major, minor, micro;
25336 char *tmp_version;
25337
25338 system ("touch conf.gtktest");
25339
25340 /* HP/UX 9 (%@#!) writes to sscanf strings */
25341 tmp_version = g_strdup("$min_gtk_version");
25342 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25343 printf("%s, bad version string\n", "$min_gtk_version");
25344 exit(1);
25345 }
25346
25347 if ((gtk_major_version != $gtk_config_major_version) ||
25348 (gtk_minor_version != $gtk_config_minor_version) ||
25349 (gtk_micro_version != $gtk_config_micro_version))
25350 {
25351 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25352 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25353 gtk_major_version, gtk_minor_version, gtk_micro_version);
25354 printf ("*** was found! If pkg-config was correct, then it is best\n");
25355 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25356 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25357 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25358 printf("*** required on your system.\n");
25359 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25360 printf("*** to point to the correct configuration files\n");
25361 }
25362 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25363 (gtk_minor_version != GTK_MINOR_VERSION) ||
25364 (gtk_micro_version != GTK_MICRO_VERSION))
25365 {
25366 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25367 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25368 printf("*** library (version %d.%d.%d)\n",
25369 gtk_major_version, gtk_minor_version, gtk_micro_version);
25370 }
25371 else
25372 {
25373 if ((gtk_major_version > major) ||
25374 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25375 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25376 {
25377 return 0;
25378 }
25379 else
25380 {
25381 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25382 gtk_major_version, gtk_minor_version, gtk_micro_version);
25383 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25384 major, minor, micro);
25385 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25386 printf("***\n");
25387 printf("*** If you have already installed a sufficiently new version, this error\n");
25388 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25389 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25390 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25391 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25392 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25393 printf("*** so that the correct libraries are found at run-time))\n");
25394 }
25395 }
25396 return 1;
25397}
25398
25399_ACEOF
25400rm -f conftest$ac_exeext
25401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25402 (eval $ac_link) 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 :
25412else
25413 echo "$as_me: program exited with status $ac_status" >&5
25414echo "$as_me: failed program was:" >&5
25415sed 's/^/| /' conftest.$ac_ext >&5
25416
25417( exit $ac_status )
25418no_gtk=yes
25419fi
ac1cb8d3 25420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25421fi
25422 CFLAGS="$ac_save_CFLAGS"
25423 LIBS="$ac_save_LIBS"
25424 fi
25425 fi
25426 if test "x$no_gtk" = x ; then
25427 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25428echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25429 wx_cv_lib_gtk=2.0
25430 else
25431 echo "$as_me:$LINENO: result: no" >&5
25432echo "${ECHO_T}no" >&6
25433 if test "$PKG_CONFIG" = "no" ; then
25434 echo "*** A new enough version of pkg-config was not found."
25435 echo "*** See http://pkgconfig.sourceforge.net"
25436 else
25437 if test -f conf.gtktest ; then
25438 :
25439 else
25440 echo "*** Could not run GTK+ test program, checking why..."
25441 ac_save_CFLAGS="$CFLAGS"
25442 ac_save_LIBS="$LIBS"
25443 CFLAGS="$CFLAGS $GTK_CFLAGS"
25444 LIBS="$LIBS $GTK_LIBS"
25445 cat >conftest.$ac_ext <<_ACEOF
25446/* confdefs.h. */
25447_ACEOF
25448cat confdefs.h >>conftest.$ac_ext
25449cat >>conftest.$ac_ext <<_ACEOF
25450/* end confdefs.h. */
25451
25452#include <gtk/gtk.h>
25453#include <stdio.h>
25454
25455int
25456main ()
25457{
25458 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25459 ;
25460 return 0;
25461}
25462_ACEOF
25463rm -f conftest.$ac_objext conftest$ac_exeext
25464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25465 (eval $ac_link) 2>conftest.er1
a848cd7e 25466 ac_status=$?
ac1cb8d3
VS
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
a848cd7e
SC
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
6ebeb4c7 25472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; } &&
25478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 echo "*** The test program compiled, but did not run. This usually means"
25485 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25486 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25487 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25488 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25489 echo "*** is required on your system"
25490 echo "***"
25491 echo "*** If you have an old version installed, it is best to remove it, although"
25492 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25493else
25494 echo "$as_me: failed program was:" >&5
25495sed 's/^/| /' conftest.$ac_ext >&5
25496
25497 echo "*** The test program failed to compile or link. See the file config.log for the"
25498 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25499fi
ac1cb8d3
VS
25500rm -f conftest.err conftest.$ac_objext \
25501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25502 CFLAGS="$ac_save_CFLAGS"
25503 LIBS="$ac_save_LIBS"
25504 fi
25505 fi
25506 GTK_CFLAGS=""
25507 GTK_LIBS=""
25508 :
25509 fi
25510
25511
25512 rm -f conf.gtktest
25513
5001df0d
MW
25514
25515 case "${host}" in
25516 *-*-solaris2* )
25517 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25518 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
25519 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
25520 fi
25521 if test "$wxUSE_SHARED" != "yes"; then
25522 GTK_LIBS="$GTK_LIBS -lX11"
25523 fi
25524 esac
f597b41c
MW
25525 fi
25526
f34ca037
MW
25527 if test -z "$wx_cv_lib_gtk"; then
25528 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25529
25530# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25531if test "${with_gtk_prefix+set}" = set; then
25532 withval="$with_gtk_prefix"
25533 gtk_config_prefix="$withval"
25534else
25535 gtk_config_prefix=""
25536fi;
25537
25538# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25539if test "${with_gtk_exec_prefix+set}" = set; then
25540 withval="$with_gtk_exec_prefix"
25541 gtk_config_exec_prefix="$withval"
25542else
25543 gtk_config_exec_prefix=""
25544fi;
25545# Check whether --enable-gtktest or --disable-gtktest was given.
25546if test "${enable_gtktest+set}" = set; then
25547 enableval="$enable_gtktest"
25548
25549else
25550 enable_gtktest=yes
25551fi;
25552
25553 for module in . $GTK_MODULES
25554 do
25555 case "$module" in
25556 gthread)
25557 gtk_config_args="$gtk_config_args gthread"
25558 ;;
25559 esac
25560 done
25561
25562 if test x$gtk_config_exec_prefix != x ; then
25563 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25564 if test x${GTK_CONFIG+set} != xset ; then
25565 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25566 fi
25567 fi
25568 if test x$gtk_config_prefix != x ; then
25569 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25570 if test x${GTK_CONFIG+set} != xset ; then
25571 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25572 fi
25573 fi
25574
25575 # Extract the first word of "gtk-config", so it can be a program name with args.
25576set dummy gtk-config; ac_word=$2
25577echo "$as_me:$LINENO: checking for $ac_word" >&5
25578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25579if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582 case $GTK_CONFIG in
25583 [\\/]* | ?:[\\/]*)
25584 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25585 ;;
25586 *)
25587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25588for as_dir in $PATH
25589do
25590 IFS=$as_save_IFS
25591 test -z "$as_dir" && as_dir=.
25592 for ac_exec_ext in '' $ac_executable_extensions; do
25593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25594 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25596 break 2
25597 fi
25598done
25599done
25600
25601 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25602 ;;
25603esac
25604fi
25605GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25606
25607if test -n "$GTK_CONFIG"; then
25608 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25609echo "${ECHO_T}$GTK_CONFIG" >&6
25610else
25611 echo "$as_me:$LINENO: result: no" >&5
25612echo "${ECHO_T}no" >&6
25613fi
25614
25615 min_gtk_version=1.2.7
25616 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25617echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25618 no_gtk=""
25619 if test "$GTK_CONFIG" = "no" ; then
25620 no_gtk=yes
25621 else
25622 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25623 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25624 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25626 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25628 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25629 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25630 if test "x$enable_gtktest" = "xyes" ; then
25631 ac_save_CFLAGS="$CFLAGS"
25632 ac_save_LIBS="$LIBS"
25633 CFLAGS="$CFLAGS $GTK_CFLAGS"
25634 LIBS="$GTK_LIBS $LIBS"
25635 rm -f conf.gtktest
25636 if test "$cross_compiling" = yes; then
25637 echo $ac_n "cross compiling; assumed OK... $ac_c"
25638else
25639 cat >conftest.$ac_ext <<_ACEOF
25640/* confdefs.h. */
25641_ACEOF
25642cat confdefs.h >>conftest.$ac_ext
25643cat >>conftest.$ac_ext <<_ACEOF
25644/* end confdefs.h. */
25645
25646#include <gtk/gtk.h>
25647#include <stdio.h>
25648#include <stdlib.h>
25649
25650int
25651main ()
25652{
25653 int major, minor, micro;
25654 char *tmp_version;
25655
25656 system ("touch conf.gtktest");
25657
25658 /* HP/UX 9 (%@#!) writes to sscanf strings */
25659 tmp_version = g_strdup("$min_gtk_version");
25660 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25661 printf("%s, bad version string\n", "$min_gtk_version");
25662 exit(1);
25663 }
25664
25665 if ((gtk_major_version != $gtk_config_major_version) ||
25666 (gtk_minor_version != $gtk_config_minor_version) ||
25667 (gtk_micro_version != $gtk_config_micro_version))
25668 {
25669 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25670 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25671 gtk_major_version, gtk_minor_version, gtk_micro_version);
25672 printf ("*** was found! If gtk-config was correct, then it is best\n");
25673 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25674 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25675 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25676 printf("*** required on your system.\n");
25677 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25678 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25679 printf("*** before re-running configure\n");
25680 }
25681#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25682 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25683 (gtk_minor_version != GTK_MINOR_VERSION) ||
25684 (gtk_micro_version != GTK_MICRO_VERSION))
25685 {
25686 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25687 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25688 printf("*** library (version %d.%d.%d)\n",
25689 gtk_major_version, gtk_minor_version, gtk_micro_version);
25690 }
25691#endif /* defined (GTK_MAJOR_VERSION) ... */
25692 else
25693 {
25694 if ((gtk_major_version > major) ||
25695 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25696 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25697 {
25698 return 0;
25699 }
25700 else
25701 {
25702 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25703 gtk_major_version, gtk_minor_version, gtk_micro_version);
25704 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25705 major, minor, micro);
25706 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25707 printf("***\n");
25708 printf("*** If you have already installed a sufficiently new version, this error\n");
25709 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25710 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25711 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25712 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25713 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25714 printf("*** so that the correct libraries are found at run-time))\n");
25715 }
25716 }
25717 return 1;
25718}
25719
25720_ACEOF
25721rm -f conftest$ac_exeext
25722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25723 (eval $ac_link) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 :
25733else
25734 echo "$as_me: program exited with status $ac_status" >&5
25735echo "$as_me: failed program was:" >&5
25736sed 's/^/| /' conftest.$ac_ext >&5
25737
25738( exit $ac_status )
25739no_gtk=yes
25740fi
ac1cb8d3 25741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25742fi
25743 CFLAGS="$ac_save_CFLAGS"
25744 LIBS="$ac_save_LIBS"
25745 fi
25746 fi
25747 if test "x$no_gtk" = x ; then
25748 echo "$as_me:$LINENO: result: yes" >&5
25749echo "${ECHO_T}yes" >&6
25750 wx_cv_lib_gtk=1.2.7
25751 else
25752 echo "$as_me:$LINENO: result: no" >&5
25753echo "${ECHO_T}no" >&6
25754 if test "$GTK_CONFIG" = "no" ; then
25755 echo "*** The gtk-config script installed by GTK could not be found"
25756 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25757 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25758 echo "*** full path to gtk-config."
25759 else
25760 if test -f conf.gtktest ; then
25761 :
25762 else
25763 echo "*** Could not run GTK test program, checking why..."
25764 CFLAGS="$CFLAGS $GTK_CFLAGS"
25765 LIBS="$LIBS $GTK_LIBS"
25766 cat >conftest.$ac_ext <<_ACEOF
25767/* confdefs.h. */
25768_ACEOF
25769cat confdefs.h >>conftest.$ac_ext
25770cat >>conftest.$ac_ext <<_ACEOF
25771/* end confdefs.h. */
25772
25773#include <gtk/gtk.h>
25774#include <stdio.h>
25775
25776int
25777main ()
25778{
25779 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25780 ;
25781 return 0;
25782}
25783_ACEOF
25784rm -f conftest.$ac_objext conftest$ac_exeext
25785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25786 (eval $ac_link) 2>conftest.er1
a848cd7e 25787 ac_status=$?
ac1cb8d3
VS
25788 grep -v '^ *+' conftest.er1 >conftest.err
25789 rm -f conftest.er1
25790 cat conftest.err >&5
a848cd7e
SC
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } &&
6ebeb4c7 25793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; } &&
25799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 echo "*** The test program compiled, but did not run. This usually means"
25806 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25807 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25810 echo "*** is required on your system"
25811 echo "***"
25812 echo "*** If you have an old version installed, it is best to remove it, although"
25813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25814 echo "***"
25815 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25816 echo "*** came with the system with the command"
25817 echo "***"
25818 echo "*** rpm --erase --nodeps gtk gtk-devel"
25819else
25820 echo "$as_me: failed program was:" >&5
25821sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 echo "*** The test program failed to compile or link. See the file config.log for the"
25824 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25825 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25826 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25827fi
ac1cb8d3
VS
25828rm -f conftest.err conftest.$ac_objext \
25829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25830 CFLAGS="$ac_save_CFLAGS"
25831 LIBS="$ac_save_LIBS"
25832 fi
25833 fi
25834 GTK_CFLAGS=""
25835 GTK_LIBS=""
25836 :
25837 fi
25838
25839
25840 rm -f conf.gtktest
25841
25842
f34ca037 25843 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25844
25845# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25846if test "${with_gtk_prefix+set}" = set; then
25847 withval="$with_gtk_prefix"
25848 gtk_config_prefix="$withval"
25849else
25850 gtk_config_prefix=""
25851fi;
25852
25853# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25854if test "${with_gtk_exec_prefix+set}" = set; then
25855 withval="$with_gtk_exec_prefix"
25856 gtk_config_exec_prefix="$withval"
25857else
25858 gtk_config_exec_prefix=""
25859fi;
25860# Check whether --enable-gtktest or --disable-gtktest was given.
25861if test "${enable_gtktest+set}" = set; then
25862 enableval="$enable_gtktest"
25863
25864else
25865 enable_gtktest=yes
25866fi;
25867
25868 for module in . $GTK_MODULES
25869 do
25870 case "$module" in
25871 gthread)
25872 gtk_config_args="$gtk_config_args gthread"
25873 ;;
25874 esac
25875 done
25876
25877 if test x$gtk_config_exec_prefix != x ; then
25878 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25879 if test x${GTK_CONFIG+set} != xset ; then
25880 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25881 fi
25882 fi
25883 if test x$gtk_config_prefix != x ; then
25884 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25885 if test x${GTK_CONFIG+set} != xset ; then
25886 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25887 fi
25888 fi
25889
25890 # Extract the first word of "gtk-config", so it can be a program name with args.
25891set dummy gtk-config; ac_word=$2
25892echo "$as_me:$LINENO: checking for $ac_word" >&5
25893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25894if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25896else
25897 case $GTK_CONFIG in
25898 [\\/]* | ?:[\\/]*)
25899 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25900 ;;
25901 *)
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903for as_dir in $PATH
25904do
25905 IFS=$as_save_IFS
25906 test -z "$as_dir" && as_dir=.
25907 for ac_exec_ext in '' $ac_executable_extensions; do
25908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25909 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25911 break 2
25912 fi
25913done
25914done
25915
25916 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25917 ;;
25918esac
25919fi
25920GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25921
25922if test -n "$GTK_CONFIG"; then
25923 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25924echo "${ECHO_T}$GTK_CONFIG" >&6
25925else
25926 echo "$as_me:$LINENO: result: no" >&5
25927echo "${ECHO_T}no" >&6
25928fi
25929
25930 min_gtk_version=1.2.3
25931 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25932echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25933 no_gtk=""
25934 if test "$GTK_CONFIG" = "no" ; then
25935 no_gtk=yes
25936 else
25937 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25938 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25939 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25941 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25942 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25943 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25944 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25945 if test "x$enable_gtktest" = "xyes" ; then
25946 ac_save_CFLAGS="$CFLAGS"
25947 ac_save_LIBS="$LIBS"
25948 CFLAGS="$CFLAGS $GTK_CFLAGS"
25949 LIBS="$GTK_LIBS $LIBS"
25950 rm -f conf.gtktest
25951 if test "$cross_compiling" = yes; then
25952 echo $ac_n "cross compiling; assumed OK... $ac_c"
25953else
25954 cat >conftest.$ac_ext <<_ACEOF
25955/* confdefs.h. */
25956_ACEOF
25957cat confdefs.h >>conftest.$ac_ext
25958cat >>conftest.$ac_ext <<_ACEOF
25959/* end confdefs.h. */
25960
25961#include <gtk/gtk.h>
25962#include <stdio.h>
25963#include <stdlib.h>
25964
25965int
25966main ()
25967{
25968 int major, minor, micro;
25969 char *tmp_version;
25970
25971 system ("touch conf.gtktest");
25972
25973 /* HP/UX 9 (%@#!) writes to sscanf strings */
25974 tmp_version = g_strdup("$min_gtk_version");
25975 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25976 printf("%s, bad version string\n", "$min_gtk_version");
25977 exit(1);
25978 }
25979
25980 if ((gtk_major_version != $gtk_config_major_version) ||
25981 (gtk_minor_version != $gtk_config_minor_version) ||
25982 (gtk_micro_version != $gtk_config_micro_version))
25983 {
25984 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25985 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25986 gtk_major_version, gtk_minor_version, gtk_micro_version);
25987 printf ("*** was found! If gtk-config was correct, then it is best\n");
25988 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25989 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25990 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25991 printf("*** required on your system.\n");
25992 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25993 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25994 printf("*** before re-running configure\n");
25995 }
25996#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25997 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25998 (gtk_minor_version != GTK_MINOR_VERSION) ||
25999 (gtk_micro_version != GTK_MICRO_VERSION))
26000 {
26001 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26002 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26003 printf("*** library (version %d.%d.%d)\n",
26004 gtk_major_version, gtk_minor_version, gtk_micro_version);
26005 }
26006#endif /* defined (GTK_MAJOR_VERSION) ... */
26007 else
26008 {
26009 if ((gtk_major_version > major) ||
26010 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26011 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26012 {
26013 return 0;
26014 }
26015 else
26016 {
26017 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26018 gtk_major_version, gtk_minor_version, gtk_micro_version);
26019 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26020 major, minor, micro);
26021 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26022 printf("***\n");
26023 printf("*** If you have already installed a sufficiently new version, this error\n");
26024 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26025 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26026 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26027 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26028 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26029 printf("*** so that the correct libraries are found at run-time))\n");
26030 }
26031 }
26032 return 1;
26033}
26034
26035_ACEOF
26036rm -f conftest$ac_exeext
26037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26038 (eval $ac_link) 2>&5
26039 ac_status=$?
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 :
26048else
26049 echo "$as_me: program exited with status $ac_status" >&5
26050echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053( exit $ac_status )
26054no_gtk=yes
26055fi
ac1cb8d3 26056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26057fi
26058 CFLAGS="$ac_save_CFLAGS"
26059 LIBS="$ac_save_LIBS"
26060 fi
26061 fi
26062 if test "x$no_gtk" = x ; then
26063 echo "$as_me:$LINENO: result: yes" >&5
26064echo "${ECHO_T}yes" >&6
26065 wx_cv_lib_gtk=1.2.3
26066 else
26067 echo "$as_me:$LINENO: result: no" >&5
26068echo "${ECHO_T}no" >&6
26069 if test "$GTK_CONFIG" = "no" ; then
26070 echo "*** The gtk-config script installed by GTK could not be found"
26071 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26072 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26073 echo "*** full path to gtk-config."
26074 else
26075 if test -f conf.gtktest ; then
26076 :
26077 else
26078 echo "*** Could not run GTK test program, checking why..."
26079 CFLAGS="$CFLAGS $GTK_CFLAGS"
26080 LIBS="$LIBS $GTK_LIBS"
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087
26088#include <gtk/gtk.h>
26089#include <stdio.h>
26090
26091int
26092main ()
26093{
26094 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26095 ;
26096 return 0;
26097}
26098_ACEOF
26099rm -f conftest.$ac_objext conftest$ac_exeext
26100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26101 (eval $ac_link) 2>conftest.er1
a848cd7e 26102 ac_status=$?
ac1cb8d3
VS
26103 grep -v '^ *+' conftest.er1 >conftest.err
26104 rm -f conftest.er1
26105 cat conftest.err >&5
a848cd7e
SC
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); } &&
6ebeb4c7 26108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; } &&
26114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; }; then
26120 echo "*** The test program compiled, but did not run. This usually means"
26121 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26122 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26123 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26124 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26125 echo "*** is required on your system"
26126 echo "***"
26127 echo "*** If you have an old version installed, it is best to remove it, although"
26128 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26129 echo "***"
26130 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26131 echo "*** came with the system with the command"
26132 echo "***"
26133 echo "*** rpm --erase --nodeps gtk gtk-devel"
26134else
26135 echo "$as_me: failed program was:" >&5
26136sed 's/^/| /' conftest.$ac_ext >&5
26137
26138 echo "*** The test program failed to compile or link. See the file config.log for the"
26139 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26140 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26141 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26142fi
ac1cb8d3
VS
26143rm -f conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26145 CFLAGS="$ac_save_CFLAGS"
26146 LIBS="$ac_save_LIBS"
26147 fi
26148 fi
26149 GTK_CFLAGS=""
26150 GTK_LIBS=""
26151 :
26152 fi
26153
26154
26155 rm -f conf.gtktest
26156
f34ca037 26157 fi
a848cd7e
SC
26158 fi
26159 fi
26160
26161 if test -z "$wx_cv_lib_gtk"; then
26162 wx_cv_lib_gtk=none
26163 else
26164 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26165 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26166 fi
26167
26168
26169fi
26170
26171
26172 if test "$gtk_version_cached" = 1; then
26173 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26174echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26175 fi
26176
26177 case "$wx_cv_lib_gtk" in
26178 2.0) WXGTK20=1
26179 TOOLKIT_VERSION=2
26180 ;;
26181 1.2.7) WXGTK127=1
26182 WXGTK12=1
26183 ;;
26184 1.2.3) WXGTK12=1
26185 ;;
26186 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26187The development files for GTK+ were not found. For GTK+ 2, please
26188ensure that pkg-config is in the path and that gtk+-2.0.pc is
26189installed. For GTK+ 1.2 please check that gtk-config is in the path,
26190and that the version is 1.2.3 or above. Also check that the
26191libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26192--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26193 " >&5
26194echo "$as_me: error:
f597b41c
MW
26195The development files for GTK+ were not found. For GTK+ 2, please
26196ensure that pkg-config is in the path and that gtk+-2.0.pc is
26197installed. For GTK+ 1.2 please check that gtk-config is in the path,
26198and that the version is 1.2.3 or above. Also check that the
26199libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26200--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26201 " >&2;}
26202 { (exit 1); exit 1; }; }
26203 ;;
26204 esac
26205
26206 if test "$WXGTK20" = 1; then
304205f1
VS
26207 save_CFLAGS="$CFLAGS"
26208 save_LIBS="$LIBS"
9d271838 26209 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26210 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26211
d12aef51
VZ
26212 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26213echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26214 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26215/* confdefs.h. */
26216_ACEOF
26217cat confdefs.h >>conftest.$ac_ext
26218cat >>conftest.$ac_ext <<_ACEOF
26219/* end confdefs.h. */
304205f1 26220
d12aef51 26221 #include <gtk/gtk.h>
304205f1 26222
d12aef51
VZ
26223int
26224main ()
26225{
304205f1 26226
d12aef51 26227 void *f = gtk_icon_size_lookup;
abc736fd
MW
26228
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext
26234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235 (eval $ac_compile) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
6ebeb4c7 26242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); }; } &&
26248 { ac_try='test -s conftest.$ac_objext'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254
26255 echo "$as_me:$LINENO: result: no" >&5
26256echo "${ECHO_T}no" >&6
26257
26258else
26259 echo "$as_me: failed program was:" >&5
26260sed 's/^/| /' conftest.$ac_ext >&5
26261
26262
26263 cat >>confdefs.h <<\_ACEOF
26264#define NEED_GTK_ICON_SIZE_LOOKUP 1
26265_ACEOF
26266
26267 echo "$as_me:$LINENO: result: yes" >&5
26268echo "${ECHO_T}yes" >&6
26269
26270fi
26271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272
9755e73b
VS
26273 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26274echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
26281
26282 #include <gtk/gtk.h>
26283
26284int
26285main ()
26286{
26287
26288 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26289 Not GTK+ 2.4
9755e73b
VS
26290 #endif
26291
26292 ;
26293 return 0;
26294}
26295_ACEOF
26296rm -f conftest.$ac_objext
26297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26298 (eval $ac_compile) 2>conftest.er1
26299 ac_status=$?
26300 grep -v '^ *+' conftest.er1 >conftest.err
26301 rm -f conftest.er1
26302 cat conftest.err >&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } &&
6ebeb4c7 26305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; } &&
26311 { ac_try='test -s conftest.$ac_objext'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; }; then
26317
26318 cat >>confdefs.h <<\_ACEOF
26319#define __WXGTK24__ 1
26320_ACEOF
26321
26322 echo "$as_me:$LINENO: result: yes" >&5
26323echo "${ECHO_T}yes" >&6
26324
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329
26330 echo "$as_me:$LINENO: result: no" >&5
26331echo "${ECHO_T}no" >&6
26332
26333fi
26334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26335
304205f1
VS
26336 CFLAGS="$save_CFLAGS"
26337 LIBS="$save_LIBS"
a848cd7e
SC
26338 else
26339 if test "$wxUSE_UNICODE" = "yes"; then
26340 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26341echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26342 wxUSE_UNICODE=no
26343 fi
26344 fi
26345
26346 if test "$USE_DARWIN" != 1; then
26347
26348for ac_func in poll
26349do
26350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26351echo "$as_me:$LINENO: checking for $ac_func" >&5
26352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26353if eval "test \"\${$as_ac_var+set}\" = set"; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26355else
26356 cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h. */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h. */
ac1cb8d3
VS
26362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26364#define $ac_func innocuous_$ac_func
26365
a848cd7e
SC
26366/* System header to define __stub macros and hopefully few prototypes,
26367 which can conflict with char $ac_func (); below.
26368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26370
a848cd7e
SC
26371#ifdef __STDC__
26372# include <limits.h>
26373#else
26374# include <assert.h>
26375#endif
ac1cb8d3
VS
26376
26377#undef $ac_func
26378
a848cd7e
SC
26379/* Override any gcc2 internal prototype to avoid an error. */
26380#ifdef __cplusplus
26381extern "C"
26382{
26383#endif
26384/* We use char because int might match the return type of a gcc2
26385 builtin and then its argument prototype would still apply. */
26386char $ac_func ();
26387/* The GNU C library defines this for functions which it implements
26388 to always fail with ENOSYS. Some functions are actually named
26389 something starting with __ and the normal name is an alias. */
26390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26391choke me
26392#else
26393char (*f) () = $ac_func;
26394#endif
26395#ifdef __cplusplus
26396}
26397#endif
26398
26399int
26400main ()
26401{
26402return f != $ac_func;
26403 ;
26404 return 0;
26405}
26406_ACEOF
26407rm -f conftest.$ac_objext conftest$ac_exeext
26408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26409 (eval $ac_link) 2>conftest.er1
a848cd7e 26410 ac_status=$?
ac1cb8d3
VS
26411 grep -v '^ *+' conftest.er1 >conftest.err
26412 rm -f conftest.er1
26413 cat conftest.err >&5
a848cd7e
SC
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } &&
6ebeb4c7 26416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 eval "$as_ac_var=yes"
26429else
26430 echo "$as_me: failed program was:" >&5
26431sed 's/^/| /' conftest.$ac_ext >&5
26432
26433eval "$as_ac_var=no"
26434fi
ac1cb8d3
VS
26435rm -f conftest.err conftest.$ac_objext \
26436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26437fi
26438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26440if test `eval echo '${'$as_ac_var'}'` = yes; then
26441 cat >>confdefs.h <<_ACEOF
26442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443_ACEOF
26444
26445fi
26446done
26447
26448 fi
26449
26450 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26451 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26452
26453 AFMINSTALL=afminstall
26454 TOOLKIT=GTK
26455 GUIDIST=GTK_DIST
26456
26457 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26458echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26459if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26461else
26462 ac_check_lib_save_LIBS=$LIBS
26463LIBS="-lgdk $LIBS"
26464cat >conftest.$ac_ext <<_ACEOF
26465/* confdefs.h. */
26466_ACEOF
26467cat confdefs.h >>conftest.$ac_ext
26468cat >>conftest.$ac_ext <<_ACEOF
26469/* end confdefs.h. */
26470
26471/* Override any gcc2 internal prototype to avoid an error. */
26472#ifdef __cplusplus
26473extern "C"
26474#endif
26475/* We use char because int might match the return type of a gcc2
26476 builtin and then its argument prototype would still apply. */
26477char gdk_im_open ();
26478int
26479main ()
26480{
26481gdk_im_open ();
26482 ;
26483 return 0;
26484}
26485_ACEOF
26486rm -f conftest.$ac_objext conftest$ac_exeext
26487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26488 (eval $ac_link) 2>conftest.er1
a848cd7e 26489 ac_status=$?
ac1cb8d3
VS
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
a848cd7e
SC
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } &&
6ebeb4c7 26495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; } &&
26501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; }; then
26507 ac_cv_lib_gdk_gdk_im_open=yes
26508else
26509 echo "$as_me: failed program was:" >&5
26510sed 's/^/| /' conftest.$ac_ext >&5
26511
26512ac_cv_lib_gdk_gdk_im_open=no
26513fi
ac1cb8d3
VS
26514rm -f conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26516LIBS=$ac_check_lib_save_LIBS
26517fi
26518echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26519echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26520if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26521 cat >>confdefs.h <<\_ACEOF
26522#define HAVE_XIM 1
26523_ACEOF
26524
26525fi
26526
26527
26528
26529 if test "$wxUSE_GPE" = "yes"; then
26530 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26531echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26532
0ad5d837
VZ
26533 ac_find_libraries=
26534 for ac_dir in $SEARCH_LIB;
a848cd7e 26535 do
3eca31dc 26536 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26537 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26538 ac_find_libraries=$ac_dir
26539 break 2
26540 fi
26541 done
26542 done
26543
26544 if test "$ac_find_libraries" != "" ; then
26545
0ad5d837 26546 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26547 ac_path_to_link=""
26548 else
0ad5d837
VZ
26549 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26550 result=$?
26551 if test $result = 0; then
26552 ac_path_to_link=""
26553 else
26554 ac_path_to_link=" -L$ac_find_libraries"
26555 fi
a848cd7e
SC
26556 fi
26557
26558 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26559 WXGPE=1
0ad5d837
VZ
26560 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26561echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26562 else
26563 echo "$as_me:$LINENO: result: not found" >&5
26564echo "${ECHO_T}not found" >&6
26565 fi
26566
26567 fi
26568 fi
26569
26570 if test "$wxUSE_MGL" = 1; then
26571 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26572echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26573 if test "x$MGL_ROOT" = x ; then
26574 echo "$as_me:$LINENO: result: not found" >&5
26575echo "${ECHO_T}not found" >&6
26576 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26577echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26578 { (exit 1); exit 1; }; }
26579 else
26580 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26581echo "${ECHO_T}$MGL_ROOT" >&6
26582 fi
26583
26584 echo "$as_me:$LINENO: checking for libmgl location" >&5
26585echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26586 case "${host}" in
26587 *-*-linux* )
26588 if test "x$wxUSE_SHARED" = xyes ; then
26589 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26590 else
26591 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26592 fi
26593 ;;
26594 *-pc-msdosdjgpp )
26595 mgl_os_candidates="dos32/dj2"
26596 ;;
26597 *)
26598 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26599echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26600 { (exit 1); exit 1; }; }
26601 esac
26602
26603 mgl_lib_type=""
26604 mgl_os=""
26605
26606 for mgl_os_i in $mgl_os_candidates ; do
26607 if test "x$mgl_os" = x ; then
26608 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26609 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26610 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26611 mgl_lib_type=debug
26612 mgl_os=$mgl_os_i
26613 fi
26614 fi
26615 if test "x$mgl_lib_type" = x ; then
26616 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26617 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26618 mgl_lib_type=release
26619 mgl_os=$mgl_os_i
26620 fi
26621 fi
26622 fi
26623 done
26624
26625 if test "x$mgl_os" = x ; then
26626 echo "$as_me:$LINENO: result: not found" >&5
26627echo "${ECHO_T}not found" >&6
26628 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26629echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26630 { (exit 1); exit 1; }; }
26631 fi
26632 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26633echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26634
26635 wxUSE_UNIVERSAL="yes"
26636
26637 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26638 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26639
26640 AFMINSTALL=afminstall
26641 TOOLKIT=MGL
26642 GUIDIST=MGL_DIST
26643 fi
26644
26645 if test "$wxUSE_MICROWIN" = 1; then
26646 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26647echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26648 if test "x$MICROWINDOWS" = x ; then
26649 echo "$as_me:$LINENO: result: not found" >&5
26650echo "${ECHO_T}not found" >&6
26651 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26652echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26653 { (exit 1); exit 1; }; }
26654 else
26655 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26656echo "${ECHO_T}$MICROWINDOWS" >&6
26657 fi
26658
26659 if test -f $MICROWINDOWS/lib/libmwin.a; then
26660 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26661echo "${ECHO_T}MicroWindows' libraries found." >&6
26662 else
26663 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26664echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26665 { (exit 1); exit 1; }; }
26666 fi
26667
26668 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26669 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26670
26671 wxUSE_UNIVERSAL="yes"
26672
26673 AFMINSTALL=afminstall
26674 TOOLKIT=MICROWIN
26675 GUIDIST=MICROWIN_DIST
26676
26677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26678 fi
26679
74b84332 26680 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26681
26682if test "x$ac_path_x_has_been_run" != xyes; then
26683 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26684echo $ECHO_N "checking for X... $ECHO_C" >&6
26685
6ebeb4c7 26686ac_path_x_has_been_run=yes
a848cd7e
SC
26687
26688# Check whether --with-x or --without-x was given.
26689if test "${with_x+set}" = set; then
26690 withval="$with_x"
26691
26692fi;
26693# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26694if test "x$with_x" = xno; then
26695 # The user explicitly disabled X.
26696 have_x=disabled
26697else
26698 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26699 # Both variables are already set.
26700 have_x=yes
26701 else
26702 if test "${ac_cv_have_x+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 # One or both of the vars are not set, and there is no cached value.
26706ac_x_includes=no ac_x_libraries=no
26707rm -fr conftest.dir
26708if mkdir conftest.dir; then
26709 cd conftest.dir
26710 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26711 cat >Imakefile <<'_ACEOF'
26712acfindx:
26713 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26714_ACEOF
26715 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26717 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26718 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26719 for ac_extension in a so sl; do
26720 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26721 test -f $ac_im_libdir/libX11.$ac_extension; then
26722 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26723 fi
26724 done
26725 # Screen out bogus values from the imake configuration. They are
26726 # bogus both because they are the default anyway, and because
26727 # using them would break gcc on systems where it needs fixed includes.
26728 case $ac_im_incroot in
26729 /usr/include) ;;
26730 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26731 esac
26732 case $ac_im_usrlibdir in
26733 /usr/lib | /lib) ;;
26734 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26735 esac
26736 fi
26737 cd ..
26738 rm -fr conftest.dir
26739fi
26740
26741# Standard set of common directories for X headers.
26742# Check X11 before X11Rn because it is often a symlink to the current release.
26743ac_x_header_dirs='
26744/usr/X11/include
26745/usr/X11R6/include
26746/usr/X11R5/include
26747/usr/X11R4/include
26748
26749/usr/include/X11
26750/usr/include/X11R6
26751/usr/include/X11R5
26752/usr/include/X11R4
26753
26754/usr/local/X11/include
26755/usr/local/X11R6/include
26756/usr/local/X11R5/include
26757/usr/local/X11R4/include
26758
26759/usr/local/include/X11
26760/usr/local/include/X11R6
26761/usr/local/include/X11R5
26762/usr/local/include/X11R4
26763
26764/usr/X386/include
26765/usr/x386/include
26766/usr/XFree86/include/X11
26767
26768/usr/include
26769/usr/local/include
26770/usr/unsupported/include
26771/usr/athena/include
26772/usr/local/x11r5/include
26773/usr/lpp/Xamples/include
26774
26775/usr/openwin/include
26776/usr/openwin/share/include'
26777
26778if test "$ac_x_includes" = no; then
6ebeb4c7 26779 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26780 # First, try using that file with no special directory specified.
26781 cat >conftest.$ac_ext <<_ACEOF
26782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
26787#include <X11/Intrinsic.h>
26788_ACEOF
26789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26791 ac_status=$?
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } >/dev/null; then
26797 if test -s conftest.err; then
26798 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26800 else
26801 ac_cpp_err=
26802 fi
26803else
26804 ac_cpp_err=yes
26805fi
26806if test -z "$ac_cpp_err"; then
26807 # We can compile using X headers with no special include directory.
26808ac_x_includes=
26809else
26810 echo "$as_me: failed program was:" >&5
26811sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 for ac_dir in $ac_x_header_dirs; do
26814 if test -r "$ac_dir/X11/Intrinsic.h"; then
26815 ac_x_includes=$ac_dir
26816 break
26817 fi
26818done
26819fi
26820rm -f conftest.err conftest.$ac_ext
26821fi # $ac_x_includes = no
26822
26823if test "$ac_x_libraries" = no; then
26824 # Check for the libraries.
26825 # See if we find them without any special options.
26826 # Don't add to $LIBS permanently.
26827 ac_save_LIBS=$LIBS
26828 LIBS="-lXt $LIBS"
26829 cat >conftest.$ac_ext <<_ACEOF
26830/* confdefs.h. */
26831_ACEOF
26832cat confdefs.h >>conftest.$ac_ext
26833cat >>conftest.$ac_ext <<_ACEOF
26834/* end confdefs.h. */
26835#include <X11/Intrinsic.h>
26836int
26837main ()
26838{
26839XtMalloc (0)
26840 ;
26841 return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26846 (eval $ac_link) 2>conftest.er1
a848cd7e 26847 ac_status=$?
ac1cb8d3
VS
26848 grep -v '^ *+' conftest.er1 >conftest.err
26849 rm -f conftest.er1
26850 cat conftest.err >&5
a848cd7e
SC
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
6ebeb4c7 26853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 LIBS=$ac_save_LIBS
26866# We can link X programs with no special library path.
26867ac_x_libraries=
26868else
26869 echo "$as_me: failed program was:" >&5
26870sed 's/^/| /' conftest.$ac_ext >&5
26871
26872LIBS=$ac_save_LIBS
26873for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26874do
26875 # Don't even attempt the hair of trying to link an X program!
26876 for ac_extension in a so sl; do
26877 if test -r $ac_dir/libXt.$ac_extension; then
26878 ac_x_libraries=$ac_dir
26879 break 2
26880 fi
26881 done
26882done
26883fi
ac1cb8d3
VS
26884rm -f conftest.err conftest.$ac_objext \
26885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26886fi # $ac_x_libraries = no
26887
26888if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26889 # Didn't find X anywhere. Cache the known absence of X.
26890 ac_cv_have_x="have_x=no"
26891else
26892 # Record where we found X for the cache.
26893 ac_cv_have_x="have_x=yes \
ac1cb8d3 26894 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26895fi
26896fi
26897
26898 fi
26899 eval "$ac_cv_have_x"
26900fi # $with_x != no
26901
26902if test "$have_x" != yes; then
26903 echo "$as_me:$LINENO: result: $have_x" >&5
26904echo "${ECHO_T}$have_x" >&6
26905 no_x=yes
26906else
26907 # If each of the values was on the command line, it overrides each guess.
26908 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26909 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26910 # Update the cache value to reflect the command line values.
26911 ac_cv_have_x="have_x=yes \
26912 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26913 # It might be that x_includes is empty (headers are found in the
26914 # standard search path. Then output the corresponding message
26915 ac_out_x_includes=$x_includes
26916 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26917 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26918echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26919fi
26920
6ebeb4c7 26921fi
a848cd7e
SC
26922if test "$no_x" = yes; then
26923 # Not all programs may use this symbol, but it does not hurt to define it.
26924
26925cat >>confdefs.h <<\_ACEOF
26926#define X_DISPLAY_MISSING 1
26927_ACEOF
26928
26929 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26930else
26931 if test -n "$x_includes"; then
26932 X_CFLAGS="$X_CFLAGS -I$x_includes"
26933 fi
26934
26935 # It would also be nice to do this for all -L options, not just this one.
26936 if test -n "$x_libraries"; then
26937 X_LIBS="$X_LIBS -L$x_libraries"
26938 # For Solaris; some versions of Sun CC require a space after -R and
26939 # others require no space. Words are not sufficient . . . .
26940 case `(uname -sr) 2>/dev/null` in
26941 "SunOS 5"*)
26942 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26943echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26944 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26945 cat >conftest.$ac_ext <<_ACEOF
26946/* confdefs.h. */
26947_ACEOF
26948cat confdefs.h >>conftest.$ac_ext
26949cat >>conftest.$ac_ext <<_ACEOF
26950/* end confdefs.h. */
26951
26952int
26953main ()
26954{
26955
26956 ;
26957 return 0;
26958}
26959_ACEOF
26960rm -f conftest.$ac_objext conftest$ac_exeext
26961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26962 (eval $ac_link) 2>conftest.er1
a848cd7e 26963 ac_status=$?
ac1cb8d3
VS
26964 grep -v '^ *+' conftest.er1 >conftest.err
26965 rm -f conftest.er1
26966 cat conftest.err >&5
a848cd7e
SC
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); } &&
6ebeb4c7 26969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26981 ac_R_nospace=yes
26982else
26983 echo "$as_me: failed program was:" >&5
26984sed 's/^/| /' conftest.$ac_ext >&5
26985
26986ac_R_nospace=no
26987fi
ac1cb8d3
VS
26988rm -f conftest.err conftest.$ac_objext \
26989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26990 if test $ac_R_nospace = yes; then
26991 echo "$as_me:$LINENO: result: no" >&5
26992echo "${ECHO_T}no" >&6
26993 X_LIBS="$X_LIBS -R$x_libraries"
26994 else
26995 LIBS="$ac_xsave_LIBS -R $x_libraries"
26996 cat >conftest.$ac_ext <<_ACEOF
26997/* confdefs.h. */
26998_ACEOF
26999cat confdefs.h >>conftest.$ac_ext
27000cat >>conftest.$ac_ext <<_ACEOF
27001/* end confdefs.h. */
27002
27003int
27004main ()
27005{
27006
27007 ;
27008 return 0;
27009}
27010_ACEOF
27011rm -f conftest.$ac_objext conftest$ac_exeext
27012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27013 (eval $ac_link) 2>conftest.er1
a848cd7e 27014 ac_status=$?
ac1cb8d3
VS
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
a848cd7e
SC
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } &&
6ebeb4c7 27020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; } &&
27026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 ac_R_space=yes
27033else
27034 echo "$as_me: failed program was:" >&5
27035sed 's/^/| /' conftest.$ac_ext >&5
27036
27037ac_R_space=no
27038fi
ac1cb8d3
VS
27039rm -f conftest.err conftest.$ac_objext \
27040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27041 if test $ac_R_space = yes; then
27042 echo "$as_me:$LINENO: result: yes" >&5
27043echo "${ECHO_T}yes" >&6
27044 X_LIBS="$X_LIBS -R $x_libraries"
27045 else
27046 echo "$as_me:$LINENO: result: neither works" >&5
27047echo "${ECHO_T}neither works" >&6
27048 fi
27049 fi
27050 LIBS=$ac_xsave_LIBS
27051 esac
27052 fi
27053
27054 # Check for system-dependent libraries X programs must link with.
27055 # Do this before checking for the system-independent R6 libraries
27056 # (-lICE), since we may need -lsocket or whatever for X linking.
27057
27058 if test "$ISC" = yes; then
27059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27060 else
27061 # Martyn Johnson says this is needed for Ultrix, if the X
27062 # libraries were built with DECnet support. And Karl Berry says
27063 # the Alpha needs dnet_stub (dnet does not exist).
27064 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27065 cat >conftest.$ac_ext <<_ACEOF
27066/* confdefs.h. */
27067_ACEOF
27068cat confdefs.h >>conftest.$ac_ext
27069cat >>conftest.$ac_ext <<_ACEOF
27070/* end confdefs.h. */
27071
27072/* Override any gcc2 internal prototype to avoid an error. */
27073#ifdef __cplusplus
27074extern "C"
27075#endif
27076/* We use char because int might match the return type of a gcc2
27077 builtin and then its argument prototype would still apply. */
27078char XOpenDisplay ();
27079int
27080main ()
27081{
27082XOpenDisplay ();
27083 ;
27084 return 0;
27085}
27086_ACEOF
27087rm -f conftest.$ac_objext conftest$ac_exeext
27088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27089 (eval $ac_link) 2>conftest.er1
a848cd7e 27090 ac_status=$?
ac1cb8d3
VS
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
a848cd7e
SC
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } &&
6ebeb4c7 27096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098 (eval $ac_try) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; } &&
27102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 :
27109else
27110 echo "$as_me: failed program was:" >&5
27111sed 's/^/| /' conftest.$ac_ext >&5
27112
27113echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27114echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27115if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-ldnet $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
27127/* Override any gcc2 internal prototype to avoid an error. */
27128#ifdef __cplusplus
27129extern "C"
27130#endif
27131/* We use char because int might match the return type of a gcc2
27132 builtin and then its argument prototype would still apply. */
27133char dnet_ntoa ();
27134int
27135main ()
27136{
27137dnet_ntoa ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext conftest$ac_exeext
27143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27144 (eval $ac_link) 2>conftest.er1
a848cd7e 27145 ac_status=$?
ac1cb8d3
VS
27146 grep -v '^ *+' conftest.er1 >conftest.err
27147 rm -f conftest.er1
27148 cat conftest.err >&5
a848cd7e
SC
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } &&
6ebeb4c7 27151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
27157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27163 ac_cv_lib_dnet_dnet_ntoa=yes
27164else
27165 echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168ac_cv_lib_dnet_dnet_ntoa=no
27169fi
ac1cb8d3
VS
27170rm -f conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27172LIBS=$ac_check_lib_save_LIBS
27173fi
27174echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27175echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27176if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27177 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27178fi
27179
27180 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27181 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27182echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27183if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 ac_check_lib_save_LIBS=$LIBS
27187LIBS="-ldnet_stub $LIBS"
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
27194
27195/* Override any gcc2 internal prototype to avoid an error. */
27196#ifdef __cplusplus
27197extern "C"
27198#endif
27199/* We use char because int might match the return type of a gcc2
27200 builtin and then its argument prototype would still apply. */
27201char dnet_ntoa ();
27202int
27203main ()
27204{
27205dnet_ntoa ();
27206 ;
27207 return 0;
27208}
27209_ACEOF
27210rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27212 (eval $ac_link) 2>conftest.er1
a848cd7e 27213 ac_status=$?
ac1cb8d3
VS
27214 grep -v '^ *+' conftest.er1 >conftest.err
27215 rm -f conftest.er1
27216 cat conftest.err >&5
a848cd7e
SC
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
6ebeb4c7 27219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236ac_cv_lib_dnet_stub_dnet_ntoa=no
27237fi
ac1cb8d3
VS
27238rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27240LIBS=$ac_check_lib_save_LIBS
27241fi
27242echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27243echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27244if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27246fi
27247
27248 fi
27249fi
ac1cb8d3
VS
27250rm -f conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27252 LIBS="$ac_xsave_LIBS"
27253
27254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27255 # to get the SysV transport functions.
27256 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27257 # needs -lnsl.
27258 # The nsl library prevents programs from opening the X display
27259 # on Irix 5.2, according to T.E. Dickey.
27260 # The functions gethostbyname, getservbyname, and inet_addr are
27261 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27262 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27263echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27264if test "${ac_cv_func_gethostbyname+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 cat >conftest.$ac_ext <<_ACEOF
27268/* confdefs.h. */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h. */
ac1cb8d3
VS
27273/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27275#define gethostbyname innocuous_gethostbyname
27276
a848cd7e
SC
27277/* System header to define __stub macros and hopefully few prototypes,
27278 which can conflict with char gethostbyname (); below.
27279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27281
a848cd7e
SC
27282#ifdef __STDC__
27283# include <limits.h>
27284#else
27285# include <assert.h>
27286#endif
ac1cb8d3
VS
27287
27288#undef gethostbyname
27289
a848cd7e
SC
27290/* Override any gcc2 internal prototype to avoid an error. */
27291#ifdef __cplusplus
27292extern "C"
27293{
27294#endif
27295/* We use char because int might match the return type of a gcc2
27296 builtin and then its argument prototype would still apply. */
27297char gethostbyname ();
27298/* The GNU C library defines this for functions which it implements
27299 to always fail with ENOSYS. Some functions are actually named
27300 something starting with __ and the normal name is an alias. */
27301#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27302choke me
27303#else
27304char (*f) () = gethostbyname;
27305#endif
27306#ifdef __cplusplus
27307}
27308#endif
27309
27310int
27311main ()
27312{
27313return f != gethostbyname;
27314 ;
27315 return 0;
27316}
27317_ACEOF
27318rm -f conftest.$ac_objext conftest$ac_exeext
27319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27320 (eval $ac_link) 2>conftest.er1
a848cd7e 27321 ac_status=$?
ac1cb8d3
VS
27322 grep -v '^ *+' conftest.er1 >conftest.err
27323 rm -f conftest.er1
27324 cat conftest.err >&5
a848cd7e
SC
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); } &&
6ebeb4c7 27327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_func_gethostbyname=yes
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344ac_cv_func_gethostbyname=no
27345fi
ac1cb8d3
VS
27346rm -f conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27348fi
27349echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27350echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27351
27352 if test $ac_cv_func_gethostbyname = no; then
27353 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27354echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27355if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27356 echo $ECHO_N "(cached) $ECHO_C" >&6
27357else
27358 ac_check_lib_save_LIBS=$LIBS
27359LIBS="-lnsl $LIBS"
27360cat >conftest.$ac_ext <<_ACEOF
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366
27367/* Override any gcc2 internal prototype to avoid an error. */
27368#ifdef __cplusplus
27369extern "C"
27370#endif
27371/* We use char because int might match the return type of a gcc2
27372 builtin and then its argument prototype would still apply. */
27373char gethostbyname ();
27374int
27375main ()
27376{
27377gethostbyname ();
27378 ;
27379 return 0;
27380}
27381_ACEOF
27382rm -f conftest.$ac_objext conftest$ac_exeext
27383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27384 (eval $ac_link) 2>conftest.er1
27385 ac_status=$?
27386 grep -v '^ *+' conftest.er1 >conftest.err
27387 rm -f conftest.er1
27388 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } &&
6ebeb4c7 27391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest$ac_exeext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_lib_nsl_gethostbyname=yes
27404else
27405 echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408ac_cv_lib_nsl_gethostbyname=no
27409fi
27410rm -f conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27412LIBS=$ac_check_lib_save_LIBS
27413fi
27414echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27415echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27416if test $ac_cv_lib_nsl_gethostbyname = yes; then
27417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27418fi
27419
27420 if test $ac_cv_lib_nsl_gethostbyname = no; then
27421 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27422echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27423if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426 ac_check_lib_save_LIBS=$LIBS
27427LIBS="-lbsd $LIBS"
27428cat >conftest.$ac_ext <<_ACEOF
27429/* confdefs.h. */
27430_ACEOF
27431cat confdefs.h >>conftest.$ac_ext
27432cat >>conftest.$ac_ext <<_ACEOF
27433/* end confdefs.h. */
27434
27435/* Override any gcc2 internal prototype to avoid an error. */
27436#ifdef __cplusplus
27437extern "C"
27438#endif
27439/* We use char because int might match the return type of a gcc2
27440 builtin and then its argument prototype would still apply. */
27441char gethostbyname ();
27442int
27443main ()
27444{
27445gethostbyname ();
27446 ;
27447 return 0;
27448}
27449_ACEOF
27450rm -f conftest.$ac_objext conftest$ac_exeext
27451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 (eval $ac_link) 2>conftest.er1
a848cd7e 27453 ac_status=$?
ac1cb8d3
VS
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
a848cd7e
SC
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
6ebeb4c7 27459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ac_cv_lib_bsd_gethostbyname=yes
27472else
27473 echo "$as_me: failed program was:" >&5
27474sed 's/^/| /' conftest.$ac_ext >&5
27475
27476ac_cv_lib_bsd_gethostbyname=no
27477fi
ac1cb8d3
VS
27478rm -f conftest.err conftest.$ac_objext \
27479 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27480LIBS=$ac_check_lib_save_LIBS
27481fi
27482echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27483echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27484if test $ac_cv_lib_bsd_gethostbyname = yes; then
27485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27486fi
27487
27488 fi
27489 fi
27490
27491 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27492 # socket/setsockopt and other routines are undefined under SCO ODT
27493 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27494 # on later versions), says Simon Leinen: it contains gethostby*
27495 # variants that don't use the name server (or something). -lsocket
27496 # must be given before -lnsl if both are needed. We assume that
27497 # if connect needs -lnsl, so does gethostbyname.
27498 echo "$as_me:$LINENO: checking for connect" >&5
27499echo $ECHO_N "checking for connect... $ECHO_C" >&6
27500if test "${ac_cv_func_connect+set}" = set; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 cat >conftest.$ac_ext <<_ACEOF
27504/* confdefs.h. */
27505_ACEOF
27506cat confdefs.h >>conftest.$ac_ext
27507cat >>conftest.$ac_ext <<_ACEOF
27508/* end confdefs.h. */
ac1cb8d3
VS
27509/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27511#define connect innocuous_connect
27512
a848cd7e
SC
27513/* System header to define __stub macros and hopefully few prototypes,
27514 which can conflict with char connect (); below.
27515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27516 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27517
a848cd7e
SC
27518#ifdef __STDC__
27519# include <limits.h>
27520#else
27521# include <assert.h>
27522#endif
ac1cb8d3
VS
27523
27524#undef connect
27525
a848cd7e
SC
27526/* Override any gcc2 internal prototype to avoid an error. */
27527#ifdef __cplusplus
27528extern "C"
27529{
27530#endif
27531/* We use char because int might match the return type of a gcc2
27532 builtin and then its argument prototype would still apply. */
27533char connect ();
27534/* The GNU C library defines this for functions which it implements
27535 to always fail with ENOSYS. Some functions are actually named
27536 something starting with __ and the normal name is an alias. */
27537#if defined (__stub_connect) || defined (__stub___connect)
27538choke me
27539#else
27540char (*f) () = connect;
27541#endif
27542#ifdef __cplusplus
27543}
27544#endif
27545
27546int
27547main ()
27548{
27549return f != connect;
27550 ;
27551 return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext conftest$ac_exeext
27555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27556 (eval $ac_link) 2>conftest.er1
a848cd7e 27557 ac_status=$?
ac1cb8d3
VS
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
a848cd7e
SC
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
6ebeb4c7 27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 ac_cv_func_connect=yes
27576else
27577 echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
27580ac_cv_func_connect=no
27581fi
ac1cb8d3
VS
27582rm -f conftest.err conftest.$ac_objext \
27583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27584fi
27585echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27586echo "${ECHO_T}$ac_cv_func_connect" >&6
27587
27588 if test $ac_cv_func_connect = no; then
27589 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27590echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27591if test "${ac_cv_lib_socket_connect+set}" = set; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 ac_check_lib_save_LIBS=$LIBS
27595LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27596cat >conftest.$ac_ext <<_ACEOF
27597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
27602
27603/* Override any gcc2 internal prototype to avoid an error. */
27604#ifdef __cplusplus
27605extern "C"
27606#endif
27607/* We use char because int might match the return type of a gcc2
27608 builtin and then its argument prototype would still apply. */
27609char connect ();
27610int
27611main ()
27612{
27613connect ();
27614 ;
27615 return 0;
27616}
27617_ACEOF
27618rm -f conftest.$ac_objext conftest$ac_exeext
27619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27620 (eval $ac_link) 2>conftest.er1
a848cd7e 27621 ac_status=$?
ac1cb8d3
VS
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
a848cd7e
SC
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
6ebeb4c7 27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_cv_lib_socket_connect=yes
27640else
27641 echo "$as_me: failed program was:" >&5
27642sed 's/^/| /' conftest.$ac_ext >&5
27643
27644ac_cv_lib_socket_connect=no
27645fi
ac1cb8d3
VS
27646rm -f conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27648LIBS=$ac_check_lib_save_LIBS
27649fi
27650echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27651echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27652if test $ac_cv_lib_socket_connect = yes; then
27653 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27654fi
27655
27656 fi
27657
27658 # Guillermo Gomez says -lposix is necessary on A/UX.
27659 echo "$as_me:$LINENO: checking for remove" >&5
27660echo $ECHO_N "checking for remove... $ECHO_C" >&6
27661if test "${ac_cv_func_remove+set}" = set; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663else
27664 cat >conftest.$ac_ext <<_ACEOF
27665/* confdefs.h. */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h. */
ac1cb8d3
VS
27670/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27672#define remove innocuous_remove
27673
a848cd7e
SC
27674/* System header to define __stub macros and hopefully few prototypes,
27675 which can conflict with char remove (); below.
27676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27678
a848cd7e
SC
27679#ifdef __STDC__
27680# include <limits.h>
27681#else
27682# include <assert.h>
27683#endif
ac1cb8d3
VS
27684
27685#undef remove
27686
a848cd7e
SC
27687/* Override any gcc2 internal prototype to avoid an error. */
27688#ifdef __cplusplus
27689extern "C"
27690{
27691#endif
27692/* We use char because int might match the return type of a gcc2
27693 builtin and then its argument prototype would still apply. */
27694char remove ();
27695/* The GNU C library defines this for functions which it implements
27696 to always fail with ENOSYS. Some functions are actually named
27697 something starting with __ and the normal name is an alias. */
27698#if defined (__stub_remove) || defined (__stub___remove)
27699choke me
27700#else
27701char (*f) () = remove;
27702#endif
27703#ifdef __cplusplus
27704}
27705#endif
27706
27707int
27708main ()
27709{
27710return f != remove;
27711 ;
27712 return 0;
27713}
27714_ACEOF
27715rm -f conftest.$ac_objext conftest$ac_exeext
27716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27717 (eval $ac_link) 2>conftest.er1
a848cd7e 27718 ac_status=$?
ac1cb8d3
VS
27719 grep -v '^ *+' conftest.er1 >conftest.err
27720 rm -f conftest.er1
27721 cat conftest.err >&5
a848cd7e
SC
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } &&
6ebeb4c7 27724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; } &&
27730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
27736 ac_cv_func_remove=yes
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741ac_cv_func_remove=no
27742fi
ac1cb8d3
VS
27743rm -f conftest.err conftest.$ac_objext \
27744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27745fi
27746echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27747echo "${ECHO_T}$ac_cv_func_remove" >&6
27748
27749 if test $ac_cv_func_remove = no; then
27750 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27751echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27752if test "${ac_cv_lib_posix_remove+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lposix $LIBS"
27757cat >conftest.$ac_ext <<_ACEOF
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
27763
27764/* Override any gcc2 internal prototype to avoid an error. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768/* We use char because int might match the return type of a gcc2
27769 builtin and then its argument prototype would still apply. */
27770char remove ();
27771int
27772main ()
27773{
27774remove ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
27779rm -f conftest.$ac_objext conftest$ac_exeext
27780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27781 (eval $ac_link) 2>conftest.er1
a848cd7e 27782 ac_status=$?
ac1cb8d3
VS
27783 grep -v '^ *+' conftest.er1 >conftest.err
27784 rm -f conftest.er1
27785 cat conftest.err >&5
a848cd7e
SC
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
6ebeb4c7 27788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 ac_cv_lib_posix_remove=yes
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
27805ac_cv_lib_posix_remove=no
27806fi
ac1cb8d3
VS
27807rm -f conftest.err conftest.$ac_objext \
27808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27809LIBS=$ac_check_lib_save_LIBS
27810fi
27811echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27812echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27813if test $ac_cv_lib_posix_remove = yes; then
27814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27815fi
27816
27817 fi
27818
27819 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27820 echo "$as_me:$LINENO: checking for shmat" >&5
27821echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27822if test "${ac_cv_func_shmat+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824else
27825 cat >conftest.$ac_ext <<_ACEOF
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
ac1cb8d3
VS
27831/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27833#define shmat innocuous_shmat
27834
a848cd7e
SC
27835/* System header to define __stub macros and hopefully few prototypes,
27836 which can conflict with char shmat (); below.
27837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27839
a848cd7e
SC
27840#ifdef __STDC__
27841# include <limits.h>
27842#else
27843# include <assert.h>
27844#endif
ac1cb8d3
VS
27845
27846#undef shmat
27847
a848cd7e
SC
27848/* Override any gcc2 internal prototype to avoid an error. */
27849#ifdef __cplusplus
27850extern "C"
27851{
27852#endif
27853/* We use char because int might match the return type of a gcc2
27854 builtin and then its argument prototype would still apply. */
27855char shmat ();
27856/* The GNU C library defines this for functions which it implements
27857 to always fail with ENOSYS. Some functions are actually named
27858 something starting with __ and the normal name is an alias. */
27859#if defined (__stub_shmat) || defined (__stub___shmat)
27860choke me
27861#else
27862char (*f) () = shmat;
27863#endif
27864#ifdef __cplusplus
27865}
27866#endif
27867
27868int
27869main ()
27870{
27871return f != shmat;
27872 ;
27873 return 0;
27874}
27875_ACEOF
27876rm -f conftest.$ac_objext conftest$ac_exeext
27877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27878 (eval $ac_link) 2>conftest.er1
a848cd7e 27879 ac_status=$?
ac1cb8d3
VS
27880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
a848cd7e
SC
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
6ebeb4c7 27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_func_shmat=yes
27898else
27899 echo "$as_me: failed program was:" >&5
27900sed 's/^/| /' conftest.$ac_ext >&5
27901
27902ac_cv_func_shmat=no
27903fi
ac1cb8d3
VS
27904rm -f conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27906fi
27907echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27908echo "${ECHO_T}$ac_cv_func_shmat" >&6
27909
27910 if test $ac_cv_func_shmat = no; then
27911 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27912echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27913if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915else
27916 ac_check_lib_save_LIBS=$LIBS
27917LIBS="-lipc $LIBS"
27918cat >conftest.$ac_ext <<_ACEOF
27919/* confdefs.h. */
27920_ACEOF
27921cat confdefs.h >>conftest.$ac_ext
27922cat >>conftest.$ac_ext <<_ACEOF
27923/* end confdefs.h. */
27924
27925/* Override any gcc2 internal prototype to avoid an error. */
27926#ifdef __cplusplus
27927extern "C"
27928#endif
27929/* We use char because int might match the return type of a gcc2
27930 builtin and then its argument prototype would still apply. */
27931char shmat ();
27932int
27933main ()
27934{
27935shmat ();
27936 ;
27937 return 0;
27938}
27939_ACEOF
27940rm -f conftest.$ac_objext conftest$ac_exeext
27941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27942 (eval $ac_link) 2>conftest.er1
a848cd7e 27943 ac_status=$?
ac1cb8d3
VS
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
a848cd7e
SC
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
6ebeb4c7 27949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_lib_ipc_shmat=yes
27962else
27963 echo "$as_me: failed program was:" >&5
27964sed 's/^/| /' conftest.$ac_ext >&5
27965
27966ac_cv_lib_ipc_shmat=no
27967fi
ac1cb8d3
VS
27968rm -f conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27970LIBS=$ac_check_lib_save_LIBS
27971fi
27972echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27973echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27974if test $ac_cv_lib_ipc_shmat = yes; then
27975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27976fi
27977
27978 fi
27979 fi
27980
27981 # Check for libraries that X11R6 Xt/Xaw programs need.
27982 ac_save_LDFLAGS=$LDFLAGS
27983 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27984 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27985 # check for ICE first), but we must link in the order -lSM -lICE or
27986 # we get undefined symbols. So assume we have SM if we have ICE.
27987 # These have to be linked with before -lX11, unlike the other
27988 # libraries we check for below, so use a different variable.
27989 # John Interrante, Karl Berry
27990 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27991echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27992if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27994else
27995 ac_check_lib_save_LIBS=$LIBS
27996LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27997cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003
28004/* Override any gcc2 internal prototype to avoid an error. */
28005#ifdef __cplusplus
28006extern "C"
28007#endif
28008/* We use char because int might match the return type of a gcc2
28009 builtin and then its argument prototype would still apply. */
28010char IceConnectionNumber ();
28011int
28012main ()
28013{
28014IceConnectionNumber ();
28015 ;
28016 return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext conftest$ac_exeext
28020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28021 (eval $ac_link) 2>conftest.er1
a848cd7e 28022 ac_status=$?
ac1cb8d3
VS
28023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
a848cd7e
SC
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
6ebeb4c7 28028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28030 (eval $ac_try) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; } &&
28034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040 ac_cv_lib_ICE_IceConnectionNumber=yes
28041else
28042 echo "$as_me: failed program was:" >&5
28043sed 's/^/| /' conftest.$ac_ext >&5
28044
28045ac_cv_lib_ICE_IceConnectionNumber=no
28046fi
ac1cb8d3
VS
28047rm -f conftest.err conftest.$ac_objext \
28048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28049LIBS=$ac_check_lib_save_LIBS
28050fi
28051echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28052echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28053if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28054 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28055fi
28056
28057 LDFLAGS=$ac_save_LDFLAGS
28058
28059fi
28060
28061
28062 if test "$no_x" = "yes"; then
28063 { { echo "$as_me:$LINENO: error: X11 not found" >&5
28064echo "$as_me: error: X11 not found" >&2;}
28065 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
28066 fi
28067
74b84332
VS
28068 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28069 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28070 AFMINSTALL=afminstall
28071 COMPILED_X_PROGRAM=0
28072
74b84332
VS
28073 fi
28074
28075 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28076 if test "$wxUSE_NANOX" = "yes"; then
28077 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28078echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28079 if test "x$MICROWIN" = x ; then
28080 echo "$as_me:$LINENO: result: not found" >&5
28081echo "${ECHO_T}not found" >&6
28082 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28083echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28084 { (exit 1); exit 1; }; }
28085 else
28086 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28087echo "${ECHO_T}$MICROWIN" >&6
28088 cat >>confdefs.h <<\_ACEOF
28089#define wxUSE_NANOX 1
28090_ACEOF
28091
28092 fi
28093 fi
28094
28095 if test "$wxUSE_UNICODE" = "yes"; then
28096
28097 succeeded=no
28098
28099 if test -z "$PKG_CONFIG"; then
28100 # Extract the first word of "pkg-config", so it can be a program name with args.
28101set dummy pkg-config; ac_word=$2
28102echo "$as_me:$LINENO: checking for $ac_word" >&5
28103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28104if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107 case $PKG_CONFIG in
28108 [\\/]* | ?:[\\/]*)
28109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28110 ;;
28111 *)
28112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28113for as_dir in $PATH
28114do
28115 IFS=$as_save_IFS
28116 test -z "$as_dir" && as_dir=.
28117 for ac_exec_ext in '' $ac_executable_extensions; do
28118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28121 break 2
28122 fi
28123done
28124done
28125
28126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28127 ;;
28128esac
28129fi
28130PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28131
28132if test -n "$PKG_CONFIG"; then
28133 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28134echo "${ECHO_T}$PKG_CONFIG" >&6
28135else
28136 echo "$as_me:$LINENO: result: no" >&5
28137echo "${ECHO_T}no" >&6
28138fi
28139
28140 fi
28141
28142 if test "$PKG_CONFIG" = "no" ; then
28143 echo "*** The pkg-config script could not be found. Make sure it is"
28144 echo "*** in your path, or set the PKG_CONFIG environment variable"
28145 echo "*** to the full path to pkg-config."
28146 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28147 else
28148 PKG_CONFIG_MIN_VERSION=0.9.0
28149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28150 echo "$as_me:$LINENO: checking for pangox" >&5
28151echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28152
28153 if $PKG_CONFIG --exists "pangox" ; then
28154 echo "$as_me:$LINENO: result: yes" >&5
28155echo "${ECHO_T}yes" >&6
28156 succeeded=yes
28157
28158 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28159echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28160 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28161 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28162echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28163
28164 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28165echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28166 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28167 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28168echo "${ECHO_T}$PANGOX_LIBS" >&6
28169 else
28170 PANGOX_CFLAGS=""
28171 PANGOX_LIBS=""
28172 ## If we have a custom action on failure, don't print errors, but
28173 ## do set a variable so people can do so.
28174 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28175
28176 fi
28177
28178
28179
28180 else
28181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28183 fi
28184 fi
28185
28186 if test $succeeded = yes; then
28187
28188 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28189 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28190
28191 else
28192
28193 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28194echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28195 { (exit 1); exit 1; }; }
28196
28197
28198 fi
28199
28200
28201 succeeded=no
28202
28203 if test -z "$PKG_CONFIG"; then
28204 # Extract the first word of "pkg-config", so it can be a program name with args.
28205set dummy pkg-config; ac_word=$2
28206echo "$as_me:$LINENO: checking for $ac_word" >&5
28207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28208if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210else
28211 case $PKG_CONFIG in
28212 [\\/]* | ?:[\\/]*)
28213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28214 ;;
28215 *)
28216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28217for as_dir in $PATH
28218do
28219 IFS=$as_save_IFS
28220 test -z "$as_dir" && as_dir=.
28221 for ac_exec_ext in '' $ac_executable_extensions; do
28222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28225 break 2
28226 fi
28227done
28228done
28229
28230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28231 ;;
28232esac
28233fi
28234PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28235
28236if test -n "$PKG_CONFIG"; then
28237 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28238echo "${ECHO_T}$PKG_CONFIG" >&6
28239else
28240 echo "$as_me:$LINENO: result: no" >&5
28241echo "${ECHO_T}no" >&6
28242fi
28243
28244 fi
28245
28246 if test "$PKG_CONFIG" = "no" ; then
28247 echo "*** The pkg-config script could not be found. Make sure it is"
28248 echo "*** in your path, or set the PKG_CONFIG environment variable"
28249 echo "*** to the full path to pkg-config."
28250 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28251 else
28252 PKG_CONFIG_MIN_VERSION=0.9.0
28253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28254 echo "$as_me:$LINENO: checking for pangoft2" >&5
28255echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28256
28257 if $PKG_CONFIG --exists "pangoft2" ; then
28258 echo "$as_me:$LINENO: result: yes" >&5
28259echo "${ECHO_T}yes" >&6
28260 succeeded=yes
28261
28262 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28263echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28264 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28265 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28266echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28267
28268 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28269echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28270 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28271 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28272echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28273 else
28274 PANGOFT2_CFLAGS=""
28275 PANGOFT2_LIBS=""
28276 ## If we have a custom action on failure, don't print errors, but
28277 ## do set a variable so people can do so.
28278 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28279
28280 fi
28281
28282
28283
28284 else
28285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28287 fi
28288 fi
28289
28290 if test $succeeded = yes; then
28291
28292 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28293 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28294
28295 else
28296
28297 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28298echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28299 wxUSE_PRINTING_ARCHITECTURE="no"
28300
28301
28302 fi
28303
28304
28305 succeeded=no
28306
28307 if test -z "$PKG_CONFIG"; then
28308 # Extract the first word of "pkg-config", so it can be a program name with args.
28309set dummy pkg-config; ac_word=$2
28310echo "$as_me:$LINENO: checking for $ac_word" >&5
28311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28312if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314else
28315 case $PKG_CONFIG in
28316 [\\/]* | ?:[\\/]*)
28317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28318 ;;
28319 *)
28320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28321for as_dir in $PATH
28322do
28323 IFS=$as_save_IFS
28324 test -z "$as_dir" && as_dir=.
28325 for ac_exec_ext in '' $ac_executable_extensions; do
28326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28329 break 2
28330 fi
28331done
28332done
28333
28334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28335 ;;
28336esac
28337fi
28338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28339
28340if test -n "$PKG_CONFIG"; then
28341 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28342echo "${ECHO_T}$PKG_CONFIG" >&6
28343else
28344 echo "$as_me:$LINENO: result: no" >&5
28345echo "${ECHO_T}no" >&6
28346fi
28347
28348 fi
28349
28350 if test "$PKG_CONFIG" = "no" ; then
28351 echo "*** The pkg-config script could not be found. Make sure it is"
28352 echo "*** in your path, or set the PKG_CONFIG environment variable"
28353 echo "*** to the full path to pkg-config."
28354 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28355 else
28356 PKG_CONFIG_MIN_VERSION=0.9.0
28357 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28358 echo "$as_me:$LINENO: checking for pangoxft" >&5
28359echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28360
28361 if $PKG_CONFIG --exists "pangoxft" ; then
28362 echo "$as_me:$LINENO: result: yes" >&5
28363echo "${ECHO_T}yes" >&6
28364 succeeded=yes
28365
28366 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28367echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28368 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28369 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28370echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28371
28372 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28373echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28374 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28375 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28376echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28377 else
28378 PANGOXFT_CFLAGS=""
28379 PANGOXFT_LIBS=""
28380 ## If we have a custom action on failure, don't print errors, but
28381 ## do set a variable so people can do so.
28382 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28383
28384 fi
28385
28386
28387
28388 else
28389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28391 fi
28392 fi
28393
28394 if test $succeeded = yes; then
28395
4ae1af05
MB
28396 cat >>confdefs.h <<\_ACEOF
28397#define HAVE_PANGO_XFT 1
28398_ACEOF
28399
a848cd7e
SC
28400 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28402
28403 else
28404
28405 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28406echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28407
28408
28409 fi
28410
304205f1
VS
28411 save_CFLAGS="$CFLAGS"
28412 save_LIBS="$LIBS"
28413 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28414 LIBS="$LIBS $PANGOX_LIBS"
28415
28416for ac_func in pango_font_family_is_monospace
28417do
28418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28419echo "$as_me:$LINENO: checking for $ac_func" >&5
28420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28421if eval "test \"\${$as_ac_var+set}\" = set"; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28423else
28424 cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28432#define $ac_func innocuous_$ac_func
28433
28434/* System header to define __stub macros and hopefully few prototypes,
28435 which can conflict with char $ac_func (); below.
28436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28437 <limits.h> exists even on freestanding compilers. */
28438
28439#ifdef __STDC__
28440# include <limits.h>
28441#else
28442# include <assert.h>
28443#endif
28444
28445#undef $ac_func
28446
28447/* Override any gcc2 internal prototype to avoid an error. */
28448#ifdef __cplusplus
28449extern "C"
28450{
28451#endif
28452/* We use char because int might match the return type of a gcc2
28453 builtin and then its argument prototype would still apply. */
28454char $ac_func ();
28455/* The GNU C library defines this for functions which it implements
28456 to always fail with ENOSYS. Some functions are actually named
28457 something starting with __ and the normal name is an alias. */
28458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28459choke me
28460#else
28461char (*f) () = $ac_func;
28462#endif
28463#ifdef __cplusplus
28464}
28465#endif
28466
28467int
28468main ()
28469{
28470return f != $ac_func;
28471 ;
28472 return 0;
28473}
28474_ACEOF
28475rm -f conftest.$ac_objext conftest$ac_exeext
28476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477 (eval $ac_link) 2>conftest.er1
28478 ac_status=$?
28479 grep -v '^ *+' conftest.er1 >conftest.err
28480 rm -f conftest.er1
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } &&
6ebeb4c7 28484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; } &&
28490 { ac_try='test -s conftest$ac_exeext'
28491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); }; }; then
28496 eval "$as_ac_var=yes"
28497else
28498 echo "$as_me: failed program was:" >&5
28499sed 's/^/| /' conftest.$ac_ext >&5
28500
28501eval "$as_ac_var=no"
28502fi
28503rm -f conftest.err conftest.$ac_objext \
28504 conftest$ac_exeext conftest.$ac_ext
28505fi
28506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28508if test `eval echo '${'$as_ac_var'}'` = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28511_ACEOF
28512
28513fi
28514done
28515
28516 CFLAGS="$save_CFLAGS"
28517 LIBS="$save_LIBS"
a848cd7e
SC
28518 fi
28519
28520 wxUSE_UNIVERSAL="yes"
28521
28522 if test "$wxUSE_NANOX" = "yes"; then
28523 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28524 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"
28525 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28526 else
28527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28528 fi
28529
a848cd7e
SC
28530 TOOLKIT=X11
28531 GUIDIST=X11_DIST
28532 fi
28533
28534 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28535 if test "$wxUSE_UNICODE" = "yes"; then
28536 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28537echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28538 { (exit 1); exit 1; }; }
28539 fi
28540
74b84332
VS
28541 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28542echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28543
74b84332
VS
28544ac_find_includes=
28545for ac_dir in $SEARCH_INCLUDE /usr/include;
28546 do
28547 if test -f "$ac_dir/Xm/Xm.h"; then
28548 ac_find_includes=$ac_dir
28549 break
28550 fi
28551 done
a848cd7e 28552
74b84332
VS
28553 if test "$ac_find_includes" != "" ; then
28554 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28555echo "${ECHO_T}found in $ac_find_includes" >&6
28556
28557 if test "x$ac_find_includes" = "x/usr/include"; then
28558 ac_path_to_include=""
28559 else
28560 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28561 result=$?
28562 if test $result = 0; then
28563 ac_path_to_include=""
28564 else
28565 ac_path_to_include=" -I$ac_find_includes"
28566 fi
a848cd7e
SC
28567 fi
28568
74b84332
VS
28569 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28570 else
e051b34e
MW
28571 save_CFLAGS=$CFLAGS
28572 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28573
74b84332 28574 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28575/* confdefs.h. */
28576_ACEOF
28577cat confdefs.h >>conftest.$ac_ext
28578cat >>conftest.$ac_ext <<_ACEOF
28579/* end confdefs.h. */
28580
74b84332
VS
28581 #include <Xm/Xm.h>
28582
a848cd7e
SC
28583int
28584main ()
28585{
28586
74b84332
VS
28587 int version;
28588 version = xmUseVersion;
28589
a848cd7e
SC
28590 ;
28591 return 0;
28592}
28593_ACEOF
74b84332
VS
28594rm -f conftest.$ac_objext
28595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28596 (eval $ac_compile) 2>conftest.er1
a848cd7e 28597 ac_status=$?
ac1cb8d3
VS
28598 grep -v '^ *+' conftest.er1 >conftest.err
28599 rm -f conftest.er1
28600 cat conftest.err >&5
a848cd7e
SC
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } &&
6ebeb4c7 28603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
74b84332 28609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; }; then
74b84332
VS
28615
28616 echo "$as_me:$LINENO: result: found in default search path" >&5
28617echo "${ECHO_T}found in default search path" >&6
28618 COMPILED_X_PROGRAM=1
28619
a848cd7e
SC
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
a848cd7e 28624
74b84332
VS
28625 echo "$as_me:$LINENO: result: no" >&5
28626echo "${ECHO_T}no" >&6
e051b34e
MW
28627 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28628echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28629 { (exit 1); exit 1; }; }
a848cd7e 28630
a848cd7e 28631
a848cd7e 28632fi
74b84332 28633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28634
28635 CFLAGS=$save_CFLAGS
74b84332
VS
28636 fi
28637
0ad5d837
VZ
28638
28639 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
28640echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28641
0ad5d837
VZ
28642 ac_find_libraries=
28643 for ac_dir in $SEARCH_LIB;
74b84332 28644 do
3eca31dc 28645 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28646 if test -f "$ac_dir/libXm.$ac_extension"; then
28647 ac_find_libraries=$ac_dir
28648 break 2
a848cd7e 28649 fi
74b84332
VS
28650 done
28651 done
a848cd7e 28652
0ad5d837
VZ
28653
28654 if test "x$ac_find_libraries" != "x" ; then
28655 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28656echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 28657
74b84332 28658
0ad5d837 28659 if test "$ac_find_libraries" = "default location"; then
74b84332 28660 ac_path_to_link=""
a848cd7e 28661 else
0ad5d837
VZ
28662 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28663 result=$?
28664 if test $result = 0; then
28665 ac_path_to_link=""
28666 else
28667 ac_path_to_link=" -L$ac_find_libraries"
28668 fi
74b84332
VS
28669 fi
28670
0ad5d837
VZ
28671 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28672 else
28673 save_CFLAGS=$CFLAGS
28674 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
28675 save_LIBS="$LIBS"
28676 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 28677
0ad5d837 28678 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28679/* confdefs.h. */
28680_ACEOF
28681cat confdefs.h >>conftest.$ac_ext
28682cat >>conftest.$ac_ext <<_ACEOF
28683/* end confdefs.h. */
28684
0ad5d837 28685 #include <Xm/Xm.h>
74b84332 28686
a848cd7e
SC
28687int
28688main ()
28689{
74b84332 28690
0ad5d837
VZ
28691 int version;
28692 version = xmUseVersion;
74b84332 28693
a848cd7e
SC
28694 ;
28695 return 0;
28696}
28697_ACEOF
0ad5d837
VZ
28698rm -f conftest.$ac_objext conftest$ac_exeext
28699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28700 (eval $ac_link) 2>conftest.er1
a848cd7e 28701 ac_status=$?
ac1cb8d3
VS
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
a848cd7e
SC
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
6ebeb4c7 28707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
0ad5d837 28713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
74b84332 28719
0ad5d837 28720 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 28721echo "${ECHO_T}found in default search path" >&6
0ad5d837 28722 COMPILED_X_PROGRAM=1
74b84332 28723
a848cd7e
SC
28724else
28725 echo "$as_me: failed program was:" >&5
28726sed 's/^/| /' conftest.$ac_ext >&5
28727
74b84332 28728
6f9cf1e6 28729 echo "$as_me:$LINENO: result: no" >&5
74b84332 28730echo "${ECHO_T}no" >&6
6f9cf1e6 28731 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
28732echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28733 { (exit 1); exit 1; }; }
28734
28735
28736fi
0ad5d837
VZ
28737rm -f conftest.err conftest.$ac_objext \
28738 conftest$ac_exeext conftest.$ac_ext
74b84332 28739
0ad5d837 28740 CFLAGS=$save_CFLAGS
6f9cf1e6 28741 LIBS="$save_LIBS"
74b84332
VS
28742 fi
28743
28744 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28745echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28746 libp_link=""
28747 libsm_ice_link=""
28748 libs_found=0
28749 for libp in "" " -lXp"; do
28750 if test "$libs_found" = "0"; then
28751 for libsm_ice in "" " -lSM -lICE"; do
28752 if test "$libs_found" = "0"; then
28753 save_LIBS="$LIBS"
28754 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28755 save_CFLAGS=$CFLAGS
28756 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28757
28758 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
28764
74b84332
VS
28765 #include <Xm/Xm.h>
28766 #include <Xm/List.h>
28767
a848cd7e
SC
28768int
28769main ()
28770{
74b84332
VS
28771
28772 XmString string = NULL;
28773 Widget w = NULL;
28774 int position = 0;
28775 XmListAddItem(w, string, position);
28776
a848cd7e
SC
28777 ;
28778 return 0;
28779}
28780_ACEOF
28781rm -f conftest.$ac_objext conftest$ac_exeext
28782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28783 (eval $ac_link) 2>conftest.er1
a848cd7e 28784 ac_status=$?
ac1cb8d3
VS
28785 grep -v '^ *+' conftest.er1 >conftest.err
28786 rm -f conftest.er1
28787 cat conftest.err >&5
a848cd7e
SC
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } &&
6ebeb4c7 28790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802
28803 libp_link="$libp"
28804 libsm_ice_link="$libsm_ice"
28805 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28806echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28807 libs_found=1
28808
28809else
28810 echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813
28814
28815fi
ac1cb8d3
VS
28816rm -f conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28818
28819 LIBS="$save_LIBS"
28820 CFLAGS=$save_CFLAGS
28821 fi
28822 done
28823 fi
28824 done
28825
28826 if test "$libs_found" = "0"; then
28827 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28828echo "${ECHO_T}can't find the right libraries" >&6
28829 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28830echo "$as_me: error: can't link a simple motif program" >&2;}
28831 { (exit 1); exit 1; }; }
28832 fi
28833
62fa8b3a
MW
28834 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28835echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28836if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28837 echo $ECHO_N "(cached) $ECHO_C" >&6
28838else
28839 ac_check_lib_save_LIBS=$LIBS
28840LIBS="-lSgm $LIBS"
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847
28848/* Override any gcc2 internal prototype to avoid an error. */
28849#ifdef __cplusplus
28850extern "C"
28851#endif
28852/* We use char because int might match the return type of a gcc2
28853 builtin and then its argument prototype would still apply. */
28854char SgCreateList ();
28855int
28856main ()
28857{
28858SgCreateList ();
28859 ;
28860 return 0;
28861}
28862_ACEOF
28863rm -f conftest.$ac_objext conftest$ac_exeext
28864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865 (eval $ac_link) 2>conftest.er1
28866 ac_status=$?
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest$ac_exeext'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 ac_cv_lib_Sgm_SgCreateList=yes
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889ac_cv_lib_Sgm_SgCreateList=no
28890fi
28891rm -f conftest.err conftest.$ac_objext \
28892 conftest$ac_exeext conftest.$ac_ext
28893LIBS=$ac_check_lib_save_LIBS
28894fi
28895echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28896echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28897if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28898 libsgm_link=" -lSgm"
28899fi
28900
28901
a848cd7e
SC
28902 save_CFLAGS=$CFLAGS
28903 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 28904
a848cd7e
SC
28905 echo "$as_me:$LINENO: checking for Motif 2" >&5
28906echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
28907if test "${wx_cv_lib_motif2+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28909else
28910 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28911/* confdefs.h. */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h. */
28916
0ad5d837 28917 #include <Xm/Xm.h>
a848cd7e
SC
28918
28919int
28920main ()
28921{
28922
0ad5d837
VZ
28923 #if XmVersion < 2000
28924 Not Motif 2
28925 #endif
a848cd7e
SC
28926
28927 ;
28928 return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext
28932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28933 (eval $ac_compile) 2>conftest.er1
a848cd7e 28934 ac_status=$?
ac1cb8d3
VS
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
a848cd7e
SC
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
6ebeb4c7 28940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
0ad5d837 28952 wx_cv_lib_motif2="yes"
a848cd7e
SC
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
0ad5d837
VZ
28957wx_cv_lib_motif2="no"
28958fi
28959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28960fi
28961echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
28962echo "${ECHO_T}$wx_cv_lib_motif2" >&6
28963 if test "$wx_cv_lib_motif2" = "yes"; then
28964 cat >>confdefs.h <<\_ACEOF
28965#define __WXMOTIF20__ 1
28966_ACEOF
a848cd7e 28967
0ad5d837
VZ
28968 else
28969 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28970#define __WXMOTIF20__ 0
28971_ACEOF
28972
0ad5d837 28973 fi
2113bc77
MW
28974
28975 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28976echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
28977if test "${wx_cv_lib_lesstif+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
28981/* confdefs.h. */
28982_ACEOF
28983cat confdefs.h >>conftest.$ac_ext
28984cat >>conftest.$ac_ext <<_ACEOF
28985/* end confdefs.h. */
28986
0ad5d837 28987 #include <Xm/Xm.h>
2113bc77
MW
28988
28989int
28990main ()
28991{
28992
0ad5d837
VZ
28993 #if !defined(LesstifVersion) || LesstifVersion <= 0
28994 Not Lesstif
28995 #endif
2113bc77
MW
28996
28997 ;
28998 return 0;
28999}
29000_ACEOF
29001rm -f conftest.$ac_objext
29002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29003 (eval $ac_compile) 2>conftest.er1
29004 ac_status=$?
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
6ebeb4c7 29010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; } &&
29016 { ac_try='test -s conftest.$ac_objext'
29017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018 (eval $ac_try) 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
0ad5d837 29022 wx_cv_lib_lesstif="yes"
2113bc77
MW
29023else
29024 echo "$as_me: failed program was:" >&5
29025sed 's/^/| /' conftest.$ac_ext >&5
29026
0ad5d837
VZ
29027wx_cv_lib_lesstif="no"
29028fi
29029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29030
0ad5d837
VZ
29031fi
29032echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29033echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29034 if test "$wx_cv_lib_lesstif" = "yes"; then
29035 cat >>confdefs.h <<\_ACEOF
29036#define __WXLESSTIF__ 1
29037_ACEOF
29038
29039 else
29040 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29041#define __WXLESSTIF__ 0
29042_ACEOF
29043
0ad5d837 29044 fi
2113bc77 29045
a848cd7e
SC
29046 CFLAGS=$save_CFLAGS
29047
62fa8b3a 29048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29049 TOOLKIT=MOTIF
29050 GUIDIST=MOTIF_DIST
29051 fi
29052
74b84332 29053 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29054 if test "$wxUSE_LIBXPM" = "sys"; then
29055 echo "$as_me:$LINENO: checking for Xpm library" >&5
29056echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29057
0ad5d837
VZ
29058 ac_find_libraries=
29059 for ac_dir in $SEARCH_LIB;
a848cd7e 29060 do
3eca31dc 29061 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29062 if test -f "$ac_dir/libXpm.$ac_extension"; then
29063 ac_find_libraries=$ac_dir
29064 break 2
29065 fi
29066 done
29067 done
29068
29069 if test "$ac_find_libraries" != "" ; then
29070
0ad5d837 29071 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29072 ac_path_to_link=""
29073 else
0ad5d837
VZ
29074 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29075 result=$?
29076 if test $result = 0; then
29077 ac_path_to_link=""
29078 else
29079 ac_path_to_link=" -L$ac_find_libraries"
29080 fi
a848cd7e
SC
29081 fi
29082
29083 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29084 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29085echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29086
29087 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29088echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29089if test "${wx_cv_x11_xpm_h+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092
29093 save_CFLAGS=$CFLAGS
29094 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29095
29096 cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102
29103 #include <X11/xpm.h>
29104
29105int
29106main ()
29107{
29108
29109 int version;
29110 version = XpmLibraryVersion();
29111
29112 ;
29113 return 0;
29114}
29115_ACEOF
29116rm -f conftest.$ac_objext
29117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29118 (eval $ac_compile) 2>conftest.er1
a848cd7e 29119 ac_status=$?
ac1cb8d3
VS
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
a848cd7e
SC
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
6ebeb4c7 29125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 wx_cv_x11_xpm_h=yes
29138else
29139 echo "$as_me: failed program was:" >&5
29140sed 's/^/| /' conftest.$ac_ext >&5
29141
29142wx_cv_x11_xpm_h=no
29143
29144fi
ac1cb8d3 29145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29146
29147 CFLAGS=$save_CFLAGS
29148
29149
29150fi
29151echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29152echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29153
29154 if test $wx_cv_x11_xpm_h = "yes"; then
29155 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29156 cat >>confdefs.h <<\_ACEOF
29157#define wxHAVE_LIB_XPM 1
29158_ACEOF
29159
29160 else
29161 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29162echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29163 fi
29164 fi
29165
29166 fi
29167
29168 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29169echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29170if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172else
29173 ac_check_lib_save_LIBS=$LIBS
29174LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29175cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h. */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h. */
29181
29182/* Override any gcc2 internal prototype to avoid an error. */
29183#ifdef __cplusplus
29184extern "C"
29185#endif
29186/* We use char because int might match the return type of a gcc2
29187 builtin and then its argument prototype would still apply. */
29188char XShapeQueryExtension ();
29189int
29190main ()
29191{
29192XShapeQueryExtension ();
29193 ;
29194 return 0;
29195}
29196_ACEOF
29197rm -f conftest.$ac_objext conftest$ac_exeext
29198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29199 (eval $ac_link) 2>conftest.er1
a848cd7e 29200 ac_status=$?
ac1cb8d3
VS
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
a848cd7e
SC
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
6ebeb4c7 29206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29209 ac_status=$?
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; } &&
29212 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 ac_cv_lib_Xext_XShapeQueryExtension=yes
29219else
29220 echo "$as_me: failed program was:" >&5
29221sed 's/^/| /' conftest.$ac_ext >&5
29222
29223ac_cv_lib_Xext_XShapeQueryExtension=no
29224fi
ac1cb8d3
VS
29225rm -f conftest.err conftest.$ac_objext \
29226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29227LIBS=$ac_check_lib_save_LIBS
29228fi
29229echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29230echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29231if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29232
29233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29234 wxHAVE_XEXT_LIB=1
29235
29236fi
29237
29238
29239 if test "$wxHAVE_XEXT_LIB" = 1; then
29240 save_CFLAGS="$CFLAGS"
29241 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29242
29243 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29244echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29245 cat >conftest.$ac_ext <<_ACEOF
29246/* confdefs.h. */
29247_ACEOF
29248cat confdefs.h >>conftest.$ac_ext
29249cat >>conftest.$ac_ext <<_ACEOF
29250/* end confdefs.h. */
29251
29252 #include <X11/Xlib.h>
29253 #include <X11/extensions/shape.h>
29254
29255int
29256main ()
29257{
29258
29259 int dummy1, dummy2;
29260 XShapeQueryExtension((Display*)NULL,
29261 (int*)NULL, (int*)NULL);
29262
29263 ;
29264 return 0;
29265}
29266_ACEOF
29267rm -f conftest.$ac_objext
29268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29269 (eval $ac_compile) 2>conftest.er1
a848cd7e 29270 ac_status=$?
ac1cb8d3
VS
29271 grep -v '^ *+' conftest.er1 >conftest.err
29272 rm -f conftest.er1
29273 cat conftest.err >&5
a848cd7e
SC
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } &&
6ebeb4c7 29276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29278 (eval $ac_try) 2>&5
29279 ac_status=$?
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); }; } &&
29282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; }; then
29288
29289 cat >>confdefs.h <<\_ACEOF
29290#define HAVE_XSHAPE 1
29291_ACEOF
29292
29293 echo "$as_me:$LINENO: result: found" >&5
29294echo "${ECHO_T}found" >&6
29295
29296else
29297 echo "$as_me: failed program was:" >&5
29298sed 's/^/| /' conftest.$ac_ext >&5
29299
29300
29301 echo "$as_me:$LINENO: result: not found" >&5
29302echo "${ECHO_T}not found" >&6
29303
29304fi
ac1cb8d3 29305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29306 CFLAGS="$save_CFLAGS"
29307
29308 fi
29309 fi
29310
29311 if test "$wxUSE_MAC" = 1; then
29312 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29313echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29314 if test "$GCC" = yes; then
29315 echo "$as_me:$LINENO: result: gcc" >&5
29316echo "${ECHO_T}gcc" >&6
29317 CPPFLAGS_PASCAL="-fpascal-strings"
29318 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29319 echo "$as_me:$LINENO: result: xlc" >&5
29320echo "${ECHO_T}xlc" >&6
29321 CPPFLAGS_PASCAL="-qmacpstr"
29322 else
29323 echo "$as_me:$LINENO: result: none" >&5
29324echo "${ECHO_T}none" >&6
29325 fi
29326
1e9e8aba
DE
29327 if test "x$wxUSE_UNIX" = "xyes"; then
29328 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29329 else
29330 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29331 fi
a848cd7e 29332
a848cd7e
SC
29333 TOOLKIT=MAC
29334 GUIDIST=MACX_DIST
dd21ced8 29335 WXBASEPORT="_carbon"
a848cd7e
SC
29336 fi
29337
29338 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29339 TOOLKIT=COCOA
29340 GUIDIST=COCOA_DIST
29341 fi
29342
29343 if test "$wxUSE_PM" = 1; then
29344 TOOLKIT=PM
de59c161
RD
29345 GUIDIST=PM_DIST
29346 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29347echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29348if test "${wx_cv_spbcdata+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29350else
29351
29352 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29353/* confdefs.h. */
29354_ACEOF
29355cat confdefs.h >>conftest.$ac_ext
29356cat >>conftest.$ac_ext <<_ACEOF
29357/* end confdefs.h. */
29358
29359 #define INCL_PM
29360 #include <os2.h>
29361
29362int
29363main ()
29364{
29365
29366 SPBCDATA test;
29367
29368 ;
29369 return 0;
29370}
29371_ACEOF
29372rm -f conftest.$ac_objext
29373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29374 (eval $ac_compile) 2>conftest.er1
de59c161 29375 ac_status=$?
ac1cb8d3
VS
29376 grep -v '^ *+' conftest.er1 >conftest.err
29377 rm -f conftest.er1
29378 cat conftest.err >&5
de59c161
RD
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); } &&
6ebeb4c7 29381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; } &&
29387 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
29393 wx_cv_spbcdata=yes
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398wx_cv_spbcdata=no
29399
29400fi
ac1cb8d3 29401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29402
29403
29404fi
29405echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29406echo "${ECHO_T}$wx_cv_spbcdata" >&6
29407
29408 if test $wx_cv_spbcdata = "yes"; then
29409 cat >>confdefs.h <<\_ACEOF
29410#define HAVE_SPBCDATA 1
29411_ACEOF
29412
29413 fi
a848cd7e
SC
29414 fi
29415
29416 if test "$TOOLKIT" = "PM" ; then
29417 TOOLKIT_DIR="os2"
29418 else
29419 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29420 fi
29421
a848cd7e 29422 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29423 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29424 WIDGET_SET=univ
a848cd7e
SC
29425 fi
29426
29427 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29428 DISTDIR="wx\$(TOOLKIT)"
29429else
29430 USE_GUI=0
29431
29432 TOOLKIT_DIR="base"
29433
29434 if test "$USE_WIN32" = 1 ; then
a848cd7e 29435 TOOLKIT="MSW"
a848cd7e
SC
29436 fi
29437
a848cd7e
SC
29438 GUIDIST="BASE_DIST"
29439 DISTDIR="wxBase"
29440fi
29441
29442
d12aef51
VZ
29443if test "$wxUSE_GUI" = "yes"; then
29444 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29445
29446for ac_header in X11/Xlib.h
29447do
29448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29449if eval "test \"\${$as_ac_Header+set}\" = set"; then
29450 echo "$as_me:$LINENO: checking for $ac_header" >&5
29451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29452if eval "test \"\${$as_ac_Header+set}\" = set"; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454fi
29455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29457else
29458 # Is the header compilable?
29459echo "$as_me:$LINENO: checking $ac_header usability" >&5
29460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29461cat >conftest.$ac_ext <<_ACEOF
29462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
29467$ac_includes_default
29468#include <$ac_header>
29469_ACEOF
29470rm -f conftest.$ac_objext
29471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29472 (eval $ac_compile) 2>conftest.er1
29473 ac_status=$?
29474 grep -v '^ *+' conftest.er1 >conftest.err
29475 rm -f conftest.er1
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
29486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 ac_header_compiler=yes
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496ac_header_compiler=no
29497fi
29498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29500echo "${ECHO_T}$ac_header_compiler" >&6
29501
29502# Is the header present?
29503echo "$as_me:$LINENO: checking $ac_header presence" >&5
29504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29505cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511#include <$ac_header>
29512_ACEOF
29513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29515 ac_status=$?
29516 grep -v '^ *+' conftest.er1 >conftest.err
29517 rm -f conftest.er1
29518 cat conftest.err >&5
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } >/dev/null; then
29521 if test -s conftest.err; then
29522 ac_cpp_err=$ac_c_preproc_warn_flag
29523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29524 else
29525 ac_cpp_err=
29526 fi
29527else
29528 ac_cpp_err=yes
29529fi
29530if test -z "$ac_cpp_err"; then
29531 ac_header_preproc=yes
29532else
29533 echo "$as_me: failed program was:" >&5
29534sed 's/^/| /' conftest.$ac_ext >&5
29535
29536 ac_header_preproc=no
29537fi
29538rm -f conftest.err conftest.$ac_ext
29539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29540echo "${ECHO_T}$ac_header_preproc" >&6
29541
29542# So? What about this header?
29543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29544 yes:no: )
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29549 ac_header_preproc=yes
29550 ;;
29551 no:yes:* )
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29564 (
29565 cat <<\_ASBOX
29566## ----------------------------------------- ##
29567## Report this to wx-dev@lists.wxwidgets.org ##
29568## ----------------------------------------- ##
29569_ASBOX
29570 ) |
29571 sed "s/^/$as_me: WARNING: /" >&2
29572 ;;
29573esac
29574echo "$as_me:$LINENO: checking for $ac_header" >&5
29575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29576if eval "test \"\${$as_ac_Header+set}\" = set"; then
29577 echo $ECHO_N "(cached) $ECHO_C" >&6
29578else
29579 eval "$as_ac_Header=\$ac_header_preproc"
29580fi
29581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29583
29584fi
29585if test `eval echo '${'$as_ac_Header'}'` = yes; then
29586 cat >>confdefs.h <<_ACEOF
29587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29588_ACEOF
29589
29590fi
29591
29592done
29593
29594
29595for ac_header in X11/XKBlib.h
29596do
29597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29598echo "$as_me:$LINENO: checking for $ac_header" >&5
29599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29600if eval "test \"\${$as_ac_Header+set}\" = set"; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29602else
29603 cat >conftest.$ac_ext <<_ACEOF
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609
29610 #if HAVE_X11_XLIB_H
29611 #include <X11/Xlib.h>
29612 #endif
29613
29614
29615#include <$ac_header>
29616_ACEOF
29617rm -f conftest.$ac_objext
29618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29619 (eval $ac_compile) 2>conftest.er1
29620 ac_status=$?
29621 grep -v '^ *+' conftest.er1 >conftest.err
29622 rm -f conftest.er1
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } &&
29626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; } &&
29632 { ac_try='test -s conftest.$ac_objext'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 eval "$as_ac_Header=yes"
29639else
29640 echo "$as_me: failed program was:" >&5
29641sed 's/^/| /' conftest.$ac_ext >&5
29642
29643eval "$as_ac_Header=no"
29644fi
29645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29646fi
29647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29649if test `eval echo '${'$as_ac_Header'}'` = yes; then
29650 cat >>confdefs.h <<_ACEOF
29651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29652_ACEOF
29653
29654fi
29655
29656done
29657
29658 fi
29659fi
29660
a848cd7e
SC
29661
29662
29663IODBC_C_SRC=""
29664
29665
29666if test "$TOOLKIT" != "MSW" ; then
29667
29668 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29669
29670 if test "${ac_cv_header_sql_h+set}" = set; then
29671 echo "$as_me:$LINENO: checking for sql.h" >&5
29672echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29673if test "${ac_cv_header_sql_h+set}" = set; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29675fi
29676echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29677echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29678else
29679 # Is the header compilable?
29680echo "$as_me:$LINENO: checking sql.h usability" >&5
29681echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29682cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688$ac_includes_default
29689#include <sql.h>
29690_ACEOF
29691rm -f conftest.$ac_objext
29692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29693 (eval $ac_compile) 2>conftest.er1
a848cd7e 29694 ac_status=$?
ac1cb8d3
VS
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
a848cd7e
SC
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
6ebeb4c7 29700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 ac_header_compiler=yes
29713else
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
29717ac_header_compiler=no
29718fi
ac1cb8d3 29719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29721echo "${ECHO_T}$ac_header_compiler" >&6
29722
29723# Is the header present?
29724echo "$as_me:$LINENO: checking sql.h presence" >&5
29725echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29726cat >conftest.$ac_ext <<_ACEOF
29727/* confdefs.h. */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h. */
29732#include <sql.h>
29733_ACEOF
29734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29736 ac_status=$?
29737 grep -v '^ *+' conftest.er1 >conftest.err
29738 rm -f conftest.er1
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } >/dev/null; then
29742 if test -s conftest.err; then
29743 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29745 else
29746 ac_cpp_err=
29747 fi
29748else
29749 ac_cpp_err=yes
29750fi
29751if test -z "$ac_cpp_err"; then
29752 ac_header_preproc=yes
29753else
29754 echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
29757 ac_header_preproc=no
29758fi
29759rm -f conftest.err conftest.$ac_ext
29760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29761echo "${ECHO_T}$ac_header_preproc" >&6
29762
29763# So? What about this header?
ac1cb8d3
VS
29764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29765 yes:no: )
a848cd7e
SC
29766 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29767echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29768 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29769echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29770 ac_header_preproc=yes
a848cd7e 29771 ;;
ac1cb8d3 29772 no:yes:* )
a848cd7e
SC
29773 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29774echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29775 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29776echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29778echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29780echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29781 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29782echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29783 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29784echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29785 (
29786 cat <<\_ASBOX
ac1cb8d3
VS
29787## ----------------------------------------- ##
29788## Report this to wx-dev@lists.wxwidgets.org ##
29789## ----------------------------------------- ##
a848cd7e
SC
29790_ASBOX
29791 ) |
29792 sed "s/^/$as_me: WARNING: /" >&2
29793 ;;
29794esac
29795echo "$as_me:$LINENO: checking for sql.h" >&5
29796echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29797if test "${ac_cv_header_sql_h+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799else
29800 ac_cv_header_sql_h=$ac_header_preproc
29801fi
29802echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29803echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29804
29805fi
29806if test $ac_cv_header_sql_h = yes; then
29807 found_sql_h=1
29808fi
29809
29810
29811 if test "x$found_sql_h" = "x1" ; then
29812 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29813echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29814if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29816else
29817 ac_check_lib_save_LIBS=$LIBS
29818LIBS="-liodbc $LIBS"
29819cat >conftest.$ac_ext <<_ACEOF
29820/* confdefs.h. */
29821_ACEOF
29822cat confdefs.h >>conftest.$ac_ext
29823cat >>conftest.$ac_ext <<_ACEOF
29824/* end confdefs.h. */
29825
29826/* Override any gcc2 internal prototype to avoid an error. */
29827#ifdef __cplusplus
29828extern "C"
29829#endif
29830/* We use char because int might match the return type of a gcc2
29831 builtin and then its argument prototype would still apply. */
29832char SQLAllocEnv ();
29833int
29834main ()
29835{
29836SQLAllocEnv ();
29837 ;
29838 return 0;
29839}
29840_ACEOF
29841rm -f conftest.$ac_objext conftest$ac_exeext
29842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29843 (eval $ac_link) 2>conftest.er1
a848cd7e 29844 ac_status=$?
ac1cb8d3
VS
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
a848cd7e
SC
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
6ebeb4c7 29850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; } &&
29856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
29862 ac_cv_lib_iodbc_SQLAllocEnv=yes
29863else
29864 echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867ac_cv_lib_iodbc_SQLAllocEnv=no
29868fi
ac1cb8d3
VS
29869rm -f conftest.err conftest.$ac_objext \
29870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29871LIBS=$ac_check_lib_save_LIBS
29872fi
29873echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29874echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29875if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29876 ODBC_LINK=" -liodbc"
29877else
29878
29879 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29880echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29881if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884 ac_check_lib_save_LIBS=$LIBS
29885LIBS="-lunixodbc $LIBS"
29886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892
29893/* Override any gcc2 internal prototype to avoid an error. */
29894#ifdef __cplusplus
29895extern "C"
29896#endif
29897/* We use char because int might match the return type of a gcc2
29898 builtin and then its argument prototype would still apply. */
29899char SQLAllocEnv ();
29900int
29901main ()
29902{
29903SQLAllocEnv ();
29904 ;
29905 return 0;
29906}
29907_ACEOF
29908rm -f conftest.$ac_objext conftest$ac_exeext
29909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29910 (eval $ac_link) 2>conftest.er1
a848cd7e 29911 ac_status=$?
ac1cb8d3
VS
29912 grep -v '^ *+' conftest.er1 >conftest.err
29913 rm -f conftest.er1
29914 cat conftest.err >&5
a848cd7e
SC
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } &&
6ebeb4c7 29917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; } &&
29923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
29929 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934ac_cv_lib_unixodbc_SQLAllocEnv=no
29935fi
ac1cb8d3
VS
29936rm -f conftest.err conftest.$ac_objext \
29937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29938LIBS=$ac_check_lib_save_LIBS
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29941echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29942if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29943 ODBC_LINK=" -lunixodbc"
29944else
29945
29946 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29947echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29948if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950else
29951 ac_check_lib_save_LIBS=$LIBS
29952LIBS="-lodbc $LIBS"
29953cat >conftest.$ac_ext <<_ACEOF
29954/* confdefs.h. */
29955_ACEOF
29956cat confdefs.h >>conftest.$ac_ext
29957cat >>conftest.$ac_ext <<_ACEOF
29958/* end confdefs.h. */
29959
29960/* Override any gcc2 internal prototype to avoid an error. */
29961#ifdef __cplusplus
29962extern "C"
29963#endif
29964/* We use char because int might match the return type of a gcc2
29965 builtin and then its argument prototype would still apply. */
29966char SQLAllocEnv ();
29967int
29968main ()
29969{
29970SQLAllocEnv ();
29971 ;
29972 return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext conftest$ac_exeext
29976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29977 (eval $ac_link) 2>conftest.er1
a848cd7e 29978 ac_status=$?
ac1cb8d3
VS
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
a848cd7e
SC
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
6ebeb4c7 29984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 ac_cv_lib_odbc_SQLAllocEnv=yes
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001ac_cv_lib_odbc_SQLAllocEnv=no
30002fi
ac1cb8d3
VS
30003rm -f conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30005LIBS=$ac_check_lib_save_LIBS
30006fi
30007echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30008echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30009if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30010 ODBC_LINK=" -lodbc"
30011fi
30012
30013
30014fi
30015
30016
30017fi
30018
30019 fi
30020 if test "x$ODBC_LINK" = "x" ; then
30021 if test "$wxUSE_ODBC" = "sys" ; then
30022 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30023echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30024 { (exit 1); exit 1; }; }
30025 else
30026 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30027echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30028 wxUSE_ODBC=builtin
30029 fi
30030 else
30031 wxUSE_ODBC=sys
30032 fi
30033 fi
a848cd7e 30034
2da0c077
RD
30035 if test "$wxUSE_ODBC" = "builtin" ; then
30036 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30037#define wxUSE_BUILTIN_IODBC 1
30038_ACEOF
30039
a848cd7e
SC
30040 fi
30041fi
30042
2da0c077
RD
30043if test "$wxUSE_ODBC" != "no" ; then
30044 cat >>confdefs.h <<\_ACEOF
30045#define wxUSE_ODBC 1
30046_ACEOF
30047
30048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30049
30050 WXODBCFLAG="-D_IODBC_"
30051fi
a848cd7e 30052
01cb68df 30053
a848cd7e 30054if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30055 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30056 echo "$as_me:$LINENO: checking for Xinerama" >&5
30057echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30058
0ad5d837
VZ
30059 ac_find_libraries=
30060 for ac_dir in $SEARCH_LIB;
30061 do
30062 for ac_extension in a so sl dylib dll.a; do
30063 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30064 ac_find_libraries=$ac_dir
30065 break 2
30066 fi
30067 done
30068 done
30069
a848cd7e
SC
30070 if test "$ac_find_libraries" != "" ; then
30071
0ad5d837 30072 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30073 ac_path_to_link=""
30074 else
0ad5d837
VZ
30075 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30076 result=$?
30077 if test $result = 0; then
30078 ac_path_to_link=""
30079 else
30080 ac_path_to_link=" -L$ac_find_libraries"
30081 fi
a848cd7e
SC
30082 fi
30083
30084 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30085 LDFLAGS="$LDFLAGS $ac_path_to_link"
30086 fi
30087 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30088 echo "$as_me:$LINENO: result: yes" >&5
30089echo "${ECHO_T}yes" >&6
30090
30091 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30092echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30093
0ad5d837
VZ
30094 ac_find_libraries=
30095 for ac_dir in $SEARCH_LIB;
a848cd7e 30096 do
3eca31dc 30097 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30098 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30099 ac_find_libraries=$ac_dir
30100 break 2
30101 fi
30102 done
30103 done
30104
30105 if test "$ac_find_libraries" != "" ; then
30106 echo "$as_me:$LINENO: result: yes" >&5
30107echo "${ECHO_T}yes" >&6
30108
30109for ac_header in X11/extensions/xf86vmode.h
30110do
30111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30112echo "$as_me:$LINENO: checking for $ac_header" >&5
30113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30114if eval "test \"\${$as_ac_Header+set}\" = set"; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30116else
30117 cat >conftest.$ac_ext <<_ACEOF
30118/* confdefs.h. */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h. */
30123
30124 #if HAVE_X11_XLIB_H
30125 #include <X11/Xlib.h>
30126 #endif
30127
30128
30129#include <$ac_header>
30130_ACEOF
30131rm -f conftest.$ac_objext
30132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30133 (eval $ac_compile) 2>conftest.er1
a848cd7e 30134 ac_status=$?
ac1cb8d3
VS
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
a848cd7e
SC
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } &&
6ebeb4c7 30140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_Header=yes"
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
30157eval "$as_ac_Header=no"
30158fi
ac1cb8d3 30159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30160fi
30161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30163if test `eval echo '${'$as_ac_Header'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30166_ACEOF
30167
30168 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30169
30170fi
30171
30172done
30173
30174 else
30175 echo "$as_me:$LINENO: result: no" >&5
30176echo "${ECHO_T}no" >&6
30177 fi
30178
30179 else
30180 echo "$as_me:$LINENO: result: no" >&5
30181echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30182 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30183echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30184 wxUSE_DISPLAY="no"
30185 fi
01cb68df
RG
30186 elif test "$wxUSE_MSW" = 1; then
30187
30188
30189for ac_header in multimon.h ddraw.h
30190do
30191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30192echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30194if eval "test \"\${$as_ac_Header+set}\" = set"; then
30195 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30196else
5294a27e 30197 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30198/* confdefs.h. */
30199_ACEOF
30200cat confdefs.h >>conftest.$ac_ext
30201cat >>conftest.$ac_ext <<_ACEOF
30202/* end confdefs.h. */
5294a27e
VZ
30203#include <windows.h>
30204
01cb68df
RG
30205#include <$ac_header>
30206_ACEOF
30207rm -f conftest.$ac_objext
30208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30209 (eval $ac_compile) 2>conftest.er1
01cb68df 30210 ac_status=$?
ac1cb8d3
VS
30211 grep -v '^ *+' conftest.er1 >conftest.err
30212 rm -f conftest.er1
30213 cat conftest.err >&5
01cb68df
RG
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
6ebeb4c7 30216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; } &&
30222 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30224 (eval $ac_try) 2>&5
30225 ac_status=$?
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); }; }; then
5294a27e 30228 eval "$as_ac_Header=yes"
01cb68df
RG
30229else
30230 echo "$as_me: failed program was:" >&5
30231sed 's/^/| /' conftest.$ac_ext >&5
30232
5294a27e 30233eval "$as_ac_Header=no"
01cb68df 30234fi
ac1cb8d3 30235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30236fi
30237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30239if test `eval echo '${'$as_ac_Header'}'` = yes; then
30240 cat >>confdefs.h <<_ACEOF
30241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30242_ACEOF
30243
30244else
30245
5294a27e
VZ
30246 wxUSE_DISPLAY="no"
30247 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30248echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30249
30250fi
30251
30252done
30253
a848cd7e
SC
30254 fi
30255fi
30256
30257
30258USE_OPENGL=0
30259if test "$wxUSE_OPENGL" = "yes"; then
30260 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30261 OPENGL_LIBS="-framework OpenGL -framework AGL"
30262 elif test "$wxUSE_MSW" = 1; then
30263 OPENGL_LIBS="-lopengl32 -lglu32"
30264 else
30265
30266
30267ac_find_includes=
30268for ac_dir in $SEARCH_INCLUDE /usr/include;
30269 do
30270 if test -f "$ac_dir/GL/gl.h"; then
30271 ac_find_includes=$ac_dir
30272 break
30273 fi
30274 done
30275
30276 if test "$ac_find_includes" != "" ; then
30277 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30278echo "${ECHO_T}found in $ac_find_includes" >&6
30279
30280 if test "x$ac_find_includes" = "x/usr/include"; then
30281 ac_path_to_include=""
30282 else
30283 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30284 result=$?
30285 if test $result = 0; then
30286 ac_path_to_include=""
30287 else
30288 ac_path_to_include=" -I$ac_find_includes"
30289 fi
30290 fi
30291
30292 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30293 fi
30294
30295 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30296 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30297echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30298if test "${ac_cv_header_GL_gl_h+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300fi
30301echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30302echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30303else
30304 # Is the header compilable?
30305echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30306echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30307cat >conftest.$ac_ext <<_ACEOF
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
30313$ac_includes_default
30314#include <GL/gl.h>
30315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30318 (eval $ac_compile) 2>conftest.er1
a848cd7e 30319 ac_status=$?
ac1cb8d3
VS
30320 grep -v '^ *+' conftest.er1 >conftest.err
30321 rm -f conftest.er1
30322 cat conftest.err >&5
a848cd7e
SC
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } &&
6ebeb4c7 30325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30334 ac_status=$?
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; }; then
30337 ac_header_compiler=yes
30338else
30339 echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342ac_header_compiler=no
30343fi
ac1cb8d3 30344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30346echo "${ECHO_T}$ac_header_compiler" >&6
30347
30348# Is the header present?
30349echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30350echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30351cat >conftest.$ac_ext <<_ACEOF
30352/* confdefs.h. */
30353_ACEOF
30354cat confdefs.h >>conftest.$ac_ext
30355cat >>conftest.$ac_ext <<_ACEOF
30356/* end confdefs.h. */
30357#include <GL/gl.h>
30358_ACEOF
30359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30361 ac_status=$?
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } >/dev/null; then
30367 if test -s conftest.err; then
30368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30370 else
30371 ac_cpp_err=
30372 fi
30373else
30374 ac_cpp_err=yes
30375fi
30376if test -z "$ac_cpp_err"; then
30377 ac_header_preproc=yes
30378else
30379 echo "$as_me: failed program was:" >&5
30380sed 's/^/| /' conftest.$ac_ext >&5
30381
30382 ac_header_preproc=no
30383fi
30384rm -f conftest.err conftest.$ac_ext
30385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30386echo "${ECHO_T}$ac_header_preproc" >&6
30387
30388# So? What about this header?
ac1cb8d3
VS
30389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30390 yes:no: )
a848cd7e
SC
30391 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30392echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30393 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30394echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30395 ac_header_preproc=yes
a848cd7e 30396 ;;
ac1cb8d3 30397 no:yes:* )
a848cd7e
SC
30398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30399echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30400 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30401echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30403echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30404 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30405echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30406 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30407echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30409echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30410 (
30411 cat <<\_ASBOX
ac1cb8d3
VS
30412## ----------------------------------------- ##
30413## Report this to wx-dev@lists.wxwidgets.org ##
30414## ----------------------------------------- ##
a848cd7e
SC
30415_ASBOX
30416 ) |
30417 sed "s/^/$as_me: WARNING: /" >&2
30418 ;;
30419esac
30420echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30421echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30422if test "${ac_cv_header_GL_gl_h+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425 ac_cv_header_GL_gl_h=$ac_header_preproc
30426fi
30427echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30428echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30429
30430fi
30431if test $ac_cv_header_GL_gl_h = yes; then
30432
30433 found_gl=0
30434
30435 echo "$as_me:$LINENO: checking for -lGL" >&5
30436echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30437
0ad5d837
VZ
30438 ac_find_libraries=
30439 for ac_dir in $SEARCH_LIB;
a848cd7e 30440 do
3eca31dc 30441 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30442 if test -f "$ac_dir/libGL.$ac_extension"; then
30443 ac_find_libraries=$ac_dir
30444 break 2
30445 fi
30446 done
30447 done
30448
30449 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30450 echo "$as_me:$LINENO: result: yes" >&5
30451echo "${ECHO_T}yes" >&6
30452
a848cd7e 30453
0ad5d837 30454 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30455 ac_path_to_link=""
30456 else
0ad5d837
VZ
30457 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30458 result=$?
30459 if test $result = 0; then
30460 ac_path_to_link=""
30461 else
30462 ac_path_to_link=" -L$ac_find_libraries"
30463 fi
a848cd7e
SC
30464 fi
30465
30466 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30467 LDFLAGS_GL="$ac_path_to_link"
30468 fi
30469
69120ee4
VZ
30470 echo "$as_me:$LINENO: checking for -lGLU" >&5
30471echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30472
0ad5d837
VZ
30473 ac_find_libraries=
30474 for ac_dir in $SEARCH_LIB;
30475 do
30476 for ac_extension in a so sl dylib dll.a; do
30477 if test -f "$ac_dir/libGLU.$ac_extension"; then
30478 ac_find_libraries=$ac_dir
30479 break 2
30480 fi
30481 done
30482 done
30483
a848cd7e
SC
30484 if test "$ac_find_libraries" != "" ; then
30485
0ad5d837 30486 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30487 ac_path_to_link=""
30488 else
0ad5d837
VZ
30489 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30490 result=$?
30491 if test $result = 0; then
30492 ac_path_to_link=""
30493 else
30494 ac_path_to_link=" -L$ac_find_libraries"
30495 fi
a848cd7e
SC
30496 fi
30497
30498 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30499 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30500 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30501 fi
30502
30503 found_gl=1
30504 OPENGL_LIBS="-lGL -lGLU"
30505 echo "$as_me:$LINENO: result: yes" >&5
30506echo "${ECHO_T}yes" >&6
69120ee4
VZ
30507 else
30508 echo "$as_me:$LINENO: result: no" >&5
30509echo "${ECHO_T}no" >&6
a848cd7e 30510 fi
69120ee4
VZ
30511 else
30512 echo "$as_me:$LINENO: result: no" >&5
30513echo "${ECHO_T}no" >&6
a848cd7e
SC
30514 fi
30515
30516 if test "$found_gl" != 1; then
a848cd7e
SC
30517 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30518echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30519
0ad5d837
VZ
30520 ac_find_libraries=
30521 for ac_dir in $SEARCH_LIB;
a848cd7e 30522 do
3eca31dc 30523 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30524 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30525 ac_find_libraries=$ac_dir
30526 break 2
30527 fi
30528 done
30529 done
30530
30531 if test "$ac_find_libraries" != "" ; then
30532
0ad5d837 30533 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30534 ac_path_to_link=""
30535 else
0ad5d837
VZ
30536 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30537 result=$?
30538 if test $result = 0; then
30539 ac_path_to_link=""
30540 else
30541 ac_path_to_link=" -L$ac_find_libraries"
30542 fi
a848cd7e
SC
30543 fi
30544
30545 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30546 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30547 echo "$as_me:$LINENO: result: yes" >&5
30548echo "${ECHO_T}yes" >&6
30549 else
30550 echo "$as_me:$LINENO: result: no" >&5
30551echo "${ECHO_T}no" >&6
30552 fi
30553 fi
30554
30555fi
30556
30557
30558
30559 if test "x$OPENGL_LIBS" = "x"; then
30560 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30561echo "$as_me: error: OpenGL libraries not available" >&2;}
30562 { (exit 1); exit 1; }; }
30563 fi
30564 fi
30565
30566 if test "$wxUSE_OPENGL" = "yes"; then
30567 USE_OPENGL=1
30568 cat >>confdefs.h <<\_ACEOF
30569#define wxUSE_OPENGL 1
30570_ACEOF
30571
30572 cat >>confdefs.h <<\_ACEOF
30573#define wxUSE_GLCANVAS 1
30574_ACEOF
30575
30576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30577 fi
30578fi
30579
a848cd7e
SC
30580
30581if test -n "$TOOLKIT" ; then
30582 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30583fi
30584
a848cd7e
SC
30585
30586
30587if test "$wxUSE_SHARED" = "yes"; then
30588 case "${host}" in
30589 *-pc-msdosdjgpp )
30590 wxUSE_SHARED=no
30591 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30592echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30593 ;;
30594 esac
30595fi
30596
a848cd7e 30597if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30598
30599
30600 found_versioning=no
30601
30602
30603 if test $found_versioning = no ; then
30604 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30605echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30606if test "${wx_cv_version_script+set}" = set; then
30607 echo $ECHO_N "(cached) $ECHO_C" >&6
30608else
30609
30610 echo "VER_1 { *; };" >conftest.sym
30611 echo "int main() { return 0; }" >conftest.cpp
30612
30613 if { ac_try='
30614 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30615 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617 (eval $ac_try) 2>&5
30618 ac_status=$?
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } ; then
30621 if test -s conftest.stderr ; then
30622 wx_cv_version_script=no
30623 else
30624 wx_cv_version_script=yes
30625 fi
30626 else
30627 wx_cv_version_script=no
30628 fi
e5d4b470
MW
30629
30630 if test $wx_cv_version_script = yes
30631 then
30632 echo "struct B { virtual ~B() { } }; \
30633 struct D : public B { }; \
30634 void F() { D d; }" > conftest.cpp
30635
30636 if { ac_try='
30637 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30638 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='
30645 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30646 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; }
30652 then
30653 if { ac_try='
30654 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30655 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }
30661 then
30662 wx_cv_version_script=yes
30663 else
30664 wx_cv_version_script=no
30665 fi
30666 fi
30667 fi
30668
a848cd7e 30669 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30670 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30671
30672fi
30673echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30674echo "${ECHO_T}$wx_cv_version_script" >&6
30675 if test $wx_cv_version_script = yes ; then
30676 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30677 fi
30678 fi
30679
30680
30681 case "${host}" in
30682 *-*-linux* | *-*-gnu* )
30683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30684 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30685 ;;
a848cd7e
SC
30686
30687 *-*-solaris2* )
30688 if test "$GCC" = yes ; then
30689 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30690
30691 saveLdflags="$LDFLAGS"
30692 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30693 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30694echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30695 cat >conftest.$ac_ext <<_ACEOF
30696/* confdefs.h. */
30697_ACEOF
30698cat confdefs.h >>conftest.$ac_ext
30699cat >>conftest.$ac_ext <<_ACEOF
30700/* end confdefs.h. */
30701
30702int
30703main ()
30704{
30705
30706 ;
30707 return 0;
30708}
30709_ACEOF
30710rm -f conftest.$ac_objext conftest$ac_exeext
30711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30712 (eval $ac_link) 2>conftest.er1
a848cd7e 30713 ac_status=$?
ac1cb8d3
VS
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
a848cd7e
SC
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } &&
6ebeb4c7 30719 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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
30732 echo "$as_me:$LINENO: result: yes" >&5
30733echo "${ECHO_T}yes" >&6
30734 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30735 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30736
30737else
30738 echo "$as_me: failed program was:" >&5
30739sed 's/^/| /' conftest.$ac_ext >&5
30740
30741
30742 echo "$as_me:$LINENO: result: no" >&5
30743echo "${ECHO_T}no" >&6
30744 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30745echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30746 LDFLAGS="$saveLdflags -Wl,-R,/"
30747 cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
30753
30754int
30755main ()
30756{
30757
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext conftest$ac_exeext
30763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30764 (eval $ac_link) 2>conftest.er1
a848cd7e 30765 ac_status=$?
ac1cb8d3
VS
30766 grep -v '^ *+' conftest.er1 >conftest.err
30767 rm -f conftest.er1
30768 cat conftest.err >&5
a848cd7e
SC
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); } &&
6ebeb4c7 30771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); }; } &&
30777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; }; then
30783
ffa0583f 30784 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30785echo "${ECHO_T}yes" >&6
ffa0583f
RL
30786 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30787 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30788
a848cd7e
SC
30789else
30790 echo "$as_me: failed program was:" >&5
30791sed 's/^/| /' conftest.$ac_ext >&5
30792
30793
30794 echo "$as_me:$LINENO: result: no" >&5
30795echo "${ECHO_T}no" >&6
30796
30797fi
ac1cb8d3
VS
30798rm -f conftest.err conftest.$ac_objext \
30799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30800
30801fi
ac1cb8d3
VS
30802rm -f conftest.err conftest.$ac_objext \
30803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30804 LDFLAGS="$saveLdflags"
30805 else
a848cd7e 30806 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30807 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30808 fi
30809 ;;
30810
cfda0ea8 30811 *-*-darwin* )
0caebc27
MW
30812 install_name_tool=`which install_name_tool`
30813 if test "$install_name_tool" -a -x "$install_name_tool"; then
30814 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30815 cat <<EOF >change-install-names
a848cd7e
SC
30816#!/bin/sh
30817libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30818inst_cmd="install_name_tool "
30819for i in \${libnames} ; do
30820 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30821done
30822\${inst_cmd} \${3}
30823EOF
0caebc27
MW
30824 chmod +x change-install-names
30825 fi
a848cd7e
SC
30826 ;;
30827
30828 *-*-cygwin* | *-*-mingw32* )
30829 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30830 ;;
30831
81f90336
MW
30832 *-*-hpux* )
30833 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30834 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30835 ;;
30836
a848cd7e 30837 esac
ceec2216 30838
ffa0583f
RL
30839 if test $wxUSE_RPATH = "no"; then
30840 SAMPLES_RPATH_FLAG=''
30841 SAMPLES_RPATH_POSTLINK=''
30842 WXCONFIG_RPATH=''
30843 fi
30844
30845 SHARED=1
30846
30847else
30848
ceec2216
RL
30849 config_linkage_component="-static"
30850 SHARED=0
ffa0583f 30851
ceec2216 30852fi
a848cd7e 30853
a848cd7e 30854
ceec2216
RL
30855UNICODE=0
30856lib_unicode_suffix=
30857WX_CHARTYPE="ansi"
30858if test "$wxUSE_UNICODE" = "yes"; then
30859 lib_unicode_suffix=u
30860 WX_CHARTYPE="unicode"
30861 UNICODE=1
a848cd7e
SC
30862fi
30863
ceec2216
RL
30864lib_debug_suffix=
30865WX_DEBUGTYPE="release"
30866DEBUG_FLAG=0
30867if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30868 lib_debug_suffix=d
30869 WX_DEBUGTYPE="debug"
30870 DEBUG_FLAG=1
30871fi
a848cd7e 30872
ceec2216
RL
30873WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30874WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30875
ceec2216
RL
30876DEBUG_INFO=0
30877if test "$wxUSE_DEBUG_INFO" = "yes"; then
30878 DEBUG_INFO=1
30879fi
a848cd7e 30880
ceec2216 30881WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30882
ceec2216 30883TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30884
ceec2216 30885TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30886
ceec2216
RL
30887if test "$cross_compiling" = "yes"; then
30888 HOST_SUFFIX="-$host_alias"
30889 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30890 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30891fi
30892
dd21ced8 30893WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30894if test "${TOOLKIT_DIR}" = "os2"; then
30895 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30896else
30897 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30898fi
ceec2216
RL
30899
30900
30901
1d1af5ea
DE
30902if test "$wxUSE_COCOA" = 1; then
30903
30904
30905 ac_ext=c
30906ac_cpp='$CPP $CPPFLAGS'
30907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909ac_compiler_gnu=$ac_cv_c_compiler_gnu
30910
30911ac_ext=m
30912
30913 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30914echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30915 cat >conftest.$ac_ext <<_ACEOF
30916/* confdefs.h. */
30917_ACEOF
30918cat confdefs.h >>conftest.$ac_ext
30919cat >>conftest.$ac_ext <<_ACEOF
30920/* end confdefs.h. */
30921#include <AppKit/NSEvent.h>
30922#include <CoreFoundation/CoreFoundation.h>
30923
30924int
30925main ()
30926{
30927
30928 ;
30929 return 0;
30930}
30931_ACEOF
30932rm -f conftest.$ac_objext
30933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30934 (eval $ac_compile) 2>conftest.er1
30935 ac_status=$?
30936 grep -v '^ *+' conftest.er1 >conftest.err
30937 rm -f conftest.er1
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } &&
6ebeb4c7 30941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30944 ac_status=$?
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; } &&
30947 { ac_try='test -s conftest.$ac_objext'
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30953 echo "$as_me:$LINENO: result: no" >&5
30954echo "${ECHO_T}no" >&6
30955else
30956 echo "$as_me: failed program was:" >&5
30957sed 's/^/| /' conftest.$ac_ext >&5
30958
30959echo "$as_me:$LINENO: result: yes" >&5
30960echo "${ECHO_T}yes" >&6
30961 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30962echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30963 cat >conftest.$ac_ext <<_ACEOF
30964/* confdefs.h. */
30965_ACEOF
30966cat confdefs.h >>conftest.$ac_ext
30967cat >>conftest.$ac_ext <<_ACEOF
30968/* end confdefs.h. */
30969#define __Point__ 1
30970#include <AppKit/NSEvent.h>
30971#include <CoreFoundation/CoreFoundation.h>
30972
30973int
30974main ()
30975{
30976
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext
30982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30983 (eval $ac_compile) 2>conftest.er1
30984 ac_status=$?
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
6ebeb4c7 30990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; } &&
30996 { ac_try='test -s conftest.$ac_objext'
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 echo "$as_me:$LINENO: result: yes" >&5
31003echo "${ECHO_T}yes" >&6
31004 cat >>confdefs.h <<\_ACEOF
31005#define __Point__ 1
31006_ACEOF
31007
31008
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013{ { echo "$as_me:$LINENO: error: no
31014See \`config.log' for more details." >&5
31015echo "$as_me: error: no
31016See \`config.log' for more details." >&2;}
31017 { (exit 1); exit 1; }; }
31018
31019fi
31020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31021
31022fi
31023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31024 ac_ext=c
31025ac_cpp='$CPP $CPPFLAGS'
31026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31028ac_compiler_gnu=$ac_cv_c_compiler_gnu
31029
31030fi
31031
a848cd7e 31032if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31033 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31034 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31035
a848cd7e 31036 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31037
31038 # Extract the first word of "Rez", so it can be a program name with args.
31039set dummy Rez; ac_word=$2
31040echo "$as_me:$LINENO: checking for $ac_word" >&5
31041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31042if test "${ac_cv_prog_RESCOMP+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 if test -n "$RESCOMP"; then
31046 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31047else
31048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31049for as_dir in $PATH
31050do
31051 IFS=$as_save_IFS
31052 test -z "$as_dir" && as_dir=.
31053 for ac_exec_ext in '' $ac_executable_extensions; do
31054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31055 ac_cv_prog_RESCOMP="Rez"
31056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31057 break 2
31058 fi
31059done
31060done
31061
31062 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31063fi
31064fi
31065RESCOMP=$ac_cv_prog_RESCOMP
31066if test -n "$RESCOMP"; then
31067 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31068echo "${ECHO_T}$RESCOMP" >&6
31069else
31070 echo "$as_me:$LINENO: result: no" >&5
31071echo "${ECHO_T}no" >&6
31072fi
31073
31074 # Extract the first word of "DeRez", so it can be a program name with args.
31075set dummy DeRez; ac_word=$2
31076echo "$as_me:$LINENO: checking for $ac_word" >&5
31077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31078if test "${ac_cv_prog_DEREZ+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31080else
31081 if test -n "$DEREZ"; then
31082 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31083else
31084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31085for as_dir in $PATH
31086do
31087 IFS=$as_save_IFS
31088 test -z "$as_dir" && as_dir=.
31089 for ac_exec_ext in '' $ac_executable_extensions; do
31090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31091 ac_cv_prog_DEREZ="DeRez"
31092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31093 break 2
31094 fi
31095done
31096done
31097
31098 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31099fi
31100fi
31101DEREZ=$ac_cv_prog_DEREZ
31102if test -n "$DEREZ"; then
31103 echo "$as_me:$LINENO: result: $DEREZ" >&5
31104echo "${ECHO_T}$DEREZ" >&6
31105else
31106 echo "$as_me:$LINENO: result: no" >&5
31107echo "${ECHO_T}no" >&6
31108fi
31109
31110 # Extract the first word of "SetFile", so it can be a program name with args.
31111set dummy SetFile; ac_word=$2
31112echo "$as_me:$LINENO: checking for $ac_word" >&5
31113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31114if test "${ac_cv_prog_SETFILE+set}" = set; then
31115 echo $ECHO_N "(cached) $ECHO_C" >&6
31116else
31117 if test -n "$SETFILE"; then
31118 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31119else
31120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31121for as_dir in $PATH
31122do
31123 IFS=$as_save_IFS
31124 test -z "$as_dir" && as_dir=.
31125 for ac_exec_ext in '' $ac_executable_extensions; do
31126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31127 ac_cv_prog_SETFILE="SetFile"
31128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31129 break 2
31130 fi
31131done
31132done
31133
31134 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31135fi
31136fi
31137SETFILE=$ac_cv_prog_SETFILE
31138if test -n "$SETFILE"; then
31139 echo "$as_me:$LINENO: result: $SETFILE" >&5
31140echo "${ECHO_T}$SETFILE" >&6
31141else
31142 echo "$as_me:$LINENO: result: no" >&5
31143echo "${ECHO_T}no" >&6
31144fi
31145
31146
31147 MACSETFILE="\$(SETFILE)"
31148
31149 if test "$wxUSE_MAC" = 1; then
1a79f136 31150 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31151
1a79f136 31152 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31153 else
31154 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31155 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31156 fi
31157else
ffa0583f
RL
31158 MACSETFILE="@true"
31159 MACRESWXCONFIG="@true"
a848cd7e
SC
31160
31161 if test "$wxUSE_PM" = 1; then
31162 MACRESCOMP="emxbind -ep"
31163 else
ffa0583f 31164 MACRESCOMP="@true"
a848cd7e
SC
31165 fi
31166fi
31167
31168
31169
31170echo "$as_me:$LINENO: checking for mode_t" >&5
31171echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31172if test "${ac_cv_type_mode_t+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31174else
31175 cat >conftest.$ac_ext <<_ACEOF
31176/* confdefs.h. */
31177_ACEOF
31178cat confdefs.h >>conftest.$ac_ext
31179cat >>conftest.$ac_ext <<_ACEOF
31180/* end confdefs.h. */
31181$ac_includes_default
31182int
31183main ()
31184{
31185if ((mode_t *) 0)
31186 return 0;
31187if (sizeof (mode_t))
31188 return 0;
31189 ;
31190 return 0;
31191}
31192_ACEOF
31193rm -f conftest.$ac_objext
31194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31195 (eval $ac_compile) 2>conftest.er1
a848cd7e 31196 ac_status=$?
ac1cb8d3
VS
31197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
a848cd7e
SC
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
6ebeb4c7 31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_type_mode_t=yes
31215else
31216 echo "$as_me: failed program was:" >&5
31217sed 's/^/| /' conftest.$ac_ext >&5
31218
31219ac_cv_type_mode_t=no
31220fi
ac1cb8d3 31221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31222fi
31223echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31224echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31225if test $ac_cv_type_mode_t = yes; then
31226 :
31227else
31228
31229cat >>confdefs.h <<_ACEOF
31230#define mode_t int
31231_ACEOF
31232
31233fi
31234
31235echo "$as_me:$LINENO: checking for off_t" >&5
31236echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31237if test "${ac_cv_type_off_t+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 cat >conftest.$ac_ext <<_ACEOF
31241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
31246$ac_includes_default
31247int
31248main ()
31249{
31250if ((off_t *) 0)
31251 return 0;
31252if (sizeof (off_t))
31253 return 0;
31254 ;
31255 return 0;
31256}
31257_ACEOF
31258rm -f conftest.$ac_objext
31259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31260 (eval $ac_compile) 2>conftest.er1
a848cd7e 31261 ac_status=$?
ac1cb8d3
VS
31262 grep -v '^ *+' conftest.er1 >conftest.err
31263 rm -f conftest.er1
31264 cat conftest.err >&5
a848cd7e
SC
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); } &&
6ebeb4c7 31267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275 (eval $ac_try) 2>&5
31276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 ac_cv_type_off_t=yes
31280else
31281 echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
31284ac_cv_type_off_t=no
31285fi
ac1cb8d3 31286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31287fi
31288echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31289echo "${ECHO_T}$ac_cv_type_off_t" >&6
31290if test $ac_cv_type_off_t = yes; then
31291 :
31292else
31293
31294cat >>confdefs.h <<_ACEOF
31295#define off_t long
31296_ACEOF
31297
31298fi
31299
31300echo "$as_me:$LINENO: checking for pid_t" >&5
31301echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31302if test "${ac_cv_type_pid_t+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304else
31305 cat >conftest.$ac_ext <<_ACEOF
31306/* confdefs.h. */
31307_ACEOF
31308cat confdefs.h >>conftest.$ac_ext
31309cat >>conftest.$ac_ext <<_ACEOF
31310/* end confdefs.h. */
31311$ac_includes_default
31312int
31313main ()
31314{
31315if ((pid_t *) 0)
31316 return 0;
31317if (sizeof (pid_t))
31318 return 0;
31319 ;
31320 return 0;
31321}
31322_ACEOF
31323rm -f conftest.$ac_objext
31324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31325 (eval $ac_compile) 2>conftest.er1
a848cd7e 31326 ac_status=$?
ac1cb8d3
VS
31327 grep -v '^ *+' conftest.er1 >conftest.err
31328 rm -f conftest.er1
31329 cat conftest.err >&5
a848cd7e
SC
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); } &&
6ebeb4c7 31332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31335 ac_status=$?
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; } &&
31338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 ac_cv_type_pid_t=yes
31345else
31346 echo "$as_me: failed program was:" >&5
31347sed 's/^/| /' conftest.$ac_ext >&5
31348
31349ac_cv_type_pid_t=no
31350fi
ac1cb8d3 31351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31352fi
31353echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31354echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31355if test $ac_cv_type_pid_t = yes; then
31356 :
31357else
31358
31359cat >>confdefs.h <<_ACEOF
31360#define pid_t int
31361_ACEOF
31362
31363fi
31364
31365echo "$as_me:$LINENO: checking for size_t" >&5
31366echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31367if test "${ac_cv_type_size_t+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376$ac_includes_default
31377int
31378main ()
31379{
31380if ((size_t *) 0)
31381 return 0;
31382if (sizeof (size_t))
31383 return 0;
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388rm -f conftest.$ac_objext
31389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31390 (eval $ac_compile) 2>conftest.er1
a848cd7e 31391 ac_status=$?
ac1cb8d3
VS
31392 grep -v '^ *+' conftest.er1 >conftest.err
31393 rm -f conftest.er1
31394 cat conftest.err >&5
a848cd7e
SC
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); } &&
6ebeb4c7 31397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399 (eval $ac_try) 2>&5
31400 ac_status=$?
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; } &&
31403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 (eval $ac_try) 2>&5
31406 ac_status=$?
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 ac_cv_type_size_t=yes
31410else
31411 echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414ac_cv_type_size_t=no
31415fi
ac1cb8d3 31416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31417fi
31418echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31419echo "${ECHO_T}$ac_cv_type_size_t" >&6
31420if test $ac_cv_type_size_t = yes; then
31421 :
31422else
31423
31424cat >>confdefs.h <<_ACEOF
31425#define size_t unsigned
31426_ACEOF
31427
31428fi
31429
31430echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31431echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31432if test "${ac_cv_type_uid_t+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
31435 cat >conftest.$ac_ext <<_ACEOF
31436/* confdefs.h. */
31437_ACEOF
31438cat confdefs.h >>conftest.$ac_ext
31439cat >>conftest.$ac_ext <<_ACEOF
31440/* end confdefs.h. */
31441#include <sys/types.h>
31442
31443_ACEOF
31444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31445 $EGREP "uid_t" >/dev/null 2>&1; then
31446 ac_cv_type_uid_t=yes
31447else
31448 ac_cv_type_uid_t=no
31449fi
31450rm -f conftest*
31451
31452fi
31453echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31454echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31455if test $ac_cv_type_uid_t = no; then
31456
31457cat >>confdefs.h <<\_ACEOF
31458#define uid_t int
31459_ACEOF
31460
31461
31462cat >>confdefs.h <<\_ACEOF
31463#define gid_t int
31464_ACEOF
31465
31466fi
31467
31468
d51253e8
RL
31469echo "$as_me:$LINENO: checking for ssize_t" >&5
31470echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31471if test "${ac_cv_type_ssize_t+set}" = set; then
31472 echo $ECHO_N "(cached) $ECHO_C" >&6
31473else
31474 cat >conftest.$ac_ext <<_ACEOF
31475/* confdefs.h. */
31476_ACEOF
31477cat confdefs.h >>conftest.$ac_ext
31478cat >>conftest.$ac_ext <<_ACEOF
31479/* end confdefs.h. */
31480$ac_includes_default
31481int
31482main ()
31483{
31484if ((ssize_t *) 0)
31485 return 0;
31486if (sizeof (ssize_t))
31487 return 0;
31488 ;
31489 return 0;
31490}
31491_ACEOF
31492rm -f conftest.$ac_objext
31493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31494 (eval $ac_compile) 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } &&
6ebeb4c7 31501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503 (eval $ac_try) 2>&5
31504 ac_status=$?
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); }; } &&
31507 { ac_try='test -s conftest.$ac_objext'
31508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31509 (eval $ac_try) 2>&5
31510 ac_status=$?
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); }; }; then
31513 ac_cv_type_ssize_t=yes
31514else
31515 echo "$as_me: failed program was:" >&5
31516sed 's/^/| /' conftest.$ac_ext >&5
31517
31518ac_cv_type_ssize_t=no
31519fi
31520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31521fi
31522echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31523echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31524if test $ac_cv_type_ssize_t = yes; then
31525
31526cat >>confdefs.h <<_ACEOF
31527#define HAVE_SSIZE_T 1
31528_ACEOF
31529
31530
31531fi
31532
31533
a848cd7e
SC
31534
31535
31536ac_ext=cc
31537ac_cpp='$CXXCPP $CPPFLAGS'
31538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31541
31542echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31543echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31544if test "${wx_cv_size_t_is_uint+set}" = set; then
31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31546else
31547
31548 cat >conftest.$ac_ext <<_ACEOF
31549/* confdefs.h. */
31550_ACEOF
31551cat confdefs.h >>conftest.$ac_ext
31552cat >>conftest.$ac_ext <<_ACEOF
31553/* end confdefs.h. */
31554#include <stddef.h>
31555int
31556main ()
31557{
31558
31559 return 0; }
31560
31561 struct Foo { void foo(size_t); void foo(unsigned int); };
31562
31563 int bar() {
31564
31565 ;
31566 return 0;
31567}
31568_ACEOF
31569rm -f conftest.$ac_objext
31570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31571 (eval $ac_compile) 2>conftest.er1
a848cd7e 31572 ac_status=$?
ac1cb8d3
VS
31573 grep -v '^ *+' conftest.er1 >conftest.err
31574 rm -f conftest.er1
31575 cat conftest.err >&5
a848cd7e
SC
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } &&
6ebeb4c7 31578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31580 (eval $ac_try) 2>&5
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
31590 wx_cv_size_t_is_uint=no
31591else
31592 echo "$as_me: failed program was:" >&5
31593sed 's/^/| /' conftest.$ac_ext >&5
31594
31595wx_cv_size_t_is_uint=yes
31596
31597fi
ac1cb8d3 31598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31599
31600
31601fi
31602echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31603echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31604
31605if test "$wx_cv_size_t_is_uint" = "yes"; then
31606 cat >>confdefs.h <<\_ACEOF
31607#define wxSIZE_T_IS_UINT 1
31608_ACEOF
31609
31610else
31611 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31612echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31613if test "${wx_cv_size_t_is_ulong+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31615else
31616 cat >conftest.$ac_ext <<_ACEOF
31617/* confdefs.h. */
31618_ACEOF
31619cat confdefs.h >>conftest.$ac_ext
31620cat >>conftest.$ac_ext <<_ACEOF
31621/* end confdefs.h. */
31622#include <stddef.h>
31623int
31624main ()
31625{
31626
31627 return 0; }
31628
31629 struct Foo { void foo(size_t); void foo(unsigned long); };
31630
31631 int bar() {
31632
31633 ;
31634 return 0;
31635}
31636_ACEOF
31637rm -f conftest.$ac_objext
31638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31639 (eval $ac_compile) 2>conftest.er1
a848cd7e 31640 ac_status=$?
ac1cb8d3
VS
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
a848cd7e
SC
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
6ebeb4c7 31646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31648 (eval $ac_try) 2>&5
31649 ac_status=$?
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }; then
31658 wx_cv_size_t_is_ulong=no
31659else
31660 echo "$as_me: failed program was:" >&5
31661sed 's/^/| /' conftest.$ac_ext >&5
31662
31663wx_cv_size_t_is_ulong=yes
31664
31665fi
ac1cb8d3 31666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31667
31668fi
31669echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31670echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31671
31672 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31673 cat >>confdefs.h <<\_ACEOF
31674#define wxSIZE_T_IS_ULONG 1
31675_ACEOF
31676
31677 fi
31678fi
31679
31680ac_ext=c
31681ac_cpp='$CPP $CPPFLAGS'
31682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31684ac_compiler_gnu=$ac_cv_c_compiler_gnu
31685
31686
31687
31688echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31689echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31690if test "${wx_cv_struct_pw_gecos+set}" = set; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31692else
31693
31694 cat >conftest.$ac_ext <<_ACEOF
31695/* confdefs.h. */
31696_ACEOF
31697cat confdefs.h >>conftest.$ac_ext
31698cat >>conftest.$ac_ext <<_ACEOF
31699/* end confdefs.h. */
31700#include <pwd.h>
31701int
31702main ()
31703{
31704
31705 char *p;
31706 struct passwd *pw;
31707 p = pw->pw_gecos;
31708
31709 ;
31710 return 0;
31711}
31712_ACEOF
31713rm -f conftest.$ac_objext
31714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31715 (eval $ac_compile) 2>conftest.er1
a848cd7e 31716 ac_status=$?
ac1cb8d3
VS
31717 grep -v '^ *+' conftest.er1 >conftest.err
31718 rm -f conftest.er1
31719 cat conftest.err >&5
a848cd7e
SC
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); } &&
6ebeb4c7 31722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31724 (eval $ac_try) 2>&5
31725 ac_status=$?
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; } &&
31728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; }; then
31734
31735 wx_cv_struct_pw_gecos=yes
31736
31737else
31738 echo "$as_me: failed program was:" >&5
31739sed 's/^/| /' conftest.$ac_ext >&5
31740
31741
31742 wx_cv_struct_pw_gecos=no
31743
31744
31745fi
ac1cb8d3 31746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31747
31748
31749fi
31750echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31751echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31752
31753if test "$wx_cv_struct_pw_gecos" = "yes"; then
31754 cat >>confdefs.h <<\_ACEOF
31755#define HAVE_PW_GECOS 1
31756_ACEOF
31757
31758fi
31759
31760
47a7e797 31761if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31762 cat >>confdefs.h <<\_ACEOF
31763#define wxUSE_WCHAR_T 1
31764_ACEOF
31765
31766
31767 WCSLEN_FOUND=0
31768 WCHAR_LINK=
31769
31770for ac_func in wcslen
31771do
31772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31773echo "$as_me:$LINENO: checking for $ac_func" >&5
31774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31775if eval "test \"\${$as_ac_var+set}\" = set"; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31777else
31778 cat >conftest.$ac_ext <<_ACEOF
31779/* confdefs.h. */
31780_ACEOF
31781cat confdefs.h >>conftest.$ac_ext
31782cat >>conftest.$ac_ext <<_ACEOF
31783/* end confdefs.h. */
ac1cb8d3
VS
31784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31786#define $ac_func innocuous_$ac_func
31787
a848cd7e
SC
31788/* System header to define __stub macros and hopefully few prototypes,
31789 which can conflict with char $ac_func (); below.
31790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31792
a848cd7e
SC
31793#ifdef __STDC__
31794# include <limits.h>
31795#else
31796# include <assert.h>
31797#endif
ac1cb8d3
VS
31798
31799#undef $ac_func
31800
a848cd7e
SC
31801/* Override any gcc2 internal prototype to avoid an error. */
31802#ifdef __cplusplus
31803extern "C"
31804{
31805#endif
31806/* We use char because int might match the return type of a gcc2
31807 builtin and then its argument prototype would still apply. */
31808char $ac_func ();
31809/* The GNU C library defines this for functions which it implements
31810 to always fail with ENOSYS. Some functions are actually named
31811 something starting with __ and the normal name is an alias. */
31812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31813choke me
31814#else
31815char (*f) () = $ac_func;
31816#endif
31817#ifdef __cplusplus
31818}
31819#endif
31820
31821int
31822main ()
31823{
31824return f != $ac_func;
31825 ;
31826 return 0;
31827}
31828_ACEOF
31829rm -f conftest.$ac_objext conftest$ac_exeext
31830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31831 (eval $ac_link) 2>conftest.er1
a848cd7e 31832 ac_status=$?
ac1cb8d3
VS
31833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
a848cd7e
SC
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
6ebeb4c7 31838 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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 eval "$as_ac_var=yes"
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855eval "$as_ac_var=no"
31856fi
ac1cb8d3
VS
31857rm -f conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31859fi
31860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31862if test `eval echo '${'$as_ac_var'}'` = yes; then
31863 cat >>confdefs.h <<_ACEOF
31864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31865_ACEOF
31866 WCSLEN_FOUND=1
31867fi
31868done
31869
31870
31871 if test "$WCSLEN_FOUND" = 0; then
31872 if test "$TOOLKIT" = "MSW"; then
31873 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31874echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31875if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877else
31878 ac_check_lib_save_LIBS=$LIBS
31879LIBS="-lmsvcrt $LIBS"
31880cat >conftest.$ac_ext <<_ACEOF
31881/* confdefs.h. */
31882_ACEOF
31883cat confdefs.h >>conftest.$ac_ext
31884cat >>conftest.$ac_ext <<_ACEOF
31885/* end confdefs.h. */
31886
31887/* Override any gcc2 internal prototype to avoid an error. */
31888#ifdef __cplusplus
31889extern "C"
31890#endif
31891/* We use char because int might match the return type of a gcc2
31892 builtin and then its argument prototype would still apply. */
31893char wcslen ();
31894int
31895main ()
31896{
31897wcslen ();
31898 ;
31899 return 0;
31900}
31901_ACEOF
31902rm -f conftest.$ac_objext conftest$ac_exeext
31903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31904 (eval $ac_link) 2>conftest.er1
a848cd7e 31905 ac_status=$?
ac1cb8d3
VS
31906 grep -v '^ *+' conftest.er1 >conftest.err
31907 rm -f conftest.er1
31908 cat conftest.err >&5
a848cd7e
SC
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); } &&
6ebeb4c7 31911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31913 (eval $ac_try) 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31919 (eval $ac_try) 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; }; then
31923 ac_cv_lib_msvcrt_wcslen=yes
31924else
31925 echo "$as_me: failed program was:" >&5
31926sed 's/^/| /' conftest.$ac_ext >&5
31927
31928ac_cv_lib_msvcrt_wcslen=no
31929fi
ac1cb8d3
VS
31930rm -f conftest.err conftest.$ac_objext \
31931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31932LIBS=$ac_check_lib_save_LIBS
31933fi
31934echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31935echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31936if test $ac_cv_lib_msvcrt_wcslen = yes; then
31937 WCHAR_OK=1
31938fi
31939
31940 else
31941 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31942echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31943if test "${ac_cv_lib_w_wcslen+set}" = set; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31945else
31946 ac_check_lib_save_LIBS=$LIBS
31947LIBS="-lw $LIBS"
31948cat >conftest.$ac_ext <<_ACEOF
31949/* confdefs.h. */
31950_ACEOF
31951cat confdefs.h >>conftest.$ac_ext
31952cat >>conftest.$ac_ext <<_ACEOF
31953/* end confdefs.h. */
31954
31955/* Override any gcc2 internal prototype to avoid an error. */
31956#ifdef __cplusplus
31957extern "C"
31958#endif
31959/* We use char because int might match the return type of a gcc2
31960 builtin and then its argument prototype would still apply. */
31961char wcslen ();
31962int
31963main ()
31964{
31965wcslen ();
31966 ;
31967 return 0;
31968}
31969_ACEOF
31970rm -f conftest.$ac_objext conftest$ac_exeext
31971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31972 (eval $ac_link) 2>conftest.er1
a848cd7e 31973 ac_status=$?
ac1cb8d3
VS
31974 grep -v '^ *+' conftest.er1 >conftest.err
31975 rm -f conftest.er1
31976 cat conftest.err >&5
a848cd7e
SC
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); } &&
6ebeb4c7 31979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981 (eval $ac_try) 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; } &&
31985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987 (eval $ac_try) 2>&5
31988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; }; then
31991 ac_cv_lib_w_wcslen=yes
31992else
31993 echo "$as_me: failed program was:" >&5
31994sed 's/^/| /' conftest.$ac_ext >&5
31995
31996ac_cv_lib_w_wcslen=no
31997fi
ac1cb8d3
VS
31998rm -f conftest.err conftest.$ac_objext \
31999 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32000LIBS=$ac_check_lib_save_LIBS
32001fi
32002echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32003echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32004if test $ac_cv_lib_w_wcslen = yes; then
32005
32006 WCHAR_LINK=" -lw"
32007 WCSLEN_FOUND=1
32008
32009fi
32010
32011 fi
32012 fi
32013
32014 if test "$WCSLEN_FOUND" = 1; then
32015 cat >>confdefs.h <<\_ACEOF
32016#define HAVE_WCSLEN 1
32017_ACEOF
32018
32019 fi
32020
efdf6afe 32021 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32022 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32023 fi
32024
efdf6afe
VZ
32025 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32026echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32027if test "${ac_cv_type_mbstate_t+set}" = set; then
32028 echo $ECHO_N "(cached) $ECHO_C" >&6
32029else
32030 cat >conftest.$ac_ext <<_ACEOF
32031/* confdefs.h. */
32032_ACEOF
32033cat confdefs.h >>conftest.$ac_ext
32034cat >>conftest.$ac_ext <<_ACEOF
32035/* end confdefs.h. */
32036#include <wchar.h>
32037
32038int
32039main ()
32040{
32041if ((mbstate_t *) 0)
32042 return 0;
32043if (sizeof (mbstate_t))
32044 return 0;
32045 ;
32046 return 0;
32047}
32048_ACEOF
32049rm -f conftest.$ac_objext
32050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32051 (eval $ac_compile) 2>conftest.er1
32052 ac_status=$?
32053 grep -v '^ *+' conftest.er1 >conftest.err
32054 rm -f conftest.er1
32055 cat conftest.err >&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } &&
32058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest.$ac_objext'
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 ac_cv_type_mbstate_t=yes
32071else
32072 echo "$as_me: failed program was:" >&5
32073sed 's/^/| /' conftest.$ac_ext >&5
32074
32075ac_cv_type_mbstate_t=no
32076fi
32077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32078fi
32079echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32080echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32081if test $ac_cv_type_mbstate_t = yes; then
32082
32083cat >>confdefs.h <<_ACEOF
32084#define HAVE_MBSTATE_T 1
32085_ACEOF
32086
a848cd7e
SC
32087
32088for ac_func in wcsrtombs
32089do
32090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32091echo "$as_me:$LINENO: checking for $ac_func" >&5
32092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32093if eval "test \"\${$as_ac_var+set}\" = set"; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
ac1cb8d3
VS
32102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32104#define $ac_func innocuous_$ac_func
32105
a848cd7e
SC
32106/* System header to define __stub macros and hopefully few prototypes,
32107 which can conflict with char $ac_func (); below.
32108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32110
a848cd7e
SC
32111#ifdef __STDC__
32112# include <limits.h>
32113#else
32114# include <assert.h>
32115#endif
ac1cb8d3
VS
32116
32117#undef $ac_func
32118
a848cd7e
SC
32119/* Override any gcc2 internal prototype to avoid an error. */
32120#ifdef __cplusplus
32121extern "C"
32122{
32123#endif
32124/* We use char because int might match the return type of a gcc2
32125 builtin and then its argument prototype would still apply. */
32126char $ac_func ();
32127/* The GNU C library defines this for functions which it implements
32128 to always fail with ENOSYS. Some functions are actually named
32129 something starting with __ and the normal name is an alias. */
32130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32131choke me
32132#else
32133char (*f) () = $ac_func;
32134#endif
32135#ifdef __cplusplus
32136}
32137#endif
32138
32139int
32140main ()
32141{
32142return f != $ac_func;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext conftest$ac_exeext
32148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32149 (eval $ac_link) 2>conftest.er1
a848cd7e 32150 ac_status=$?
ac1cb8d3
VS
32151 grep -v '^ *+' conftest.er1 >conftest.err
32152 rm -f conftest.er1
32153 cat conftest.err >&5
a848cd7e
SC
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
6ebeb4c7 32156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32158 (eval $ac_try) 2>&5
32159 ac_status=$?
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); }; } &&
32162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
32168 eval "$as_ac_var=yes"
32169else
32170 echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
32173eval "$as_ac_var=no"
32174fi
ac1cb8d3
VS
32175rm -f conftest.err conftest.$ac_objext \
32176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32177fi
32178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32180if test `eval echo '${'$as_ac_var'}'` = yes; then
32181 cat >>confdefs.h <<_ACEOF
32182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32183_ACEOF
32184
32185fi
32186done
32187
efdf6afe
VZ
32188fi
32189
a848cd7e
SC
32190else
32191 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32192echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32193fi
32194
32195
32196
32197ac_ext=cc
32198ac_cpp='$CXXCPP $CPPFLAGS'
32199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32202
32203
32204
4a767dd5
VZ
32205
32206for ac_func in snprintf vsnprintf
a848cd7e
SC
32207do
32208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32209echo "$as_me:$LINENO: checking for $ac_func" >&5
32210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32211if eval "test \"\${$as_ac_var+set}\" = set"; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32213else
32214 cat >conftest.$ac_ext <<_ACEOF
32215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
ac1cb8d3
VS
32220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32222#define $ac_func innocuous_$ac_func
32223
a848cd7e
SC
32224/* System header to define __stub macros and hopefully few prototypes,
32225 which can conflict with char $ac_func (); below.
32226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32227 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32228
a848cd7e
SC
32229#ifdef __STDC__
32230# include <limits.h>
32231#else
32232# include <assert.h>
32233#endif
ac1cb8d3
VS
32234
32235#undef $ac_func
32236
a848cd7e
SC
32237/* Override any gcc2 internal prototype to avoid an error. */
32238#ifdef __cplusplus
32239extern "C"
32240{
32241#endif
32242/* We use char because int might match the return type of a gcc2
32243 builtin and then its argument prototype would still apply. */
32244char $ac_func ();
32245/* The GNU C library defines this for functions which it implements
32246 to always fail with ENOSYS. Some functions are actually named
32247 something starting with __ and the normal name is an alias. */
32248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32249choke me
32250#else
32251char (*f) () = $ac_func;
32252#endif
32253#ifdef __cplusplus
32254}
32255#endif
32256
32257int
32258main ()
32259{
32260return f != $ac_func;
32261 ;
32262 return 0;
32263}
32264_ACEOF
32265rm -f conftest.$ac_objext conftest$ac_exeext
32266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32267 (eval $ac_link) 2>conftest.er1
a848cd7e 32268 ac_status=$?
ac1cb8d3
VS
32269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
a848cd7e
SC
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
6ebeb4c7 32274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32276 (eval $ac_try) 2>&5
32277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 eval "$as_ac_var=yes"
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
32291eval "$as_ac_var=no"
32292fi
ac1cb8d3
VS
32293rm -f conftest.err conftest.$ac_objext \
32294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32295fi
32296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32298if test `eval echo '${'$as_ac_var'}'` = yes; then
32299 cat >>confdefs.h <<_ACEOF
32300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32301_ACEOF
32302
32303fi
32304done
32305
32306
32307if test "$ac_cv_func_vsnprintf" = "yes"; then
32308 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32309echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32310if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313
efdf6afe 32314 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32315/* confdefs.h. */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h. */
32320
32321 #include <stdio.h>
32322 #include <stdarg.h>
efdf6afe
VZ
32323 #ifdef __MSL__
32324 #if __MSL__ >= 0x6000
32325 namespace std {}
32326 using namespace std;
32327 #endif
32328 #endif
a848cd7e
SC
32329
32330int
32331main ()
32332{
32333
32334 char *buf;
32335 va_list ap;
62fa8b3a 32336 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32337
32338 ;
32339 return 0;
32340}
32341_ACEOF
32342rm -f conftest.$ac_objext
32343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32344 (eval $ac_compile) 2>conftest.er1
32345 ac_status=$?
32346 grep -v '^ *+' conftest.er1 >conftest.err
32347 rm -f conftest.er1
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } &&
6ebeb4c7 32351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; } &&
32357 { ac_try='test -s conftest.$ac_objext'
32358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359 (eval $ac_try) 2>&5
32360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; }; then
32363 wx_cv_func_vsnprintf_decl=yes
32364else
32365 echo "$as_me: failed program was:" >&5
32366sed 's/^/| /' conftest.$ac_ext >&5
32367
a848cd7e
SC
32368wx_cv_func_vsnprintf_decl=no
32369
32370fi
ac1cb8d3 32371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32372
32373
32374fi
32375echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32376echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32377
32378 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32379 cat >>confdefs.h <<\_ACEOF
32380#define HAVE_VSNPRINTF_DECL 1
32381_ACEOF
32382
62fa8b3a
MW
32383
32384 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32385echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32386if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32387 echo $ECHO_N "(cached) $ECHO_C" >&6
32388else
32389
32390 cat >conftest.$ac_ext <<_ACEOF
32391/* confdefs.h. */
32392_ACEOF
32393cat confdefs.h >>conftest.$ac_ext
32394cat >>conftest.$ac_ext <<_ACEOF
32395/* end confdefs.h. */
32396
32397 #include <stdio.h>
32398 #include <stdarg.h>
32399 #ifdef __MSL__
32400 #if __MSL__ >= 0x6000
32401 namespace std {}
32402 using namespace std;
32403 #endif
32404 #endif
32405
32406int
32407main ()
32408{
32409
32410 char *buf;
32411 va_list ap;
32412 const char *fmt = "%s";
32413 vsnprintf(buf, 10u, fmt, ap);
32414
32415 ;
32416 return 0;
32417}
32418_ACEOF
32419rm -f conftest.$ac_objext
32420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32421 (eval $ac_compile) 2>conftest.er1
32422 ac_status=$?
32423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } &&
32428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; } &&
32434 { ac_try='test -s conftest.$ac_objext'
32435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32436 (eval $ac_try) 2>&5
32437 ac_status=$?
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); }; }; then
32440 wx_cv_func_broken_vsnprintf_decl=no
32441else
32442 echo "$as_me: failed program was:" >&5
32443sed 's/^/| /' conftest.$ac_ext >&5
32444
32445wx_cv_func_broken_vsnprintf_decl=yes
32446
32447fi
32448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32449
32450
32451fi
32452echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32453echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32454
32455 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32456 cat >>confdefs.h <<\_ACEOF
32457#define HAVE_BROKEN_VSNPRINTF_DECL 1
32458_ACEOF
32459
32460 fi
a848cd7e
SC
32461 fi
32462fi
32463
4a767dd5
VZ
32464if test "$ac_cv_func_snprintf" = "yes"; then
32465 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32466echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32467if test "${wx_cv_func_snprintf_decl+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
32469else
32470
32471 cat >conftest.$ac_ext <<_ACEOF
32472/* confdefs.h. */
32473_ACEOF
32474cat confdefs.h >>conftest.$ac_ext
32475cat >>conftest.$ac_ext <<_ACEOF
32476/* end confdefs.h. */
32477
32478 #include <stdio.h>
32479 #include <stdarg.h>
32480 #ifdef __MSL__
32481 #if __MSL__ >= 0x6000
32482 namespace std {}
32483 using namespace std;
32484 #endif
32485 #endif
32486
32487int
32488main ()
32489{
32490
32491 char *buf;
62fa8b3a 32492 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32493
32494 ;
32495 return 0;
32496}
32497_ACEOF
32498rm -f conftest.$ac_objext
32499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32500 (eval $ac_compile) 2>conftest.er1
32501 ac_status=$?
32502 grep -v '^ *+' conftest.er1 >conftest.err
32503 rm -f conftest.er1
32504 cat conftest.err >&5
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); } &&
32507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 (eval $ac_try) 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; } &&
32513 { ac_try='test -s conftest.$ac_objext'
32514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 (eval $ac_try) 2>&5
32516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; }; then
32519 wx_cv_func_snprintf_decl=yes
32520else
32521 echo "$as_me: failed program was:" >&5
32522sed 's/^/| /' conftest.$ac_ext >&5
32523
32524wx_cv_func_snprintf_decl=no
32525
32526fi
32527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32528
32529
32530fi
32531echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32532echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32533
32534 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32535 cat >>confdefs.h <<\_ACEOF
32536#define HAVE_SNPRINTF_DECL 1
32537_ACEOF
32538
62fa8b3a
MW
32539
32540 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32541echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32542if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
32544else
32545
32546 cat >conftest.$ac_ext <<_ACEOF
32547/* confdefs.h. */
32548_ACEOF
32549cat confdefs.h >>conftest.$ac_ext
32550cat >>conftest.$ac_ext <<_ACEOF
32551/* end confdefs.h. */
32552
32553 #include <stdio.h>
32554 #include <stdarg.h>
32555 #ifdef __MSL__
32556 #if __MSL__ >= 0x6000
32557 namespace std {}
32558 using namespace std;
32559 #endif
32560 #endif
32561
32562int
32563main ()
32564{
32565
32566 char *buf;
32567 const char *fmt = "%s";
32568 snprintf(buf, 10u, fmt, "wx");
32569
32570 ;
32571 return 0;
32572}
32573_ACEOF
32574rm -f conftest.$ac_objext
32575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32576 (eval $ac_compile) 2>conftest.er1
32577 ac_status=$?
32578 grep -v '^ *+' conftest.er1 >conftest.err
32579 rm -f conftest.er1
32580 cat conftest.err >&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); } &&
32583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585 (eval $ac_try) 2>&5
32586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; } &&
32589 { ac_try='test -s conftest.$ac_objext'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32592 ac_status=$?
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; }; then
32595 wx_cv_func_broken_snprintf_decl=no
32596else
32597 echo "$as_me: failed program was:" >&5
32598sed 's/^/| /' conftest.$ac_ext >&5
32599
32600wx_cv_func_broken_snprintf_decl=yes
32601
32602fi
32603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32604
32605
32606fi
32607echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32608echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32609
32610 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32611 cat >>confdefs.h <<\_ACEOF
32612#define HAVE_BROKEN_SNPRINTF_DECL 1
32613_ACEOF
32614
32615 fi
4a767dd5
VZ
32616 fi
32617fi
32618
a848cd7e
SC
32619if test "$wxUSE_UNICODE" = yes; then
32620
32621
32622
fbe47c7b
VS
32623
32624
32625
32626for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32627do
32628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32629echo "$as_me:$LINENO: checking for $ac_func" >&5
32630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32631if eval "test \"\${$as_ac_var+set}\" = set"; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633else
32634 cat >conftest.$ac_ext <<_ACEOF
32635/* confdefs.h. */
32636_ACEOF
32637cat confdefs.h >>conftest.$ac_ext
32638cat >>conftest.$ac_ext <<_ACEOF
32639/* end confdefs.h. */
ac1cb8d3
VS
32640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32642#define $ac_func innocuous_$ac_func
32643
a848cd7e
SC
32644/* System header to define __stub macros and hopefully few prototypes,
32645 which can conflict with char $ac_func (); below.
32646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32648
a848cd7e
SC
32649#ifdef __STDC__
32650# include <limits.h>
32651#else
32652# include <assert.h>
32653#endif
ac1cb8d3
VS
32654
32655#undef $ac_func
32656
a848cd7e
SC
32657/* Override any gcc2 internal prototype to avoid an error. */
32658#ifdef __cplusplus
32659extern "C"
32660{
32661#endif
32662/* We use char because int might match the return type of a gcc2
32663 builtin and then its argument prototype would still apply. */
32664char $ac_func ();
32665/* The GNU C library defines this for functions which it implements
32666 to always fail with ENOSYS. Some functions are actually named
32667 something starting with __ and the normal name is an alias. */
32668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32669choke me
32670#else
32671char (*f) () = $ac_func;
32672#endif
32673#ifdef __cplusplus
32674}
32675#endif
32676
32677int
32678main ()
32679{
32680return f != $ac_func;
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest.$ac_objext conftest$ac_exeext
32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32687 (eval $ac_link) 2>conftest.er1
a848cd7e 32688 ac_status=$?
ac1cb8d3
VS
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
a848cd7e
SC
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
6ebeb4c7 32694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; } &&
32700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702 (eval $ac_try) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 eval "$as_ac_var=yes"
32707else
32708 echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711eval "$as_ac_var=no"
32712fi
ac1cb8d3
VS
32713rm -f conftest.err conftest.$ac_objext \
32714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32715fi
32716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32718if test `eval echo '${'$as_ac_var'}'` = yes; then
32719 cat >>confdefs.h <<_ACEOF
32720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32721_ACEOF
32722
32723fi
32724done
32725
32726
32727 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32728echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32729 cat >conftest.$ac_ext <<_ACEOF
32730/* confdefs.h. */
32731_ACEOF
32732cat confdefs.h >>conftest.$ac_ext
32733cat >>conftest.$ac_ext <<_ACEOF
32734/* end confdefs.h. */
32735#include <wchar.h>
32736int
32737main ()
32738{
32739&_vsnwprintf;
32740 ;
32741 return 0;
32742}
32743_ACEOF
32744rm -f conftest.$ac_objext
32745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32746 (eval $ac_compile) 2>conftest.er1
a848cd7e 32747 ac_status=$?
ac1cb8d3
VS
32748 grep -v '^ *+' conftest.er1 >conftest.err
32749 rm -f conftest.er1
32750 cat conftest.err >&5
a848cd7e
SC
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); } &&
6ebeb4c7 32753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755 (eval $ac_try) 2>&5
32756 ac_status=$?
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761 (eval $ac_try) 2>&5
32762 ac_status=$?
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
32765 echo "$as_me:$LINENO: result: yes" >&5
32766echo "${ECHO_T}yes" >&6
32767 cat >>confdefs.h <<\_ACEOF
32768#define HAVE__VSNWPRINTF 1
32769_ACEOF
32770
32771else
32772 echo "$as_me: failed program was:" >&5
32773sed 's/^/| /' conftest.$ac_ext >&5
32774
32775echo "$as_me:$LINENO: result: no" >&5
32776echo "${ECHO_T}no" >&6
32777fi
ac1cb8d3 32778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32779fi
32780
32781ac_ext=c
32782ac_cpp='$CPP $CPPFLAGS'
32783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785ac_compiler_gnu=$ac_cv_c_compiler_gnu
32786
32787
6ebeb4c7
VZ
32788if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32789
32790for ac_func in fnmatch
32791do
32792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32793echo "$as_me:$LINENO: checking for $ac_func" >&5
32794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32795if eval "test \"\${$as_ac_var+set}\" = set"; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797else
32798 cat >conftest.$ac_ext <<_ACEOF
32799/* confdefs.h. */
32800_ACEOF
32801cat confdefs.h >>conftest.$ac_ext
32802cat >>conftest.$ac_ext <<_ACEOF
32803/* end confdefs.h. */
32804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32806#define $ac_func innocuous_$ac_func
32807
32808/* System header to define __stub macros and hopefully few prototypes,
32809 which can conflict with char $ac_func (); below.
32810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32811 <limits.h> exists even on freestanding compilers. */
32812
32813#ifdef __STDC__
32814# include <limits.h>
32815#else
32816# include <assert.h>
32817#endif
32818
32819#undef $ac_func
32820
32821/* Override any gcc2 internal prototype to avoid an error. */
32822#ifdef __cplusplus
32823extern "C"
32824{
32825#endif
32826/* We use char because int might match the return type of a gcc2
32827 builtin and then its argument prototype would still apply. */
32828char $ac_func ();
32829/* The GNU C library defines this for functions which it implements
32830 to always fail with ENOSYS. Some functions are actually named
32831 something starting with __ and the normal name is an alias. */
32832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32833choke me
32834#else
32835char (*f) () = $ac_func;
32836#endif
32837#ifdef __cplusplus
32838}
32839#endif
32840
32841int
32842main ()
32843{
32844return f != $ac_func;
32845 ;
32846 return 0;
32847}
32848_ACEOF
32849rm -f conftest.$ac_objext conftest$ac_exeext
32850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32851 (eval $ac_link) 2>conftest.er1
32852 ac_status=$?
32853 grep -v '^ *+' conftest.er1 >conftest.err
32854 rm -f conftest.er1
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } &&
32858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; } &&
32864 { ac_try='test -s conftest$ac_exeext'
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; }; then
32870 eval "$as_ac_var=yes"
32871else
32872 echo "$as_me: failed program was:" >&5
32873sed 's/^/| /' conftest.$ac_ext >&5
32874
32875eval "$as_ac_var=no"
32876fi
32877rm -f conftest.err conftest.$ac_objext \
32878 conftest$ac_exeext conftest.$ac_ext
32879fi
32880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32882if test `eval echo '${'$as_ac_var'}'` = yes; then
32883 cat >>confdefs.h <<_ACEOF
32884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32885_ACEOF
32886
32887fi
32888done
32889
32890fi
32891
32892if test "$wxUSE_FILE" = "yes"; then
32893
32894for ac_func in fsync
32895do
32896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32897echo "$as_me:$LINENO: checking for $ac_func" >&5
32898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32899if eval "test \"\${$as_ac_var+set}\" = set"; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
32901else
32902 cat >conftest.$ac_ext <<_ACEOF
32903/* confdefs.h. */
32904_ACEOF
32905cat confdefs.h >>conftest.$ac_ext
32906cat >>conftest.$ac_ext <<_ACEOF
32907/* end confdefs.h. */
32908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32910#define $ac_func innocuous_$ac_func
32911
32912/* System header to define __stub macros and hopefully few prototypes,
32913 which can conflict with char $ac_func (); below.
32914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32915 <limits.h> exists even on freestanding compilers. */
32916
32917#ifdef __STDC__
32918# include <limits.h>
32919#else
32920# include <assert.h>
32921#endif
32922
32923#undef $ac_func
32924
32925/* Override any gcc2 internal prototype to avoid an error. */
32926#ifdef __cplusplus
32927extern "C"
32928{
32929#endif
32930/* We use char because int might match the return type of a gcc2
32931 builtin and then its argument prototype would still apply. */
32932char $ac_func ();
32933/* The GNU C library defines this for functions which it implements
32934 to always fail with ENOSYS. Some functions are actually named
32935 something starting with __ and the normal name is an alias. */
32936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32937choke me
32938#else
32939char (*f) () = $ac_func;
32940#endif
32941#ifdef __cplusplus
32942}
32943#endif
32944
32945int
32946main ()
32947{
32948return f != $ac_func;
32949 ;
32950 return 0;
32951}
32952_ACEOF
32953rm -f conftest.$ac_objext conftest$ac_exeext
32954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32955 (eval $ac_link) 2>conftest.er1
32956 ac_status=$?
32957 grep -v '^ *+' conftest.er1 >conftest.err
32958 rm -f conftest.er1
32959 cat conftest.err >&5
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } &&
32962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32964 (eval $ac_try) 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest$ac_exeext'
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 eval "$as_ac_var=yes"
32975else
32976 echo "$as_me: failed program was:" >&5
32977sed 's/^/| /' conftest.$ac_ext >&5
32978
32979eval "$as_ac_var=no"
32980fi
32981rm -f conftest.err conftest.$ac_objext \
32982 conftest$ac_exeext conftest.$ac_ext
32983fi
32984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32986if test `eval echo '${'$as_ac_var'}'` = yes; then
32987 cat >>confdefs.h <<_ACEOF
32988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32989_ACEOF
32990
32991fi
32992done
32993
32994fi
a848cd7e
SC
32995
32996
32997if test "$TOOLKIT" != "MSW"; then
32998
32999
33000
33001
33002ac_ext=cc
33003ac_cpp='$CXXCPP $CPPFLAGS'
33004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33007
33008
33009
33010
33011# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33012if test "${with_libiconv_prefix+set}" = set; then
33013 withval="$with_libiconv_prefix"
33014
33015 for dir in `echo "$withval" | tr : ' '`; do
33016 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33017 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33018 done
33019
33020fi;
33021
33022 echo "$as_me:$LINENO: checking for iconv" >&5
33023echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33024if test "${am_cv_func_iconv+set}" = set; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33026else
33027
33028 am_cv_func_iconv="no, consider installing GNU libiconv"
33029 am_cv_lib_iconv=no
33030 cat >conftest.$ac_ext <<_ACEOF
33031/* confdefs.h. */
33032_ACEOF
33033cat confdefs.h >>conftest.$ac_ext
33034cat >>conftest.$ac_ext <<_ACEOF
33035/* end confdefs.h. */
33036#include <stdlib.h>
33037#include <iconv.h>
33038int
33039main ()
33040{
33041iconv_t cd = iconv_open("","");
33042 iconv(cd,NULL,NULL,NULL,NULL);
33043 iconv_close(cd);
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext conftest$ac_exeext
33049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33050 (eval $ac_link) 2>conftest.er1
a848cd7e 33051 ac_status=$?
ac1cb8d3
VS
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
a848cd7e
SC
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
6ebeb4c7 33057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; } &&
33063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
33069 am_cv_func_iconv=yes
33070else
33071 echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
33074fi
ac1cb8d3
VS
33075rm -f conftest.err conftest.$ac_objext \
33076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33077 if test "$am_cv_func_iconv" != yes; then
33078 am_save_LIBS="$LIBS"
33079 LIBS="$LIBS -liconv"
33080 cat >conftest.$ac_ext <<_ACEOF
33081/* confdefs.h. */
33082_ACEOF
33083cat confdefs.h >>conftest.$ac_ext
33084cat >>conftest.$ac_ext <<_ACEOF
33085/* end confdefs.h. */
33086#include <stdlib.h>
33087#include <iconv.h>
33088int
33089main ()
33090{
33091iconv_t cd = iconv_open("","");
33092 iconv(cd,NULL,NULL,NULL,NULL);
33093 iconv_close(cd);
33094 ;
33095 return 0;
33096}
33097_ACEOF
33098rm -f conftest.$ac_objext conftest$ac_exeext
33099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33100 (eval $ac_link) 2>conftest.er1
a848cd7e 33101 ac_status=$?
ac1cb8d3
VS
33102 grep -v '^ *+' conftest.er1 >conftest.err
33103 rm -f conftest.er1
33104 cat conftest.err >&5
a848cd7e
SC
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
6ebeb4c7 33107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33109 (eval $ac_try) 2>&5
33110 ac_status=$?
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); }; } &&
33113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33115 (eval $ac_try) 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
33119 am_cv_lib_iconv=yes
33120 am_cv_func_iconv=yes
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125fi
ac1cb8d3
VS
33126rm -f conftest.err conftest.$ac_objext \
33127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33128 LIBS="$am_save_LIBS"
33129 fi
33130
33131fi
33132echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33133echo "${ECHO_T}$am_cv_func_iconv" >&6
33134 if test "$am_cv_func_iconv" = yes; then
33135
33136cat >>confdefs.h <<\_ACEOF
33137#define HAVE_ICONV 1
33138_ACEOF
33139
33140 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33141echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33142if test "${wx_cv_func_iconv_const+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144else
33145 cat >conftest.$ac_ext <<_ACEOF
33146/* confdefs.h. */
33147_ACEOF
33148cat confdefs.h >>conftest.$ac_ext
33149cat >>conftest.$ac_ext <<_ACEOF
33150/* end confdefs.h. */
33151
33152#include <stdlib.h>
33153#include <iconv.h>
33154extern
33155#ifdef __cplusplus
33156"C"
33157#endif
33158#if defined(__STDC__) || defined(__cplusplus)
33159size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33160#else
33161size_t iconv();
33162#endif
33163
33164int
33165main ()
33166{
33167
33168 ;
33169 return 0;
33170}
33171_ACEOF
33172rm -f conftest.$ac_objext
33173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33174 (eval $ac_compile) 2>conftest.er1
a848cd7e 33175 ac_status=$?
ac1cb8d3
VS
33176 grep -v '^ *+' conftest.er1 >conftest.err
33177 rm -f conftest.er1
33178 cat conftest.err >&5
a848cd7e
SC
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); } &&
6ebeb4c7 33181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183 (eval $ac_try) 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; } &&
33187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33189 (eval $ac_try) 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; }; then
33193 wx_cv_func_iconv_const="no"
33194else
33195 echo "$as_me: failed program was:" >&5
33196sed 's/^/| /' conftest.$ac_ext >&5
33197
33198wx_cv_func_iconv_const="yes"
33199
33200fi
ac1cb8d3 33201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33202
33203fi
33204echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33205echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33206
33207 iconv_const=
33208 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33209 iconv_const="const"
33210 fi
33211
33212
33213cat >>confdefs.h <<_ACEOF
33214#define ICONV_CONST $iconv_const
33215_ACEOF
33216
33217 fi
33218 LIBICONV=
33219 if test "$am_cv_lib_iconv" = yes; then
33220 LIBICONV="-liconv"
33221 fi
33222
33223
33224LIBS="$LIBICONV $LIBS"
33225ac_ext=c
33226ac_cpp='$CPP $CPPFLAGS'
33227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33229ac_compiler_gnu=$ac_cv_c_compiler_gnu
33230
33231
33232if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33233
33234for ac_func in sigaction
33235do
33236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33237echo "$as_me:$LINENO: checking for $ac_func" >&5
33238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33239if eval "test \"\${$as_ac_var+set}\" = set"; then
33240 echo $ECHO_N "(cached) $ECHO_C" >&6
33241else
33242 cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
ac1cb8d3
VS
33248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33250#define $ac_func innocuous_$ac_func
33251
a848cd7e
SC
33252/* System header to define __stub macros and hopefully few prototypes,
33253 which can conflict with char $ac_func (); below.
33254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33256
a848cd7e
SC
33257#ifdef __STDC__
33258# include <limits.h>
33259#else
33260# include <assert.h>
33261#endif
ac1cb8d3
VS
33262
33263#undef $ac_func
33264
a848cd7e
SC
33265/* Override any gcc2 internal prototype to avoid an error. */
33266#ifdef __cplusplus
33267extern "C"
33268{
33269#endif
33270/* We use char because int might match the return type of a gcc2
33271 builtin and then its argument prototype would still apply. */
33272char $ac_func ();
33273/* The GNU C library defines this for functions which it implements
33274 to always fail with ENOSYS. Some functions are actually named
33275 something starting with __ and the normal name is an alias. */
33276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33277choke me
33278#else
33279char (*f) () = $ac_func;
33280#endif
33281#ifdef __cplusplus
33282}
33283#endif
33284
33285int
33286main ()
33287{
33288return f != $ac_func;
33289 ;
33290 return 0;
33291}
33292_ACEOF
33293rm -f conftest.$ac_objext conftest$ac_exeext
33294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33295 (eval $ac_link) 2>conftest.er1
a848cd7e 33296 ac_status=$?
ac1cb8d3
VS
33297 grep -v '^ *+' conftest.er1 >conftest.err
33298 rm -f conftest.er1
33299 cat conftest.err >&5
a848cd7e
SC
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); } &&
6ebeb4c7 33302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304 (eval $ac_try) 2>&5
33305 ac_status=$?
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); }; } &&
33308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 eval "$as_ac_var=yes"
33315else
33316 echo "$as_me: failed program was:" >&5
33317sed 's/^/| /' conftest.$ac_ext >&5
33318
33319eval "$as_ac_var=no"
33320fi
ac1cb8d3
VS
33321rm -f conftest.err conftest.$ac_objext \
33322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33323fi
33324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33326if test `eval echo '${'$as_ac_var'}'` = yes; then
33327 cat >>confdefs.h <<_ACEOF
33328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33329_ACEOF
33330
33331fi
33332done
33333
33334
33335 if test "$ac_cv_func_sigaction" = "no"; then
33336 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33337echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33338 wxUSE_ON_FATAL_EXCEPTION=no
33339 fi
33340
33341 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33342
33343
33344 ac_ext=cc
33345ac_cpp='$CXXCPP $CPPFLAGS'
33346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33349
33350
33351 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33352echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33353if test "${wx_cv_type_sa_handler+set}" = set; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33355else
33356
33357 cat >conftest.$ac_ext <<_ACEOF
33358/* confdefs.h. */
33359_ACEOF
33360cat confdefs.h >>conftest.$ac_ext
33361cat >>conftest.$ac_ext <<_ACEOF
33362/* end confdefs.h. */
33363#include <signal.h>
33364int
33365main ()
33366{
33367
33368 extern void testSigHandler(int);
33369
33370 struct sigaction sa;
33371 sa.sa_handler = testSigHandler;
33372
33373 ;
33374 return 0;
33375}
33376_ACEOF
33377rm -f conftest.$ac_objext
33378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33379 (eval $ac_compile) 2>conftest.er1
a848cd7e 33380 ac_status=$?
ac1cb8d3
VS
33381 grep -v '^ *+' conftest.er1 >conftest.err
33382 rm -f conftest.er1
33383 cat conftest.err >&5
a848cd7e
SC
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } &&
6ebeb4c7 33386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; }; then
33398
33399 wx_cv_type_sa_handler=int
33400
33401else
33402 echo "$as_me: failed program was:" >&5
33403sed 's/^/| /' conftest.$ac_ext >&5
33404
33405
33406 wx_cv_type_sa_handler=void
33407
33408fi
ac1cb8d3 33409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33410
33411fi
33412echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33413echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33414
33415 ac_ext=c
33416ac_cpp='$CPP $CPPFLAGS'
33417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33419ac_compiler_gnu=$ac_cv_c_compiler_gnu
33420
33421
33422 cat >>confdefs.h <<_ACEOF
33423#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33424_ACEOF
33425
33426 fi
33427fi
33428
eaff0f0d
VZ
33429if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33430
33431
33432 ac_ext=cc
33433ac_cpp='$CXXCPP $CPPFLAGS'
33434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33437
33438
33439 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33440echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33441if test "${wx_cv_func_backtrace+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443else
33444
33445 cat >conftest.$ac_ext <<_ACEOF
33446/* confdefs.h. */
33447_ACEOF
33448cat confdefs.h >>conftest.$ac_ext
33449cat >>conftest.$ac_ext <<_ACEOF
33450/* end confdefs.h. */
33451#include <execinfo.h>
33452int
33453main ()
33454{
33455
33456 void *trace[1];
33457 char **messages;
33458
33459 backtrace(trace, 1);
33460 messages = backtrace_symbols(trace, 1);
33461
33462 ;
33463 return 0;
33464}
33465_ACEOF
33466rm -f conftest.$ac_objext
33467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33468 (eval $ac_compile) 2>conftest.er1
33469 ac_status=$?
33470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
6ebeb4c7 33475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477 (eval $ac_try) 2>&5
33478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; } &&
33481 { ac_try='test -s conftest.$ac_objext'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
33487 wx_cv_func_backtrace=yes
33488else
33489 echo "$as_me: failed program was:" >&5
33490sed 's/^/| /' conftest.$ac_ext >&5
33491
33492wx_cv_func_backtrace=no
33493
33494fi
33495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33496
33497
33498fi
33499echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33500echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33501
33502
33503 if test "$wx_cv_func_backtrace" = "no"; then
33504 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33505echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33506 wxUSE_STACKWALKER=no
33507 else
33508 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33509echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33510if test "${wx_cv_func_cxa_demangle+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33512else
33513
33514 cat >conftest.$ac_ext <<_ACEOF
33515/* confdefs.h. */
33516_ACEOF
33517cat confdefs.h >>conftest.$ac_ext
33518cat >>conftest.$ac_ext <<_ACEOF
33519/* end confdefs.h. */
33520#include <cxxabi.h>
33521int
33522main ()
33523{
33524
33525 int rc;
33526 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33527
33528 ;
33529 return 0;
33530}
33531_ACEOF
dfe0c803
JS
33532rm -f conftest.$ac_objext conftest$ac_exeext
33533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33535 ac_status=$?
33536 grep -v '^ *+' conftest.er1 >conftest.err
33537 rm -f conftest.er1
33538 cat conftest.err >&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } &&
6ebeb4c7 33541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; } &&
dfe0c803 33547 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33549 (eval $ac_try) 2>&5
33550 ac_status=$?
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); }; }; then
33553 wx_cv_func_cxa_demangle=yes
33554else
33555 echo "$as_me: failed program was:" >&5
33556sed 's/^/| /' conftest.$ac_ext >&5
33557
33558wx_cv_func_cxa_demangle=no
33559
33560fi
dfe0c803
JS
33561rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33563
33564
33565fi
33566echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33567echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33568
33569 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33570 cat >>confdefs.h <<\_ACEOF
33571#define HAVE_CXA_DEMANGLE 1
33572_ACEOF
33573
33574 fi
33575 fi
33576
33577 ac_ext=c
33578ac_cpp='$CPP $CPPFLAGS'
33579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33581ac_compiler_gnu=$ac_cv_c_compiler_gnu
33582
33583fi
33584
898beab1
DE
33585if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33586 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33587echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33588 wxUSE_STACKWALKER=no
33589fi
33590
33591
a848cd7e
SC
33592
33593
33594for ac_func in mkstemp mktemp
33595do
33596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33597echo "$as_me:$LINENO: checking for $ac_func" >&5
33598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33599if eval "test \"\${$as_ac_var+set}\" = set"; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33601else
33602 cat >conftest.$ac_ext <<_ACEOF
33603/* confdefs.h. */
33604_ACEOF
33605cat confdefs.h >>conftest.$ac_ext
33606cat >>conftest.$ac_ext <<_ACEOF
33607/* end confdefs.h. */
ac1cb8d3
VS
33608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33610#define $ac_func innocuous_$ac_func
33611
a848cd7e
SC
33612/* System header to define __stub macros and hopefully few prototypes,
33613 which can conflict with char $ac_func (); below.
33614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33616
a848cd7e
SC
33617#ifdef __STDC__
33618# include <limits.h>
33619#else
33620# include <assert.h>
33621#endif
ac1cb8d3
VS
33622
33623#undef $ac_func
33624
a848cd7e
SC
33625/* Override any gcc2 internal prototype to avoid an error. */
33626#ifdef __cplusplus
33627extern "C"
33628{
33629#endif
33630/* We use char because int might match the return type of a gcc2
33631 builtin and then its argument prototype would still apply. */
33632char $ac_func ();
33633/* The GNU C library defines this for functions which it implements
33634 to always fail with ENOSYS. Some functions are actually named
33635 something starting with __ and the normal name is an alias. */
33636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33637choke me
33638#else
33639char (*f) () = $ac_func;
33640#endif
33641#ifdef __cplusplus
33642}
33643#endif
33644
33645int
33646main ()
33647{
33648return f != $ac_func;
33649 ;
33650 return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext conftest$ac_exeext
33654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33655 (eval $ac_link) 2>conftest.er1
a848cd7e 33656 ac_status=$?
ac1cb8d3
VS
33657 grep -v '^ *+' conftest.er1 >conftest.err
33658 rm -f conftest.er1
33659 cat conftest.err >&5
a848cd7e
SC
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); } &&
6ebeb4c7 33662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670 (eval $ac_try) 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674 eval "$as_ac_var=yes"
33675else
33676 echo "$as_me: failed program was:" >&5
33677sed 's/^/| /' conftest.$ac_ext >&5
33678
33679eval "$as_ac_var=no"
33680fi
ac1cb8d3
VS
33681rm -f conftest.err conftest.$ac_objext \
33682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33683fi
33684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33686if test `eval echo '${'$as_ac_var'}'` = yes; then
33687 cat >>confdefs.h <<_ACEOF
33688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33689_ACEOF
33690 break
33691fi
33692done
33693
33694
33695echo "$as_me:$LINENO: checking for statfs" >&5
33696echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33697if test "${wx_cv_func_statfs+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33699else
33700 cat >conftest.$ac_ext <<_ACEOF
33701/* confdefs.h. */
33702_ACEOF
33703cat confdefs.h >>conftest.$ac_ext
33704cat >>conftest.$ac_ext <<_ACEOF
33705/* end confdefs.h. */
33706
33707 #if defined(__BSD__)
84ae7ca4
VZ
33708 #include <sys/param.h>
33709 #include <sys/mount.h>
a848cd7e 33710 #else
84ae7ca4 33711 #include <sys/vfs.h>
a848cd7e
SC
33712 #endif
33713
33714int
33715main ()
33716{
33717
33718 long l;
33719 struct statfs fs;
33720 statfs("/", &fs);
33721 l = fs.f_bsize;
33722 l += fs.f_blocks;
33723 l += fs.f_bavail;
33724
33725 ;
33726 return 0;
33727}
33728_ACEOF
33729rm -f conftest.$ac_objext
33730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33731 (eval $ac_compile) 2>conftest.er1
a848cd7e 33732 ac_status=$?
ac1cb8d3
VS
33733 grep -v '^ *+' conftest.er1 >conftest.err
33734 rm -f conftest.er1
33735 cat conftest.err >&5
a848cd7e
SC
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } &&
6ebeb4c7 33738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33740 (eval $ac_try) 2>&5
33741 ac_status=$?
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; } &&
33744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33746 (eval $ac_try) 2>&5
33747 ac_status=$?
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; }; then
84ae7ca4 33750 wx_cv_func_statfs=yes
a848cd7e
SC
33751else
33752 echo "$as_me: failed program was:" >&5
33753sed 's/^/| /' conftest.$ac_ext >&5
33754
84ae7ca4 33755wx_cv_func_statfs=no
a848cd7e
SC
33756
33757fi
ac1cb8d3 33758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33759
33760fi
33761echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33762echo "${ECHO_T}$wx_cv_func_statfs" >&6
33763
33764if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33765
33766
33767 ac_ext=cc
33768ac_cpp='$CXXCPP $CPPFLAGS'
33769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33772
33773 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33774echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33775if test "${wx_cv_func_statfs_decl+set}" = set; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33777else
0683aca6
VZ
33778 cat >conftest.$ac_ext <<_ACEOF
33779/* confdefs.h. */
33780_ACEOF
33781cat confdefs.h >>conftest.$ac_ext
33782cat >>conftest.$ac_ext <<_ACEOF
33783/* end confdefs.h. */
84ae7ca4 33784
0683aca6
VZ
33785 #if defined(__BSD__)
33786 #include <sys/param.h>
33787 #include <sys/mount.h>
33788 #else
33789 #include <sys/vfs.h>
33790 #endif
33791
33792int
33793main ()
33794{
33795
33796 struct statfs fs;
33797 statfs("", &fs);
33798
33799 ;
33800 return 0;
33801}
33802_ACEOF
33803rm -f conftest.$ac_objext
33804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33805 (eval $ac_compile) 2>conftest.er1
33806 ac_status=$?
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_objext'
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 wx_cv_func_statfs_decl=yes
33825else
33826 echo "$as_me: failed program was:" >&5
33827sed 's/^/| /' conftest.$ac_ext >&5
33828
33829wx_cv_func_statfs_decl=no
33830
33831fi
33832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33833
33834fi
33835echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33836echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33837 ac_ext=c
33838ac_cpp='$CPP $CPPFLAGS'
33839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33841ac_compiler_gnu=$ac_cv_c_compiler_gnu
33842
33843
33844 if test "$wx_cv_func_statfs_decl" = "yes"; then
33845 cat >>confdefs.h <<\_ACEOF
33846#define HAVE_STATFS_DECL 1
33847_ACEOF
33848
33849 fi
33850
a848cd7e
SC
33851 wx_cv_type_statvfs_t="struct statfs"
33852 cat >>confdefs.h <<\_ACEOF
33853#define HAVE_STATFS 1
33854_ACEOF
33855
33856else
33857 echo "$as_me:$LINENO: checking for statvfs" >&5
33858echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33859if test "${wx_cv_func_statvfs+set}" = set; then
33860 echo $ECHO_N "(cached) $ECHO_C" >&6
33861else
33862 cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h. */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h. */
33868
33869 #include <stddef.h>
33870 #include <sys/statvfs.h>
33871
33872int
33873main ()
33874{
33875
33876 statvfs("/", NULL);
33877
33878 ;
33879 return 0;
33880}
33881_ACEOF
33882rm -f conftest.$ac_objext
33883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33884 (eval $ac_compile) 2>conftest.er1
a848cd7e 33885 ac_status=$?
ac1cb8d3
VS
33886 grep -v '^ *+' conftest.er1 >conftest.err
33887 rm -f conftest.er1
33888 cat conftest.err >&5
a848cd7e
SC
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } &&
6ebeb4c7 33891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; }; then
33903 wx_cv_func_statvfs=yes
33904else
33905 echo "$as_me: failed program was:" >&5
33906sed 's/^/| /' conftest.$ac_ext >&5
33907
33908wx_cv_func_statvfs=no
33909
33910fi
ac1cb8d3 33911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33912
33913fi
33914echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33915echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33916
33917 if test "$wx_cv_func_statvfs" = "yes"; then
33918
33919
33920 ac_ext=cc
33921ac_cpp='$CXXCPP $CPPFLAGS'
33922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33925
33926
33927 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33928echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33929if test "${wx_cv_type_statvfs_t+set}" = set; then
33930 echo $ECHO_N "(cached) $ECHO_C" >&6
33931else
33932 cat >conftest.$ac_ext <<_ACEOF
33933/* confdefs.h. */
33934_ACEOF
33935cat confdefs.h >>conftest.$ac_ext
33936cat >>conftest.$ac_ext <<_ACEOF
33937/* end confdefs.h. */
33938
33939 #include <sys/statvfs.h>
33940
33941int
33942main ()
33943{
33944
33945 long l;
33946 statvfs_t fs;
33947 statvfs("/", &fs);
33948 l = fs.f_bsize;
33949 l += fs.f_blocks;
33950 l += fs.f_bavail;
33951
33952 ;
33953 return 0;
33954}
33955_ACEOF
33956rm -f conftest.$ac_objext
33957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33958 (eval $ac_compile) 2>conftest.er1
a848cd7e 33959 ac_status=$?
ac1cb8d3
VS
33960 grep -v '^ *+' conftest.er1 >conftest.err
33961 rm -f conftest.er1
33962 cat conftest.err >&5
a848cd7e
SC
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } &&
6ebeb4c7 33965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; } &&
33971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973 (eval $ac_try) 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
33977 wx_cv_type_statvfs_t=statvfs_t
33978else
33979 echo "$as_me: failed program was:" >&5
33980sed 's/^/| /' conftest.$ac_ext >&5
33981
33982
33983 cat >conftest.$ac_ext <<_ACEOF
33984/* confdefs.h. */
33985_ACEOF
33986cat confdefs.h >>conftest.$ac_ext
33987cat >>conftest.$ac_ext <<_ACEOF
33988/* end confdefs.h. */
33989
33990 #include <sys/statvfs.h>
33991
33992int
33993main ()
33994{
33995
33996 long l;
33997 struct statvfs fs;
33998 statvfs("/", &fs);
33999 l = fs.f_bsize;
34000 l += fs.f_blocks;
34001 l += fs.f_bavail;
34002
34003 ;
34004 return 0;
34005}
34006_ACEOF
34007rm -f conftest.$ac_objext
34008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34009 (eval $ac_compile) 2>conftest.er1
a848cd7e 34010 ac_status=$?
ac1cb8d3
VS
34011 grep -v '^ *+' conftest.er1 >conftest.err
34012 rm -f conftest.er1
34013 cat conftest.err >&5
a848cd7e
SC
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); } &&
6ebeb4c7 34016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 wx_cv_type_statvfs_t="struct statvfs"
34029else
34030 echo "$as_me: failed program was:" >&5
34031sed 's/^/| /' conftest.$ac_ext >&5
34032
34033wx_cv_type_statvfs_t="unknown"
34034
34035fi
ac1cb8d3 34036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34037
34038
34039fi
ac1cb8d3 34040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34041
34042fi
34043echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34044echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34045
34046 ac_ext=c
34047ac_cpp='$CPP $CPPFLAGS'
34048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34050ac_compiler_gnu=$ac_cv_c_compiler_gnu
34051
34052
34053 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34054 cat >>confdefs.h <<\_ACEOF
34055#define HAVE_STATVFS 1
34056_ACEOF
34057
34058 fi
34059 else
34060 wx_cv_type_statvfs_t="unknown"
34061 fi
34062fi
34063
34064if test "$wx_cv_type_statvfs_t" != "unknown"; then
34065 cat >>confdefs.h <<_ACEOF
34066#define WX_STATFS_T $wx_cv_type_statvfs_t
34067_ACEOF
34068
34069else
34070 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34071echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34072fi
34073
34074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34075
34076
34077for ac_func in fcntl flock
34078do
34079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34080echo "$as_me:$LINENO: checking for $ac_func" >&5
34081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34082if eval "test \"\${$as_ac_var+set}\" = set"; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34084else
34085 cat >conftest.$ac_ext <<_ACEOF
34086/* confdefs.h. */
34087_ACEOF
34088cat confdefs.h >>conftest.$ac_ext
34089cat >>conftest.$ac_ext <<_ACEOF
34090/* end confdefs.h. */
ac1cb8d3
VS
34091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34093#define $ac_func innocuous_$ac_func
34094
a848cd7e
SC
34095/* System header to define __stub macros and hopefully few prototypes,
34096 which can conflict with char $ac_func (); below.
34097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34098 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34099
a848cd7e
SC
34100#ifdef __STDC__
34101# include <limits.h>
34102#else
34103# include <assert.h>
34104#endif
ac1cb8d3
VS
34105
34106#undef $ac_func
34107
a848cd7e
SC
34108/* Override any gcc2 internal prototype to avoid an error. */
34109#ifdef __cplusplus
34110extern "C"
34111{
34112#endif
34113/* We use char because int might match the return type of a gcc2
34114 builtin and then its argument prototype would still apply. */
34115char $ac_func ();
34116/* The GNU C library defines this for functions which it implements
34117 to always fail with ENOSYS. Some functions are actually named
34118 something starting with __ and the normal name is an alias. */
34119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34120choke me
34121#else
34122char (*f) () = $ac_func;
34123#endif
34124#ifdef __cplusplus
34125}
34126#endif
34127
34128int
34129main ()
34130{
34131return f != $ac_func;
34132 ;
34133 return 0;
34134}
34135_ACEOF
34136rm -f conftest.$ac_objext conftest$ac_exeext
34137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34138 (eval $ac_link) 2>conftest.er1
a848cd7e 34139 ac_status=$?
ac1cb8d3
VS
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
a848cd7e
SC
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } &&
6ebeb4c7 34145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147 (eval $ac_try) 2>&5
34148 ac_status=$?
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; } &&
34151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); }; }; then
34157 eval "$as_ac_var=yes"
34158else
34159 echo "$as_me: failed program was:" >&5
34160sed 's/^/| /' conftest.$ac_ext >&5
34161
34162eval "$as_ac_var=no"
34163fi
ac1cb8d3
VS
34164rm -f conftest.err conftest.$ac_objext \
34165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34166fi
34167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34169if test `eval echo '${'$as_ac_var'}'` = yes; then
34170 cat >>confdefs.h <<_ACEOF
34171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34172_ACEOF
34173 break
34174fi
34175done
34176
34177
34178 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34179 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34180echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34181 wxUSE_SNGLINST_CHECKER=no
34182 fi
34183fi
34184
34185
34186for ac_func in timegm
34187do
34188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34189echo "$as_me:$LINENO: checking for $ac_func" >&5
34190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34191if eval "test \"\${$as_ac_var+set}\" = set"; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34193else
34194 cat >conftest.$ac_ext <<_ACEOF
34195/* confdefs.h. */
34196_ACEOF
34197cat confdefs.h >>conftest.$ac_ext
34198cat >>conftest.$ac_ext <<_ACEOF
34199/* end confdefs.h. */
ac1cb8d3
VS
34200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34202#define $ac_func innocuous_$ac_func
34203
a848cd7e
SC
34204/* System header to define __stub macros and hopefully few prototypes,
34205 which can conflict with char $ac_func (); below.
34206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34207 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34208
a848cd7e
SC
34209#ifdef __STDC__
34210# include <limits.h>
34211#else
34212# include <assert.h>
34213#endif
ac1cb8d3
VS
34214
34215#undef $ac_func
34216
a848cd7e
SC
34217/* Override any gcc2 internal prototype to avoid an error. */
34218#ifdef __cplusplus
34219extern "C"
34220{
34221#endif
34222/* We use char because int might match the return type of a gcc2
34223 builtin and then its argument prototype would still apply. */
34224char $ac_func ();
34225/* The GNU C library defines this for functions which it implements
34226 to always fail with ENOSYS. Some functions are actually named
34227 something starting with __ and the normal name is an alias. */
34228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34229choke me
34230#else
34231char (*f) () = $ac_func;
34232#endif
34233#ifdef __cplusplus
34234}
34235#endif
34236
34237int
34238main ()
34239{
34240return f != $ac_func;
34241 ;
34242 return 0;
34243}
34244_ACEOF
34245rm -f conftest.$ac_objext conftest$ac_exeext
34246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34247 (eval $ac_link) 2>conftest.er1
a848cd7e 34248 ac_status=$?
ac1cb8d3
VS
34249 grep -v '^ *+' conftest.er1 >conftest.err
34250 rm -f conftest.er1
34251 cat conftest.err >&5
a848cd7e
SC
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } &&
6ebeb4c7 34254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34256 (eval $ac_try) 2>&5
34257 ac_status=$?
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); }; } &&
34260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34262 (eval $ac_try) 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; }; then
34266 eval "$as_ac_var=yes"
34267else
34268 echo "$as_me: failed program was:" >&5
34269sed 's/^/| /' conftest.$ac_ext >&5
34270
34271eval "$as_ac_var=no"
34272fi
ac1cb8d3
VS
34273rm -f conftest.err conftest.$ac_objext \
34274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34275fi
34276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34278if test `eval echo '${'$as_ac_var'}'` = yes; then
34279 cat >>confdefs.h <<_ACEOF
34280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34281_ACEOF
34282
34283fi
34284done
34285
34286
34287
34288
34289for ac_func in putenv setenv
34290do
34291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34292echo "$as_me:$LINENO: checking for $ac_func" >&5
34293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34294if eval "test \"\${$as_ac_var+set}\" = set"; then
34295 echo $ECHO_N "(cached) $ECHO_C" >&6
34296else
34297 cat >conftest.$ac_ext <<_ACEOF
34298/* confdefs.h. */
34299_ACEOF
34300cat confdefs.h >>conftest.$ac_ext
34301cat >>conftest.$ac_ext <<_ACEOF
34302/* end confdefs.h. */
ac1cb8d3
VS
34303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34305#define $ac_func innocuous_$ac_func
34306
a848cd7e
SC
34307/* System header to define __stub macros and hopefully few prototypes,
34308 which can conflict with char $ac_func (); below.
34309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34310 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34311
a848cd7e
SC
34312#ifdef __STDC__
34313# include <limits.h>
34314#else
34315# include <assert.h>
34316#endif
ac1cb8d3
VS
34317
34318#undef $ac_func
34319
a848cd7e
SC
34320/* Override any gcc2 internal prototype to avoid an error. */
34321#ifdef __cplusplus
34322extern "C"
34323{
34324#endif
34325/* We use char because int might match the return type of a gcc2
34326 builtin and then its argument prototype would still apply. */
34327char $ac_func ();
34328/* The GNU C library defines this for functions which it implements
34329 to always fail with ENOSYS. Some functions are actually named
34330 something starting with __ and the normal name is an alias. */
34331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34332choke me
34333#else
34334char (*f) () = $ac_func;
34335#endif
34336#ifdef __cplusplus
34337}
34338#endif
34339
34340int
34341main ()
34342{
34343return f != $ac_func;
34344 ;
34345 return 0;
34346}
34347_ACEOF
34348rm -f conftest.$ac_objext conftest$ac_exeext
34349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34350 (eval $ac_link) 2>conftest.er1
a848cd7e 34351 ac_status=$?
ac1cb8d3
VS
34352 grep -v '^ *+' conftest.er1 >conftest.err
34353 rm -f conftest.er1
34354 cat conftest.err >&5
a848cd7e
SC
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } &&
6ebeb4c7 34357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34359 (eval $ac_try) 2>&5
34360 ac_status=$?
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); }; } &&
34363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 (eval $ac_try) 2>&5
34366 ac_status=$?
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); }; }; then
34369 eval "$as_ac_var=yes"
34370else
34371 echo "$as_me: failed program was:" >&5
34372sed 's/^/| /' conftest.$ac_ext >&5
34373
34374eval "$as_ac_var=no"
34375fi
ac1cb8d3
VS
34376rm -f conftest.err conftest.$ac_objext \
34377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34378fi
34379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34380echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34381if test `eval echo '${'$as_ac_var'}'` = yes; then
34382 cat >>confdefs.h <<_ACEOF
34383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34384_ACEOF
34385 break
34386fi
34387done
34388
34389
34390HAVE_SOME_SLEEP_FUNC=0
34391if test "$USE_BEOS" = 1; then
34392 cat >>confdefs.h <<\_ACEOF
34393#define HAVE_SLEEP 1
34394_ACEOF
34395
34396 HAVE_SOME_SLEEP_FUNC=1
34397fi
34398
34399if test "$USE_DARWIN" = 1; then
34400 cat >>confdefs.h <<\_ACEOF
34401#define HAVE_USLEEP 1
34402_ACEOF
34403
34404 HAVE_SOME_SLEEP_FUNC=1
34405fi
34406
34407if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34408 POSIX4_LINK=
34409
34410for ac_func in nanosleep
34411do
34412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34413echo "$as_me:$LINENO: checking for $ac_func" >&5
34414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34415if eval "test \"\${$as_ac_var+set}\" = set"; then
34416 echo $ECHO_N "(cached) $ECHO_C" >&6
34417else
34418 cat >conftest.$ac_ext <<_ACEOF
34419/* confdefs.h. */
34420_ACEOF
34421cat confdefs.h >>conftest.$ac_ext
34422cat >>conftest.$ac_ext <<_ACEOF
34423/* end confdefs.h. */
ac1cb8d3
VS
34424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34426#define $ac_func innocuous_$ac_func
34427
a848cd7e
SC
34428/* System header to define __stub macros and hopefully few prototypes,
34429 which can conflict with char $ac_func (); below.
34430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34431 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34432
a848cd7e
SC
34433#ifdef __STDC__
34434# include <limits.h>
34435#else
34436# include <assert.h>
34437#endif
ac1cb8d3
VS
34438
34439#undef $ac_func
34440
a848cd7e
SC
34441/* Override any gcc2 internal prototype to avoid an error. */
34442#ifdef __cplusplus
34443extern "C"
34444{
34445#endif
34446/* We use char because int might match the return type of a gcc2
34447 builtin and then its argument prototype would still apply. */
34448char $ac_func ();
34449/* The GNU C library defines this for functions which it implements
34450 to always fail with ENOSYS. Some functions are actually named
34451 something starting with __ and the normal name is an alias. */
34452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34453choke me
34454#else
34455char (*f) () = $ac_func;
34456#endif
34457#ifdef __cplusplus
34458}
34459#endif
34460
34461int
34462main ()
34463{
34464return f != $ac_func;
34465 ;
34466 return 0;
34467}
34468_ACEOF
34469rm -f conftest.$ac_objext conftest$ac_exeext
34470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34471 (eval $ac_link) 2>conftest.er1
a848cd7e 34472 ac_status=$?
ac1cb8d3
VS
34473 grep -v '^ *+' conftest.er1 >conftest.err
34474 rm -f conftest.er1
34475 cat conftest.err >&5
a848cd7e
SC
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
6ebeb4c7 34478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34487 ac_status=$?
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 eval "$as_ac_var=yes"
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495eval "$as_ac_var=no"
34496fi
ac1cb8d3
VS
34497rm -f conftest.err conftest.$ac_objext \
34498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34499fi
34500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34502if test `eval echo '${'$as_ac_var'}'` = yes; then
34503 cat >>confdefs.h <<_ACEOF
34504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34505_ACEOF
34506 cat >>confdefs.h <<\_ACEOF
34507#define HAVE_NANOSLEEP 1
34508_ACEOF
34509
34510else
34511
34512 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34513echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34514if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34515 echo $ECHO_N "(cached) $ECHO_C" >&6
34516else
34517 ac_check_lib_save_LIBS=$LIBS
34518LIBS="-lposix4 $LIBS"
34519cat >conftest.$ac_ext <<_ACEOF
34520/* confdefs.h. */
34521_ACEOF
34522cat confdefs.h >>conftest.$ac_ext
34523cat >>conftest.$ac_ext <<_ACEOF
34524/* end confdefs.h. */
34525
34526/* Override any gcc2 internal prototype to avoid an error. */
34527#ifdef __cplusplus
34528extern "C"
34529#endif
34530/* We use char because int might match the return type of a gcc2
34531 builtin and then its argument prototype would still apply. */
34532char nanosleep ();
34533int
34534main ()
34535{
34536nanosleep ();
34537 ;
34538 return 0;
34539}
34540_ACEOF
34541rm -f conftest.$ac_objext conftest$ac_exeext
34542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34543 (eval $ac_link) 2>conftest.er1
a848cd7e 34544 ac_status=$?
ac1cb8d3
VS
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
a848cd7e
SC
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
6ebeb4c7 34550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; } &&
34556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; }; then
34562 ac_cv_lib_posix4_nanosleep=yes
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567ac_cv_lib_posix4_nanosleep=no
34568fi
ac1cb8d3
VS
34569rm -f conftest.err conftest.$ac_objext \
34570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34571LIBS=$ac_check_lib_save_LIBS
34572fi
34573echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34574echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34575if test $ac_cv_lib_posix4_nanosleep = yes; then
34576
34577 cat >>confdefs.h <<\_ACEOF
34578#define HAVE_NANOSLEEP 1
34579_ACEOF
34580
34581 POSIX4_LINK=" -lposix4"
34582
34583else
34584
34585
34586for ac_func in usleep
34587do
34588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34589echo "$as_me:$LINENO: checking for $ac_func" >&5
34590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34591if eval "test \"\${$as_ac_var+set}\" = set"; then
34592 echo $ECHO_N "(cached) $ECHO_C" >&6
34593else
34594 cat >conftest.$ac_ext <<_ACEOF
34595/* confdefs.h. */
34596_ACEOF
34597cat confdefs.h >>conftest.$ac_ext
34598cat >>conftest.$ac_ext <<_ACEOF
34599/* end confdefs.h. */
ac1cb8d3
VS
34600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34602#define $ac_func innocuous_$ac_func
34603
a848cd7e
SC
34604/* System header to define __stub macros and hopefully few prototypes,
34605 which can conflict with char $ac_func (); below.
34606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34607 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34608
a848cd7e
SC
34609#ifdef __STDC__
34610# include <limits.h>
34611#else
34612# include <assert.h>
34613#endif
ac1cb8d3
VS
34614
34615#undef $ac_func
34616
a848cd7e
SC
34617/* Override any gcc2 internal prototype to avoid an error. */
34618#ifdef __cplusplus
34619extern "C"
34620{
34621#endif
34622/* We use char because int might match the return type of a gcc2
34623 builtin and then its argument prototype would still apply. */
34624char $ac_func ();
34625/* The GNU C library defines this for functions which it implements
34626 to always fail with ENOSYS. Some functions are actually named
34627 something starting with __ and the normal name is an alias. */
34628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34629choke me
34630#else
34631char (*f) () = $ac_func;
34632#endif
34633#ifdef __cplusplus
34634}
34635#endif
34636
34637int
34638main ()
34639{
34640return f != $ac_func;
34641 ;
34642 return 0;
34643}
34644_ACEOF
34645rm -f conftest.$ac_objext conftest$ac_exeext
34646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34647 (eval $ac_link) 2>conftest.er1
a848cd7e 34648 ac_status=$?
ac1cb8d3
VS
34649 grep -v '^ *+' conftest.er1 >conftest.err
34650 rm -f conftest.er1
34651 cat conftest.err >&5
a848cd7e
SC
34652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653 (exit $ac_status); } &&
6ebeb4c7 34654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656 (eval $ac_try) 2>&5
34657 ac_status=$?
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); }; } &&
34660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662 (eval $ac_try) 2>&5
34663 ac_status=$?
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); }; }; then
34666 eval "$as_ac_var=yes"
34667else
34668 echo "$as_me: failed program was:" >&5
34669sed 's/^/| /' conftest.$ac_ext >&5
34670
34671eval "$as_ac_var=no"
34672fi
ac1cb8d3
VS
34673rm -f conftest.err conftest.$ac_objext \
34674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34675fi
34676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34678if test `eval echo '${'$as_ac_var'}'` = yes; then
34679 cat >>confdefs.h <<_ACEOF
34680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34681_ACEOF
34682 cat >>confdefs.h <<\_ACEOF
34683#define HAVE_USLEEP 1
34684_ACEOF
34685
34686else
34687 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34688echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34689
34690fi
34691done
34692
34693
34694
34695fi
34696
34697
34698
34699fi
34700done
34701
34702fi
34703
34704
34705
34706for ac_func in uname gethostname
34707do
34708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34709echo "$as_me:$LINENO: checking for $ac_func" >&5
34710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34711if eval "test \"\${$as_ac_var+set}\" = set"; then
34712 echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
ac1cb8d3
VS
34720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34722#define $ac_func innocuous_$ac_func
34723
a848cd7e
SC
34724/* System header to define __stub macros and hopefully few prototypes,
34725 which can conflict with char $ac_func (); below.
34726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34728
a848cd7e
SC
34729#ifdef __STDC__
34730# include <limits.h>
34731#else
34732# include <assert.h>
34733#endif
ac1cb8d3
VS
34734
34735#undef $ac_func
34736
a848cd7e
SC
34737/* Override any gcc2 internal prototype to avoid an error. */
34738#ifdef __cplusplus
34739extern "C"
34740{
34741#endif
34742/* We use char because int might match the return type of a gcc2
34743 builtin and then its argument prototype would still apply. */
34744char $ac_func ();
34745/* The GNU C library defines this for functions which it implements
34746 to always fail with ENOSYS. Some functions are actually named
34747 something starting with __ and the normal name is an alias. */
34748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34749choke me
34750#else
34751char (*f) () = $ac_func;
34752#endif
34753#ifdef __cplusplus
34754}
34755#endif
34756
34757int
34758main ()
34759{
34760return f != $ac_func;
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext conftest$ac_exeext
34766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34767 (eval $ac_link) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
6ebeb4c7 34774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 eval "$as_ac_var=yes"
34787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791eval "$as_ac_var=no"
34792fi
ac1cb8d3
VS
34793rm -f conftest.err conftest.$ac_objext \
34794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34795fi
34796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34798if test `eval echo '${'$as_ac_var'}'` = yes; then
34799 cat >>confdefs.h <<_ACEOF
34800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34801_ACEOF
34802 break
34803fi
34804done
34805
34806
34807
34808
34809ac_ext=cc
34810ac_cpp='$CXXCPP $CPPFLAGS'
34811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34814
34815
34816
34817for ac_func in strtok_r
34818do
34819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34820echo "$as_me:$LINENO: checking for $ac_func" >&5
34821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34822if eval "test \"\${$as_ac_var+set}\" = set"; then
34823 echo $ECHO_N "(cached) $ECHO_C" >&6
34824else
34825 cat >conftest.$ac_ext <<_ACEOF
34826/* confdefs.h. */
34827_ACEOF
34828cat confdefs.h >>conftest.$ac_ext
34829cat >>conftest.$ac_ext <<_ACEOF
34830/* end confdefs.h. */
ac1cb8d3
VS
34831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34833#define $ac_func innocuous_$ac_func
34834
a848cd7e
SC
34835/* System header to define __stub macros and hopefully few prototypes,
34836 which can conflict with char $ac_func (); below.
34837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34839
a848cd7e
SC
34840#ifdef __STDC__
34841# include <limits.h>
34842#else
34843# include <assert.h>
34844#endif
ac1cb8d3
VS
34845
34846#undef $ac_func
34847
a848cd7e
SC
34848/* Override any gcc2 internal prototype to avoid an error. */
34849#ifdef __cplusplus
34850extern "C"
34851{
34852#endif
34853/* We use char because int might match the return type of a gcc2
34854 builtin and then its argument prototype would still apply. */
34855char $ac_func ();
34856/* The GNU C library defines this for functions which it implements
34857 to always fail with ENOSYS. Some functions are actually named
34858 something starting with __ and the normal name is an alias. */
34859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34860choke me
34861#else
34862char (*f) () = $ac_func;
34863#endif
34864#ifdef __cplusplus
34865}
34866#endif
34867
34868int
34869main ()
34870{
34871return f != $ac_func;
34872 ;
34873 return 0;
34874}
34875_ACEOF
34876rm -f conftest.$ac_objext conftest$ac_exeext
34877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34878 (eval $ac_link) 2>conftest.er1
a848cd7e 34879 ac_status=$?
ac1cb8d3
VS
34880 grep -v '^ *+' conftest.er1 >conftest.err
34881 rm -f conftest.er1
34882 cat conftest.err >&5
a848cd7e
SC
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); } &&
6ebeb4c7 34885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887 (eval $ac_try) 2>&5
34888 ac_status=$?
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); }; } &&
34891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; }; then
34897 eval "$as_ac_var=yes"
34898else
34899 echo "$as_me: failed program was:" >&5
34900sed 's/^/| /' conftest.$ac_ext >&5
34901
34902eval "$as_ac_var=no"
34903fi
ac1cb8d3
VS
34904rm -f conftest.err conftest.$ac_objext \
34905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34906fi
34907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34909if test `eval echo '${'$as_ac_var'}'` = yes; then
34910 cat >>confdefs.h <<_ACEOF
34911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34912_ACEOF
34913
34914fi
34915done
34916
34917
34918ac_ext=c
34919ac_cpp='$CPP $CPPFLAGS'
34920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34922ac_compiler_gnu=$ac_cv_c_compiler_gnu
34923
34924
34925INET_LINK=
34926
34927for ac_func in inet_addr
34928do
34929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34930echo "$as_me:$LINENO: checking for $ac_func" >&5
34931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34932if eval "test \"\${$as_ac_var+set}\" = set"; then
34933 echo $ECHO_N "(cached) $ECHO_C" >&6
34934else
34935 cat >conftest.$ac_ext <<_ACEOF
34936/* confdefs.h. */
34937_ACEOF
34938cat confdefs.h >>conftest.$ac_ext
34939cat >>conftest.$ac_ext <<_ACEOF
34940/* end confdefs.h. */
ac1cb8d3
VS
34941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34943#define $ac_func innocuous_$ac_func
34944
a848cd7e
SC
34945/* System header to define __stub macros and hopefully few prototypes,
34946 which can conflict with char $ac_func (); below.
34947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34949
a848cd7e
SC
34950#ifdef __STDC__
34951# include <limits.h>
34952#else
34953# include <assert.h>
34954#endif
ac1cb8d3
VS
34955
34956#undef $ac_func
34957
a848cd7e
SC
34958/* Override any gcc2 internal prototype to avoid an error. */
34959#ifdef __cplusplus
34960extern "C"
34961{
34962#endif
34963/* We use char because int might match the return type of a gcc2
34964 builtin and then its argument prototype would still apply. */
34965char $ac_func ();
34966/* The GNU C library defines this for functions which it implements
34967 to always fail with ENOSYS. Some functions are actually named
34968 something starting with __ and the normal name is an alias. */
34969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34970choke me
34971#else
34972char (*f) () = $ac_func;
34973#endif
34974#ifdef __cplusplus
34975}
34976#endif
34977
34978int
34979main ()
34980{
34981return f != $ac_func;
34982 ;
34983 return 0;
34984}
34985_ACEOF
34986rm -f conftest.$ac_objext conftest$ac_exeext
34987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34988 (eval $ac_link) 2>conftest.er1
a848cd7e 34989 ac_status=$?
ac1cb8d3
VS
34990 grep -v '^ *+' conftest.er1 >conftest.err
34991 rm -f conftest.er1
34992 cat conftest.err >&5
a848cd7e
SC
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); } &&
6ebeb4c7 34995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34998 ac_status=$?
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; } &&
35001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003 (eval $ac_try) 2>&5
35004 ac_status=$?
35005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006 (exit $ac_status); }; }; then
35007 eval "$as_ac_var=yes"
35008else
35009 echo "$as_me: failed program was:" >&5
35010sed 's/^/| /' conftest.$ac_ext >&5
35011
35012eval "$as_ac_var=no"
35013fi
ac1cb8d3
VS
35014rm -f conftest.err conftest.$ac_objext \
35015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35016fi
35017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35019if test `eval echo '${'$as_ac_var'}'` = yes; then
35020 cat >>confdefs.h <<_ACEOF
35021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35022_ACEOF
35023 cat >>confdefs.h <<\_ACEOF
35024#define HAVE_INET_ADDR 1
35025_ACEOF
35026
35027else
35028
35029 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35030echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35031if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35033else
35034 ac_check_lib_save_LIBS=$LIBS
35035LIBS="-lnsl $LIBS"
35036cat >conftest.$ac_ext <<_ACEOF
35037/* confdefs.h. */
35038_ACEOF
35039cat confdefs.h >>conftest.$ac_ext
35040cat >>conftest.$ac_ext <<_ACEOF
35041/* end confdefs.h. */
35042
35043/* Override any gcc2 internal prototype to avoid an error. */
35044#ifdef __cplusplus
35045extern "C"
35046#endif
35047/* We use char because int might match the return type of a gcc2
35048 builtin and then its argument prototype would still apply. */
35049char inet_addr ();
35050int
35051main ()
35052{
35053inet_addr ();
35054 ;
35055 return 0;
35056}
35057_ACEOF
35058rm -f conftest.$ac_objext conftest$ac_exeext
35059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35060 (eval $ac_link) 2>conftest.er1
a848cd7e 35061 ac_status=$?
ac1cb8d3
VS
35062 grep -v '^ *+' conftest.er1 >conftest.err
35063 rm -f conftest.er1
35064 cat conftest.err >&5
a848cd7e
SC
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); } &&
6ebeb4c7 35067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35070 ac_status=$?
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; } &&
35073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35076 ac_status=$?
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; }; then
35079 ac_cv_lib_nsl_inet_addr=yes
35080else
35081 echo "$as_me: failed program was:" >&5
35082sed 's/^/| /' conftest.$ac_ext >&5
35083
35084ac_cv_lib_nsl_inet_addr=no
35085fi
ac1cb8d3
VS
35086rm -f conftest.err conftest.$ac_objext \
35087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35088LIBS=$ac_check_lib_save_LIBS
35089fi
35090echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35091echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35092if test $ac_cv_lib_nsl_inet_addr = yes; then
35093 INET_LINK="nsl"
35094else
35095
35096 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35097echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35098if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35099 echo $ECHO_N "(cached) $ECHO_C" >&6
35100else
35101 ac_check_lib_save_LIBS=$LIBS
35102LIBS="-lresolv $LIBS"
35103cat >conftest.$ac_ext <<_ACEOF
35104/* confdefs.h. */
35105_ACEOF
35106cat confdefs.h >>conftest.$ac_ext
35107cat >>conftest.$ac_ext <<_ACEOF
35108/* end confdefs.h. */
35109
35110/* Override any gcc2 internal prototype to avoid an error. */
35111#ifdef __cplusplus
35112extern "C"
35113#endif
35114/* We use char because int might match the return type of a gcc2
35115 builtin and then its argument prototype would still apply. */
35116char inet_addr ();
35117int
35118main ()
35119{
35120inet_addr ();
35121 ;
35122 return 0;
35123}
35124_ACEOF
35125rm -f conftest.$ac_objext conftest$ac_exeext
35126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35127 (eval $ac_link) 2>conftest.er1
a848cd7e 35128 ac_status=$?
ac1cb8d3
VS
35129 grep -v '^ *+' conftest.er1 >conftest.err
35130 rm -f conftest.er1
35131 cat conftest.err >&5
a848cd7e
SC
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); } &&
6ebeb4c7 35134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; } &&
35140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35142 (eval $ac_try) 2>&5
35143 ac_status=$?
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); }; }; then
35146 ac_cv_lib_resolv_inet_addr=yes
35147else
35148 echo "$as_me: failed program was:" >&5
35149sed 's/^/| /' conftest.$ac_ext >&5
35150
35151ac_cv_lib_resolv_inet_addr=no
35152fi
ac1cb8d3
VS
35153rm -f conftest.err conftest.$ac_objext \
35154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35155LIBS=$ac_check_lib_save_LIBS
35156fi
35157echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35158echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35159if test $ac_cv_lib_resolv_inet_addr = yes; then
35160 INET_LINK="resolv"
35161else
35162
35163 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35164echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35165if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35166 echo $ECHO_N "(cached) $ECHO_C" >&6
35167else
35168 ac_check_lib_save_LIBS=$LIBS
35169LIBS="-lsocket $LIBS"
35170cat >conftest.$ac_ext <<_ACEOF
35171/* confdefs.h. */
35172_ACEOF
35173cat confdefs.h >>conftest.$ac_ext
35174cat >>conftest.$ac_ext <<_ACEOF
35175/* end confdefs.h. */
35176
35177/* Override any gcc2 internal prototype to avoid an error. */
35178#ifdef __cplusplus
35179extern "C"
35180#endif
35181/* We use char because int might match the return type of a gcc2
35182 builtin and then its argument prototype would still apply. */
35183char inet_addr ();
35184int
35185main ()
35186{
35187inet_addr ();
35188 ;
35189 return 0;
35190}
35191_ACEOF
35192rm -f conftest.$ac_objext conftest$ac_exeext
35193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35194 (eval $ac_link) 2>conftest.er1
a848cd7e 35195 ac_status=$?
ac1cb8d3
VS
35196 grep -v '^ *+' conftest.er1 >conftest.err
35197 rm -f conftest.er1
35198 cat conftest.err >&5
a848cd7e
SC
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); } &&
6ebeb4c7 35201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35203 (eval $ac_try) 2>&5
35204 ac_status=$?
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; } &&
35207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; }; then
35213 ac_cv_lib_socket_inet_addr=yes
35214else
35215 echo "$as_me: failed program was:" >&5
35216sed 's/^/| /' conftest.$ac_ext >&5
35217
35218ac_cv_lib_socket_inet_addr=no
35219fi
ac1cb8d3
VS
35220rm -f conftest.err conftest.$ac_objext \
35221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35222LIBS=$ac_check_lib_save_LIBS
35223fi
35224echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35225echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35226if test $ac_cv_lib_socket_inet_addr = yes; then
35227 INET_LINK="socket"
35228
35229fi
35230
35231
35232
35233fi
35234
35235
35236
35237fi
35238
35239
35240
35241fi
35242done
35243
35244
35245
35246for ac_func in inet_aton
35247do
35248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35249echo "$as_me:$LINENO: checking for $ac_func" >&5
35250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35251if eval "test \"\${$as_ac_var+set}\" = set"; then
35252 echo $ECHO_N "(cached) $ECHO_C" >&6
35253else
35254 cat >conftest.$ac_ext <<_ACEOF
35255/* confdefs.h. */
35256_ACEOF
35257cat confdefs.h >>conftest.$ac_ext
35258cat >>conftest.$ac_ext <<_ACEOF
35259/* end confdefs.h. */
ac1cb8d3
VS
35260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35262#define $ac_func innocuous_$ac_func
35263
a848cd7e
SC
35264/* System header to define __stub macros and hopefully few prototypes,
35265 which can conflict with char $ac_func (); below.
35266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35268
a848cd7e
SC
35269#ifdef __STDC__
35270# include <limits.h>
35271#else
35272# include <assert.h>
35273#endif
ac1cb8d3
VS
35274
35275#undef $ac_func
35276
a848cd7e
SC
35277/* Override any gcc2 internal prototype to avoid an error. */
35278#ifdef __cplusplus
35279extern "C"
35280{
35281#endif
35282/* We use char because int might match the return type of a gcc2
35283 builtin and then its argument prototype would still apply. */
35284char $ac_func ();
35285/* The GNU C library defines this for functions which it implements
35286 to always fail with ENOSYS. Some functions are actually named
35287 something starting with __ and the normal name is an alias. */
35288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35289choke me
35290#else
35291char (*f) () = $ac_func;
35292#endif
35293#ifdef __cplusplus
35294}
35295#endif
35296
35297int
35298main ()
35299{
35300return f != $ac_func;
35301 ;
35302 return 0;
35303}
35304_ACEOF
35305rm -f conftest.$ac_objext conftest$ac_exeext
35306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35307 (eval $ac_link) 2>conftest.er1
a848cd7e 35308 ac_status=$?
ac1cb8d3
VS
35309 grep -v '^ *+' conftest.er1 >conftest.err
35310 rm -f conftest.er1
35311 cat conftest.err >&5
a848cd7e
SC
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } &&
6ebeb4c7 35314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35317 ac_status=$?
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; } &&
35320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326 eval "$as_ac_var=yes"
35327else
35328 echo "$as_me: failed program was:" >&5
35329sed 's/^/| /' conftest.$ac_ext >&5
35330
35331eval "$as_ac_var=no"
35332fi
ac1cb8d3
VS
35333rm -f conftest.err conftest.$ac_objext \
35334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35335fi
35336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35338if test `eval echo '${'$as_ac_var'}'` = yes; then
35339 cat >>confdefs.h <<_ACEOF
35340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35341_ACEOF
35342 cat >>confdefs.h <<\_ACEOF
35343#define HAVE_INET_ATON 1
35344_ACEOF
35345
35346else
35347
35348 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35349echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35350echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35351if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35352 echo $ECHO_N "(cached) $ECHO_C" >&6
35353else
35354 ac_check_lib_save_LIBS=$LIBS
35355LIBS="-l$INET_LINK $LIBS"
35356cat >conftest.$ac_ext <<_ACEOF
35357/* confdefs.h. */
35358_ACEOF
35359cat confdefs.h >>conftest.$ac_ext
35360cat >>conftest.$ac_ext <<_ACEOF
35361/* end confdefs.h. */
35362
35363/* Override any gcc2 internal prototype to avoid an error. */
35364#ifdef __cplusplus
35365extern "C"
35366#endif
35367/* We use char because int might match the return type of a gcc2
35368 builtin and then its argument prototype would still apply. */
35369char inet_aton ();
35370int
35371main ()
35372{
35373inet_aton ();
35374 ;
35375 return 0;
35376}
35377_ACEOF
35378rm -f conftest.$ac_objext conftest$ac_exeext
35379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35380 (eval $ac_link) 2>conftest.er1
a848cd7e 35381 ac_status=$?
ac1cb8d3
VS
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
a848cd7e
SC
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); } &&
6ebeb4c7 35387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35389 (eval $ac_try) 2>&5
35390 ac_status=$?
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; } &&
35393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35396 ac_status=$?
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; }; then
35399 eval "$as_ac_Lib=yes"
35400else
35401 echo "$as_me: failed program was:" >&5
35402sed 's/^/| /' conftest.$ac_ext >&5
35403
35404eval "$as_ac_Lib=no"
35405fi
ac1cb8d3
VS
35406rm -f conftest.err conftest.$ac_objext \
35407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35408LIBS=$ac_check_lib_save_LIBS
35409fi
35410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35411echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35412if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35413 cat >>confdefs.h <<\_ACEOF
35414#define HAVE_INET_ATON 1
35415_ACEOF
35416
35417fi
35418
35419
35420fi
35421done
35422
35423
35424if test "x$INET_LINK" != "x"; then
35425 cat >>confdefs.h <<\_ACEOF
35426#define HAVE_INET_ADDR 1
35427_ACEOF
35428
35429 INET_LINK=" -l$INET_LINK"
35430fi
35431
35432fi
35433
35434
35435
35436EXTRALIBS_ESD=
35437echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35438echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35439if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35441else
35442 ac_check_lib_save_LIBS=$LIBS
35443LIBS="-lesd $LIBS"
35444cat >conftest.$ac_ext <<_ACEOF
35445/* confdefs.h. */
35446_ACEOF
35447cat confdefs.h >>conftest.$ac_ext
35448cat >>conftest.$ac_ext <<_ACEOF
35449/* end confdefs.h. */
35450
35451/* Override any gcc2 internal prototype to avoid an error. */
35452#ifdef __cplusplus
35453extern "C"
35454#endif
35455/* We use char because int might match the return type of a gcc2
35456 builtin and then its argument prototype would still apply. */
35457char esd_close ();
35458int
35459main ()
35460{
35461esd_close ();
35462 ;
35463 return 0;
35464}
35465_ACEOF
35466rm -f conftest.$ac_objext conftest$ac_exeext
35467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35468 (eval $ac_link) 2>conftest.er1
a848cd7e 35469 ac_status=$?
ac1cb8d3
VS
35470 grep -v '^ *+' conftest.er1 >conftest.err
35471 rm -f conftest.er1
35472 cat conftest.err >&5
a848cd7e
SC
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } &&
6ebeb4c7 35475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35478 ac_status=$?
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; } &&
35481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35484 ac_status=$?
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487 ac_cv_lib_esd_esd_close=yes
35488else
35489 echo "$as_me: failed program was:" >&5
35490sed 's/^/| /' conftest.$ac_ext >&5
35491
35492ac_cv_lib_esd_esd_close=no
35493fi
ac1cb8d3
VS
35494rm -f conftest.err conftest.$ac_objext \
35495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35496LIBS=$ac_check_lib_save_LIBS
35497fi
35498echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35499echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35500if test $ac_cv_lib_esd_esd_close = yes; then
35501
35502
35503for ac_header in esd.h
35504do
35505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506if eval "test \"\${$as_ac_Header+set}\" = set"; then
35507 echo "$as_me:$LINENO: checking for $ac_header" >&5
35508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35509if eval "test \"\${$as_ac_Header+set}\" = set"; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35511fi
35512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35514else
35515 # Is the header compilable?
35516echo "$as_me:$LINENO: checking $ac_header usability" >&5
35517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35518cat >conftest.$ac_ext <<_ACEOF
35519/* confdefs.h. */
35520_ACEOF
35521cat confdefs.h >>conftest.$ac_ext
35522cat >>conftest.$ac_ext <<_ACEOF
35523/* end confdefs.h. */
35524$ac_includes_default
35525#include <$ac_header>
35526_ACEOF
35527rm -f conftest.$ac_objext
35528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35529 (eval $ac_compile) 2>conftest.er1
a848cd7e 35530 ac_status=$?
ac1cb8d3
VS
35531 grep -v '^ *+' conftest.er1 >conftest.err
35532 rm -f conftest.er1
35533 cat conftest.err >&5
a848cd7e
SC
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); } &&
6ebeb4c7 35536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35539 ac_status=$?
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; } &&
35542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 (eval $ac_try) 2>&5
35545 ac_status=$?
35546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 (exit $ac_status); }; }; then
35548 ac_header_compiler=yes
35549else
35550 echo "$as_me: failed program was:" >&5
35551sed 's/^/| /' conftest.$ac_ext >&5
35552
35553ac_header_compiler=no
35554fi
ac1cb8d3 35555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35557echo "${ECHO_T}$ac_header_compiler" >&6
35558
35559# Is the header present?
35560echo "$as_me:$LINENO: checking $ac_header presence" >&5
35561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35562cat >conftest.$ac_ext <<_ACEOF
35563/* confdefs.h. */
35564_ACEOF
35565cat confdefs.h >>conftest.$ac_ext
35566cat >>conftest.$ac_ext <<_ACEOF
35567/* end confdefs.h. */
35568#include <$ac_header>
35569_ACEOF
35570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35572 ac_status=$?
35573 grep -v '^ *+' conftest.er1 >conftest.err
35574 rm -f conftest.er1
35575 cat conftest.err >&5
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); } >/dev/null; then
35578 if test -s conftest.err; then
35579 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35581 else
35582 ac_cpp_err=
35583 fi
35584else
35585 ac_cpp_err=yes
35586fi
35587if test -z "$ac_cpp_err"; then
35588 ac_header_preproc=yes
35589else
35590 echo "$as_me: failed program was:" >&5
35591sed 's/^/| /' conftest.$ac_ext >&5
35592
35593 ac_header_preproc=no
35594fi
35595rm -f conftest.err conftest.$ac_ext
35596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35597echo "${ECHO_T}$ac_header_preproc" >&6
35598
35599# So? What about this header?
ac1cb8d3
VS
35600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35601 yes:no: )
a848cd7e
SC
35602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35606 ac_header_preproc=yes
a848cd7e 35607 ;;
ac1cb8d3 35608 no:yes:* )
a848cd7e
SC
35609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35621 (
35622 cat <<\_ASBOX
ac1cb8d3
VS
35623## ----------------------------------------- ##
35624## Report this to wx-dev@lists.wxwidgets.org ##
35625## ----------------------------------------- ##
a848cd7e
SC
35626_ASBOX
35627 ) |
35628 sed "s/^/$as_me: WARNING: /" >&2
35629 ;;
35630esac
35631echo "$as_me:$LINENO: checking for $ac_header" >&5
35632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35633if eval "test \"\${$as_ac_Header+set}\" = set"; then
35634 echo $ECHO_N "(cached) $ECHO_C" >&6
35635else
ac1cb8d3 35636 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35637fi
35638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35640
35641fi
35642if test `eval echo '${'$as_ac_Header'}'` = yes; then
35643 cat >>confdefs.h <<_ACEOF
35644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35645_ACEOF
35646
35647 EXTRALIBS_ESD="-lesd"
35648
35649fi
35650
35651done
35652
35653
35654fi
35655
35656
35657
35658echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35659echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35660cat >conftest.$ac_ext <<_ACEOF
35661/* confdefs.h. */
35662_ACEOF
35663cat confdefs.h >>conftest.$ac_ext
35664cat >>conftest.$ac_ext <<_ACEOF
35665/* end confdefs.h. */
35666#ifdef __linux__
35667 #include <linux/cdrom.h>
35668 #else
35669 /* For Solaris */
35670 #include <sys/cdio.h>
35671 #endif
35672
35673int
35674main ()
35675{
35676struct cdrom_tocentry entry, old_entry;
35677 ;
35678 return 0;
35679}
35680_ACEOF
35681rm -f conftest.$ac_objext
35682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35683 (eval $ac_compile) 2>conftest.er1
a848cd7e 35684 ac_status=$?
ac1cb8d3
VS
35685 grep -v '^ *+' conftest.er1 >conftest.err
35686 rm -f conftest.er1
35687 cat conftest.err >&5
a848cd7e
SC
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); } &&
6ebeb4c7 35690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35692 (eval $ac_try) 2>&5
35693 ac_status=$?
35694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695 (exit $ac_status); }; } &&
35696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698 (eval $ac_try) 2>&5
35699 ac_status=$?
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); }; }; then
35702 echo "$as_me:$LINENO: result: yes" >&5
35703echo "${ECHO_T}yes" >&6
35704 cat >>confdefs.h <<\_ACEOF
35705#define HAVE_KNOWN_CDROM_INTERFACE 1
35706_ACEOF
35707
35708else
35709 echo "$as_me: failed program was:" >&5
35710sed 's/^/| /' conftest.$ac_ext >&5
35711
35712echo "$as_me:$LINENO: result: no" >&5
35713echo "${ECHO_T}no" >&6
35714fi
ac1cb8d3 35715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35716
35717
35718cat >confcache <<\_ACEOF
35719# This file is a shell script that caches the results of configure
35720# tests run on this system so they can be shared between configure
35721# scripts and configure runs, see configure's option --config-cache.
35722# It is not useful on other systems. If it contains results you don't
35723# want to keep, you may remove or edit it.
35724#
35725# config.status only pays attention to the cache file if you give it
35726# the --recheck option to rerun configure.
35727#
35728# `ac_cv_env_foo' variables (set or unset) will be overridden when
35729# loading this file, other *unset* `ac_cv_foo' will be assigned the
35730# following values.
35731
35732_ACEOF
35733
35734# The following way of writing the cache mishandles newlines in values,
35735# but we know of no workaround that is simple, portable, and efficient.
35736# So, don't put newlines in cache variables' values.
35737# Ultrix sh set writes to stderr and can't be redirected directly,
35738# and sets the high bit in the cache file unless we assign to the vars.
35739{
35740 (set) 2>&1 |
35741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35742 *ac_space=\ *)
35743 # `set' does not quote correctly, so add quotes (double-quote
35744 # substitution turns \\\\ into \\, and sed turns \\ into \).
35745 sed -n \
ac1cb8d3
VS
35746 "s/'/'\\\\''/g;
35747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35748 ;;
35749 *)
35750 # `set' quotes correctly as required by POSIX, so do not add quotes.
35751 sed -n \
ac1cb8d3 35752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35753 ;;
35754 esac;
35755} |
35756 sed '
35757 t clear
35758 : clear
35759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35760 t end
35761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35762 : end' >>confcache
35763if diff $cache_file confcache >/dev/null 2>&1; then :; else
35764 if test -w $cache_file; then
35765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35766 cat confcache >$cache_file
35767 else
35768 echo "not updating unwritable cache $cache_file"
35769 fi
35770fi
35771rm -f confcache
35772
35773
35774CPP_MT_FLAG=
35775if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35776
35777
35778 THREADS_LINK=
35779 THREADS_CFLAGS=
35780
35781 if test "$wxUSE_THREADS" = "yes" ; then
35782 if test "$USE_BEOS" = 1; then
35783 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35784echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35785 wxUSE_THREADS="no"
35786 fi
35787 fi
35788
35789 if test "$wxUSE_THREADS" = "yes" ; then
35790
35791
35792 THREAD_OPTS="-pthread"
35793 case "${host}" in
35794 *-*-solaris2* | *-*-sunos4* )
35795 if test "x$GCC" = "xyes"; then
35796 THREAD_OPTS="-pthreads $THREAD_OPTS"
35797 else
35798 THREAD_OPTS="-mt $THREAD_OPTS"
35799 fi
35800 ;;
35801 *-*-freebsd*)
35802 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35803 ;;
35804 *-*-darwin* | *-*-cygwin* )
35805 THREAD_OPTS=""
35806 ;;
35807 *-*-aix*)
35808 THREAD_OPTS="pthreads"
35809 ;;
35810 *-hp-hpux* )
00421666
MW
35811 if test "x$GCC" = "xyes"; then
35812 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35813 THREAD_OPTS=""
35814 else
efdf6afe 35815 THREAD_OPTS=""
a848cd7e
SC
35816 fi
35817 ;;
35818
35819 *-*-irix* )
35820 if test "x$GCC" = "xyes"; then
35821 THREAD_OPTS=""
35822 fi
35823 ;;
35824
35825 *-*-*UnixWare*)
35826 if test "x$GCC" != "xyes"; then
35827 THREAD_OPTS="-Ethread"
35828 fi
35829 ;;
35830 esac
35831
35832 THREAD_OPTS="$THREAD_OPTS pthread none"
35833
35834 THREADS_OK=no
35835 for flag in $THREAD_OPTS; do
35836 case $flag in
35837 none)
35838 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35839echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35840 ;;
35841
35842 -*)
35843 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35844echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35845 THREADS_CFLAGS="$flag"
35846 ;;
35847
35848 *)
35849 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35850echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35851 THREADS_LINK="-l$flag"
35852 ;;
35853 esac
35854
35855 save_LIBS="$LIBS"
35856 save_CFLAGS="$CFLAGS"
35857 LIBS="$THREADS_LINK $LIBS"
35858 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35859
35860 cat >conftest.$ac_ext <<_ACEOF
35861/* confdefs.h. */
35862_ACEOF
35863cat confdefs.h >>conftest.$ac_ext
35864cat >>conftest.$ac_ext <<_ACEOF
35865/* end confdefs.h. */
35866#include <pthread.h>
35867int
35868main ()
35869{
35870pthread_create(0,0,0,0);
35871 ;
35872 return 0;
35873}
35874_ACEOF
35875rm -f conftest.$ac_objext conftest$ac_exeext
35876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35877 (eval $ac_link) 2>conftest.er1
a848cd7e 35878 ac_status=$?
ac1cb8d3
VS
35879 grep -v '^ *+' conftest.er1 >conftest.err
35880 rm -f conftest.er1
35881 cat conftest.err >&5
a848cd7e
SC
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); } &&
6ebeb4c7 35884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35887 ac_status=$?
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; } &&
35890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35893 ac_status=$?
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; }; then
35896 THREADS_OK=yes
35897else
35898 echo "$as_me: failed program was:" >&5
35899sed 's/^/| /' conftest.$ac_ext >&5
35900
35901fi
ac1cb8d3
VS
35902rm -f conftest.err conftest.$ac_objext \
35903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35904
35905 LIBS="$save_LIBS"
35906 CFLAGS="$save_CFLAGS"
35907
35908 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35909echo "${ECHO_T}$THREADS_OK" >&6
35910 if test "x$THREADS_OK" = "xyes"; then
35911 break;
35912 fi
35913
35914 THREADS_LINK=""
35915 THREADS_CFLAGS=""
35916 done
35917
35918 if test "x$THREADS_OK" != "xyes"; then
35919 wxUSE_THREADS=no
35920 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35921echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35922 else
35923 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35924 LIBS="$THREADS_LINK $LIBS"
35925
35926 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35927echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35928 flag=no
35929 case "${host}" in
35930 *-aix*)
35931 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35932 flag="-D_THREAD_SAFE"
35933 ;;
35934 *-freebsd*)
35935 flag="-D_THREAD_SAFE"
35936 ;;
35937 *-hp-hpux* )
35938 flag="-D_REENTRANT"
35939 if test "x$GCC" != "xyes"; then
35940 flag="$flag -D_RWSTD_MULTI_THREAD"
35941 fi
35942 ;;
35943 *solaris* | alpha*-osf*)
35944 flag="-D_REENTRANT"
35945 ;;
35946 esac
35947 echo "$as_me:$LINENO: result: ${flag}" >&5
35948echo "${ECHO_T}${flag}" >&6
35949 if test "x$flag" != xno; then
35950 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35951 fi
35952
35953 if test "x$THREADS_CFLAGS" != "x"; then
35954 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35955 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35956 fi
35957 fi
35958 fi
35959
35960 if test "$wxUSE_THREADS" = "yes" ; then
35961
35962for ac_func in thr_setconcurrency
35963do
35964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35965echo "$as_me:$LINENO: checking for $ac_func" >&5
35966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35967if eval "test \"\${$as_ac_var+set}\" = set"; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35969else
35970 cat >conftest.$ac_ext <<_ACEOF
35971/* confdefs.h. */
35972_ACEOF
35973cat confdefs.h >>conftest.$ac_ext
35974cat >>conftest.$ac_ext <<_ACEOF
35975/* end confdefs.h. */
ac1cb8d3
VS
35976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35978#define $ac_func innocuous_$ac_func
35979
a848cd7e
SC
35980/* System header to define __stub macros and hopefully few prototypes,
35981 which can conflict with char $ac_func (); below.
35982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35983 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35984
a848cd7e
SC
35985#ifdef __STDC__
35986# include <limits.h>
35987#else
35988# include <assert.h>
35989#endif
ac1cb8d3
VS
35990
35991#undef $ac_func
35992
a848cd7e
SC
35993/* Override any gcc2 internal prototype to avoid an error. */
35994#ifdef __cplusplus
35995extern "C"
35996{
35997#endif
35998/* We use char because int might match the return type of a gcc2
35999 builtin and then its argument prototype would still apply. */
36000char $ac_func ();
36001/* The GNU C library defines this for functions which it implements
36002 to always fail with ENOSYS. Some functions are actually named
36003 something starting with __ and the normal name is an alias. */
36004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36005choke me
36006#else
36007char (*f) () = $ac_func;
36008#endif
36009#ifdef __cplusplus
36010}
36011#endif
36012
36013int
36014main ()
36015{
36016return f != $ac_func;
36017 ;
36018 return 0;
36019}
36020_ACEOF
36021rm -f conftest.$ac_objext conftest$ac_exeext
36022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36023 (eval $ac_link) 2>conftest.er1
a848cd7e 36024 ac_status=$?
ac1cb8d3
VS
36025 grep -v '^ *+' conftest.er1 >conftest.err
36026 rm -f conftest.er1
36027 cat conftest.err >&5
a848cd7e
SC
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); } &&
6ebeb4c7 36030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36033 ac_status=$?
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; } &&
36036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038 (eval $ac_try) 2>&5
36039 ac_status=$?
36040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041 (exit $ac_status); }; }; then
36042 eval "$as_ac_var=yes"
36043else
36044 echo "$as_me: failed program was:" >&5
36045sed 's/^/| /' conftest.$ac_ext >&5
36046
36047eval "$as_ac_var=no"
36048fi
ac1cb8d3
VS
36049rm -f conftest.err conftest.$ac_objext \
36050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36051fi
36052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36054if test `eval echo '${'$as_ac_var'}'` = yes; then
36055 cat >>confdefs.h <<_ACEOF
36056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36057_ACEOF
36058
36059fi
36060done
36061
36062
6ebeb4c7
VZ
36063 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36064echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36065if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36066 echo $ECHO_N "(cached) $ECHO_C" >&6
36067else
36068
36069 cat >conftest.$ac_ext <<_ACEOF
36070/* confdefs.h. */
36071_ACEOF
36072cat confdefs.h >>conftest.$ac_ext
36073cat >>conftest.$ac_ext <<_ACEOF
36074/* end confdefs.h. */
36075#include <pthread.h>
36076 void ThreadCleanupFunc(void *p);
36077
36078int
36079main ()
36080{
36081
36082 void *p;
36083 pthread_cleanup_push(ThreadCleanupFunc, p);
36084 pthread_cleanup_pop(0);
36085
36086 ;
36087 return 0;
36088}
36089_ACEOF
36090rm -f conftest.$ac_objext
36091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36092 (eval $ac_compile) 2>conftest.er1
36093 ac_status=$?
36094 grep -v '^ *+' conftest.er1 >conftest.err
36095 rm -f conftest.er1
36096 cat conftest.err >&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); } &&
36099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; } &&
36105 { ac_try='test -s conftest.$ac_objext'
36106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36107 (eval $ac_try) 2>&5
36108 ac_status=$?
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); }; }; then
36111
36112 wx_cv_func_pthread_cleanup=yes
36113
36114else
36115 echo "$as_me: failed program was:" >&5
36116sed 's/^/| /' conftest.$ac_ext >&5
36117
36118
36119 wx_cv_func_pthread_cleanup=no
36120
36121
36122fi
36123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36124
36125fi
36126echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36127echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36128 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36129 cat >>confdefs.h <<\_ACEOF
36130#define wxHAVE_PTHREAD_CLEANUP 1
36131_ACEOF
36132
36133 fi
36134
a848cd7e
SC
36135
36136for ac_header in sched.h
36137do
36138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36139if eval "test \"\${$as_ac_Header+set}\" = set"; then
36140 echo "$as_me:$LINENO: checking for $ac_header" >&5
36141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36142if eval "test \"\${$as_ac_Header+set}\" = set"; then
36143 echo $ECHO_N "(cached) $ECHO_C" >&6
36144fi
36145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36147else
36148 # Is the header compilable?
36149echo "$as_me:$LINENO: checking $ac_header usability" >&5
36150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36151cat >conftest.$ac_ext <<_ACEOF
36152/* confdefs.h. */
36153_ACEOF
36154cat confdefs.h >>conftest.$ac_ext
36155cat >>conftest.$ac_ext <<_ACEOF
36156/* end confdefs.h. */
36157$ac_includes_default
36158#include <$ac_header>
36159_ACEOF
36160rm -f conftest.$ac_objext
36161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36162 (eval $ac_compile) 2>conftest.er1
a848cd7e 36163 ac_status=$?
ac1cb8d3
VS
36164 grep -v '^ *+' conftest.er1 >conftest.err
36165 rm -f conftest.er1
36166 cat conftest.err >&5
a848cd7e
SC
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } &&
6ebeb4c7 36169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36171 (eval $ac_try) 2>&5
36172 ac_status=$?
36173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); }; } &&
36175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36177 (eval $ac_try) 2>&5
36178 ac_status=$?
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); }; }; then
36181 ac_header_compiler=yes
36182else
36183 echo "$as_me: failed program was:" >&5
36184sed 's/^/| /' conftest.$ac_ext >&5
36185
36186ac_header_compiler=no
36187fi
ac1cb8d3 36188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36190echo "${ECHO_T}$ac_header_compiler" >&6
36191
36192# Is the header present?
36193echo "$as_me:$LINENO: checking $ac_header presence" >&5
36194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36195cat >conftest.$ac_ext <<_ACEOF
36196/* confdefs.h. */
36197_ACEOF
36198cat confdefs.h >>conftest.$ac_ext
36199cat >>conftest.$ac_ext <<_ACEOF
36200/* end confdefs.h. */
36201#include <$ac_header>
36202_ACEOF
36203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36205 ac_status=$?
36206 grep -v '^ *+' conftest.er1 >conftest.err
36207 rm -f conftest.er1
36208 cat conftest.err >&5
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); } >/dev/null; then
36211 if test -s conftest.err; then
36212 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36214 else
36215 ac_cpp_err=
36216 fi
36217else
36218 ac_cpp_err=yes
36219fi
36220if test -z "$ac_cpp_err"; then
36221 ac_header_preproc=yes
36222else
36223 echo "$as_me: failed program was:" >&5
36224sed 's/^/| /' conftest.$ac_ext >&5
36225
36226 ac_header_preproc=no
36227fi
36228rm -f conftest.err conftest.$ac_ext
36229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36230echo "${ECHO_T}$ac_header_preproc" >&6
36231
36232# So? What about this header?
ac1cb8d3
VS
36233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36234 yes:no: )
a848cd7e
SC
36235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36239 ac_header_preproc=yes
a848cd7e 36240 ;;
ac1cb8d3 36241 no:yes:* )
a848cd7e
SC
36242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36254 (
36255 cat <<\_ASBOX
ac1cb8d3
VS
36256## ----------------------------------------- ##
36257## Report this to wx-dev@lists.wxwidgets.org ##
36258## ----------------------------------------- ##
a848cd7e
SC
36259_ASBOX
36260 ) |
36261 sed "s/^/$as_me: WARNING: /" >&2
36262 ;;
36263esac
36264echo "$as_me:$LINENO: checking for $ac_header" >&5
36265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36266if eval "test \"\${$as_ac_Header+set}\" = set"; then
36267 echo $ECHO_N "(cached) $ECHO_C" >&6
36268else
ac1cb8d3 36269 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36270fi
36271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36273
36274fi
36275if test `eval echo '${'$as_ac_Header'}'` = yes; then
36276 cat >>confdefs.h <<_ACEOF
36277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36278_ACEOF
36279
36280fi
36281
36282done
36283
36284 if test "$ac_cv_header_sched_h" = "yes"; then
36285 echo "$as_me:$LINENO: checking for sched_yield" >&5
36286echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36287if test "${ac_cv_func_sched_yield+set}" = set; then
36288 echo $ECHO_N "(cached) $ECHO_C" >&6
36289else
36290 cat >conftest.$ac_ext <<_ACEOF
36291/* confdefs.h. */
36292_ACEOF
36293cat confdefs.h >>conftest.$ac_ext
36294cat >>conftest.$ac_ext <<_ACEOF
36295/* end confdefs.h. */
ac1cb8d3
VS
36296/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36298#define sched_yield innocuous_sched_yield
36299
a848cd7e
SC
36300/* System header to define __stub macros and hopefully few prototypes,
36301 which can conflict with char sched_yield (); below.
36302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36304
a848cd7e
SC
36305#ifdef __STDC__
36306# include <limits.h>
36307#else
36308# include <assert.h>
36309#endif
ac1cb8d3
VS
36310
36311#undef sched_yield
36312
a848cd7e
SC
36313/* Override any gcc2 internal prototype to avoid an error. */
36314#ifdef __cplusplus
36315extern "C"
36316{
36317#endif
36318/* We use char because int might match the return type of a gcc2
36319 builtin and then its argument prototype would still apply. */
36320char sched_yield ();
36321/* The GNU C library defines this for functions which it implements
36322 to always fail with ENOSYS. Some functions are actually named
36323 something starting with __ and the normal name is an alias. */
36324#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36325choke me
36326#else
36327char (*f) () = sched_yield;
36328#endif
36329#ifdef __cplusplus
36330}
36331#endif
36332
36333int
36334main ()
36335{
36336return f != sched_yield;
36337 ;
36338 return 0;
36339}
36340_ACEOF
36341rm -f conftest.$ac_objext conftest$ac_exeext
36342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36343 (eval $ac_link) 2>conftest.er1
a848cd7e 36344 ac_status=$?
ac1cb8d3
VS
36345 grep -v '^ *+' conftest.er1 >conftest.err
36346 rm -f conftest.er1
36347 cat conftest.err >&5
a848cd7e
SC
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); } &&
6ebeb4c7 36350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36353 ac_status=$?
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; } &&
36356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 ac_cv_func_sched_yield=yes
36363else
36364 echo "$as_me: failed program was:" >&5
36365sed 's/^/| /' conftest.$ac_ext >&5
36366
36367ac_cv_func_sched_yield=no
36368fi
ac1cb8d3
VS
36369rm -f conftest.err conftest.$ac_objext \
36370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36371fi
36372echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36373echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36374if test $ac_cv_func_sched_yield = yes; then
36375 cat >>confdefs.h <<\_ACEOF
36376#define HAVE_SCHED_YIELD 1
36377_ACEOF
36378
36379else
36380
36381 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36382echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36383if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36384 echo $ECHO_N "(cached) $ECHO_C" >&6
36385else
36386 ac_check_lib_save_LIBS=$LIBS
36387LIBS="-lposix4 $LIBS"
36388cat >conftest.$ac_ext <<_ACEOF
36389/* confdefs.h. */
36390_ACEOF
36391cat confdefs.h >>conftest.$ac_ext
36392cat >>conftest.$ac_ext <<_ACEOF
36393/* end confdefs.h. */
36394
36395/* Override any gcc2 internal prototype to avoid an error. */
36396#ifdef __cplusplus
36397extern "C"
36398#endif
36399/* We use char because int might match the return type of a gcc2
36400 builtin and then its argument prototype would still apply. */
36401char sched_yield ();
36402int
36403main ()
36404{
36405sched_yield ();
36406 ;
36407 return 0;
36408}
36409_ACEOF
36410rm -f conftest.$ac_objext conftest$ac_exeext
36411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36412 (eval $ac_link) 2>conftest.er1
a848cd7e 36413 ac_status=$?
ac1cb8d3
VS
36414 grep -v '^ *+' conftest.er1 >conftest.err
36415 rm -f conftest.er1
36416 cat conftest.err >&5
a848cd7e
SC
36417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); } &&
6ebeb4c7 36419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36421 (eval $ac_try) 2>&5
36422 ac_status=$?
36423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424 (exit $ac_status); }; } &&
36425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36427 (eval $ac_try) 2>&5
36428 ac_status=$?
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); }; }; then
36431 ac_cv_lib_posix4_sched_yield=yes
36432else
36433 echo "$as_me: failed program was:" >&5
36434sed 's/^/| /' conftest.$ac_ext >&5
36435
36436ac_cv_lib_posix4_sched_yield=no
36437fi
ac1cb8d3
VS
36438rm -f conftest.err conftest.$ac_objext \
36439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36440LIBS=$ac_check_lib_save_LIBS
36441fi
36442echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36443echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36444if test $ac_cv_lib_posix4_sched_yield = yes; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define HAVE_SCHED_YIELD 1
36447_ACEOF
36448 POSIX4_LINK=" -lposix4"
36449else
36450 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36451echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36452
36453fi
36454
36455
36456
36457fi
36458
36459 fi
36460
36461 HAVE_PRIOR_FUNCS=0
36462 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36463echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36464if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36465 echo $ECHO_N "(cached) $ECHO_C" >&6
36466else
36467 cat >conftest.$ac_ext <<_ACEOF
36468/* confdefs.h. */
36469_ACEOF
36470cat confdefs.h >>conftest.$ac_ext
36471cat >>conftest.$ac_ext <<_ACEOF
36472/* end confdefs.h. */
ac1cb8d3
VS
36473/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36475#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36476
a848cd7e
SC
36477/* System header to define __stub macros and hopefully few prototypes,
36478 which can conflict with char pthread_attr_getschedpolicy (); below.
36479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36481
a848cd7e
SC
36482#ifdef __STDC__
36483# include <limits.h>
36484#else
36485# include <assert.h>
36486#endif
ac1cb8d3
VS
36487
36488#undef pthread_attr_getschedpolicy
36489
a848cd7e
SC
36490/* Override any gcc2 internal prototype to avoid an error. */
36491#ifdef __cplusplus
36492extern "C"
36493{
36494#endif
36495/* We use char because int might match the return type of a gcc2
36496 builtin and then its argument prototype would still apply. */
36497char pthread_attr_getschedpolicy ();
36498/* The GNU C library defines this for functions which it implements
36499 to always fail with ENOSYS. Some functions are actually named
36500 something starting with __ and the normal name is an alias. */
36501#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36502choke me
36503#else
36504char (*f) () = pthread_attr_getschedpolicy;
36505#endif
36506#ifdef __cplusplus
36507}
36508#endif
36509
36510int
36511main ()
36512{
36513return f != pthread_attr_getschedpolicy;
36514 ;
36515 return 0;
36516}
36517_ACEOF
36518rm -f conftest.$ac_objext conftest$ac_exeext
36519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36520 (eval $ac_link) 2>conftest.er1
a848cd7e 36521 ac_status=$?
ac1cb8d3
VS
36522 grep -v '^ *+' conftest.er1 >conftest.err
36523 rm -f conftest.er1
36524 cat conftest.err >&5
a848cd7e
SC
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); } &&
6ebeb4c7 36527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; } &&
36533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535 (eval $ac_try) 2>&5
36536 ac_status=$?
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); }; }; then
36539 ac_cv_func_pthread_attr_getschedpolicy=yes
36540else
36541 echo "$as_me: failed program was:" >&5
36542sed 's/^/| /' conftest.$ac_ext >&5
36543
36544ac_cv_func_pthread_attr_getschedpolicy=no
36545fi
ac1cb8d3
VS
36546rm -f conftest.err conftest.$ac_objext \
36547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36548fi
36549echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36550echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36551if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36552 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36553echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36554if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36556else
36557 cat >conftest.$ac_ext <<_ACEOF
36558/* confdefs.h. */
36559_ACEOF
36560cat confdefs.h >>conftest.$ac_ext
36561cat >>conftest.$ac_ext <<_ACEOF
36562/* end confdefs.h. */
ac1cb8d3
VS
36563/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36565#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36566
a848cd7e
SC
36567/* System header to define __stub macros and hopefully few prototypes,
36568 which can conflict with char pthread_attr_setschedparam (); below.
36569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36571
a848cd7e
SC
36572#ifdef __STDC__
36573# include <limits.h>
36574#else
36575# include <assert.h>
36576#endif
ac1cb8d3
VS
36577
36578#undef pthread_attr_setschedparam
36579
a848cd7e
SC
36580/* Override any gcc2 internal prototype to avoid an error. */
36581#ifdef __cplusplus
36582extern "C"
36583{
36584#endif
36585/* We use char because int might match the return type of a gcc2
36586 builtin and then its argument prototype would still apply. */
36587char pthread_attr_setschedparam ();
36588/* The GNU C library defines this for functions which it implements
36589 to always fail with ENOSYS. Some functions are actually named
36590 something starting with __ and the normal name is an alias. */
36591#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36592choke me
36593#else
36594char (*f) () = pthread_attr_setschedparam;
36595#endif
36596#ifdef __cplusplus
36597}
36598#endif
36599
36600int
36601main ()
36602{
36603return f != pthread_attr_setschedparam;
36604 ;
36605 return 0;
36606}
36607_ACEOF
36608rm -f conftest.$ac_objext conftest$ac_exeext
36609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36610 (eval $ac_link) 2>conftest.er1
a848cd7e 36611 ac_status=$?
ac1cb8d3
VS
36612 grep -v '^ *+' conftest.er1 >conftest.err
36613 rm -f conftest.er1
36614 cat conftest.err >&5
a848cd7e
SC
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); } &&
6ebeb4c7 36617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; } &&
36623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36626 ac_status=$?
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 ac_cv_func_pthread_attr_setschedparam=yes
36630else
36631 echo "$as_me: failed program was:" >&5
36632sed 's/^/| /' conftest.$ac_ext >&5
36633
36634ac_cv_func_pthread_attr_setschedparam=no
36635fi
ac1cb8d3
VS
36636rm -f conftest.err conftest.$ac_objext \
36637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36638fi
36639echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36640echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36641if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36642 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36643echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36644if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36645 echo $ECHO_N "(cached) $ECHO_C" >&6
36646else
36647 cat >conftest.$ac_ext <<_ACEOF
36648/* confdefs.h. */
36649_ACEOF
36650cat confdefs.h >>conftest.$ac_ext
36651cat >>conftest.$ac_ext <<_ACEOF
36652/* end confdefs.h. */
ac1cb8d3
VS
36653/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36655#define sched_get_priority_max innocuous_sched_get_priority_max
36656
a848cd7e
SC
36657/* System header to define __stub macros and hopefully few prototypes,
36658 which can conflict with char sched_get_priority_max (); below.
36659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36661
a848cd7e
SC
36662#ifdef __STDC__
36663# include <limits.h>
36664#else
36665# include <assert.h>
36666#endif
ac1cb8d3
VS
36667
36668#undef sched_get_priority_max
36669
a848cd7e
SC
36670/* Override any gcc2 internal prototype to avoid an error. */
36671#ifdef __cplusplus
36672extern "C"
36673{
36674#endif
36675/* We use char because int might match the return type of a gcc2
36676 builtin and then its argument prototype would still apply. */
36677char sched_get_priority_max ();
36678/* The GNU C library defines this for functions which it implements
36679 to always fail with ENOSYS. Some functions are actually named
36680 something starting with __ and the normal name is an alias. */
36681#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36682choke me
36683#else
36684char (*f) () = sched_get_priority_max;
36685#endif
36686#ifdef __cplusplus
36687}
36688#endif
36689
36690int
36691main ()
36692{
36693return f != sched_get_priority_max;
36694 ;
36695 return 0;
36696}
36697_ACEOF
36698rm -f conftest.$ac_objext conftest$ac_exeext
36699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36700 (eval $ac_link) 2>conftest.er1
a848cd7e 36701 ac_status=$?
ac1cb8d3
VS
36702 grep -v '^ *+' conftest.er1 >conftest.err
36703 rm -f conftest.er1
36704 cat conftest.err >&5
a848cd7e
SC
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); } &&
6ebeb4c7 36707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709 (eval $ac_try) 2>&5
36710 ac_status=$?
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); }; } &&
36713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36719 ac_cv_func_sched_get_priority_max=yes
36720else
36721 echo "$as_me: failed program was:" >&5
36722sed 's/^/| /' conftest.$ac_ext >&5
36723
36724ac_cv_func_sched_get_priority_max=no
36725fi
ac1cb8d3
VS
36726rm -f conftest.err conftest.$ac_objext \
36727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36728fi
36729echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36730echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36731if test $ac_cv_func_sched_get_priority_max = yes; then
36732 HAVE_PRIOR_FUNCS=1
36733else
36734 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36735echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36736if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36737 echo $ECHO_N "(cached) $ECHO_C" >&6
36738else
36739 ac_check_lib_save_LIBS=$LIBS
36740LIBS="-lposix4 $LIBS"
36741cat >conftest.$ac_ext <<_ACEOF
36742/* confdefs.h. */
36743_ACEOF
36744cat confdefs.h >>conftest.$ac_ext
36745cat >>conftest.$ac_ext <<_ACEOF
36746/* end confdefs.h. */
36747
36748/* Override any gcc2 internal prototype to avoid an error. */
36749#ifdef __cplusplus
36750extern "C"
36751#endif
36752/* We use char because int might match the return type of a gcc2
36753 builtin and then its argument prototype would still apply. */
36754char sched_get_priority_max ();
36755int
36756main ()
36757{
36758sched_get_priority_max ();
36759 ;
36760 return 0;
36761}
36762_ACEOF
36763rm -f conftest.$ac_objext conftest$ac_exeext
36764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36765 (eval $ac_link) 2>conftest.er1
a848cd7e 36766 ac_status=$?
ac1cb8d3
VS
36767 grep -v '^ *+' conftest.er1 >conftest.err
36768 rm -f conftest.er1
36769 cat conftest.err >&5
a848cd7e
SC
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); } &&
6ebeb4c7 36772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774 (eval $ac_try) 2>&5
36775 ac_status=$?
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); }; } &&
36778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780 (eval $ac_try) 2>&5
36781 ac_status=$?
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); }; }; then
36784 ac_cv_lib_posix4_sched_get_priority_max=yes
36785else
36786 echo "$as_me: failed program was:" >&5
36787sed 's/^/| /' conftest.$ac_ext >&5
36788
36789ac_cv_lib_posix4_sched_get_priority_max=no
36790fi
ac1cb8d3
VS
36791rm -f conftest.err conftest.$ac_objext \
36792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36793LIBS=$ac_check_lib_save_LIBS
36794fi
36795echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36796echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36797if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36798
36799 HAVE_PRIOR_FUNCS=1
36800 POSIX4_LINK=" -lposix4"
36801
36802fi
36803
36804
36805fi
36806
36807
36808fi
36809
36810
36811fi
36812
36813
36814 if test "$HAVE_PRIOR_FUNCS" = 1; then
36815 cat >>confdefs.h <<\_ACEOF
36816#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36817_ACEOF
36818
36819 else
36820 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36821echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36822 fi
36823
36824 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36825echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36826if test "${ac_cv_func_pthread_cancel+set}" = set; then
36827 echo $ECHO_N "(cached) $ECHO_C" >&6
36828else
36829 cat >conftest.$ac_ext <<_ACEOF
36830/* confdefs.h. */
36831_ACEOF
36832cat confdefs.h >>conftest.$ac_ext
36833cat >>conftest.$ac_ext <<_ACEOF
36834/* end confdefs.h. */
ac1cb8d3
VS
36835/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36837#define pthread_cancel innocuous_pthread_cancel
36838
a848cd7e
SC
36839/* System header to define __stub macros and hopefully few prototypes,
36840 which can conflict with char pthread_cancel (); below.
36841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36842 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36843
a848cd7e
SC
36844#ifdef __STDC__
36845# include <limits.h>
36846#else
36847# include <assert.h>
36848#endif
ac1cb8d3
VS
36849
36850#undef pthread_cancel
36851
a848cd7e
SC
36852/* Override any gcc2 internal prototype to avoid an error. */
36853#ifdef __cplusplus
36854extern "C"
36855{
36856#endif
36857/* We use char because int might match the return type of a gcc2
36858 builtin and then its argument prototype would still apply. */
36859char pthread_cancel ();
36860/* The GNU C library defines this for functions which it implements
36861 to always fail with ENOSYS. Some functions are actually named
36862 something starting with __ and the normal name is an alias. */
36863#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36864choke me
36865#else
36866char (*f) () = pthread_cancel;
36867#endif
36868#ifdef __cplusplus
36869}
36870#endif
36871
36872int
36873main ()
36874{
36875return f != pthread_cancel;
36876 ;
36877 return 0;
36878}
36879_ACEOF
36880rm -f conftest.$ac_objext conftest$ac_exeext
36881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36882 (eval $ac_link) 2>conftest.er1
a848cd7e 36883 ac_status=$?
ac1cb8d3
VS
36884 grep -v '^ *+' conftest.er1 >conftest.err
36885 rm -f conftest.er1
36886 cat conftest.err >&5
a848cd7e
SC
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
6ebeb4c7 36889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36891 (eval $ac_try) 2>&5
36892 ac_status=$?
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); }; } &&
36895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36897 (eval $ac_try) 2>&5
36898 ac_status=$?
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); }; }; then
36901 ac_cv_func_pthread_cancel=yes
36902else
36903 echo "$as_me: failed program was:" >&5
36904sed 's/^/| /' conftest.$ac_ext >&5
36905
36906ac_cv_func_pthread_cancel=no
36907fi
ac1cb8d3
VS
36908rm -f conftest.err conftest.$ac_objext \
36909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36910fi
36911echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36912echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36913if test $ac_cv_func_pthread_cancel = yes; then
36914 cat >>confdefs.h <<\_ACEOF
36915#define HAVE_PTHREAD_CANCEL 1
36916_ACEOF
36917
36918else
36919 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36920echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36921fi
36922
36923
abc736fd
MW
36924 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36925echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36926if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36928else
36929 cat >conftest.$ac_ext <<_ACEOF
36930/* confdefs.h. */
36931_ACEOF
36932cat confdefs.h >>conftest.$ac_ext
36933cat >>conftest.$ac_ext <<_ACEOF
36934/* end confdefs.h. */
36935/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36937#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36938
36939/* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char pthread_attr_setstacksize (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36943
36944#ifdef __STDC__
36945# include <limits.h>
36946#else
36947# include <assert.h>
36948#endif
36949
36950#undef pthread_attr_setstacksize
36951
36952/* Override any gcc2 internal prototype to avoid an error. */
36953#ifdef __cplusplus
36954extern "C"
36955{
36956#endif
36957/* We use char because int might match the return type of a gcc2
36958 builtin and then its argument prototype would still apply. */
36959char pthread_attr_setstacksize ();
36960/* The GNU C library defines this for functions which it implements
36961 to always fail with ENOSYS. Some functions are actually named
36962 something starting with __ and the normal name is an alias. */
36963#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36964choke me
36965#else
36966char (*f) () = pthread_attr_setstacksize;
36967#endif
36968#ifdef __cplusplus
36969}
36970#endif
36971
36972int
36973main ()
36974{
36975return f != pthread_attr_setstacksize;
36976 ;
36977 return 0;
36978}
36979_ACEOF
36980rm -f conftest.$ac_objext conftest$ac_exeext
36981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36982 (eval $ac_link) 2>conftest.er1
36983 ac_status=$?
36984 grep -v '^ *+' conftest.er1 >conftest.err
36985 rm -f conftest.er1
36986 cat conftest.err >&5
36987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36988 (exit $ac_status); } &&
6ebeb4c7 36989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36991 (eval $ac_try) 2>&5
36992 ac_status=$?
36993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994 (exit $ac_status); }; } &&
36995 { ac_try='test -s conftest$ac_exeext'
36996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997 (eval $ac_try) 2>&5
36998 ac_status=$?
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); }; }; then
37001 ac_cv_func_pthread_attr_setstacksize=yes
37002else
37003 echo "$as_me: failed program was:" >&5
37004sed 's/^/| /' conftest.$ac_ext >&5
37005
37006ac_cv_func_pthread_attr_setstacksize=no
37007fi
37008rm -f conftest.err conftest.$ac_objext \
37009 conftest$ac_exeext conftest.$ac_ext
37010fi
37011echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37012echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37013if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37014 cat >>confdefs.h <<\_ACEOF
37015#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37016_ACEOF
37017
37018fi
37019
a848cd7e
SC
37020
37021
37022 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37023echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37024if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37025 echo $ECHO_N "(cached) $ECHO_C" >&6
37026else
37027
37028 cat >conftest.$ac_ext <<_ACEOF
37029/* confdefs.h. */
37030_ACEOF
37031cat confdefs.h >>conftest.$ac_ext
37032cat >>conftest.$ac_ext <<_ACEOF
37033/* end confdefs.h. */
37034#include <pthread.h>
37035int
37036main ()
37037{
37038
37039 pthread_mutexattr_t attr;
37040 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37041
37042 ;
37043 return 0;
37044}
37045_ACEOF
37046rm -f conftest.$ac_objext
37047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37048 (eval $ac_compile) 2>conftest.er1
a848cd7e 37049 ac_status=$?
ac1cb8d3
VS
37050 grep -v '^ *+' conftest.er1 >conftest.err
37051 rm -f conftest.er1
37052 cat conftest.err >&5
a848cd7e
SC
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
6ebeb4c7 37055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37058 ac_status=$?
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
37067
37068 wx_cv_type_pthread_mutexattr_t=yes
37069
37070else
37071 echo "$as_me: failed program was:" >&5
37072sed 's/^/| /' conftest.$ac_ext >&5
37073
37074
37075 wx_cv_type_pthread_mutexattr_t=no
37076
37077
37078fi
ac1cb8d3 37079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37080
37081fi
37082echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37083echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37084
37085 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37086 cat >>confdefs.h <<\_ACEOF
37087#define HAVE_PTHREAD_MUTEXATTR_T 1
37088_ACEOF
37089
37090 else
37091 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37092echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37093if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37094 echo $ECHO_N "(cached) $ECHO_C" >&6
37095else
37096
37097 cat >conftest.$ac_ext <<_ACEOF
37098/* confdefs.h. */
37099_ACEOF
37100cat confdefs.h >>conftest.$ac_ext
37101cat >>conftest.$ac_ext <<_ACEOF
37102/* end confdefs.h. */
37103#include <pthread.h>
37104int
37105main ()
37106{
37107
37108 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37109
37110 ;
37111 return 0;
37112}
37113_ACEOF
37114rm -f conftest.$ac_objext
37115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37116 (eval $ac_compile) 2>conftest.er1
a848cd7e 37117 ac_status=$?
ac1cb8d3
VS
37118 grep -v '^ *+' conftest.er1 >conftest.err
37119 rm -f conftest.er1
37120 cat conftest.err >&5
a848cd7e
SC
37121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122 (exit $ac_status); } &&
6ebeb4c7 37123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } &&
37129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131 (eval $ac_try) 2>&5
37132 ac_status=$?
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); }; }; then
37135
37136 wx_cv_type_pthread_rec_mutex_init=yes
37137
37138else
37139 echo "$as_me: failed program was:" >&5
37140sed 's/^/| /' conftest.$ac_ext >&5
37141
37142
37143 wx_cv_type_pthread_rec_mutex_init=no
37144
37145
37146fi
ac1cb8d3 37147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37148
37149fi
37150echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37151echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37152 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37153 cat >>confdefs.h <<\_ACEOF
37154#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37155_ACEOF
37156
37157 else
37158 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37159echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37160 fi
37161 fi
37162 fi
37163
37164else
37165 if test "$wxUSE_THREADS" = "yes" ; then
37166 case "${host}" in
37167 *-*-mingw32* )
37168 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37169echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37170if test "${wx_cv_cflags_mthread+set}" = set; then
37171 echo $ECHO_N "(cached) $ECHO_C" >&6
37172else
37173
37174 CFLAGS_OLD="$CFLAGS"
37175 CFLAGS="$CFLAGS -mthreads"
37176 cat >conftest.$ac_ext <<_ACEOF
37177/* confdefs.h. */
37178_ACEOF
37179cat confdefs.h >>conftest.$ac_ext
37180cat >>conftest.$ac_ext <<_ACEOF
37181/* end confdefs.h. */
37182
37183int
37184main ()
37185{
37186
37187 ;
37188 return 0;
37189}
37190_ACEOF
37191rm -f conftest.$ac_objext
37192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37193 (eval $ac_compile) 2>conftest.er1
a848cd7e 37194 ac_status=$?
ac1cb8d3
VS
37195 grep -v '^ *+' conftest.er1 >conftest.err
37196 rm -f conftest.er1
37197 cat conftest.err >&5
a848cd7e
SC
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); } &&
6ebeb4c7 37200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37203 ac_status=$?
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; } &&
37206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
37212 wx_cv_cflags_mthread=yes
37213else
37214 echo "$as_me: failed program was:" >&5
37215sed 's/^/| /' conftest.$ac_ext >&5
37216
37217wx_cv_cflags_mthread=no
37218
37219fi
ac1cb8d3 37220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37221
37222
37223fi
37224echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37225echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37226
37227 if test "$wx_cv_cflags_mthread" = "yes"; then
37228 CXXFLAGS="$CXXFLAGS -mthreads"
37229 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37230 LDFLAGS="$LDFLAGS -mthreads"
37231 else
37232 CFLAGS="$CFLAGS_OLD"
37233 fi
37234 ;;
37235 *-pc-os2*emx )
37236 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37237 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37238 LDFLAGS="$LDFLAGS -Zmt"
37239 ;;
37240 esac
37241 fi
37242fi
37243
37244if test "$wxUSE_THREADS" = "yes"; then
37245 cat >>confdefs.h <<\_ACEOF
37246#define wxUSE_THREADS 1
37247_ACEOF
37248
37249
37250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37251else
37252 if test "$ac_cv_func_strtok_r" = "yes"; then
37253 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37254echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37255 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37256 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37257 echo "$as_me:$LINENO: result: yes" >&5
37258echo "${ECHO_T}yes" >&6
37259 else
37260 echo "$as_me:$LINENO: result: no" >&5
37261echo "${ECHO_T}no" >&6
37262 fi
37263 fi
37264fi
37265
37266if test "$WXGTK20" = 1 ; then
37267 cat >>confdefs.h <<_ACEOF
37268#define __WXGTK20__ $WXGTK20
37269_ACEOF
37270
37271 WXGTK12=1
37272fi
37273
37274if test "$WXGTK12" = 1 ; then
37275 cat >>confdefs.h <<_ACEOF
37276#define __WXGTK12__ $WXGTK12
37277_ACEOF
37278
37279fi
37280
37281if test "$WXGTK127" = 1 ; then
37282 cat >>confdefs.h <<_ACEOF
37283#define __WXGTK127__ $WXGTK127
37284_ACEOF
37285
37286fi
37287
37288if test "$WXGPE" = 1 ; then
37289 cat >>confdefs.h <<_ACEOF
37290#define __WXGPE__ $WXGPE
37291_ACEOF
37292
37293fi
37294
37295WXDEBUG=
37296
37297if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37298 WXDEBUG="-g"
37299 wxUSE_OPTIMISE=no
37300fi
37301
37302if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37303 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37304 if test "$GCC" = yes; then
37305 WXDEBUG="-ggdb"
37306 fi
a848cd7e
SC
37307fi
37308
37309if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37310 cat >>confdefs.h <<\_ACEOF
37311#define WXDEBUG 1
37312_ACEOF
37313
37314 WXDEBUG_DEFINE="-D__WXDEBUG__"
37315else
37316 if test "$wxUSE_GTK" = 1 ; then
37317 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37318 fi
37319fi
37320
37321if test "$wxUSE_MEM_TRACING" = "yes" ; then
37322 cat >>confdefs.h <<\_ACEOF
37323#define wxUSE_MEMORY_TRACING 1
37324_ACEOF
37325
37326 cat >>confdefs.h <<\_ACEOF
37327#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37328_ACEOF
37329
37330 cat >>confdefs.h <<\_ACEOF
37331#define wxUSE_DEBUG_NEW_ALWAYS 1
37332_ACEOF
37333
37334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37335fi
37336
37337if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37338 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37339fi
37340
37341PROFILE=
37342if test "$wxUSE_PROFILE" = "yes" ; then
37343 PROFILE=" -pg"
37344fi
37345
37346CODE_GEN_FLAGS=
37347CODE_GEN_FLAGS_CXX=
37348if test "$GCC" = "yes" ; then
37349 if test "$wxUSE_NO_RTTI" = "yes" ; then
37350 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37351 fi
37352 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37353 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37354 fi
37355 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37356 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37357 fi
37358
37359 case "${host}" in
37360 powerpc*-*-aix* )
37361 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37362 ;;
37363 *-hppa* )
37364 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37365 ;;
37366 esac
37367fi
37368
37369OPTIMISE=
37370if test "$wxUSE_OPTIMISE" = "no" ; then
37371 if test "$GCC" = yes ; then
37372 OPTIMISE="-O0"
37373 fi
37374else
37375 if test "$GCC" = yes ; then
37376 OPTIMISE="-O2"
37377
37378 case "${host}" in
37379 i586-*-*|i686-*-* )
37380 OPTIMISE="${OPTIMISE} "
37381 ;;
37382 esac
37383 else
37384 OPTIMISE="-O"
37385 fi
37386fi
37387
37388
37389if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37390 cat >>confdefs.h <<\_ACEOF
37391#define WXWIN_COMPATIBILITY_2_2 1
37392_ACEOF
37393
37394
37395 WXWIN_COMPATIBILITY_2_4="yes"
37396fi
37397
37398if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37399 cat >>confdefs.h <<\_ACEOF
37400#define WXWIN_COMPATIBILITY_2_4 1
37401_ACEOF
37402
37403fi
37404
37405
37406if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37407 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37408#define wxUSE_GUI 1
37409_ACEOF
37410
37411
370fd4c2 37412 fi
a848cd7e
SC
37413
37414
37415if test "$wxUSE_UNIX" = "yes"; then
37416 cat >>confdefs.h <<\_ACEOF
37417#define wxUSE_UNIX 1
37418_ACEOF
37419
37420fi
37421
37422
37423if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37424
37425 HAVE_DL_FUNCS=0
37426 HAVE_SHL_FUNCS=0
37427 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37428 if test "$USE_DARWIN" = 1; then
37429 HAVE_DL_FUNCS=1
47a7e797
MW
37430 elif test "$USE_DOS" = 1; then
37431 HAVE_DL_FUNCS=0
a848cd7e
SC
37432 else
37433
37434for ac_func in dlopen
37435do
37436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37437echo "$as_me:$LINENO: checking for $ac_func" >&5
37438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37439if eval "test \"\${$as_ac_var+set}\" = set"; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37441else
37442 cat >conftest.$ac_ext <<_ACEOF
37443/* confdefs.h. */
37444_ACEOF
37445cat confdefs.h >>conftest.$ac_ext
37446cat >>conftest.$ac_ext <<_ACEOF
37447/* end confdefs.h. */
ac1cb8d3
VS
37448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37450#define $ac_func innocuous_$ac_func
37451
a848cd7e
SC
37452/* System header to define __stub macros and hopefully few prototypes,
37453 which can conflict with char $ac_func (); below.
37454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37456
a848cd7e
SC
37457#ifdef __STDC__
37458# include <limits.h>
37459#else
37460# include <assert.h>
37461#endif
ac1cb8d3
VS
37462
37463#undef $ac_func
37464
a848cd7e
SC
37465/* Override any gcc2 internal prototype to avoid an error. */
37466#ifdef __cplusplus
37467extern "C"
37468{
37469#endif
37470/* We use char because int might match the return type of a gcc2
37471 builtin and then its argument prototype would still apply. */
37472char $ac_func ();
37473/* The GNU C library defines this for functions which it implements
37474 to always fail with ENOSYS. Some functions are actually named
37475 something starting with __ and the normal name is an alias. */
37476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37477choke me
37478#else
37479char (*f) () = $ac_func;
37480#endif
37481#ifdef __cplusplus
37482}
37483#endif
37484
37485int
37486main ()
37487{
37488return f != $ac_func;
37489 ;
37490 return 0;
37491}
37492_ACEOF
37493rm -f conftest.$ac_objext conftest$ac_exeext
37494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37495 (eval $ac_link) 2>conftest.er1
a848cd7e 37496 ac_status=$?
ac1cb8d3
VS
37497 grep -v '^ *+' conftest.er1 >conftest.err
37498 rm -f conftest.er1
37499 cat conftest.err >&5
a848cd7e
SC
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); } &&
6ebeb4c7 37502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37505 ac_status=$?
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; } &&
37508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510 (eval $ac_try) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); }; }; then
37514 eval "$as_ac_var=yes"
37515else
37516 echo "$as_me: failed program was:" >&5
37517sed 's/^/| /' conftest.$ac_ext >&5
37518
37519eval "$as_ac_var=no"
37520fi
ac1cb8d3
VS
37521rm -f conftest.err conftest.$ac_objext \
37522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37523fi
37524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37526if test `eval echo '${'$as_ac_var'}'` = yes; then
37527 cat >>confdefs.h <<_ACEOF
37528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37529_ACEOF
37530
37531 cat >>confdefs.h <<\_ACEOF
37532#define HAVE_DLOPEN 1
37533_ACEOF
37534
37535 HAVE_DL_FUNCS=1
37536
37537else
37538
37539 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37541if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37543else
37544 ac_check_lib_save_LIBS=$LIBS
37545LIBS="-ldl $LIBS"
37546cat >conftest.$ac_ext <<_ACEOF
37547/* confdefs.h. */
37548_ACEOF
37549cat confdefs.h >>conftest.$ac_ext
37550cat >>conftest.$ac_ext <<_ACEOF
37551/* end confdefs.h. */
37552
37553/* Override any gcc2 internal prototype to avoid an error. */
37554#ifdef __cplusplus
37555extern "C"
37556#endif
37557/* We use char because int might match the return type of a gcc2
37558 builtin and then its argument prototype would still apply. */
37559char dlopen ();
37560int
37561main ()
37562{
37563dlopen ();
37564 ;
37565 return 0;
37566}
37567_ACEOF
37568rm -f conftest.$ac_objext conftest$ac_exeext
37569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37570 (eval $ac_link) 2>conftest.er1
a848cd7e 37571 ac_status=$?
ac1cb8d3
VS
37572 grep -v '^ *+' conftest.er1 >conftest.err
37573 rm -f conftest.er1
37574 cat conftest.err >&5
a848cd7e
SC
37575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576 (exit $ac_status); } &&
6ebeb4c7 37577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37579 (eval $ac_try) 2>&5
37580 ac_status=$?
37581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582 (exit $ac_status); }; } &&
37583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37585 (eval $ac_try) 2>&5
37586 ac_status=$?
37587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37588 (exit $ac_status); }; }; then
37589 ac_cv_lib_dl_dlopen=yes
37590else
37591 echo "$as_me: failed program was:" >&5
37592sed 's/^/| /' conftest.$ac_ext >&5
37593
37594ac_cv_lib_dl_dlopen=no
37595fi
ac1cb8d3
VS
37596rm -f conftest.err conftest.$ac_objext \
37597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37598LIBS=$ac_check_lib_save_LIBS
37599fi
37600echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37601echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37602if test $ac_cv_lib_dl_dlopen = yes; then
37603
37604 cat >>confdefs.h <<\_ACEOF
37605#define HAVE_DLOPEN 1
37606_ACEOF
37607
37608 HAVE_DL_FUNCS=1
37609 DL_LINK=" -ldl$DL_LINK"
37610
37611else
37612
37613
37614for ac_func in shl_load
37615do
37616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37617echo "$as_me:$LINENO: checking for $ac_func" >&5
37618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37619if eval "test \"\${$as_ac_var+set}\" = set"; then
37620 echo $ECHO_N "(cached) $ECHO_C" >&6
37621else
37622 cat >conftest.$ac_ext <<_ACEOF
37623/* confdefs.h. */
37624_ACEOF
37625cat confdefs.h >>conftest.$ac_ext
37626cat >>conftest.$ac_ext <<_ACEOF
37627/* end confdefs.h. */
ac1cb8d3
VS
37628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37630#define $ac_func innocuous_$ac_func
37631
a848cd7e
SC
37632/* System header to define __stub macros and hopefully few prototypes,
37633 which can conflict with char $ac_func (); below.
37634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37635 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37636
a848cd7e
SC
37637#ifdef __STDC__
37638# include <limits.h>
37639#else
37640# include <assert.h>
37641#endif
ac1cb8d3
VS
37642
37643#undef $ac_func
37644
a848cd7e
SC
37645/* Override any gcc2 internal prototype to avoid an error. */
37646#ifdef __cplusplus
37647extern "C"
37648{
37649#endif
37650/* We use char because int might match the return type of a gcc2
37651 builtin and then its argument prototype would still apply. */
37652char $ac_func ();
37653/* The GNU C library defines this for functions which it implements
37654 to always fail with ENOSYS. Some functions are actually named
37655 something starting with __ and the normal name is an alias. */
37656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37657choke me
37658#else
37659char (*f) () = $ac_func;
37660#endif
37661#ifdef __cplusplus
37662}
37663#endif
37664
37665int
37666main ()
37667{
37668return f != $ac_func;
37669 ;
37670 return 0;
37671}
37672_ACEOF
37673rm -f conftest.$ac_objext conftest$ac_exeext
37674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37675 (eval $ac_link) 2>conftest.er1
a848cd7e 37676 ac_status=$?
ac1cb8d3
VS
37677 grep -v '^ *+' conftest.er1 >conftest.err
37678 rm -f conftest.er1
37679 cat conftest.err >&5
a848cd7e
SC
37680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681 (exit $ac_status); } &&
6ebeb4c7 37682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37684 (eval $ac_try) 2>&5
37685 ac_status=$?
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); }; } &&
37688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690 (eval $ac_try) 2>&5
37691 ac_status=$?
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); }; }; then
37694 eval "$as_ac_var=yes"
37695else
37696 echo "$as_me: failed program was:" >&5
37697sed 's/^/| /' conftest.$ac_ext >&5
37698
37699eval "$as_ac_var=no"
37700fi
ac1cb8d3
VS
37701rm -f conftest.err conftest.$ac_objext \
37702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37703fi
37704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37706if test `eval echo '${'$as_ac_var'}'` = yes; then
37707 cat >>confdefs.h <<_ACEOF
37708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37709_ACEOF
37710
37711 cat >>confdefs.h <<\_ACEOF
37712#define HAVE_SHL_LOAD 1
37713_ACEOF
37714
37715 HAVE_SHL_FUNCS=1
37716
37717else
37718
37719 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37720echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37721if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37722 echo $ECHO_N "(cached) $ECHO_C" >&6
37723else
37724 ac_check_lib_save_LIBS=$LIBS
37725LIBS="-lshl_load $LIBS"
37726cat >conftest.$ac_ext <<_ACEOF
37727/* confdefs.h. */
37728_ACEOF
37729cat confdefs.h >>conftest.$ac_ext
37730cat >>conftest.$ac_ext <<_ACEOF
37731/* end confdefs.h. */
37732
37733/* Override any gcc2 internal prototype to avoid an error. */
37734#ifdef __cplusplus
37735extern "C"
37736#endif
37737/* We use char because int might match the return type of a gcc2
37738 builtin and then its argument prototype would still apply. */
37739char dld ();
37740int
37741main ()
37742{
37743dld ();
37744 ;
37745 return 0;
37746}
37747_ACEOF
37748rm -f conftest.$ac_objext conftest$ac_exeext
37749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37750 (eval $ac_link) 2>conftest.er1
a848cd7e 37751 ac_status=$?
ac1cb8d3
VS
37752 grep -v '^ *+' conftest.er1 >conftest.err
37753 rm -f conftest.er1
37754 cat conftest.err >&5
a848cd7e
SC
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } &&
6ebeb4c7 37757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37760 ac_status=$?
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; } &&
37763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; }; then
37769 ac_cv_lib_shl_load_dld=yes
37770else
37771 echo "$as_me: failed program was:" >&5
37772sed 's/^/| /' conftest.$ac_ext >&5
37773
37774ac_cv_lib_shl_load_dld=no
37775fi
ac1cb8d3
VS
37776rm -f conftest.err conftest.$ac_objext \
37777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37778LIBS=$ac_check_lib_save_LIBS
37779fi
37780echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37781echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37782if test $ac_cv_lib_shl_load_dld = yes; then
37783
37784 HAVE_SHL_FUNCS=1
37785 DL_LINK=" -ldld$DL_LINK"
37786
37787fi
37788
37789
37790fi
37791done
37792
37793
37794fi
37795
37796
37797fi
37798done
37799
37800
37801 if test "$HAVE_DL_FUNCS" = 1; then
37802
37803for ac_func in dlerror
37804do
37805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37806echo "$as_me:$LINENO: checking for $ac_func" >&5
37807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37808if eval "test \"\${$as_ac_var+set}\" = set"; then
37809 echo $ECHO_N "(cached) $ECHO_C" >&6
37810else
37811 cat >conftest.$ac_ext <<_ACEOF
37812/* confdefs.h. */
37813_ACEOF
37814cat confdefs.h >>conftest.$ac_ext
37815cat >>conftest.$ac_ext <<_ACEOF
37816/* end confdefs.h. */
ac1cb8d3
VS
37817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37819#define $ac_func innocuous_$ac_func
37820
a848cd7e
SC
37821/* System header to define __stub macros and hopefully few prototypes,
37822 which can conflict with char $ac_func (); below.
37823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37824 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37825
a848cd7e
SC
37826#ifdef __STDC__
37827# include <limits.h>
37828#else
37829# include <assert.h>
37830#endif
ac1cb8d3
VS
37831
37832#undef $ac_func
37833
a848cd7e
SC
37834/* Override any gcc2 internal prototype to avoid an error. */
37835#ifdef __cplusplus
37836extern "C"
37837{
37838#endif
37839/* We use char because int might match the return type of a gcc2
37840 builtin and then its argument prototype would still apply. */
37841char $ac_func ();
37842/* The GNU C library defines this for functions which it implements
37843 to always fail with ENOSYS. Some functions are actually named
37844 something starting with __ and the normal name is an alias. */
37845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37846choke me
37847#else
37848char (*f) () = $ac_func;
37849#endif
37850#ifdef __cplusplus
37851}
37852#endif
37853
37854int
37855main ()
37856{
37857return f != $ac_func;
37858 ;
37859 return 0;
37860}
37861_ACEOF
37862rm -f conftest.$ac_objext conftest$ac_exeext
37863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37864 (eval $ac_link) 2>conftest.er1
a848cd7e 37865 ac_status=$?
ac1cb8d3
VS
37866 grep -v '^ *+' conftest.er1 >conftest.err
37867 rm -f conftest.er1
37868 cat conftest.err >&5
a848cd7e
SC
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); } &&
6ebeb4c7 37871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37874 ac_status=$?
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; } &&
37877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879 (eval $ac_try) 2>&5
37880 ac_status=$?
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); }; }; then
37883 eval "$as_ac_var=yes"
37884else
37885 echo "$as_me: failed program was:" >&5
37886sed 's/^/| /' conftest.$ac_ext >&5
37887
37888eval "$as_ac_var=no"
37889fi
ac1cb8d3
VS
37890rm -f conftest.err conftest.$ac_objext \
37891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37892fi
37893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37895if test `eval echo '${'$as_ac_var'}'` = yes; then
37896 cat >>confdefs.h <<_ACEOF
37897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37898_ACEOF
37899 cat >>confdefs.h <<\_ACEOF
37900#define HAVE_DLERROR 1
37901_ACEOF
37902
37903else
37904
37905 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37906echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37907if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37908 echo $ECHO_N "(cached) $ECHO_C" >&6
37909else
37910 ac_check_lib_save_LIBS=$LIBS
37911LIBS="-ldl $LIBS"
37912cat >conftest.$ac_ext <<_ACEOF
37913/* confdefs.h. */
37914_ACEOF
37915cat confdefs.h >>conftest.$ac_ext
37916cat >>conftest.$ac_ext <<_ACEOF
37917/* end confdefs.h. */
37918
37919/* Override any gcc2 internal prototype to avoid an error. */
37920#ifdef __cplusplus
37921extern "C"
37922#endif
37923/* We use char because int might match the return type of a gcc2
37924 builtin and then its argument prototype would still apply. */
37925char dlerror ();
37926int
37927main ()
37928{
37929dlerror ();
37930 ;
37931 return 0;
37932}
37933_ACEOF
37934rm -f conftest.$ac_objext conftest$ac_exeext
37935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37936 (eval $ac_link) 2>conftest.er1
a848cd7e 37937 ac_status=$?
ac1cb8d3
VS
37938 grep -v '^ *+' conftest.er1 >conftest.err
37939 rm -f conftest.er1
37940 cat conftest.err >&5
a848cd7e
SC
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } &&
6ebeb4c7 37943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37946 ac_status=$?
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; } &&
37949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951 (eval $ac_try) 2>&5
37952 ac_status=$?
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); }; }; then
37955 ac_cv_lib_dl_dlerror=yes
37956else
37957 echo "$as_me: failed program was:" >&5
37958sed 's/^/| /' conftest.$ac_ext >&5
37959
37960ac_cv_lib_dl_dlerror=no
37961fi
ac1cb8d3
VS
37962rm -f conftest.err conftest.$ac_objext \
37963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37964LIBS=$ac_check_lib_save_LIBS
37965fi
37966echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37967echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37968if test $ac_cv_lib_dl_dlerror = yes; then
37969 cat >>confdefs.h <<\_ACEOF
37970#define HAVE_DLERROR 1
37971_ACEOF
37972
37973fi
37974
37975
37976
37977fi
37978done
37979
37980 fi
37981 fi
37982
37983 if test "$HAVE_DL_FUNCS" = 0; then
37984 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37985 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37986 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37987echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37988 wxUSE_DYNAMIC_LOADER=no
37989 wxUSE_DYNLIB_CLASS=no
37990 else
37991 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37992echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37993 fi
37994 fi
37995 fi
37996 fi
37997fi
37998
37999if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38000 cat >>confdefs.h <<\_ACEOF
38001#define wxUSE_DYNAMIC_LOADER 1
38002_ACEOF
38003
38004fi
38005if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38006 cat >>confdefs.h <<\_ACEOF
38007#define wxUSE_DYNLIB_CLASS 1
38008_ACEOF
38009
38010fi
38011
38012
38013
38014if test "$wxUSE_PLUGINS" = "yes" ; then
38015 if test "$wxUSE_SHARED" = "no" ; then
38016 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38017echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38018 wxUSE_PLUGINS=no
38019 fi
38020 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38021 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38022echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38023 wxUSE_PLUGINS=no
38024 fi
38025 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38026 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38027echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38028 wxUSE_PLUGINS=no
38029 fi
38030 if test "$wxUSE_PLUGINS" = "yes" ; then
38031 cat >>confdefs.h <<\_ACEOF
38032#define wxUSE_PLUGINS 1
38033_ACEOF
38034
38035 fi
38036fi
38037
38038
38039if test "$wxUSE_STL" = "yes"; then
38040 cat >>confdefs.h <<\_ACEOF
38041#define wxUSE_STL 1
38042_ACEOF
38043
38044fi
38045
38046if test "$wxUSE_APPLE_IEEE" = "yes"; then
38047 cat >>confdefs.h <<\_ACEOF
38048#define wxUSE_APPLE_IEEE 1
38049_ACEOF
38050
38051fi
38052
38053if test "$wxUSE_TIMER" = "yes"; then
38054 cat >>confdefs.h <<\_ACEOF
38055#define wxUSE_TIMER 1
38056_ACEOF
38057
38058fi
38059
9c112555 38060if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38061 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38062echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38063if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38064 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38065else
d12aef51
VZ
38066
38067 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38068/* confdefs.h. */
38069_ACEOF
38070cat confdefs.h >>conftest.$ac_ext
38071cat >>conftest.$ac_ext <<_ACEOF
38072/* end confdefs.h. */
d12aef51
VZ
38073
38074 #include <sys/soundcard.h>
38075
38076int
38077main ()
38078{
38079
38080 ioctl(0, SNDCTL_DSP_SYNC, 0);
38081
38082 ;
38083 return 0;
38084}
a848cd7e 38085_ACEOF
d12aef51
VZ
38086rm -f conftest.$ac_objext conftest$ac_exeext
38087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38088 (eval $ac_link) 2>conftest.er1
a848cd7e 38089 ac_status=$?
ac1cb8d3
VS
38090 grep -v '^ *+' conftest.er1 >conftest.err
38091 rm -f conftest.er1
38092 cat conftest.err >&5
a848cd7e
SC
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } &&
6ebeb4c7 38095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38097 (eval $ac_try) 2>&5
38098 ac_status=$?
38099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); }; } &&
d12aef51 38101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103 (eval $ac_try) 2>&5
38104 ac_status=$?
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; }; then
d12aef51 38107 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38108else
38109 echo "$as_me: failed program was:" >&5
38110sed 's/^/| /' conftest.$ac_ext >&5
38111
a848cd7e 38112
d12aef51
VZ
38113 saveLibs="$LIBS"
38114 LIBS="$saveLibs -lossaudio"
38115 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38116/* confdefs.h. */
38117_ACEOF
38118cat confdefs.h >>conftest.$ac_ext
38119cat >>conftest.$ac_ext <<_ACEOF
38120/* end confdefs.h. */
d12aef51
VZ
38121
38122 #include <sys/soundcard.h>
38123
38124int
38125main ()
38126{
38127
38128 ioctl(0, SNDCTL_DSP_SYNC, 0);
38129
38130 ;
38131 return 0;
38132}
a848cd7e 38133_ACEOF
d12aef51
VZ
38134rm -f conftest.$ac_objext conftest$ac_exeext
38135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38136 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38137 ac_status=$?
38138 grep -v '^ *+' conftest.er1 >conftest.err
38139 rm -f conftest.er1
38140 cat conftest.err >&5
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38142 (exit $ac_status); } &&
38143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145 (eval $ac_try) 2>&5
38146 ac_status=$?
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); }; } &&
38149 { ac_try='test -s conftest$ac_exeext'
38150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38151 (eval $ac_try) 2>&5
38152 ac_status=$?
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); }; }; then
38155 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38156else
38157 echo "$as_me: failed program was:" >&5
38158sed 's/^/| /' conftest.$ac_ext >&5
38159
a848cd7e 38160
d12aef51
VZ
38161 LIBS="$saveLibs"
38162 ac_cv_header_sys_soundcard=no
38163
38164
a848cd7e 38165fi
d12aef51
VZ
38166rm -f conftest.err conftest.$ac_objext \
38167 conftest$ac_exeext conftest.$ac_ext
38168
a848cd7e
SC
38169
38170fi
d12aef51
VZ
38171rm -f conftest.err conftest.$ac_objext \
38172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38173
38174fi
d12aef51
VZ
38175echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38176echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38177
d12aef51
VZ
38178 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define HAVE_SYS_SOUNDCARD_H 1
38181_ACEOF
a848cd7e 38182
d12aef51
VZ
38183 else
38184 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38185 fi
9c112555
MW
38186fi
38187WITH_PLUGIN_SDL=0
38188if test "$wxUSE_SOUND" = "yes"; then
38189 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38190 if test "$wxUSE_LIBSDL" != "no"; then
38191
38192# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38193if test "${with_sdl_prefix+set}" = set; then
38194 withval="$with_sdl_prefix"
38195 sdl_prefix="$withval"
38196else
38197 sdl_prefix=""
38198fi;
38199
38200# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38201if test "${with_sdl_exec_prefix+set}" = set; then
38202 withval="$with_sdl_exec_prefix"
38203 sdl_exec_prefix="$withval"
38204else
38205 sdl_exec_prefix=""
38206fi;
38207# Check whether --enable-sdltest or --disable-sdltest was given.
38208if test "${enable_sdltest+set}" = set; then
38209 enableval="$enable_sdltest"
38210
38211else
38212 enable_sdltest=yes
38213fi;
38214
38215 if test x$sdl_exec_prefix != x ; then
38216 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38217 if test x${SDL_CONFIG+set} != xset ; then
38218 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38219 fi
38220 fi
38221 if test x$sdl_prefix != x ; then
38222 sdl_args="$sdl_args --prefix=$sdl_prefix"
38223 if test x${SDL_CONFIG+set} != xset ; then
38224 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38225 fi
38226 fi
38227
38228
38229 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38230 # Extract the first word of "sdl-config", so it can be a program name with args.
38231set dummy sdl-config; ac_word=$2
38232echo "$as_me:$LINENO: checking for $ac_word" >&5
38233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38234if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38235 echo $ECHO_N "(cached) $ECHO_C" >&6
38236else
38237 case $SDL_CONFIG in
38238 [\\/]* | ?:[\\/]*)
38239 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38240 ;;
38241 *)
38242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38243for as_dir in $PATH
38244do
38245 IFS=$as_save_IFS
38246 test -z "$as_dir" && as_dir=.
38247 for ac_exec_ext in '' $ac_executable_extensions; do
38248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38249 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38251 break 2
38252 fi
38253done
38254done
38255
38256 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38257 ;;
38258esac
38259fi
38260SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38261
38262if test -n "$SDL_CONFIG"; then
38263 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38264echo "${ECHO_T}$SDL_CONFIG" >&6
38265else
38266 echo "$as_me:$LINENO: result: no" >&5
38267echo "${ECHO_T}no" >&6
38268fi
38269
38270 min_sdl_version=1.2.0
38271 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38272echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38273 no_sdl=""
38274 if test "$SDL_CONFIG" = "no" ; then
38275 no_sdl=yes
38276 else
38277 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38278 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38279
38280 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38282 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38284 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38286 if test "x$enable_sdltest" = "xyes" ; then
38287 ac_save_CFLAGS="$CFLAGS"
94acd38e 38288 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38289 ac_save_LIBS="$LIBS"
38290 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38291 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38292 LIBS="$LIBS $SDL_LIBS"
38293 rm -f conf.sdltest
38294 if test "$cross_compiling" = yes; then
38295 echo $ac_n "cross compiling; assumed OK... $ac_c"
38296else
38297 cat >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 <stdio.h>
38305#include <stdlib.h>
38306#include <string.h>
38307#include "SDL.h"
38308
38309char*
38310my_strdup (char *str)
38311{
38312 char *new_str;
38313
38314 if (str)
38315 {
38316 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38317 strcpy (new_str, str);
38318 }
38319 else
38320 new_str = NULL;
38321
38322 return new_str;
38323}
38324
38325int main (int argc, char *argv[])
38326{
38327 int major, minor, micro;
38328 char *tmp_version;
38329
38330 /* This hangs on some systems (?)
38331 system ("touch conf.sdltest");
38332 */
38333 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38334
38335 /* HP/UX 9 (%@#!) writes to sscanf strings */
38336 tmp_version = my_strdup("$min_sdl_version");
38337 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38338 printf("%s, bad version string\n", "$min_sdl_version");
38339 exit(1);
38340 }
38341
38342 if (($sdl_major_version > major) ||
38343 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38344 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38345 {
38346 return 0;
38347 }
38348 else
38349 {
38350 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38351 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38352 printf("*** best to upgrade to the required version.\n");
38353 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38354 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38355 printf("*** config.cache before re-running configure\n");
38356 return 1;
38357 }
38358}
38359
38360
38361_ACEOF
38362rm -f conftest$ac_exeext
38363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38364 (eval $ac_link) 2>&5
38365 ac_status=$?
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38370 ac_status=$?
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; }; then
38373 :
38374else
38375 echo "$as_me: program exited with status $ac_status" >&5
38376echo "$as_me: failed program was:" >&5
38377sed 's/^/| /' conftest.$ac_ext >&5
38378
38379( exit $ac_status )
38380no_sdl=yes
38381fi
ac1cb8d3 38382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38383fi
38384 CFLAGS="$ac_save_CFLAGS"
94acd38e 38385 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38386 LIBS="$ac_save_LIBS"
38387 fi
38388 fi
38389 if test "x$no_sdl" = x ; then
38390 echo "$as_me:$LINENO: result: yes" >&5
38391echo "${ECHO_T}yes" >&6
38392
38393 EXTRALIBS_SDL="$SDL_LIBS"
38394 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38395 cat >>confdefs.h <<\_ACEOF
38396#define wxUSE_LIBSDL 1
38397_ACEOF
38398
38399
38400 else
38401 echo "$as_me:$LINENO: result: no" >&5
38402echo "${ECHO_T}no" >&6
38403 if test "$SDL_CONFIG" = "no" ; then
38404 echo "*** The sdl-config script installed by SDL could not be found"
38405 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38406 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38407 echo "*** full path to sdl-config."
38408 else
38409 if test -f conf.sdltest ; then
38410 :
38411 else
38412 echo "*** Could not run SDL test program, checking why..."
38413 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38414 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38415 LIBS="$LIBS $SDL_LIBS"
38416 cat >conftest.$ac_ext <<_ACEOF
38417/* confdefs.h. */
38418_ACEOF
38419cat confdefs.h >>conftest.$ac_ext
38420cat >>conftest.$ac_ext <<_ACEOF
38421/* end confdefs.h. */
38422
38423#include <stdio.h>
38424#include "SDL.h"
38425
38426int main(int argc, char *argv[])
38427{ return 0; }
38428#undef main
38429#define main K_and_R_C_main
38430
38431int
38432main ()
38433{
38434 return 0;
38435 ;
38436 return 0;
38437}
38438_ACEOF
38439rm -f conftest.$ac_objext conftest$ac_exeext
38440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38441 (eval $ac_link) 2>conftest.er1
a848cd7e 38442 ac_status=$?
ac1cb8d3
VS
38443 grep -v '^ *+' conftest.er1 >conftest.err
38444 rm -f conftest.er1
38445 cat conftest.err >&5
a848cd7e
SC
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); } &&
6ebeb4c7 38448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; } &&
38454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38457 ac_status=$?
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; }; then
38460 echo "*** The test program compiled, but did not run. This usually means"
38461 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38462 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38463 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38464 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38465 echo "*** is required on your system"
38466 echo "***"
38467 echo "*** If you have an old version installed, it is best to remove it, although"
38468 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38469else
38470 echo "$as_me: failed program was:" >&5
38471sed 's/^/| /' conftest.$ac_ext >&5
38472
38473 echo "*** The test program failed to compile or link. See the file config.log for the"
38474 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38475 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38476 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38477fi
ac1cb8d3
VS
38478rm -f conftest.err conftest.$ac_objext \
38479 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38480 CFLAGS="$ac_save_CFLAGS"
94acd38e 38481 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38482 LIBS="$ac_save_LIBS"
38483 fi
38484 fi
38485 SDL_CFLAGS=""
38486 SDL_LIBS=""
38487 wxUSE_LIBSDL="no"
38488 fi
38489
38490
38491 rm -f conf.sdltest
38492
38493 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38494 WITH_PLUGIN_SDL=1
38495 fi
38496 fi
38497 fi
38498
38499 cat >>confdefs.h <<\_ACEOF
38500#define wxUSE_SOUND 1
38501_ACEOF
38502
38503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38504fi
38505
d1c38808
VZ
38506if test "$WXGTK20" = 1; then
38507 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38508 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38509
38510
38511 succeeded=no
38512
38513 if test -z "$PKG_CONFIG"; then
38514 # Extract the first word of "pkg-config", so it can be a program name with args.
38515set dummy pkg-config; ac_word=$2
38516echo "$as_me:$LINENO: checking for $ac_word" >&5
38517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38518if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38519 echo $ECHO_N "(cached) $ECHO_C" >&6
38520else
38521 case $PKG_CONFIG in
38522 [\\/]* | ?:[\\/]*)
38523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38524 ;;
38525 *)
38526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38527for as_dir in $PATH
38528do
38529 IFS=$as_save_IFS
38530 test -z "$as_dir" && as_dir=.
38531 for ac_exec_ext in '' $ac_executable_extensions; do
38532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38535 break 2
38536 fi
38537done
38538done
38539
38540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38541 ;;
38542esac
38543fi
38544PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38545
38546if test -n "$PKG_CONFIG"; then
38547 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38548echo "${ECHO_T}$PKG_CONFIG" >&6
38549else
38550 echo "$as_me:$LINENO: result: no" >&5
38551echo "${ECHO_T}no" >&6
38552fi
38553
38554 fi
38555
38556 if test "$PKG_CONFIG" = "no" ; then
38557 echo "*** The pkg-config script could not be found. Make sure it is"
38558 echo "*** in your path, or set the PKG_CONFIG environment variable"
38559 echo "*** to the full path to pkg-config."
38560 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38561 else
38562 PKG_CONFIG_MIN_VERSION=0.9.0
38563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38564 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38565echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38566
ffa762ff 38567 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38568 echo "$as_me:$LINENO: result: yes" >&5
38569echo "${ECHO_T}yes" >&6
38570 succeeded=yes
38571
38572 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38573echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38574 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38575 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38576echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38577
38578 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38579echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38580 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38581 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38582echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38583 else
38584 LIBGNOMEPRINTUI_CFLAGS=""
38585 LIBGNOMEPRINTUI_LIBS=""
38586 ## If we have a custom action on failure, don't print errors, but
38587 ## do set a variable so people can do so.
ffa762ff 38588 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38589
38590 fi
38591
38592
38593
38594 else
38595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38597 fi
38598 fi
38599
38600 if test $succeeded = yes; then
38601
d1c38808
VZ
38602 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38603 cat >>confdefs.h <<\_ACEOF
38604#define wxUSE_LIBGNOMEPRINT 1
38605_ACEOF
38606
38607
38608 else
38609
38610 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38611echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38612 wxUSE_LIBGNOMEPRINT="no"
38613
38614
38615 fi
38616
38617 fi
38618 fi
38619fi
38620
38621
a848cd7e
SC
38622if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38623 cat >>confdefs.h <<\_ACEOF
38624#define wxUSE_CMDLINE_PARSER 1
38625_ACEOF
38626
38627fi
38628
38629if test "$wxUSE_STOPWATCH" = "yes"; then
38630 cat >>confdefs.h <<\_ACEOF
38631#define wxUSE_STOPWATCH 1
38632_ACEOF
38633
38634fi
38635
38636if test "$wxUSE_DATETIME" = "yes"; then
38637 cat >>confdefs.h <<\_ACEOF
38638#define wxUSE_DATETIME 1
38639_ACEOF
38640
38641fi
38642
38643if test "$wxUSE_FILE" = "yes"; then
38644 cat >>confdefs.h <<\_ACEOF
38645#define wxUSE_FILE 1
38646_ACEOF
38647
38648fi
38649
38650if test "$wxUSE_FFILE" = "yes"; then
38651 cat >>confdefs.h <<\_ACEOF
38652#define wxUSE_FFILE 1
38653_ACEOF
38654
38655fi
38656
38657if test "$wxUSE_FILESYSTEM" = "yes"; then
38658 cat >>confdefs.h <<\_ACEOF
38659#define wxUSE_FILESYSTEM 1
38660_ACEOF
38661
38662fi
38663
38664if test "$wxUSE_FS_ZIP" = "yes"; then
38665 cat >>confdefs.h <<\_ACEOF
38666#define wxUSE_FS_ZIP 1
38667_ACEOF
38668
38669fi
38670
9e8e867f 38671if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38672 cat >>confdefs.h <<\_ACEOF
9e8e867f 38673#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38674_ACEOF
38675
38676fi
38677
38678if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38679 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38680 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38681echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38682 elif test "$wxUSE_ZLIB" = "no"; then
38683 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38684echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38685 else
38686 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38687#define wxUSE_ZIPSTREAM 1
38688_ACEOF
38689
81f90336 38690 fi
a848cd7e
SC
38691fi
38692
a848cd7e 38693if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38694 if test "$USE_UNIX" != 1; then
38695 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38696echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38697 wxUSE_ON_FATAL_EXCEPTION=no
38698 else
38699 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38700#define wxUSE_ON_FATAL_EXCEPTION 1
38701_ACEOF
38702
18228ab4 38703 fi
a848cd7e
SC
38704fi
38705
eaff0f0d
VZ
38706if test "$wxUSE_STACKWALKER" = "yes"; then
38707 cat >>confdefs.h <<\_ACEOF
38708#define wxUSE_STACKWALKER 1
38709_ACEOF
38710
38711fi
38712
36b6448c 38713if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38714 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38715 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38716echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38717 wxUSE_DEBUGREPORT=no
38718 else
38719 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38720#define wxUSE_DEBUGREPORT 1
38721_ACEOF
38722
21dfc162
MW
38723 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38725 fi
dfe0c803 38726 fi
36b6448c
VZ
38727fi
38728
a848cd7e
SC
38729if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38730 cat >>confdefs.h <<\_ACEOF
38731#define wxUSE_SNGLINST_CHECKER 1
38732_ACEOF
38733
38734fi
38735
38736if test "$wxUSE_BUSYINFO" = "yes"; then
38737 cat >>confdefs.h <<\_ACEOF
38738#define wxUSE_BUSYINFO 1
38739_ACEOF
38740
38741fi
38742
38743if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38744 cat >>confdefs.h <<\_ACEOF
38745#define wxUSE_STD_IOSTREAM 1
38746_ACEOF
38747
38748fi
38749
59746b65
MW
38750if test "$wxUSE_STD_STRING" = "yes"; then
38751 cat >>confdefs.h <<\_ACEOF
38752#define wxUSE_STD_STRING 1
38753_ACEOF
38754
38755fi
38756
07158944
VZ
38757if test "$wxUSE_STDPATHS" = "yes"; then
38758 cat >>confdefs.h <<\_ACEOF
38759#define wxUSE_STDPATHS 1
38760_ACEOF
38761
38762fi
38763
a848cd7e
SC
38764if test "$wxUSE_TEXTBUFFER" = "yes"; then
38765 cat >>confdefs.h <<\_ACEOF
38766#define wxUSE_TEXTBUFFER 1
38767_ACEOF
38768
38769fi
38770
38771if test "$wxUSE_TEXTFILE" = "yes"; then
38772 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38773 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38774echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38775 else
38776 cat >>confdefs.h <<\_ACEOF
38777#define wxUSE_TEXTFILE 1
38778_ACEOF
38779
38780 fi
38781fi
38782
38783if test "$wxUSE_CONFIG" = "yes" ; then
38784 if test "$wxUSE_TEXTFILE" != "yes"; then
38785 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38786echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38787 else
38788 cat >>confdefs.h <<\_ACEOF
38789#define wxUSE_CONFIG 1
89be85c2
VS
38790_ACEOF
38791
38792 cat >>confdefs.h <<\_ACEOF
38793#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38794_ACEOF
38795
38796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38797 fi
38798fi
38799
38800if test "$wxUSE_INTL" = "yes" ; then
38801 if test "$wxUSE_FILE" != "yes"; then
38802 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38803echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38804 else
38805 cat >>confdefs.h <<\_ACEOF
38806#define wxUSE_INTL 1
38807_ACEOF
38808
38809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38810 GUIDIST="$GUIDIST INTL_DIST"
38811 fi
38812fi
38813
38814if test "$wxUSE_LOG" = "yes"; then
38815 cat >>confdefs.h <<\_ACEOF
38816#define wxUSE_LOG 1
38817_ACEOF
38818
38819
38820 if test "$wxUSE_LOGGUI" = "yes"; then
38821 cat >>confdefs.h <<\_ACEOF
38822#define wxUSE_LOGGUI 1
38823_ACEOF
38824
38825 fi
38826
38827 if test "$wxUSE_LOGWINDOW" = "yes"; then
38828 cat >>confdefs.h <<\_ACEOF
38829#define wxUSE_LOGWINDOW 1
38830_ACEOF
38831
38832 fi
38833
38834 if test "$wxUSE_LOGDIALOG" = "yes"; then
38835 cat >>confdefs.h <<\_ACEOF
38836#define wxUSE_LOG_DIALOG 1
38837_ACEOF
38838
38839 fi
0b78747f
MW
38840
38841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38842fi
38843
38844if test "$wxUSE_LONGLONG" = "yes"; then
38845 cat >>confdefs.h <<\_ACEOF
38846#define wxUSE_LONGLONG 1
38847_ACEOF
38848
38849fi
38850
38851if test "$wxUSE_GEOMETRY" = "yes"; then
38852 cat >>confdefs.h <<\_ACEOF
38853#define wxUSE_GEOMETRY 1
38854_ACEOF
38855
38856fi
38857
a848cd7e
SC
38858if test "$wxUSE_STREAMS" = "yes" ; then
38859 cat >>confdefs.h <<\_ACEOF
38860#define wxUSE_STREAMS 1
38861_ACEOF
38862
38863fi
38864
38865
38866if test "$wxUSE_DATETIME" = "yes"; then
38867
38868for ac_func in strptime
38869do
38870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38871echo "$as_me:$LINENO: checking for $ac_func" >&5
38872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38873if eval "test \"\${$as_ac_var+set}\" = set"; then
38874 echo $ECHO_N "(cached) $ECHO_C" >&6
38875else
38876 cat >conftest.$ac_ext <<_ACEOF
38877/* confdefs.h. */
38878_ACEOF
38879cat confdefs.h >>conftest.$ac_ext
38880cat >>conftest.$ac_ext <<_ACEOF
38881/* end confdefs.h. */
ac1cb8d3
VS
38882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38884#define $ac_func innocuous_$ac_func
38885
a848cd7e
SC
38886/* System header to define __stub macros and hopefully few prototypes,
38887 which can conflict with char $ac_func (); below.
38888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38890
a848cd7e
SC
38891#ifdef __STDC__
38892# include <limits.h>
38893#else
38894# include <assert.h>
38895#endif
ac1cb8d3
VS
38896
38897#undef $ac_func
38898
a848cd7e
SC
38899/* Override any gcc2 internal prototype to avoid an error. */
38900#ifdef __cplusplus
38901extern "C"
38902{
38903#endif
38904/* We use char because int might match the return type of a gcc2
38905 builtin and then its argument prototype would still apply. */
38906char $ac_func ();
38907/* The GNU C library defines this for functions which it implements
38908 to always fail with ENOSYS. Some functions are actually named
38909 something starting with __ and the normal name is an alias. */
38910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38911choke me
38912#else
38913char (*f) () = $ac_func;
38914#endif
38915#ifdef __cplusplus
38916}
38917#endif
38918
38919int
38920main ()
38921{
38922return f != $ac_func;
38923 ;
38924 return 0;
38925}
38926_ACEOF
38927rm -f conftest.$ac_objext conftest$ac_exeext
38928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38929 (eval $ac_link) 2>conftest.er1
a848cd7e 38930 ac_status=$?
ac1cb8d3
VS
38931 grep -v '^ *+' conftest.er1 >conftest.err
38932 rm -f conftest.er1
38933 cat conftest.err >&5
a848cd7e
SC
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); } &&
6ebeb4c7 38936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38939 ac_status=$?
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; } &&
38942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38944 (eval $ac_try) 2>&5
38945 ac_status=$?
38946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38947 (exit $ac_status); }; }; then
38948 eval "$as_ac_var=yes"
38949else
38950 echo "$as_me: failed program was:" >&5
38951sed 's/^/| /' conftest.$ac_ext >&5
38952
38953eval "$as_ac_var=no"
38954fi
ac1cb8d3
VS
38955rm -f conftest.err conftest.$ac_objext \
38956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38957fi
38958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38960if test `eval echo '${'$as_ac_var'}'` = yes; then
38961 cat >>confdefs.h <<_ACEOF
38962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38963_ACEOF
38964
38965fi
38966done
38967
38968
38969 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38970echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38971if test "${wx_cv_var_timezone+set}" = set; then
38972 echo $ECHO_N "(cached) $ECHO_C" >&6
38973else
38974
38975 cat >conftest.$ac_ext <<_ACEOF
38976/* confdefs.h. */
38977_ACEOF
38978cat confdefs.h >>conftest.$ac_ext
38979cat >>conftest.$ac_ext <<_ACEOF
38980/* end confdefs.h. */
38981
38982 #include <time.h>
38983
38984int
38985main ()
38986{
38987
38988 int tz;
38989 tz = timezone;
38990
38991 ;
38992 return 0;
38993}
38994_ACEOF
38995rm -f conftest.$ac_objext
38996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38997 (eval $ac_compile) 2>conftest.er1
a848cd7e 38998 ac_status=$?
ac1cb8d3
VS
38999 grep -v '^ *+' conftest.er1 >conftest.err
39000 rm -f conftest.er1
39001 cat conftest.err >&5
a848cd7e
SC
39002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 (exit $ac_status); } &&
6ebeb4c7 39004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39006 (eval $ac_try) 2>&5
39007 ac_status=$?
39008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); }; } &&
39010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39013 ac_status=$?
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; }; then
39016
39017 wx_cv_var_timezone=timezone
39018
39019else
39020 echo "$as_me: failed program was:" >&5
39021sed 's/^/| /' conftest.$ac_ext >&5
39022
39023
39024 cat >conftest.$ac_ext <<_ACEOF
39025/* confdefs.h. */
39026_ACEOF
39027cat confdefs.h >>conftest.$ac_ext
39028cat >>conftest.$ac_ext <<_ACEOF
39029/* end confdefs.h. */
39030
39031 #include <time.h>
39032
39033int
39034main ()
39035{
39036
39037 int tz;
39038 tz = _timezone;
39039
39040 ;
39041 return 0;
39042}
39043_ACEOF
39044rm -f conftest.$ac_objext
39045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39046 (eval $ac_compile) 2>conftest.er1
a848cd7e 39047 ac_status=$?
ac1cb8d3
VS
39048 grep -v '^ *+' conftest.er1 >conftest.err
39049 rm -f conftest.er1
39050 cat conftest.err >&5
a848cd7e
SC
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); } &&
6ebeb4c7 39053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055 (eval $ac_try) 2>&5
39056 ac_status=$?
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); }; } &&
39059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061 (eval $ac_try) 2>&5
39062 ac_status=$?
39063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064 (exit $ac_status); }; }; then
39065
39066 wx_cv_var_timezone=_timezone
39067
39068else
39069 echo "$as_me: failed program was:" >&5
39070sed 's/^/| /' conftest.$ac_ext >&5
39071
39072
39073 cat >conftest.$ac_ext <<_ACEOF
39074/* confdefs.h. */
39075_ACEOF
39076cat confdefs.h >>conftest.$ac_ext
39077cat >>conftest.$ac_ext <<_ACEOF
39078/* end confdefs.h. */
39079
39080 #include <time.h>
39081
39082int
39083main ()
39084{
39085
39086 int tz;
39087 tz = __timezone;
39088
39089 ;
39090 return 0;
39091}
39092_ACEOF
39093rm -f conftest.$ac_objext
39094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39095 (eval $ac_compile) 2>conftest.er1
a848cd7e 39096 ac_status=$?
ac1cb8d3
VS
39097 grep -v '^ *+' conftest.er1 >conftest.err
39098 rm -f conftest.er1
39099 cat conftest.err >&5
a848cd7e
SC
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); } &&
6ebeb4c7 39102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39104 (eval $ac_try) 2>&5
39105 ac_status=$?
39106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39107 (exit $ac_status); }; } &&
39108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39110 (eval $ac_try) 2>&5
39111 ac_status=$?
39112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113 (exit $ac_status); }; }; then
39114
39115 wx_cv_var_timezone=__timezone
39116
39117else
39118 echo "$as_me: failed program was:" >&5
39119sed 's/^/| /' conftest.$ac_ext >&5
39120
39121
39122 if test "$USE_DOS" = 0 ; then
39123 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39124echo "$as_me: WARNING: no timezone variable" >&2;}
39125 fi
39126
39127
39128fi
ac1cb8d3 39129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39130
39131
39132fi
ac1cb8d3 39133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39134
39135
39136fi
ac1cb8d3 39137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39138
39139
39140fi
39141echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39142echo "${ECHO_T}$wx_cv_var_timezone" >&6
39143
39144 if test "x$wx_cv_var_timezone" != x ; then
39145 cat >>confdefs.h <<_ACEOF
39146#define WX_TIMEZONE $wx_cv_var_timezone
39147_ACEOF
39148
39149 fi
39150
39151
39152for ac_func in localtime
39153do
39154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39155echo "$as_me:$LINENO: checking for $ac_func" >&5
39156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39157if eval "test \"\${$as_ac_var+set}\" = set"; then
39158 echo $ECHO_N "(cached) $ECHO_C" >&6
39159else
39160 cat >conftest.$ac_ext <<_ACEOF
39161/* confdefs.h. */
39162_ACEOF
39163cat confdefs.h >>conftest.$ac_ext
39164cat >>conftest.$ac_ext <<_ACEOF
39165/* end confdefs.h. */
ac1cb8d3
VS
39166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39168#define $ac_func innocuous_$ac_func
39169
a848cd7e
SC
39170/* System header to define __stub macros and hopefully few prototypes,
39171 which can conflict with char $ac_func (); below.
39172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39174
a848cd7e
SC
39175#ifdef __STDC__
39176# include <limits.h>
39177#else
39178# include <assert.h>
39179#endif
ac1cb8d3
VS
39180
39181#undef $ac_func
39182
a848cd7e
SC
39183/* Override any gcc2 internal prototype to avoid an error. */
39184#ifdef __cplusplus
39185extern "C"
39186{
39187#endif
39188/* We use char because int might match the return type of a gcc2
39189 builtin and then its argument prototype would still apply. */
39190char $ac_func ();
39191/* The GNU C library defines this for functions which it implements
39192 to always fail with ENOSYS. Some functions are actually named
39193 something starting with __ and the normal name is an alias. */
39194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39195choke me
39196#else
39197char (*f) () = $ac_func;
39198#endif
39199#ifdef __cplusplus
39200}
39201#endif
39202
39203int
39204main ()
39205{
39206return f != $ac_func;
39207 ;
39208 return 0;
39209}
39210_ACEOF
39211rm -f conftest.$ac_objext conftest$ac_exeext
39212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39213 (eval $ac_link) 2>conftest.er1
a848cd7e 39214 ac_status=$?
ac1cb8d3
VS
39215 grep -v '^ *+' conftest.er1 >conftest.err
39216 rm -f conftest.er1
39217 cat conftest.err >&5
a848cd7e
SC
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); } &&
6ebeb4c7 39220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39223 ac_status=$?
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; } &&
39226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 (eval $ac_try) 2>&5
39229 ac_status=$?
39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); }; }; then
39232 eval "$as_ac_var=yes"
39233else
39234 echo "$as_me: failed program was:" >&5
39235sed 's/^/| /' conftest.$ac_ext >&5
39236
39237eval "$as_ac_var=no"
39238fi
ac1cb8d3
VS
39239rm -f conftest.err conftest.$ac_objext \
39240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39241fi
39242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39244if test `eval echo '${'$as_ac_var'}'` = yes; then
39245 cat >>confdefs.h <<_ACEOF
39246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39247_ACEOF
39248
39249fi
39250done
39251
39252
39253 if test "$ac_cv_func_localtime" = "yes"; then
39254 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39255echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39256if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39257 echo $ECHO_N "(cached) $ECHO_C" >&6
39258else
39259
39260 cat >conftest.$ac_ext <<_ACEOF
39261/* confdefs.h. */
39262_ACEOF
39263cat confdefs.h >>conftest.$ac_ext
39264cat >>conftest.$ac_ext <<_ACEOF
39265/* end confdefs.h. */
39266
39267 #include <time.h>
39268
39269int
39270main ()
39271{
39272
39273 struct tm tm;
39274 tm.tm_gmtoff++;
39275
39276 ;
39277 return 0;
39278}
39279_ACEOF
39280rm -f conftest.$ac_objext
39281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39282 (eval $ac_compile) 2>conftest.er1
a848cd7e 39283 ac_status=$?
ac1cb8d3
VS
39284 grep -v '^ *+' conftest.er1 >conftest.err
39285 rm -f conftest.er1
39286 cat conftest.err >&5
a848cd7e
SC
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); } &&
6ebeb4c7 39289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39292 ac_status=$?
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } &&
39295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39298 ac_status=$?
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; }; then
39301
39302 wx_cv_struct_tm_has_gmtoff=yes
39303
39304else
39305 echo "$as_me: failed program was:" >&5
39306sed 's/^/| /' conftest.$ac_ext >&5
39307
39308wx_cv_struct_tm_has_gmtoff=no
39309
39310fi
ac1cb8d3 39311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39312
39313fi
39314echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39315echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39316 fi
39317
39318 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39319 cat >>confdefs.h <<\_ACEOF
39320#define WX_GMTOFF_IN_TM 1
39321_ACEOF
39322
39323 fi
39324
39325
39326
39327for ac_func in gettimeofday ftime
39328do
39329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39330echo "$as_me:$LINENO: checking for $ac_func" >&5
39331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39332if eval "test \"\${$as_ac_var+set}\" = set"; then
39333 echo $ECHO_N "(cached) $ECHO_C" >&6
39334else
39335 cat >conftest.$ac_ext <<_ACEOF
39336/* confdefs.h. */
39337_ACEOF
39338cat confdefs.h >>conftest.$ac_ext
39339cat >>conftest.$ac_ext <<_ACEOF
39340/* end confdefs.h. */
ac1cb8d3
VS
39341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39343#define $ac_func innocuous_$ac_func
39344
a848cd7e
SC
39345/* System header to define __stub macros and hopefully few prototypes,
39346 which can conflict with char $ac_func (); below.
39347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39349
a848cd7e
SC
39350#ifdef __STDC__
39351# include <limits.h>
39352#else
39353# include <assert.h>
39354#endif
ac1cb8d3
VS
39355
39356#undef $ac_func
39357
a848cd7e
SC
39358/* Override any gcc2 internal prototype to avoid an error. */
39359#ifdef __cplusplus
39360extern "C"
39361{
39362#endif
39363/* We use char because int might match the return type of a gcc2
39364 builtin and then its argument prototype would still apply. */
39365char $ac_func ();
39366/* The GNU C library defines this for functions which it implements
39367 to always fail with ENOSYS. Some functions are actually named
39368 something starting with __ and the normal name is an alias. */
39369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39370choke me
39371#else
39372char (*f) () = $ac_func;
39373#endif
39374#ifdef __cplusplus
39375}
39376#endif
39377
39378int
39379main ()
39380{
39381return f != $ac_func;
39382 ;
39383 return 0;
39384}
39385_ACEOF
39386rm -f conftest.$ac_objext conftest$ac_exeext
39387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39388 (eval $ac_link) 2>conftest.er1
a848cd7e 39389 ac_status=$?
ac1cb8d3
VS
39390 grep -v '^ *+' conftest.er1 >conftest.err
39391 rm -f conftest.er1
39392 cat conftest.err >&5
a848cd7e
SC
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); } &&
6ebeb4c7 39395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39398 ac_status=$?
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; } &&
39401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403 (eval $ac_try) 2>&5
39404 ac_status=$?
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); }; }; then
39407 eval "$as_ac_var=yes"
39408else
39409 echo "$as_me: failed program was:" >&5
39410sed 's/^/| /' conftest.$ac_ext >&5
39411
39412eval "$as_ac_var=no"
39413fi
ac1cb8d3
VS
39414rm -f conftest.err conftest.$ac_objext \
39415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39416fi
39417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39419if test `eval echo '${'$as_ac_var'}'` = yes; then
39420 cat >>confdefs.h <<_ACEOF
39421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39422_ACEOF
39423 break
39424fi
39425done
39426
39427
39428 if test "$ac_cv_func_gettimeofday" = "yes"; then
39429 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39430echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39431if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39432 echo $ECHO_N "(cached) $ECHO_C" >&6
39433else
39434
39435
39436
39437 ac_ext=cc
39438ac_cpp='$CXXCPP $CPPFLAGS'
39439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39442
39443
39444 cat >conftest.$ac_ext <<_ACEOF
39445/* confdefs.h. */
39446_ACEOF
39447cat confdefs.h >>conftest.$ac_ext
39448cat >>conftest.$ac_ext <<_ACEOF
39449/* end confdefs.h. */
39450
39451 #include <sys/time.h>
39452 #include <unistd.h>
39453
39454int
39455main ()
39456{
39457
39458 struct timeval tv;
39459 gettimeofday(&tv, NULL);
39460
39461 ;
39462 return 0;
39463}
39464_ACEOF
39465rm -f conftest.$ac_objext
39466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39467 (eval $ac_compile) 2>conftest.er1
a848cd7e 39468 ac_status=$?
ac1cb8d3
VS
39469 grep -v '^ *+' conftest.er1 >conftest.err
39470 rm -f conftest.er1
39471 cat conftest.err >&5
a848cd7e
SC
39472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39473 (exit $ac_status); } &&
6ebeb4c7 39474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39476 (eval $ac_try) 2>&5
39477 ac_status=$?
39478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479 (exit $ac_status); }; } &&
39480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39482 (eval $ac_try) 2>&5
39483 ac_status=$?
39484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485 (exit $ac_status); }; }; then
39486 wx_cv_func_gettimeofday_has_2_args=yes
39487else
39488 echo "$as_me: failed program was:" >&5
39489sed 's/^/| /' conftest.$ac_ext >&5
39490
39491cat >conftest.$ac_ext <<_ACEOF
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
39497
39498 #include <sys/time.h>
39499 #include <unistd.h>
39500
39501int
39502main ()
39503{
39504
39505 struct timeval tv;
39506 gettimeofday(&tv);
39507
39508 ;
39509 return 0;
39510}
39511_ACEOF
39512rm -f conftest.$ac_objext
39513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39514 (eval $ac_compile) 2>conftest.er1
a848cd7e 39515 ac_status=$?
ac1cb8d3
VS
39516 grep -v '^ *+' conftest.er1 >conftest.err
39517 rm -f conftest.er1
39518 cat conftest.err >&5
a848cd7e
SC
39519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 (exit $ac_status); } &&
6ebeb4c7 39521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39523 (eval $ac_try) 2>&5
39524 ac_status=$?
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); }; } &&
39527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39529 (eval $ac_try) 2>&5
39530 ac_status=$?
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); }; }; then
39533 wx_cv_func_gettimeofday_has_2_args=no
39534else
39535 echo "$as_me: failed program was:" >&5
39536sed 's/^/| /' conftest.$ac_ext >&5
39537
39538
39539 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39540echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39541 wx_cv_func_gettimeofday_has_2_args=unknown
39542
39543
39544fi
ac1cb8d3 39545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39546
39547fi
ac1cb8d3 39548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39549 ac_ext=c
39550ac_cpp='$CPP $CPPFLAGS'
39551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39553ac_compiler_gnu=$ac_cv_c_compiler_gnu
39554
39555
39556fi
39557echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39558echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39559
39560 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39561 cat >>confdefs.h <<\_ACEOF
39562#define WX_GETTIMEOFDAY_NO_TZ 1
39563_ACEOF
39564
39565 fi
39566 fi
39567
39568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39569fi
39570
39571
39572if test "$wxUSE_SOCKETS" = "yes"; then
39573 if test "$wxUSE_MGL" = "1"; then
39574 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39575echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39576 wxUSE_SOCKETS="no"
39577 fi
39578fi
39579
39580if test "$wxUSE_SOCKETS" = "yes"; then
39581 if test "$TOOLKIT" != "MSW"; then
39582 echo "$as_me:$LINENO: checking for socket" >&5
39583echo $ECHO_N "checking for socket... $ECHO_C" >&6
39584if test "${ac_cv_func_socket+set}" = set; then
39585 echo $ECHO_N "(cached) $ECHO_C" >&6
39586else
39587 cat >conftest.$ac_ext <<_ACEOF
39588/* confdefs.h. */
39589_ACEOF
39590cat confdefs.h >>conftest.$ac_ext
39591cat >>conftest.$ac_ext <<_ACEOF
39592/* end confdefs.h. */
ac1cb8d3
VS
39593/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39595#define socket innocuous_socket
39596
a848cd7e
SC
39597/* System header to define __stub macros and hopefully few prototypes,
39598 which can conflict with char socket (); below.
39599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39601
a848cd7e
SC
39602#ifdef __STDC__
39603# include <limits.h>
39604#else
39605# include <assert.h>
39606#endif
ac1cb8d3
VS
39607
39608#undef socket
39609
a848cd7e
SC
39610/* Override any gcc2 internal prototype to avoid an error. */
39611#ifdef __cplusplus
39612extern "C"
39613{
39614#endif
39615/* We use char because int might match the return type of a gcc2
39616 builtin and then its argument prototype would still apply. */
39617char socket ();
39618/* The GNU C library defines this for functions which it implements
39619 to always fail with ENOSYS. Some functions are actually named
39620 something starting with __ and the normal name is an alias. */
39621#if defined (__stub_socket) || defined (__stub___socket)
39622choke me
39623#else
39624char (*f) () = socket;
39625#endif
39626#ifdef __cplusplus
39627}
39628#endif
39629
39630int
39631main ()
39632{
39633return f != socket;
39634 ;
39635 return 0;
39636}
39637_ACEOF
39638rm -f conftest.$ac_objext conftest$ac_exeext
39639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39640 (eval $ac_link) 2>conftest.er1
a848cd7e 39641 ac_status=$?
ac1cb8d3
VS
39642 grep -v '^ *+' conftest.er1 >conftest.err
39643 rm -f conftest.er1
39644 cat conftest.err >&5
a848cd7e
SC
39645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646 (exit $ac_status); } &&
6ebeb4c7 39647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39649 (eval $ac_try) 2>&5
39650 ac_status=$?
39651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39652 (exit $ac_status); }; } &&
39653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39655 (eval $ac_try) 2>&5
39656 ac_status=$?
39657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658 (exit $ac_status); }; }; then
39659 ac_cv_func_socket=yes
39660else
39661 echo "$as_me: failed program was:" >&5
39662sed 's/^/| /' conftest.$ac_ext >&5
39663
39664ac_cv_func_socket=no
39665fi
ac1cb8d3
VS
39666rm -f conftest.err conftest.$ac_objext \
39667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39668fi
39669echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39670echo "${ECHO_T}$ac_cv_func_socket" >&6
39671if test $ac_cv_func_socket = yes; then
39672 :
39673else
39674
39675 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39676echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39677if test "${ac_cv_lib_socket_socket+set}" = set; then
39678 echo $ECHO_N "(cached) $ECHO_C" >&6
39679else
39680 ac_check_lib_save_LIBS=$LIBS
39681LIBS="-lsocket $LIBS"
39682cat >conftest.$ac_ext <<_ACEOF
39683/* confdefs.h. */
39684_ACEOF
39685cat confdefs.h >>conftest.$ac_ext
39686cat >>conftest.$ac_ext <<_ACEOF
39687/* end confdefs.h. */
39688
39689/* Override any gcc2 internal prototype to avoid an error. */
39690#ifdef __cplusplus
39691extern "C"
39692#endif
39693/* We use char because int might match the return type of a gcc2
39694 builtin and then its argument prototype would still apply. */
39695char socket ();
39696int
39697main ()
39698{
39699socket ();
39700 ;
39701 return 0;
39702}
39703_ACEOF
39704rm -f conftest.$ac_objext conftest$ac_exeext
39705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39706 (eval $ac_link) 2>conftest.er1
a848cd7e 39707 ac_status=$?
ac1cb8d3
VS
39708 grep -v '^ *+' conftest.er1 >conftest.err
39709 rm -f conftest.er1
39710 cat conftest.err >&5
a848cd7e
SC
39711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); } &&
6ebeb4c7 39713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39715 (eval $ac_try) 2>&5
39716 ac_status=$?
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); }; } &&
39719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39721 (eval $ac_try) 2>&5
39722 ac_status=$?
39723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39724 (exit $ac_status); }; }; then
39725 ac_cv_lib_socket_socket=yes
39726else
39727 echo "$as_me: failed program was:" >&5
39728sed 's/^/| /' conftest.$ac_ext >&5
39729
39730ac_cv_lib_socket_socket=no
39731fi
ac1cb8d3
VS
39732rm -f conftest.err conftest.$ac_objext \
39733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39734LIBS=$ac_check_lib_save_LIBS
39735fi
39736echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39737echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39738if test $ac_cv_lib_socket_socket = yes; then
39739 if test "$INET_LINK" != " -lsocket"; then
39740 INET_LINK="$INET_LINK -lsocket"
39741 fi
39742else
39743
39744 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39745echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39746 wxUSE_SOCKETS=no
39747
39748
39749fi
39750
39751
39752
39753fi
39754
39755 fi
39756fi
39757
39758if test "$wxUSE_SOCKETS" = "yes" ; then
39759 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39760 ac_ext=cc
39761ac_cpp='$CXXCPP $CPPFLAGS'
39762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39765
39766 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39767echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39768if test "${wx_cv_type_getsockname3+set}" = set; then
39769 echo $ECHO_N "(cached) $ECHO_C" >&6
39770else
39771
39772 cat >conftest.$ac_ext <<_ACEOF
39773/* confdefs.h. */
39774_ACEOF
39775cat confdefs.h >>conftest.$ac_ext
39776cat >>conftest.$ac_ext <<_ACEOF
39777/* end confdefs.h. */
39778
39779 #include <sys/types.h>
39780 #include <sys/socket.h>
39781
39782int
39783main ()
39784{
39785
39786 socklen_t len;
39787 getsockname(0, 0, &len);
39788
39789 ;
39790 return 0;
39791}
39792_ACEOF
39793rm -f conftest.$ac_objext
39794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39795 (eval $ac_compile) 2>conftest.er1
a848cd7e 39796 ac_status=$?
ac1cb8d3
VS
39797 grep -v '^ *+' conftest.er1 >conftest.err
39798 rm -f conftest.er1
39799 cat conftest.err >&5
a848cd7e
SC
39800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39801 (exit $ac_status); } &&
6ebeb4c7 39802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39804 (eval $ac_try) 2>&5
39805 ac_status=$?
39806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807 (exit $ac_status); }; } &&
39808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39811 ac_status=$?
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; }; then
39814 wx_cv_type_getsockname3=socklen_t
39815else
39816 echo "$as_me: failed program was:" >&5
39817sed 's/^/| /' conftest.$ac_ext >&5
39818
39819
6459a506 39820 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 39821 if test "$GCC" = yes ; then
6459a506 39822 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
39823 fi
39824
39825 cat >conftest.$ac_ext <<_ACEOF
39826/* confdefs.h. */
39827_ACEOF
39828cat confdefs.h >>conftest.$ac_ext
39829cat >>conftest.$ac_ext <<_ACEOF
39830/* end confdefs.h. */
39831
39832 #include <sys/types.h>
39833 #include <sys/socket.h>
39834
39835int
39836main ()
39837{
39838
39839 size_t len;
39840 getsockname(0, 0, &len);
39841
39842 ;
39843 return 0;
39844}
39845_ACEOF
39846rm -f conftest.$ac_objext
39847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39848 (eval $ac_compile) 2>conftest.er1
a848cd7e 39849 ac_status=$?
ac1cb8d3
VS
39850 grep -v '^ *+' conftest.er1 >conftest.err
39851 rm -f conftest.er1
39852 cat conftest.err >&5
a848cd7e
SC
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); } &&
6ebeb4c7 39855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39857 (eval $ac_try) 2>&5
39858 ac_status=$?
39859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860 (exit $ac_status); }; } &&
39861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863 (eval $ac_try) 2>&5
39864 ac_status=$?
39865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866 (exit $ac_status); }; }; then
39867 wx_cv_type_getsockname3=size_t
39868else
39869 echo "$as_me: failed program was:" >&5
39870sed 's/^/| /' conftest.$ac_ext >&5
39871
39872cat >conftest.$ac_ext <<_ACEOF
39873/* confdefs.h. */
39874_ACEOF
39875cat confdefs.h >>conftest.$ac_ext
39876cat >>conftest.$ac_ext <<_ACEOF
39877/* end confdefs.h. */
39878
39879 #include <sys/types.h>
39880 #include <sys/socket.h>
39881
39882int
39883main ()
39884{
39885
39886 int len;
39887 getsockname(0, 0, &len);
39888
39889 ;
39890 return 0;
39891}
39892_ACEOF
39893rm -f conftest.$ac_objext
39894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39895 (eval $ac_compile) 2>conftest.er1
a848cd7e 39896 ac_status=$?
ac1cb8d3
VS
39897 grep -v '^ *+' conftest.er1 >conftest.err
39898 rm -f conftest.er1
39899 cat conftest.err >&5
a848cd7e
SC
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } &&
6ebeb4c7 39902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39905 ac_status=$?
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; } &&
39908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39911 ac_status=$?
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; }; then
39914 wx_cv_type_getsockname3=int
39915else
39916 echo "$as_me: failed program was:" >&5
39917sed 's/^/| /' conftest.$ac_ext >&5
39918
39919wx_cv_type_getsockname3=unknown
39920
39921fi
ac1cb8d3 39922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39923
39924fi
ac1cb8d3 39925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 39926
6459a506 39927 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39928
39929
39930fi
ac1cb8d3 39931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39932
39933fi
39934echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39935echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39936
39937 if test "$wx_cv_type_getsockname3" = "unknown"; then
39938 wxUSE_SOCKETS=no
39939 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39940echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39941 else
39942 cat >>confdefs.h <<_ACEOF
9e03e02d 39943#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39944_ACEOF
39945
39946 fi
39947 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39948echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39949if test "${wx_cv_type_getsockopt5+set}" = set; then
39950 echo $ECHO_N "(cached) $ECHO_C" >&6
39951else
39952
39953 cat >conftest.$ac_ext <<_ACEOF
39954/* confdefs.h. */
39955_ACEOF
39956cat confdefs.h >>conftest.$ac_ext
39957cat >>conftest.$ac_ext <<_ACEOF
39958/* end confdefs.h. */
39959
39960 #include <sys/types.h>
39961 #include <sys/socket.h>
39962
39963int
39964main ()
39965{
39966
39967 socklen_t len;
39968 getsockopt(0, 0, 0, 0, &len);
39969
39970 ;
39971 return 0;
39972}
39973_ACEOF
39974rm -f conftest.$ac_objext
39975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39976 (eval $ac_compile) 2>conftest.er1
39977 ac_status=$?
39978 grep -v '^ *+' conftest.er1 >conftest.err
39979 rm -f conftest.er1
39980 cat conftest.err >&5
39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } &&
6ebeb4c7 39983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39985 (eval $ac_try) 2>&5
39986 ac_status=$?
39987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988 (exit $ac_status); }; } &&
39989 { ac_try='test -s conftest.$ac_objext'
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39992 ac_status=$?
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; }; then
39995 wx_cv_type_getsockopt5=socklen_t
39996else
39997 echo "$as_me: failed program was:" >&5
39998sed 's/^/| /' conftest.$ac_ext >&5
39999
40000
6459a506 40001 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40002 if test "$GCC" = yes ; then
6459a506 40003 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40004 fi
40005
40006 cat >conftest.$ac_ext <<_ACEOF
40007/* confdefs.h. */
40008_ACEOF
40009cat confdefs.h >>conftest.$ac_ext
40010cat >>conftest.$ac_ext <<_ACEOF
40011/* end confdefs.h. */
40012
40013 #include <sys/types.h>
40014 #include <sys/socket.h>
40015
40016int
40017main ()
40018{
40019
40020 size_t len;
40021 getsockopt(0, 0, 0, 0, &len);
40022
40023 ;
40024 return 0;
40025}
40026_ACEOF
40027rm -f conftest.$ac_objext
40028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40029 (eval $ac_compile) 2>conftest.er1
40030 ac_status=$?
40031 grep -v '^ *+' conftest.er1 >conftest.err
40032 rm -f conftest.er1
40033 cat conftest.err >&5
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); } &&
6ebeb4c7 40036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; } &&
40042 { ac_try='test -s conftest.$ac_objext'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40045 ac_status=$?
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; }; then
40048 wx_cv_type_getsockopt5=size_t
40049else
40050 echo "$as_me: failed program was:" >&5
40051sed 's/^/| /' conftest.$ac_ext >&5
40052
40053cat >conftest.$ac_ext <<_ACEOF
40054/* confdefs.h. */
40055_ACEOF
40056cat confdefs.h >>conftest.$ac_ext
40057cat >>conftest.$ac_ext <<_ACEOF
40058/* end confdefs.h. */
40059
40060 #include <sys/types.h>
40061 #include <sys/socket.h>
40062
40063int
40064main ()
40065{
40066
40067 int len;
40068 getsockopt(0, 0, 0, 0, &len);
40069
40070 ;
40071 return 0;
40072}
40073_ACEOF
40074rm -f conftest.$ac_objext
40075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40076 (eval $ac_compile) 2>conftest.er1
40077 ac_status=$?
40078 grep -v '^ *+' conftest.er1 >conftest.err
40079 rm -f conftest.er1
40080 cat conftest.err >&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); } &&
6ebeb4c7 40083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40085 (eval $ac_try) 2>&5
40086 ac_status=$?
40087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); }; } &&
40089 { ac_try='test -s conftest.$ac_objext'
40090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40091 (eval $ac_try) 2>&5
40092 ac_status=$?
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); }; }; then
40095 wx_cv_type_getsockopt5=int
40096else
40097 echo "$as_me: failed program was:" >&5
40098sed 's/^/| /' conftest.$ac_ext >&5
40099
40100wx_cv_type_getsockopt5=unknown
40101
40102fi
40103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40104
40105fi
40106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40107
6459a506 40108 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40109
40110
40111fi
40112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40113
40114fi
40115echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40116echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40117
40118 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40119 wxUSE_SOCKETS=no
40120 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40121echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40122 else
40123 cat >>confdefs.h <<_ACEOF
40124#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40125_ACEOF
40126
40127 fi
4d4ff94c
VZ
40128 ac_ext=c
40129ac_cpp='$CPP $CPPFLAGS'
40130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40132ac_compiler_gnu=$ac_cv_c_compiler_gnu
40133
a848cd7e
SC
40134 fi
40135fi
40136
40137if test "$wxUSE_SOCKETS" = "yes" ; then
40138 cat >>confdefs.h <<\_ACEOF
40139#define wxUSE_SOCKETS 1
40140_ACEOF
40141
40142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40143fi
40144
40145if test "$wxUSE_PROTOCOL" = "yes"; then
40146 if test "$wxUSE_SOCKETS" != "yes"; then
40147 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40148echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40149 wxUSE_PROTOCOL=no
40150 fi
40151fi
40152
40153if test "$wxUSE_PROTOCOL" = "yes"; then
40154 cat >>confdefs.h <<\_ACEOF
40155#define wxUSE_PROTOCOL 1
40156_ACEOF
40157
40158
40159 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40160 cat >>confdefs.h <<\_ACEOF
40161#define wxUSE_PROTOCOL_HTTP 1
40162_ACEOF
40163
40164 fi
40165 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40166 cat >>confdefs.h <<\_ACEOF
40167#define wxUSE_PROTOCOL_FTP 1
40168_ACEOF
40169
40170 fi
40171 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40172 cat >>confdefs.h <<\_ACEOF
40173#define wxUSE_PROTOCOL_FILE 1
40174_ACEOF
40175
40176 fi
40177else
40178 if test "$wxUSE_FS_INET" = "yes"; then
40179 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40180echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40181 wxUSE_FS_INET="no"
40182 fi
40183fi
40184
40185if test "$wxUSE_URL" = "yes"; then
40186 if test "$wxUSE_PROTOCOL" != "yes"; then
40187 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40188echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40189 wxUSE_URL=no
40190 fi
40191 if test "$wxUSE_URL" = "yes"; then
40192 cat >>confdefs.h <<\_ACEOF
40193#define wxUSE_URL 1
40194_ACEOF
40195
40196 fi
40197fi
40198
40199if test "$wxUSE_FS_INET" = "yes"; then
40200 cat >>confdefs.h <<\_ACEOF
40201#define wxUSE_FS_INET 1
40202_ACEOF
40203
40204fi
40205
40206
ee45c548
MW
40207if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40208 wxUSE_JOYSTICK=no
40209
40210 if test "$TOOLKIT" = "MSW"; then
40211 wxUSE_JOYSTICK=yes
40212
40213 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40214 if test "$USE_DARWIN" = 1; then
40215 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40216echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40217 ac_ext=cc
40218ac_cpp='$CXXCPP $CPPFLAGS'
40219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40222
40223 cat >conftest.$ac_ext <<_ACEOF
40224/* confdefs.h. */
40225_ACEOF
40226cat confdefs.h >>conftest.$ac_ext
40227cat >>conftest.$ac_ext <<_ACEOF
40228/* end confdefs.h. */
40229 #include <IOKit/hid/IOHIDLib.h>
40230int
40231main ()
40232{
40233 IOHIDQueueInterface *qi = NULL;
40234 IOHIDCallbackFunction cb = NULL;
40235 qi->setEventCallout(NULL, cb, NULL, NULL);
40236 ;
40237 return 0;
40238}
40239_ACEOF
40240rm -f conftest.$ac_objext
40241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40242 (eval $ac_compile) 2>conftest.er1
40243 ac_status=$?
40244 grep -v '^ *+' conftest.er1 >conftest.err
40245 rm -f conftest.er1
40246 cat conftest.err >&5
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); } &&
6ebeb4c7 40249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251 (eval $ac_try) 2>&5
40252 ac_status=$?
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); }; } &&
40255 { ac_try='test -s conftest.$ac_objext'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40258 ac_status=$?
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
40261 wxUSE_JOYSTICK=yes
a848cd7e 40262
ee45c548
MW
40263else
40264 echo "$as_me: failed program was:" >&5
40265sed 's/^/| /' conftest.$ac_ext >&5
40266
40267fi
40268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40269 ac_ext=c
40270ac_cpp='$CPP $CPPFLAGS'
40271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40273ac_compiler_gnu=$ac_cv_c_compiler_gnu
40274
40275 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40276echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40277 fi
40278
40279 else
a848cd7e
SC
40280
40281for ac_header in linux/joystick.h
40282do
40283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40284if eval "test \"\${$as_ac_Header+set}\" = set"; then
40285 echo "$as_me:$LINENO: checking for $ac_header" >&5
40286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40287if eval "test \"\${$as_ac_Header+set}\" = set"; then
40288 echo $ECHO_N "(cached) $ECHO_C" >&6
40289fi
40290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40292else
40293 # Is the header compilable?
40294echo "$as_me:$LINENO: checking $ac_header usability" >&5
40295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40296cat >conftest.$ac_ext <<_ACEOF
40297/* confdefs.h. */
40298_ACEOF
40299cat confdefs.h >>conftest.$ac_ext
40300cat >>conftest.$ac_ext <<_ACEOF
40301/* end confdefs.h. */
40302$ac_includes_default
40303#include <$ac_header>
40304_ACEOF
40305rm -f conftest.$ac_objext
40306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40307 (eval $ac_compile) 2>conftest.er1
a848cd7e 40308 ac_status=$?
ac1cb8d3
VS
40309 grep -v '^ *+' conftest.er1 >conftest.err
40310 rm -f conftest.er1
40311 cat conftest.err >&5
a848cd7e
SC
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); } &&
6ebeb4c7 40314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40316 (eval $ac_try) 2>&5
40317 ac_status=$?
40318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319 (exit $ac_status); }; } &&
40320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40322 (eval $ac_try) 2>&5
40323 ac_status=$?
40324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40325 (exit $ac_status); }; }; then
40326 ac_header_compiler=yes
40327else
40328 echo "$as_me: failed program was:" >&5
40329sed 's/^/| /' conftest.$ac_ext >&5
40330
40331ac_header_compiler=no
40332fi
ac1cb8d3 40333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40335echo "${ECHO_T}$ac_header_compiler" >&6
40336
40337# Is the header present?
40338echo "$as_me:$LINENO: checking $ac_header presence" >&5
40339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40340cat >conftest.$ac_ext <<_ACEOF
40341/* confdefs.h. */
40342_ACEOF
40343cat confdefs.h >>conftest.$ac_ext
40344cat >>conftest.$ac_ext <<_ACEOF
40345/* end confdefs.h. */
40346#include <$ac_header>
40347_ACEOF
40348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40350 ac_status=$?
40351 grep -v '^ *+' conftest.er1 >conftest.err
40352 rm -f conftest.er1
40353 cat conftest.err >&5
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); } >/dev/null; then
40356 if test -s conftest.err; then
40357 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40359 else
40360 ac_cpp_err=
40361 fi
40362else
40363 ac_cpp_err=yes
40364fi
40365if test -z "$ac_cpp_err"; then
40366 ac_header_preproc=yes
40367else
40368 echo "$as_me: failed program was:" >&5
40369sed 's/^/| /' conftest.$ac_ext >&5
40370
40371 ac_header_preproc=no
40372fi
40373rm -f conftest.err conftest.$ac_ext
40374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40375echo "${ECHO_T}$ac_header_preproc" >&6
40376
40377# So? What about this header?
ac1cb8d3
VS
40378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40379 yes:no: )
a848cd7e
SC
40380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40384 ac_header_preproc=yes
a848cd7e 40385 ;;
ac1cb8d3 40386 no:yes:* )
a848cd7e
SC
40387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40399 (
40400 cat <<\_ASBOX
ac1cb8d3
VS
40401## ----------------------------------------- ##
40402## Report this to wx-dev@lists.wxwidgets.org ##
40403## ----------------------------------------- ##
a848cd7e
SC
40404_ASBOX
40405 ) |
40406 sed "s/^/$as_me: WARNING: /" >&2
40407 ;;
40408esac
40409echo "$as_me:$LINENO: checking for $ac_header" >&5
40410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40411if eval "test \"\${$as_ac_Header+set}\" = set"; then
40412 echo $ECHO_N "(cached) $ECHO_C" >&6
40413else
ac1cb8d3 40414 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40415fi
40416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40418
40419fi
40420if test `eval echo '${'$as_ac_Header'}'` = yes; then
40421 cat >>confdefs.h <<_ACEOF
40422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40423_ACEOF
ee45c548 40424 wxUSE_JOYSTICK=yes
a848cd7e
SC
40425fi
40426
40427done
40428
ee45c548 40429 fi
4cb1d3da 40430
ee45c548
MW
40431 if test "$wxUSE_JOYSTICK" = "yes"; then
40432 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40433#define wxUSE_JOYSTICK 1
40434_ACEOF
40435
ee45c548
MW
40436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40437 else
40438 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40439echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40440 fi
40441fi
40442
40443
40444
40445if test "$wxUSE_FONTMAP" = "yes" ; then
40446 cat >>confdefs.h <<\_ACEOF
40447#define wxUSE_FONTMAP 1
40448_ACEOF
40449
40450fi
40451
40452if test "$wxUSE_UNICODE" = "yes" ; then
40453 cat >>confdefs.h <<\_ACEOF
40454#define wxUSE_UNICODE 1
40455_ACEOF
40456
40457
40458 if test "$USE_WIN32" != 1; then
40459 wxUSE_UNICODE_MSLU=no
40460 fi
40461
40462 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40463 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40464echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40465if test "${ac_cv_lib_unicows_main+set}" = set; then
40466 echo $ECHO_N "(cached) $ECHO_C" >&6
40467else
40468 ac_check_lib_save_LIBS=$LIBS
40469LIBS="-lunicows $LIBS"
40470cat >conftest.$ac_ext <<_ACEOF
40471/* confdefs.h. */
40472_ACEOF
40473cat confdefs.h >>conftest.$ac_ext
40474cat >>conftest.$ac_ext <<_ACEOF
40475/* end confdefs.h. */
40476
40477
40478int
40479main ()
40480{
40481main ();
40482 ;
40483 return 0;
40484}
40485_ACEOF
40486rm -f conftest.$ac_objext conftest$ac_exeext
40487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40488 (eval $ac_link) 2>conftest.er1
a848cd7e 40489 ac_status=$?
ac1cb8d3
VS
40490 grep -v '^ *+' conftest.er1 >conftest.err
40491 rm -f conftest.er1
40492 cat conftest.err >&5
a848cd7e
SC
40493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40494 (exit $ac_status); } &&
6ebeb4c7 40495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40497 (eval $ac_try) 2>&5
40498 ac_status=$?
40499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500 (exit $ac_status); }; } &&
40501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40503 (eval $ac_try) 2>&5
40504 ac_status=$?
40505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506 (exit $ac_status); }; }; then
40507 ac_cv_lib_unicows_main=yes
40508else
40509 echo "$as_me: failed program was:" >&5
40510sed 's/^/| /' conftest.$ac_ext >&5
40511
40512ac_cv_lib_unicows_main=no
40513fi
ac1cb8d3
VS
40514rm -f conftest.err conftest.$ac_objext \
40515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40516LIBS=$ac_check_lib_save_LIBS
40517fi
40518echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40519echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40520if test $ac_cv_lib_unicows_main = yes; then
40521
40522 cat >>confdefs.h <<\_ACEOF
40523#define wxUSE_UNICODE_MSLU 1
40524_ACEOF
40525
40526
40527else
40528
40529 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40530 Applications will only run on Windows NT/2000/XP!" >&5
40531echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40532 Applications will only run on Windows NT/2000/XP!" >&2;}
40533 wxUSE_UNICODE_MSLU=no
40534
40535fi
40536
40537 fi
40538fi
40539
40540if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40541 cat >>confdefs.h <<\_ACEOF
40542#define wxUSE_EXPERIMENTAL_PRINTF 1
40543_ACEOF
40544
40545fi
40546
40547
40548if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40549 cat >>confdefs.h <<\_ACEOF
40550#define wxUSE_POSTSCRIPT 1
40551_ACEOF
40552
40553fi
40554
40555cat >>confdefs.h <<\_ACEOF
40556#define wxUSE_AFM_FOR_POSTSCRIPT 1
40557_ACEOF
40558
40559
40560cat >>confdefs.h <<\_ACEOF
40561#define wxUSE_NORMALIZED_PS_FONTS 1
40562_ACEOF
40563
40564
40565
40566if test "$wxUSE_CONSTRAINTS" = "yes"; then
40567 cat >>confdefs.h <<\_ACEOF
40568#define wxUSE_CONSTRAINTS 1
40569_ACEOF
40570
40571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40572fi
40573
8a7b1113
VZ
40574if test "$wxUSE_MDI" = "yes"; then
40575 cat >>confdefs.h <<\_ACEOF
40576#define wxUSE_MDI 1
40577_ACEOF
40578
40579
40580 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40581 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40582#define wxUSE_MDI_ARCHITECTURE 1
40583_ACEOF
40584
8a7b1113
VZ
40585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40586 fi
a848cd7e
SC
40587fi
40588
40589if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40590 cat >>confdefs.h <<\_ACEOF
40591#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40592_ACEOF
40593
40594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40595 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40597 fi
40598fi
40599
40600if test "$wxUSE_HELP" = "yes"; then
40601 cat >>confdefs.h <<\_ACEOF
40602#define wxUSE_HELP 1
40603_ACEOF
40604
40605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40606
40607 if test "$wxUSE_MSW" = 1; then
40608 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40609 cat >>confdefs.h <<\_ACEOF
40610#define wxUSE_MS_HTML_HELP 1
40611_ACEOF
40612
40613 fi
40614 fi
40615
40616 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40617 if test "$wxUSE_HTML" = "yes"; then
40618 cat >>confdefs.h <<\_ACEOF
40619#define wxUSE_WXHTML_HELP 1
40620_ACEOF
40621
40622 else
40623 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40624echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40625 wxUSE_WXHTML_HELP=no
40626 fi
40627 fi
40628fi
40629
40630if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40631 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40632 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40633echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40634 else
40635 cat >>confdefs.h <<\_ACEOF
40636#define wxUSE_PRINTING_ARCHITECTURE 1
40637_ACEOF
40638
40639 fi
40640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40641fi
40642
40643if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40644 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40645echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40646 { (exit 1); exit 1; }; }
40647fi
40648
40649
efdf6afe
VZ
40650if test "$wxUSE_METAFILE" = "yes"; then
40651 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40652 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40653echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40654 wxUSE_METAFILE=no
40655 fi
40656fi
40657
40658
a848cd7e
SC
40659if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40660 -o "$wxUSE_CLIPBOARD" = "yes" \
40661 -o "$wxUSE_OLE" = "yes" \
40662 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40663
40664for ac_header in ole2.h
40665do
40666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40667if eval "test \"\${$as_ac_Header+set}\" = set"; then
40668 echo "$as_me:$LINENO: checking for $ac_header" >&5
40669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40670if eval "test \"\${$as_ac_Header+set}\" = set"; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40672fi
40673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40675else
40676 # Is the header compilable?
40677echo "$as_me:$LINENO: checking $ac_header usability" >&5
40678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40679cat >conftest.$ac_ext <<_ACEOF
40680/* confdefs.h. */
40681_ACEOF
40682cat confdefs.h >>conftest.$ac_ext
40683cat >>conftest.$ac_ext <<_ACEOF
40684/* end confdefs.h. */
40685$ac_includes_default
40686#include <$ac_header>
40687_ACEOF
40688rm -f conftest.$ac_objext
40689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40690 (eval $ac_compile) 2>conftest.er1
a848cd7e 40691 ac_status=$?
ac1cb8d3
VS
40692 grep -v '^ *+' conftest.er1 >conftest.err
40693 rm -f conftest.er1
40694 cat conftest.err >&5
a848cd7e
SC
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); } &&
6ebeb4c7 40697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40700 ac_status=$?
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; } &&
40703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40705 (eval $ac_try) 2>&5
40706 ac_status=$?
40707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40708 (exit $ac_status); }; }; then
40709 ac_header_compiler=yes
40710else
40711 echo "$as_me: failed program was:" >&5
40712sed 's/^/| /' conftest.$ac_ext >&5
40713
40714ac_header_compiler=no
40715fi
ac1cb8d3 40716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40718echo "${ECHO_T}$ac_header_compiler" >&6
40719
40720# Is the header present?
40721echo "$as_me:$LINENO: checking $ac_header presence" >&5
40722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40723cat >conftest.$ac_ext <<_ACEOF
40724/* confdefs.h. */
40725_ACEOF
40726cat confdefs.h >>conftest.$ac_ext
40727cat >>conftest.$ac_ext <<_ACEOF
40728/* end confdefs.h. */
40729#include <$ac_header>
40730_ACEOF
40731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40733 ac_status=$?
40734 grep -v '^ *+' conftest.er1 >conftest.err
40735 rm -f conftest.er1
40736 cat conftest.err >&5
40737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 (exit $ac_status); } >/dev/null; then
40739 if test -s conftest.err; then
40740 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40742 else
40743 ac_cpp_err=
40744 fi
40745else
40746 ac_cpp_err=yes
40747fi
40748if test -z "$ac_cpp_err"; then
40749 ac_header_preproc=yes
40750else
40751 echo "$as_me: failed program was:" >&5
40752sed 's/^/| /' conftest.$ac_ext >&5
40753
40754 ac_header_preproc=no
40755fi
40756rm -f conftest.err conftest.$ac_ext
40757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40758echo "${ECHO_T}$ac_header_preproc" >&6
40759
40760# So? What about this header?
ac1cb8d3
VS
40761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40762 yes:no: )
a848cd7e
SC
40763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40767 ac_header_preproc=yes
a848cd7e 40768 ;;
ac1cb8d3 40769 no:yes:* )
a848cd7e
SC
40770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40782 (
40783 cat <<\_ASBOX
ac1cb8d3
VS
40784## ----------------------------------------- ##
40785## Report this to wx-dev@lists.wxwidgets.org ##
40786## ----------------------------------------- ##
a848cd7e
SC
40787_ASBOX
40788 ) |
40789 sed "s/^/$as_me: WARNING: /" >&2
40790 ;;
40791esac
40792echo "$as_me:$LINENO: checking for $ac_header" >&5
40793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40794if eval "test \"\${$as_ac_Header+set}\" = set"; then
40795 echo $ECHO_N "(cached) $ECHO_C" >&6
40796else
ac1cb8d3 40797 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40798fi
40799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40801
40802fi
40803if test `eval echo '${'$as_ac_Header'}'` = yes; then
40804 cat >>confdefs.h <<_ACEOF
40805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40806_ACEOF
40807
40808fi
40809
40810done
40811
40812
40813 if test "$ac_cv_header_ole2_h" = "yes" ; then
40814 if test "$GCC" = yes ; then
40815
40816
40817 ac_ext=cc
40818ac_cpp='$CXXCPP $CPPFLAGS'
40819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40822
40823
40824 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40825echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40826 cat >conftest.$ac_ext <<_ACEOF
40827/* confdefs.h. */
40828_ACEOF
40829cat confdefs.h >>conftest.$ac_ext
40830cat >>conftest.$ac_ext <<_ACEOF
40831/* end confdefs.h. */
40832#include <windows.h>
40833 #include <ole2.h>
40834int
40835main ()
40836{
40837
40838 ;
40839 return 0;
40840}
40841_ACEOF
40842rm -f conftest.$ac_objext
40843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40844 (eval $ac_compile) 2>conftest.er1
a848cd7e 40845 ac_status=$?
ac1cb8d3
VS
40846 grep -v '^ *+' conftest.er1 >conftest.err
40847 rm -f conftest.er1
40848 cat conftest.err >&5
a848cd7e
SC
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); } &&
6ebeb4c7 40851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40854 ac_status=$?
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; } &&
40857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859 (eval $ac_try) 2>&5
40860 ac_status=$?
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; }; then
40863 echo "$as_me:$LINENO: result: no" >&5
40864echo "${ECHO_T}no" >&6
40865else
40866 echo "$as_me: failed program was:" >&5
40867sed 's/^/| /' conftest.$ac_ext >&5
40868
40869echo "$as_me:$LINENO: result: yes" >&5
40870echo "${ECHO_T}yes" >&6
40871 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40872fi
ac1cb8d3 40873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40874 ac_ext=c
40875ac_cpp='$CPP $CPPFLAGS'
40876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40878ac_compiler_gnu=$ac_cv_c_compiler_gnu
40879
a848cd7e
SC
40880 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40881 if test "$wxUSE_OLE" = "yes" ; then
40882 cat >>confdefs.h <<\_ACEOF
40883#define wxUSE_OLE 1
40884_ACEOF
40885
0b78747f 40886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40887 fi
40888 fi
40889
40890 if test "$wxUSE_DATAOBJ" = "yes" ; then
40891 cat >>confdefs.h <<\_ACEOF
40892#define wxUSE_DATAOBJ 1
40893_ACEOF
40894
40895 fi
40896 else
40897 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40898echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40899
40900 wxUSE_CLIPBOARD=no
40901 wxUSE_DRAG_AND_DROP=no
40902 wxUSE_DATAOBJ=no
40903 wxUSE_OLE=no
40904 fi
40905
40906 if test "$wxUSE_METAFILE" = "yes"; then
40907 cat >>confdefs.h <<\_ACEOF
40908#define wxUSE_METAFILE 1
40909_ACEOF
40910
40911
40912 cat >>confdefs.h <<\_ACEOF
40913#define wxUSE_ENH_METAFILE 1
40914_ACEOF
40915
40916 fi
40917fi
40918
40919if test "$wxUSE_IPC" = "yes"; then
0b78747f 40920 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40921 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40922echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40923 wxUSE_IPC=no
a848cd7e
SC
40924 fi
40925
0b78747f
MW
40926 if test "$wxUSE_IPC" = "yes"; then
40927 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40928#define wxUSE_IPC 1
40929_ACEOF
40930
0b78747f
MW
40931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40932 fi
a848cd7e
SC
40933fi
40934
eb730a0c 40935if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40936 if test "$wxUSE_MGL" = 1; then
40937 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40938echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40939 wxUSE_DATAOBJ=no
40940 else
40941 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40942#define wxUSE_DATAOBJ 1
40943_ACEOF
40944
2113bc77 40945 fi
eb730a0c
JS
40946else
40947 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40948echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40949 wxUSE_CLIPBOARD=no
40950 wxUSE_DRAG_AND_DROP=no
40951fi
40952
a848cd7e
SC
40953if test "$wxUSE_CLIPBOARD" = "yes"; then
40954 if test "$wxUSE_MGL" = 1; then
40955 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40956echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40957 wxUSE_CLIPBOARD=no
40958 fi
40959
40960 if test "$wxUSE_CLIPBOARD" = "yes"; then
40961 cat >>confdefs.h <<\_ACEOF
40962#define wxUSE_CLIPBOARD 1
40963_ACEOF
40964
a848cd7e
SC
40965 fi
40966fi
40967
40968if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40969 if test "$wxUSE_GTK" = 1; then
40970 if test "$WXGTK12" != 1; then
40971 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40972echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40973 wxUSE_DRAG_AND_DROP=no
40974 fi
40975 fi
40976
40977 if test "$wxUSE_MOTIF" = 1; then
40978 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40979echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40980 wxUSE_DRAG_AND_DROP=no
40981 fi
40982
40983 if test "$wxUSE_X11" = 1; then
40984 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40985echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40986 wxUSE_DRAG_AND_DROP=no
40987 fi
40988
40989 if test "$wxUSE_MGL" = 1; then
40990 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40991echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40992 wxUSE_DRAG_AND_DROP=no
40993 fi
40994
40995 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40996 cat >>confdefs.h <<\_ACEOF
40997#define wxUSE_DRAG_AND_DROP 1
40998_ACEOF
40999
41000 fi
41001
41002fi
41003
41004if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41006fi
41007
41008if test "$wxUSE_SPLINES" = "yes" ; then
41009 cat >>confdefs.h <<\_ACEOF
41010#define wxUSE_SPLINES 1
41011_ACEOF
41012
41013fi
41014
fbe2ca43
SN
41015if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41016 cat >>confdefs.h <<\_ACEOF
41017#define wxUSE_MOUSEWHEEL 1
41018_ACEOF
41019
41020fi
41021
a848cd7e
SC
41022
41023USES_CONTROLS=0
41024if test "$wxUSE_CONTROLS" = "yes"; then
41025 USES_CONTROLS=1
41026fi
41027
41028if test "$wxUSE_ACCEL" = "yes"; then
41029 cat >>confdefs.h <<\_ACEOF
41030#define wxUSE_ACCEL 1
41031_ACEOF
41032
41033 USES_CONTROLS=1
41034fi
41035
41036if test "$wxUSE_BUTTON" = "yes"; then
41037 cat >>confdefs.h <<\_ACEOF
41038#define wxUSE_BUTTON 1
41039_ACEOF
41040
41041 USES_CONTROLS=1
41042fi
41043
41044if test "$wxUSE_BMPBUTTON" = "yes"; then
41045 cat >>confdefs.h <<\_ACEOF
41046#define wxUSE_BMPBUTTON 1
41047_ACEOF
41048
41049 USES_CONTROLS=1
41050fi
41051
41052if test "$wxUSE_CALCTRL" = "yes"; then
41053 cat >>confdefs.h <<\_ACEOF
41054#define wxUSE_CALENDARCTRL 1
41055_ACEOF
41056
41057 USES_CONTROLS=1
41058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41059fi
41060
41061if test "$wxUSE_CARET" = "yes"; then
41062 cat >>confdefs.h <<\_ACEOF
41063#define wxUSE_CARET 1
41064_ACEOF
41065
41066 USES_CONTROLS=1
41067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41068fi
41069
41070if test "$wxUSE_COMBOBOX" = "yes"; then
41071 cat >>confdefs.h <<\_ACEOF
41072#define wxUSE_COMBOBOX 1
41073_ACEOF
41074
41075 USES_CONTROLS=1
41076fi
41077
41078if test "$wxUSE_CHOICE" = "yes"; then
41079 cat >>confdefs.h <<\_ACEOF
41080#define wxUSE_CHOICE 1
41081_ACEOF
41082
41083 USES_CONTROLS=1
41084fi
41085
92bbdbcd
WS
41086if test "$wxUSE_CHOICEBOOK" = "yes"; then
41087 cat >>confdefs.h <<\_ACEOF
41088#define wxUSE_CHOICEBOOK 1
41089_ACEOF
41090
41091 USES_CONTROLS=1
41092fi
41093
a848cd7e
SC
41094if test "$wxUSE_CHECKBOX" = "yes"; then
41095 cat >>confdefs.h <<\_ACEOF
41096#define wxUSE_CHECKBOX 1
41097_ACEOF
41098
41099 USES_CONTROLS=1
41100fi
41101
41102if test "$wxUSE_CHECKLST" = "yes"; then
41103 cat >>confdefs.h <<\_ACEOF
41104#define wxUSE_CHECKLISTBOX 1
41105_ACEOF
41106
41107 USES_CONTROLS=1
41108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41109fi
41110
da98e9be
VZ
41111if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41112 cat >>confdefs.h <<\_ACEOF
41113#define wxUSE_DATEPICKCTRL 1
41114_ACEOF
41115
41116 USES_CONTROLS=1
41117fi
41118
a848cd7e
SC
41119if test "$wxUSE_DISPLAY" = "yes"; then
41120 cat >>confdefs.h <<\_ACEOF
41121#define wxUSE_DISPLAY 1
41122_ACEOF
41123
0b78747f 41124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41125fi
41126
41127if test "$wxUSE_GAUGE" = "yes"; then
41128 cat >>confdefs.h <<\_ACEOF
41129#define wxUSE_GAUGE 1
41130_ACEOF
41131
41132 USES_CONTROLS=1
41133fi
41134
41135if test "$wxUSE_GRID" = "yes"; then
41136 cat >>confdefs.h <<\_ACEOF
41137#define wxUSE_GRID 1
41138_ACEOF
41139
41140 USES_CONTROLS=1
41141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41142fi
41143
41144if test "$wxUSE_IMAGLIST" = "yes"; then
41145 cat >>confdefs.h <<\_ACEOF
41146#define wxUSE_IMAGLIST 1
41147_ACEOF
41148
41149fi
41150
41151if test "$wxUSE_LISTBOOK" = "yes"; then
41152 cat >>confdefs.h <<\_ACEOF
41153#define wxUSE_LISTBOOK 1
41154_ACEOF
41155
41156 USES_CONTROLS=1
41157fi
41158
41159if test "$wxUSE_LISTBOX" = "yes"; then
41160 cat >>confdefs.h <<\_ACEOF
41161#define wxUSE_LISTBOX 1
41162_ACEOF
41163
41164 USES_CONTROLS=1
0b78747f 41165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41166fi
41167
41168if test "$wxUSE_LISTCTRL" = "yes"; then
41169 if test "$wxUSE_IMAGLIST" = "yes"; then
41170 cat >>confdefs.h <<\_ACEOF
41171#define wxUSE_LISTCTRL 1
41172_ACEOF
41173
41174 USES_CONTROLS=1
41175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41176 else
41177 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41178echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41179 fi
41180fi
41181
41182if test "$wxUSE_NOTEBOOK" = "yes"; then
41183 cat >>confdefs.h <<\_ACEOF
41184#define wxUSE_NOTEBOOK 1
41185_ACEOF
41186
41187 USES_CONTROLS=1
41188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41189fi
41190
41191
41192if test "$wxUSE_RADIOBOX" = "yes"; then
41193 cat >>confdefs.h <<\_ACEOF
41194#define wxUSE_RADIOBOX 1
41195_ACEOF
41196
41197 USES_CONTROLS=1
41198fi
41199
41200if test "$wxUSE_RADIOBTN" = "yes"; then
41201 cat >>confdefs.h <<\_ACEOF
41202#define wxUSE_RADIOBTN 1
41203_ACEOF
41204
41205 USES_CONTROLS=1
41206fi
41207
41208if test "$wxUSE_SASH" = "yes"; then
41209 cat >>confdefs.h <<\_ACEOF
41210#define wxUSE_SASH 1
41211_ACEOF
41212
41213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41214fi
41215
41216if test "$wxUSE_SCROLLBAR" = "yes"; then
41217 cat >>confdefs.h <<\_ACEOF
41218#define wxUSE_SCROLLBAR 1
41219_ACEOF
41220
41221 USES_CONTROLS=1
41222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41223fi
41224
41225if test "$wxUSE_SLIDER" = "yes"; then
41226 cat >>confdefs.h <<\_ACEOF
41227#define wxUSE_SLIDER 1
41228_ACEOF
41229
41230 USES_CONTROLS=1
41231fi
41232
41233if test "$wxUSE_SPINBTN" = "yes"; then
41234 cat >>confdefs.h <<\_ACEOF
41235#define wxUSE_SPINBTN 1
41236_ACEOF
41237
41238 USES_CONTROLS=1
41239fi
41240
41241if test "$wxUSE_SPINCTRL" = "yes"; then
41242 cat >>confdefs.h <<\_ACEOF
41243#define wxUSE_SPINCTRL 1
41244_ACEOF
41245
41246 USES_CONTROLS=1
41247fi
41248
41249if test "$wxUSE_SPLITTER" = "yes"; then
41250 cat >>confdefs.h <<\_ACEOF
41251#define wxUSE_SPLITTER 1
41252_ACEOF
41253
41254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41255fi
41256
41257if test "$wxUSE_STATBMP" = "yes"; then
41258 cat >>confdefs.h <<\_ACEOF
41259#define wxUSE_STATBMP 1
41260_ACEOF
41261
41262 USES_CONTROLS=1
41263fi
41264
41265if test "$wxUSE_STATBOX" = "yes"; then
41266 cat >>confdefs.h <<\_ACEOF
41267#define wxUSE_STATBOX 1
41268_ACEOF
41269
41270 USES_CONTROLS=1
41271fi
41272
41273if test "$wxUSE_STATTEXT" = "yes"; then
41274 cat >>confdefs.h <<\_ACEOF
41275#define wxUSE_STATTEXT 1
41276_ACEOF
41277
41278 USES_CONTROLS=1
41279fi
41280
41281if test "$wxUSE_STATLINE" = "yes"; then
41282 cat >>confdefs.h <<\_ACEOF
41283#define wxUSE_STATLINE 1
41284_ACEOF
41285
41286 USES_CONTROLS=1
41287fi
41288
41289if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41290 cat >>confdefs.h <<\_ACEOF
41291#define wxUSE_NATIVE_STATUSBAR 1
41292_ACEOF
41293
a848cd7e
SC
41294 cat >>confdefs.h <<\_ACEOF
41295#define wxUSE_STATUSBAR 1
41296_ACEOF
41297
41298 USES_CONTROLS=1
41299
41300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41301fi
41302
41303if test "$wxUSE_TABDIALOG" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305#define wxUSE_TAB_DIALOG 1
41306_ACEOF
41307
a848cd7e
SC
41308fi
41309
41310if test "$wxUSE_TEXTCTRL" = "yes"; then
41311 cat >>confdefs.h <<\_ACEOF
41312#define wxUSE_TEXTCTRL 1
41313_ACEOF
41314
41315 USES_CONTROLS=1
41316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41317fi
41318
41319if test "$wxUSE_TOGGLEBTN" = "yes"; then
41320 if test "$wxUSE_COCOA" = 1 ; then
41321 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41322echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41323 wxUSE_TOGGLEBTN=no
41324 fi
41325 if test "$wxUSE_UNIVERSAL" = "yes"; then
41326 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41327echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41328 wxUSE_TOGGLEBTN=no
41329 fi
41330
41331 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41332 cat >>confdefs.h <<\_ACEOF
41333#define wxUSE_TOGGLEBTN 1
41334_ACEOF
41335
41336 USES_CONTROLS=1
41337 fi
41338fi
41339
41340if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41341 cat >>confdefs.h <<\_ACEOF
41342#define wxUSE_TOOLBAR_SIMPLE 1
41343_ACEOF
41344
41345 wxUSE_TOOLBAR="yes"
41346 USES_CONTROLS=1
41347fi
41348
41349if test "$wxUSE_TOOLBAR" = "yes"; then
41350 cat >>confdefs.h <<\_ACEOF
41351#define wxUSE_TOOLBAR 1
41352_ACEOF
41353
41354 USES_CONTROLS=1
41355
41356 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41357 wxUSE_TOOLBAR_NATIVE="yes"
41358 fi
41359
41360 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41361 cat >>confdefs.h <<\_ACEOF
41362#define wxUSE_TOOLBAR_NATIVE 1
41363_ACEOF
41364
41365 USES_CONTROLS=1
41366 fi
41367
41368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41369fi
41370
41371if test "$wxUSE_TOOLTIPS" = "yes"; then
41372 if test "$wxUSE_MOTIF" = 1; then
41373 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41374echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41375 else
41376 if test "$wxUSE_UNIVERSAL" = "yes"; then
41377 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41378echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41379 else
41380 cat >>confdefs.h <<\_ACEOF
41381#define wxUSE_TOOLTIPS 1
41382_ACEOF
41383
41384 fi
41385 fi
41386fi
41387
41388if test "$wxUSE_TREECTRL" = "yes"; then
41389 if test "$wxUSE_IMAGLIST" = "yes"; then
41390 cat >>confdefs.h <<\_ACEOF
41391#define wxUSE_TREECTRL 1
41392_ACEOF
41393
41394 USES_CONTROLS=1
41395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41396 else
41397 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41398echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41399 fi
41400fi
41401
41402if test "$wxUSE_POPUPWIN" = "yes"; then
41403 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41404 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41405echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41406 else
41407 if test "$wxUSE_PM" = 1; then
41408 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41409echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41410 else
41411 cat >>confdefs.h <<\_ACEOF
41412#define wxUSE_POPUPWIN 1
41413_ACEOF
41414
0b78747f 41415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41416
41417 USES_CONTROLS=1
41418 fi
41419 fi
41420fi
41421
0dcd06dd 41422if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41423 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41424 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41425echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41426 else
41427 cat >>confdefs.h <<\_ACEOF
41428#define wxUSE_DIALUP_MANAGER 1
41429_ACEOF
41430
41431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41432 fi
41433fi
41434
a848cd7e
SC
41435if test "$wxUSE_TIPWINDOW" = "yes"; then
41436 if test "$wxUSE_PM" = 1; then
41437 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41438echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41439 else
41440 cat >>confdefs.h <<\_ACEOF
41441#define wxUSE_TIPWINDOW 1
41442_ACEOF
41443
41444 fi
41445fi
41446
41447if test "$USES_CONTROLS" = 1; then
41448 cat >>confdefs.h <<\_ACEOF
41449#define wxUSE_CONTROLS 1
41450_ACEOF
41451
41452fi
41453
41454
41455if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41456 cat >>confdefs.h <<\_ACEOF
41457#define wxUSE_ACCESSIBILITY 1
41458_ACEOF
41459
41460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41461fi
41462
38b4a946
VZ
41463if test "$wxUSE_DC_CACHEING" = "yes"; then
41464 cat >>confdefs.h <<\_ACEOF
41465#define wxUSE_DC_CACHEING 1
41466_ACEOF
41467
41468fi
41469
a848cd7e
SC
41470if test "$wxUSE_DRAGIMAGE" = "yes"; then
41471 cat >>confdefs.h <<\_ACEOF
41472#define wxUSE_DRAGIMAGE 1
41473_ACEOF
41474
41475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41476fi
41477
41478if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41479 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41480 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41481echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41482 else
41483 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41484#define wxUSE_EXCEPTIONS 1
41485_ACEOF
41486
07bea8f0
VS
41487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41488 fi
a848cd7e
SC
41489fi
41490
41491USE_HTML=0
41492if test "$wxUSE_HTML" = "yes"; then
41493 cat >>confdefs.h <<\_ACEOF
41494#define wxUSE_HTML 1
41495_ACEOF
41496
41497 USE_HTML=1
41498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41499 if test "$wxUSE_MAC" = 1; then
41500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41501 fi
a848cd7e 41502fi
646b6ec1 41503if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41504 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41505 old_CPPFLAGS="$CPPFLAGS"
41506 CPPFLAGS="$CPPFLAGS -x objective-c++"
41507 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41508echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41509if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41510 echo $ECHO_N "(cached) $ECHO_C" >&6
41511else
41512 cat >conftest.$ac_ext <<_ACEOF
41513/* confdefs.h. */
41514_ACEOF
41515cat confdefs.h >>conftest.$ac_ext
41516cat >>conftest.$ac_ext <<_ACEOF
41517/* end confdefs.h. */
41518#include <Carbon/Carbon.h>
41519
41520#include <WebKit/HIWebView.h>
41521_ACEOF
41522rm -f conftest.$ac_objext
41523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41524 (eval $ac_compile) 2>conftest.er1
41525 ac_status=$?
41526 grep -v '^ *+' conftest.er1 >conftest.err
41527 rm -f conftest.er1
41528 cat conftest.err >&5
41529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); } &&
6ebeb4c7 41531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41533 (eval $ac_try) 2>&5
41534 ac_status=$?
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); }; } &&
41537 { ac_try='test -s conftest.$ac_objext'
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41540 ac_status=$?
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; }; then
41543 ac_cv_header_WebKit_HIWebView_h=yes
41544else
41545 echo "$as_me: failed program was:" >&5
41546sed 's/^/| /' conftest.$ac_ext >&5
41547
41548ac_cv_header_WebKit_HIWebView_h=no
41549fi
41550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41551fi
41552echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41553echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41554if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41555
41556 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41557#define wxUSE_WEBKIT 1
41558_ACEOF
41559
07bea8f0
VS
41560 WEBKIT_LINK="-framework WebKit"
41561
41562else
41563
41564 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41565echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41566 wxUSE_WEBKIT=no
41567
646b6ec1
VS
41568fi
41569
07bea8f0
VS
41570
41571 CPPFLAGS="$old_CPPFLAGS"
41572 elif test "$wxUSE_COCOA" = 1; then
41573 cat >>confdefs.h <<\_ACEOF
41574#define wxUSE_WEBKIT 1
41575_ACEOF
41576
41577 else
41578 wxUSE_WEBKIT=no
41579 fi
41580fi
41581
9a8f0513
VS
41582USE_XRC=0
41583if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41584 if test "$wxUSE_XML" != "yes"; then
41585 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41586echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41587 wxUSE_XRC=no
41588 else
41589 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41590#define wxUSE_XRC 1
41591_ACEOF
41592
d2ebf0b7
VS
41593 USE_XRC=1
41594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41595 fi
9a8f0513 41596fi
07bea8f0 41597
a848cd7e
SC
41598if test "$wxUSE_MENUS" = "yes"; then
41599 cat >>confdefs.h <<\_ACEOF
41600#define wxUSE_MENUS 1
41601_ACEOF
41602
41603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41604fi
41605
41606if test "$wxUSE_METAFILE" = "yes"; then
41607 cat >>confdefs.h <<\_ACEOF
41608#define wxUSE_METAFILE 1
41609_ACEOF
41610
41611fi
41612
41613if test "$wxUSE_MIMETYPE" = "yes"; then
41614 cat >>confdefs.h <<\_ACEOF
41615#define wxUSE_MIMETYPE 1
41616_ACEOF
41617
41618fi
41619
41620if test "$wxUSE_MINIFRAME" = "yes"; then
41621 cat >>confdefs.h <<\_ACEOF
41622#define wxUSE_MINIFRAME 1
41623_ACEOF
41624
41625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41626fi
41627
41628if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41629 cat >>confdefs.h <<\_ACEOF
41630#define wxUSE_SYSTEM_OPTIONS 1
41631_ACEOF
41632
41633 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41634 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41636 fi
41637fi
41638
41639
41640if test "$wxUSE_VALIDATORS" = "yes"; then
41641 cat >>confdefs.h <<\_ACEOF
41642#define wxUSE_VALIDATORS 1
41643_ACEOF
41644
41645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41646fi
41647
41648if test "$wxUSE_PALETTE" = "yes" ; then
41649 cat >>confdefs.h <<\_ACEOF
41650#define wxUSE_PALETTE 1
41651_ACEOF
41652
41653fi
41654
41655if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41656 LIBS=" -lunicows $LIBS"
41657fi
41658
41659
41660if test "$wxUSE_IMAGE" = "yes" ; then
41661 cat >>confdefs.h <<\_ACEOF
41662#define wxUSE_IMAGE 1
41663_ACEOF
41664
41665
41666 if test "$wxUSE_GIF" = "yes" ; then
41667 cat >>confdefs.h <<\_ACEOF
41668#define wxUSE_GIF 1
41669_ACEOF
41670
41671 fi
41672
41673 if test "$wxUSE_PCX" = "yes" ; then
41674 cat >>confdefs.h <<\_ACEOF
41675#define wxUSE_PCX 1
41676_ACEOF
41677
41678 fi
41679
41680 if test "$wxUSE_IFF" = "yes" ; then
41681 cat >>confdefs.h <<\_ACEOF
41682#define wxUSE_IFF 1
41683_ACEOF
41684
41685 fi
41686
41687 if test "$wxUSE_PNM" = "yes" ; then
41688 cat >>confdefs.h <<\_ACEOF
41689#define wxUSE_PNM 1
41690_ACEOF
41691
41692 fi
41693
41694 if test "$wxUSE_XPM" = "yes" ; then
41695 cat >>confdefs.h <<\_ACEOF
41696#define wxUSE_XPM 1
41697_ACEOF
41698
41699 fi
41700
41701 if test "$wxUSE_ICO_CUR" = "yes" ; then
41702 cat >>confdefs.h <<\_ACEOF
41703#define wxUSE_ICO_CUR 1
41704_ACEOF
41705
41706 fi
41707fi
41708
41709
41710if test "$wxUSE_CHOICEDLG" = "yes"; then
41711 cat >>confdefs.h <<\_ACEOF
41712#define wxUSE_CHOICEDLG 1
41713_ACEOF
41714
41715fi
41716
41717if test "$wxUSE_COLOURDLG" = "yes"; then
41718 cat >>confdefs.h <<\_ACEOF
41719#define wxUSE_COLOURDLG 1
41720_ACEOF
41721
41722fi
41723
41724if test "$wxUSE_FILEDLG" = "yes"; then
41725 cat >>confdefs.h <<\_ACEOF
41726#define wxUSE_FILEDLG 1
41727_ACEOF
41728
41729fi
41730
41731if test "$wxUSE_FINDREPLDLG" = "yes"; then
41732 cat >>confdefs.h <<\_ACEOF
41733#define wxUSE_FINDREPLDLG 1
41734_ACEOF
41735
41736fi
41737
41738if test "$wxUSE_FONTDLG" = "yes"; then
41739 cat >>confdefs.h <<\_ACEOF
41740#define wxUSE_FONTDLG 1
41741_ACEOF
41742
41743fi
41744
41745if test "$wxUSE_DIRDLG" = "yes"; then
41746 if test "$wxUSE_TREECTRL" != "yes"; then
41747 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41748echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41749 else
41750 cat >>confdefs.h <<\_ACEOF
41751#define wxUSE_DIRDLG 1
41752_ACEOF
41753
41754 fi
41755fi
41756
41757if test "$wxUSE_MSGDLG" = "yes"; then
41758 cat >>confdefs.h <<\_ACEOF
41759#define wxUSE_MSGDLG 1
41760_ACEOF
41761
41762fi
41763
41764if test "$wxUSE_NUMBERDLG" = "yes"; then
41765 cat >>confdefs.h <<\_ACEOF
41766#define wxUSE_NUMBERDLG 1
41767_ACEOF
41768
41769fi
41770
41771if test "$wxUSE_PROGRESSDLG" = "yes"; then
41772 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41773 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41774echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41775 else
41776 cat >>confdefs.h <<\_ACEOF
41777#define wxUSE_PROGRESSDLG 1
41778_ACEOF
41779
41780 fi
41781fi
41782
41783if test "$wxUSE_SPLASH" = "yes"; then
41784 cat >>confdefs.h <<\_ACEOF
41785#define wxUSE_SPLASH 1
41786_ACEOF
41787
2057db16 41788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41789fi
41790
41791if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41792 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41793 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41794echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41795 else
41796 cat >>confdefs.h <<\_ACEOF
41797#define wxUSE_STARTUP_TIPS 1
41798_ACEOF
41799
41800 fi
41801fi
41802
41803if test "$wxUSE_TEXTDLG" = "yes"; then
41804 cat >>confdefs.h <<\_ACEOF
41805#define wxUSE_TEXTDLG 1
41806_ACEOF
41807
41808fi
41809
41810if test "$wxUSE_WIZARDDLG" = "yes"; then
41811 cat >>confdefs.h <<\_ACEOF
41812#define wxUSE_WIZARDDLG 1
41813_ACEOF
41814
41815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41816fi
41817
41818
ce756cb0 41819if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41820 if test "$wxUSE_GTK" = 1; then
41821 wxUSE_GSTREAMER="yes"
41822
ce756cb0 41823
dae87f93 41824 succeeded=no
ce756cb0 41825
dae87f93
RN
41826 if test -z "$PKG_CONFIG"; then
41827 # Extract the first word of "pkg-config", so it can be a program name with args.
41828set dummy pkg-config; ac_word=$2
41829echo "$as_me:$LINENO: checking for $ac_word" >&5
41830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41831if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41832 echo $ECHO_N "(cached) $ECHO_C" >&6
41833else
41834 case $PKG_CONFIG in
41835 [\\/]* | ?:[\\/]*)
41836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41837 ;;
41838 *)
41839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41840for as_dir in $PATH
41841do
41842 IFS=$as_save_IFS
41843 test -z "$as_dir" && as_dir=.
41844 for ac_exec_ext in '' $ac_executable_extensions; do
41845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41848 break 2
41849 fi
41850done
41851done
41852
41853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41854 ;;
41855esac
41856fi
41857PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41858
41859if test -n "$PKG_CONFIG"; then
41860 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41861echo "${ECHO_T}$PKG_CONFIG" >&6
41862else
41863 echo "$as_me:$LINENO: result: no" >&5
41864echo "${ECHO_T}no" >&6
41865fi
41866
41867 fi
41868
41869 if test "$PKG_CONFIG" = "no" ; then
41870 echo "*** The pkg-config script could not be found. Make sure it is"
41871 echo "*** in your path, or set the PKG_CONFIG environment variable"
41872 echo "*** to the full path to pkg-config."
41873 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41874 else
41875 PKG_CONFIG_MIN_VERSION=0.9.0
41876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41877 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41878echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41879
41880 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41881 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41882echo "${ECHO_T}yes" >&6
dae87f93 41883 succeeded=yes
ce756cb0 41884
dae87f93
RN
41885 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41886echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41887 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41888 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41889echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41890
41891 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41892echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41893 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41894 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41895echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41896 else
41897 GSTREAMER_CFLAGS=""
41898 GSTREAMER_LIBS=""
41899 ## If we have a custom action on failure, don't print errors, but
41900 ## do set a variable so people can do so.
41901 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41902
dae87f93
RN
41903 fi
41904
41905
41906
41907 else
41908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41910 fi
41911 fi
41912
41913 if test $succeeded = yes; then
41914
41915 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41916 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41917
ce756cb0 41918 else
dae87f93
RN
41919
41920 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41921echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41922 wxUSE_GSTREAMER="no"
41923
41924 fi
41925
41926
41927
41928
41929
41930 if test "x$GST_INSPECT" == "x"; then
41931 # Extract the first word of "gst-inspect", so it can be a program name with args.
41932set dummy gst-inspect; ac_word=$2
41933echo "$as_me:$LINENO: checking for $ac_word" >&5
41934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41935if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41936 echo $ECHO_N "(cached) $ECHO_C" >&6
41937else
41938 if test -n "$GST_INSPECT"; then
41939 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41940else
41941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41942for as_dir in $PATH
41943do
41944 IFS=$as_save_IFS
41945 test -z "$as_dir" && as_dir=.
41946 for ac_exec_ext in '' $ac_executable_extensions; do
41947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41948 ac_cv_prog_GST_INSPECT="gst-inspect"
41949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41950 break 2
ce756cb0 41951 fi
dae87f93
RN
41952done
41953done
41954
41955fi
41956fi
41957GST_INSPECT=$ac_cv_prog_GST_INSPECT
41958if test -n "$GST_INSPECT"; then
41959 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41960echo "${ECHO_T}$GST_INSPECT" >&6
41961else
41962 echo "$as_me:$LINENO: result: no" >&5
41963echo "${ECHO_T}no" >&6
41964fi
41965
41966 fi
41967
41968 if test "x$GST_INSPECT" != "x"; then
41969 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41970echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41971 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41972 echo "$as_me:$LINENO: result: found." >&5
41973echo "${ECHO_T}found." >&6
ce756cb0 41974
ce756cb0 41975 else
dae87f93
RN
41976 echo "$as_me:$LINENO: result: not found." >&5
41977echo "${ECHO_T}not found." >&6
41978
41979 wxUSE_GSTREAMER="no"
41980 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41981echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41982
41983 fi
41984 fi
41985
41986
41987 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41988echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41989if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41990 echo $ECHO_N "(cached) $ECHO_C" >&6
41991else
41992 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41993/* confdefs.h. */
41994_ACEOF
41995cat confdefs.h >>conftest.$ac_ext
41996cat >>conftest.$ac_ext <<_ACEOF
41997/* end confdefs.h. */
dae87f93 41998#include <gst/gst.h>
ce756cb0 41999
dae87f93 42000#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42001_ACEOF
42002rm -f conftest.$ac_objext
42003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42004 (eval $ac_compile) 2>conftest.er1
42005 ac_status=$?
42006 grep -v '^ *+' conftest.er1 >conftest.err
42007 rm -f conftest.er1
42008 cat conftest.err >&5
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); } &&
6ebeb4c7 42011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42014 ac_status=$?
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; } &&
42017 { ac_try='test -s conftest.$ac_objext'
42018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42019 (eval $ac_try) 2>&5
42020 ac_status=$?
42021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42022 (exit $ac_status); }; }; then
dae87f93 42023 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42024else
42025 echo "$as_me: failed program was:" >&5
42026sed 's/^/| /' conftest.$ac_ext >&5
42027
dae87f93 42028ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42029fi
42030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42031fi
42032echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42033echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42034if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42035 :
42036else
ce756cb0 42037
dae87f93
RN
42038 wxUSE_GSTREAMER="no"
42039 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42040echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42041
dae87f93 42042fi
ce756cb0 42043
dae87f93
RN
42044
42045
42046 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42047echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42048
0ad5d837
VZ
42049 ac_find_libraries=
42050 for ac_dir in $SEARCH_LIB;
ce756cb0 42051 do
3eca31dc 42052 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42053 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42054 ac_find_libraries=$ac_dir
42055 break 2
42056 fi
42057 done
42058 done
42059
ce756cb0 42060
dae87f93
RN
42061 if test "$ac_find_libraries" = "" ; then
42062 echo "$as_me:$LINENO: result: no" >&5
42063echo "${ECHO_T}no" >&6
42064 wxUSE_GSTREAMER="no"
42065 else
42066 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42067echo "${ECHO_T}yes" >&6
dae87f93 42068 fi
ce756cb0 42069
dae87f93
RN
42070 if test "$wxUSE_GSTREAMER" = "yes"; then
42071 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42072#define wxUSE_GSTREAMER 1
42073_ACEOF
42074
dae87f93
RN
42075 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42076echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42077 fi
42078 fi
42079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42080 cat >>confdefs.h <<\_ACEOF
42081#define wxUSE_MEDIACTRL 1
42082_ACEOF
42083
42084fi
42085
42086
a848cd7e
SC
42087if test "$cross_compiling" = "yes"; then
42088 OSINFO="\"$host\""
42089else
42090 OSINFO=`uname -s -r -m`
42091 OSINFO="\"$OSINFO\""
42092fi
42093
42094cat >>confdefs.h <<_ACEOF
42095#define WXWIN_OS_DESCRIPTION $OSINFO
42096_ACEOF
42097
42098
42099
42100if test "x$prefix" != "xNONE"; then
42101 wxPREFIX=$prefix
42102else
42103 wxPREFIX=$ac_default_prefix
42104fi
42105
42106cat >>confdefs.h <<_ACEOF
42107#define wxINSTALL_PREFIX "$wxPREFIX"
42108_ACEOF
42109
42110
a848cd7e
SC
42111
42112
42113CORE_BASE_LIBS="net base"
42114CORE_GUI_LIBS="adv core"
42115
42116if test "$wxUSE_XML" = "yes" ; then
42117 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42118fi
42119if test "$wxUSE_ODBC" != "no" ; then
42120 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42121 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42122fi
42123if test "$wxUSE_HTML" = "yes" ; then
42124 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42125fi
61639efb
VZ
42126if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42127 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42128fi
9a8f0513
VS
42129if test "$wxUSE_XRC" = "yes" ; then
42130 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42131fi
a848cd7e
SC
42132
42133if test "$wxUSE_GUI" != "yes"; then
42134 CORE_GUI_LIBS=""
42135fi
42136
42137
42138
42139
42140
42141
42142
42143
42144if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42145 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42146 if test "$USE_DARWIN" = 1; then
42147 LDFLAGS="$LDFLAGS -framework QuickTime"
42148 else
42149 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42150 fi
07bea8f0 42151 fi
5dcf30a0 42152 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42153 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42154 else
42155 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42156 fi
a848cd7e
SC
42157fi
42158if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42159 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42160 if test "$wxUSE_MEDIACTRL" = "yes"; then
42161 LDFLAGS="$LDFLAGS -framework QuickTime"
42162 fi
a848cd7e 42163fi
19b27e78
MW
42164if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42165 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42166fi
a848cd7e
SC
42167
42168
42169LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42170
42171have_cos=0
42172have_floor=0
42173
42174for ac_func in cos
42175do
42176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42177echo "$as_me:$LINENO: checking for $ac_func" >&5
42178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42179if eval "test \"\${$as_ac_var+set}\" = set"; then
42180 echo $ECHO_N "(cached) $ECHO_C" >&6
42181else
42182 cat >conftest.$ac_ext <<_ACEOF
42183/* confdefs.h. */
42184_ACEOF
42185cat confdefs.h >>conftest.$ac_ext
42186cat >>conftest.$ac_ext <<_ACEOF
42187/* end confdefs.h. */
ac1cb8d3
VS
42188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42190#define $ac_func innocuous_$ac_func
42191
a848cd7e
SC
42192/* System header to define __stub macros and hopefully few prototypes,
42193 which can conflict with char $ac_func (); below.
42194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42196
a848cd7e
SC
42197#ifdef __STDC__
42198# include <limits.h>
42199#else
42200# include <assert.h>
42201#endif
ac1cb8d3
VS
42202
42203#undef $ac_func
42204
a848cd7e
SC
42205/* Override any gcc2 internal prototype to avoid an error. */
42206#ifdef __cplusplus
42207extern "C"
42208{
42209#endif
42210/* We use char because int might match the return type of a gcc2
42211 builtin and then its argument prototype would still apply. */
42212char $ac_func ();
42213/* The GNU C library defines this for functions which it implements
42214 to always fail with ENOSYS. Some functions are actually named
42215 something starting with __ and the normal name is an alias. */
42216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42217choke me
42218#else
42219char (*f) () = $ac_func;
42220#endif
42221#ifdef __cplusplus
42222}
42223#endif
42224
42225int
42226main ()
42227{
42228return f != $ac_func;
42229 ;
42230 return 0;
42231}
42232_ACEOF
42233rm -f conftest.$ac_objext conftest$ac_exeext
42234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42235 (eval $ac_link) 2>conftest.er1
a848cd7e 42236 ac_status=$?
ac1cb8d3
VS
42237 grep -v '^ *+' conftest.er1 >conftest.err
42238 rm -f conftest.er1
42239 cat conftest.err >&5
a848cd7e
SC
42240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42241 (exit $ac_status); } &&
6ebeb4c7 42242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42244 (eval $ac_try) 2>&5
42245 ac_status=$?
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); }; } &&
42248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250 (eval $ac_try) 2>&5
42251 ac_status=$?
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); }; }; then
42254 eval "$as_ac_var=yes"
42255else
42256 echo "$as_me: failed program was:" >&5
42257sed 's/^/| /' conftest.$ac_ext >&5
42258
42259eval "$as_ac_var=no"
42260fi
ac1cb8d3
VS
42261rm -f conftest.err conftest.$ac_objext \
42262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42263fi
42264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42266if test `eval echo '${'$as_ac_var'}'` = yes; then
42267 cat >>confdefs.h <<_ACEOF
42268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42269_ACEOF
42270 have_cos=1
42271fi
42272done
42273
42274
42275for ac_func in floor
42276do
42277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42278echo "$as_me:$LINENO: checking for $ac_func" >&5
42279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42280if eval "test \"\${$as_ac_var+set}\" = set"; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42282else
42283 cat >conftest.$ac_ext <<_ACEOF
42284/* confdefs.h. */
42285_ACEOF
42286cat confdefs.h >>conftest.$ac_ext
42287cat >>conftest.$ac_ext <<_ACEOF
42288/* end confdefs.h. */
ac1cb8d3
VS
42289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42291#define $ac_func innocuous_$ac_func
42292
a848cd7e
SC
42293/* System header to define __stub macros and hopefully few prototypes,
42294 which can conflict with char $ac_func (); below.
42295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42297
a848cd7e
SC
42298#ifdef __STDC__
42299# include <limits.h>
42300#else
42301# include <assert.h>
42302#endif
ac1cb8d3
VS
42303
42304#undef $ac_func
42305
a848cd7e
SC
42306/* Override any gcc2 internal prototype to avoid an error. */
42307#ifdef __cplusplus
42308extern "C"
42309{
42310#endif
42311/* We use char because int might match the return type of a gcc2
42312 builtin and then its argument prototype would still apply. */
42313char $ac_func ();
42314/* The GNU C library defines this for functions which it implements
42315 to always fail with ENOSYS. Some functions are actually named
42316 something starting with __ and the normal name is an alias. */
42317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42318choke me
42319#else
42320char (*f) () = $ac_func;
42321#endif
42322#ifdef __cplusplus
42323}
42324#endif
42325
42326int
42327main ()
42328{
42329return f != $ac_func;
42330 ;
42331 return 0;
42332}
42333_ACEOF
42334rm -f conftest.$ac_objext conftest$ac_exeext
42335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42336 (eval $ac_link) 2>conftest.er1
a848cd7e 42337 ac_status=$?
ac1cb8d3
VS
42338 grep -v '^ *+' conftest.er1 >conftest.err
42339 rm -f conftest.er1
42340 cat conftest.err >&5
a848cd7e
SC
42341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42342 (exit $ac_status); } &&
6ebeb4c7 42343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42345 (eval $ac_try) 2>&5
42346 ac_status=$?
42347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42348 (exit $ac_status); }; } &&
42349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42351 (eval $ac_try) 2>&5
42352 ac_status=$?
42353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354 (exit $ac_status); }; }; then
42355 eval "$as_ac_var=yes"
42356else
42357 echo "$as_me: failed program was:" >&5
42358sed 's/^/| /' conftest.$ac_ext >&5
42359
42360eval "$as_ac_var=no"
42361fi
ac1cb8d3
VS
42362rm -f conftest.err conftest.$ac_objext \
42363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42364fi
42365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42367if test `eval echo '${'$as_ac_var'}'` = yes; then
42368 cat >>confdefs.h <<_ACEOF
42369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42370_ACEOF
42371 have_floor=1
42372fi
42373done
42374
42375echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42376echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42377if test "$have_cos" = 1 -a "$have_floor" = 1; then
42378 echo "$as_me:$LINENO: result: yes" >&5
42379echo "${ECHO_T}yes" >&6
42380else
42381 echo "$as_me:$LINENO: result: no" >&5
42382echo "${ECHO_T}no" >&6
42383 LIBS="$LIBS -lm"
42384 # use different functions to avoid configure caching
42385 have_sin=0
42386 have_ceil=0
42387
42388for ac_func in sin
42389do
42390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42391echo "$as_me:$LINENO: checking for $ac_func" >&5
42392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42393if eval "test \"\${$as_ac_var+set}\" = set"; then
42394 echo $ECHO_N "(cached) $ECHO_C" >&6
42395else
42396 cat >conftest.$ac_ext <<_ACEOF
42397/* confdefs.h. */
42398_ACEOF
42399cat confdefs.h >>conftest.$ac_ext
42400cat >>conftest.$ac_ext <<_ACEOF
42401/* end confdefs.h. */
ac1cb8d3
VS
42402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42404#define $ac_func innocuous_$ac_func
42405
a848cd7e
SC
42406/* System header to define __stub macros and hopefully few prototypes,
42407 which can conflict with char $ac_func (); below.
42408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42410
a848cd7e
SC
42411#ifdef __STDC__
42412# include <limits.h>
42413#else
42414# include <assert.h>
42415#endif
ac1cb8d3
VS
42416
42417#undef $ac_func
42418
a848cd7e
SC
42419/* Override any gcc2 internal prototype to avoid an error. */
42420#ifdef __cplusplus
42421extern "C"
42422{
42423#endif
42424/* We use char because int might match the return type of a gcc2
42425 builtin and then its argument prototype would still apply. */
42426char $ac_func ();
42427/* The GNU C library defines this for functions which it implements
42428 to always fail with ENOSYS. Some functions are actually named
42429 something starting with __ and the normal name is an alias. */
42430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42431choke me
42432#else
42433char (*f) () = $ac_func;
42434#endif
42435#ifdef __cplusplus
42436}
42437#endif
42438
42439int
42440main ()
42441{
42442return f != $ac_func;
42443 ;
42444 return 0;
42445}
42446_ACEOF
42447rm -f conftest.$ac_objext conftest$ac_exeext
42448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42449 (eval $ac_link) 2>conftest.er1
a848cd7e 42450 ac_status=$?
ac1cb8d3
VS
42451 grep -v '^ *+' conftest.er1 >conftest.err
42452 rm -f conftest.er1
42453 cat conftest.err >&5
a848cd7e
SC
42454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42455 (exit $ac_status); } &&
6ebeb4c7 42456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42458 (eval $ac_try) 2>&5
42459 ac_status=$?
42460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42461 (exit $ac_status); }; } &&
42462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42464 (eval $ac_try) 2>&5
42465 ac_status=$?
42466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42467 (exit $ac_status); }; }; then
42468 eval "$as_ac_var=yes"
42469else
42470 echo "$as_me: failed program was:" >&5
42471sed 's/^/| /' conftest.$ac_ext >&5
42472
42473eval "$as_ac_var=no"
42474fi
ac1cb8d3
VS
42475rm -f conftest.err conftest.$ac_objext \
42476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42477fi
42478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42480if test `eval echo '${'$as_ac_var'}'` = yes; then
42481 cat >>confdefs.h <<_ACEOF
42482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42483_ACEOF
42484 have_sin=1
42485fi
42486done
42487
42488
42489for ac_func in ceil
42490do
42491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42492echo "$as_me:$LINENO: checking for $ac_func" >&5
42493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42494if eval "test \"\${$as_ac_var+set}\" = set"; then
42495 echo $ECHO_N "(cached) $ECHO_C" >&6
42496else
42497 cat >conftest.$ac_ext <<_ACEOF
42498/* confdefs.h. */
42499_ACEOF
42500cat confdefs.h >>conftest.$ac_ext
42501cat >>conftest.$ac_ext <<_ACEOF
42502/* end confdefs.h. */
ac1cb8d3
VS
42503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42505#define $ac_func innocuous_$ac_func
42506
a848cd7e
SC
42507/* System header to define __stub macros and hopefully few prototypes,
42508 which can conflict with char $ac_func (); below.
42509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42511
a848cd7e
SC
42512#ifdef __STDC__
42513# include <limits.h>
42514#else
42515# include <assert.h>
42516#endif
ac1cb8d3
VS
42517
42518#undef $ac_func
42519
a848cd7e
SC
42520/* Override any gcc2 internal prototype to avoid an error. */
42521#ifdef __cplusplus
42522extern "C"
42523{
42524#endif
42525/* We use char because int might match the return type of a gcc2
42526 builtin and then its argument prototype would still apply. */
42527char $ac_func ();
42528/* The GNU C library defines this for functions which it implements
42529 to always fail with ENOSYS. Some functions are actually named
42530 something starting with __ and the normal name is an alias. */
42531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42532choke me
42533#else
42534char (*f) () = $ac_func;
42535#endif
42536#ifdef __cplusplus
42537}
42538#endif
42539
42540int
42541main ()
42542{
42543return f != $ac_func;
42544 ;
42545 return 0;
42546}
42547_ACEOF
42548rm -f conftest.$ac_objext conftest$ac_exeext
42549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42550 (eval $ac_link) 2>conftest.er1
a848cd7e 42551 ac_status=$?
ac1cb8d3
VS
42552 grep -v '^ *+' conftest.er1 >conftest.err
42553 rm -f conftest.er1
42554 cat conftest.err >&5
a848cd7e
SC
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); } &&
6ebeb4c7 42557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42560 ac_status=$?
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } &&
42563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42565 (eval $ac_try) 2>&5
42566 ac_status=$?
42567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); }; }; then
42569 eval "$as_ac_var=yes"
42570else
42571 echo "$as_me: failed program was:" >&5
42572sed 's/^/| /' conftest.$ac_ext >&5
42573
42574eval "$as_ac_var=no"
42575fi
ac1cb8d3
VS
42576rm -f conftest.err conftest.$ac_objext \
42577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42578fi
42579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42581if test `eval echo '${'$as_ac_var'}'` = yes; then
42582 cat >>confdefs.h <<_ACEOF
42583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42584_ACEOF
42585 have_ceil=1
42586fi
42587done
42588
42589 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42590echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42591 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42592 echo "$as_me:$LINENO: result: yes" >&5
42593echo "${ECHO_T}yes" >&6
42594 else
42595 echo "$as_me:$LINENO: result: no" >&5
42596echo "${ECHO_T}no" >&6
42597 # not sure we should warn the user, crash, etc.
42598 fi
42599fi
42600
42601if test "$wxUSE_GUI" = "yes"; then
42602
42603
8bce5cda
MW
42604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42605 dynamic erase event exec font image minimal mobile \
42606 mobile/wxedit mobile/styles propsize render \
42607 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42608
42609 if test "$wxUSE_MONOLITHIC" != "yes"; then
42610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42611 fi
0b78747f 42612 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42614 if test "$wxUSE_UNIVERSAL" != "yes"; then
42615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42616 fi
42617 fi
42618 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42620 fi
a848cd7e
SC
42621else
42622 SAMPLES_SUBDIRS="console"
42623fi
42624
42625
ceec2216 42626INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42627-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42628
48f625bc 42629if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
42630 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
42631elif test "$GCC" = yes ; then
42632 CWARNINGS="-Wall -Wundef"
42633fi
42634
48f625bc 42635if test "x$INTELCXX" = "xyes" ; then
17a1ebd1
VZ
42636 CXXWARNINGS="-Wall -wd279,383,444,869,981,1418,1419"
42637elif test "$GXX" = yes ; then
42638 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 42639fi
a848cd7e
SC
42640
42641EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42642
0c3c69fc 42643CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42644CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42645CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42646
95986553
DE
42647if test "x$MWCC" = "xyes"; then
42648
42649 CC="$CC -cwd source -I-"
42650 CXX="$CXX -cwd source -I-"
42651fi
42652
a848cd7e 42653
0c3c69fc 42654LIBS=`echo $LIBS`
a848cd7e
SC
42655EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42656EXTRALIBS_XML="$EXPAT_LINK"
42657EXTRALIBS_HTML="$MSPACK_LINK"
42658EXTRALIBS_ODBC="$ODBC_LINK"
42659if test "$wxUSE_GUI" = "yes"; then
2e350179 42660 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42661fi
42662if test "$wxUSE_OPENGL" = "yes"; then
42663 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42664fi
42665
42666LDFLAGS="$LDFLAGS $PROFILE"
42667
42668if test "$wxUSE_GTK" = 1; then
42669 WXCONFIG_INCLUDE=
42670else
42671 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42672fi
42673
42674WXCONFIG_EXTRALIBS="$LIBS"
42675
42676if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42677 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42678fi
42679if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42680 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42681fi
42682if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42683 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42684fi
42685if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42686 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42687fi
42688if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42689 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42690fi
42691if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42692 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42693fi
42694if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42695 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42696fi
42697
42698for i in $wxconfig_3rdparty ; do
74802184 42699 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42700done
42701
42702
42703if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42704 WXUNIV=1
42705else
42706 WXUNIV=0
42707fi
42708
42709
42710
42711
42712
42713
42714
42715
42716
42717if test $wxUSE_MONOLITHIC = "yes" ; then
42718 MONOLITHIC=1
42719else
42720 MONOLITHIC=0
42721fi
42722
42723if test $wxUSE_PLUGINS = "yes" ; then
42724 USE_PLUGINS=1
42725else
42726 USE_PLUGINS=0
42727fi
42728
42729if test $wxUSE_ODBC != "no" ; then
42730 USE_ODBC=1
42731else
42732 USE_ODBC=0
42733fi
42734
16358932
VZ
42735if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42736 USE_QA=1
42737else
42738 USE_QA=0
42739fi
42740
a848cd7e
SC
42741if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42742 OFFICIAL_BUILD=1
42743else
42744 OFFICIAL_BUILD=0
42745fi
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760
42761
42762
42763
42764
ceec2216 42765
d1c38808 42766
a848cd7e
SC
42767
42768
42769TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42770
42771
42772
42773
42774
42775
42776
42777
4d4ff94c
VZ
42778case "$TOOLKIT" in
42779 GTK)
42780 TOOLKIT_USER="GTK+"
42781 if test "$WXGTK20" = 1; then
42782 TOOLKIT_USER="$TOOLKIT_USER 2"
42783 fi
9a8f0513 42784 ;;
4d4ff94c
VZ
42785
42786 *)
42787 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42788 ;;
4d4ff94c 42789esac
a848cd7e 42790
fb00f58d
JS
42791if test "$wxUSE_WINE" = "yes"; then
42792 BAKEFILE_FORCE_PLATFORM=win32
42793fi
42794
9a8f0513 42795
1e9e8aba
DE
42796
42797
a848cd7e
SC
42798 if test "x$BAKEFILE_HOST" = "x"; then
42799 BAKEFILE_HOST="${host}"
42800 fi
42801
42802 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42803
42804 if test -n "$ac_tool_prefix"; then
42805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42807echo "$as_me:$LINENO: checking for $ac_word" >&5
42808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42809if test "${ac_cv_prog_RANLIB+set}" = set; then
42810 echo $ECHO_N "(cached) $ECHO_C" >&6
42811else
42812 if test -n "$RANLIB"; then
42813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42814else
42815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42816for as_dir in $PATH
42817do
42818 IFS=$as_save_IFS
42819 test -z "$as_dir" && as_dir=.
42820 for ac_exec_ext in '' $ac_executable_extensions; do
42821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42824 break 2
42825 fi
42826done
42827done
42828
42829fi
42830fi
42831RANLIB=$ac_cv_prog_RANLIB
42832if test -n "$RANLIB"; then
42833 echo "$as_me:$LINENO: result: $RANLIB" >&5
42834echo "${ECHO_T}$RANLIB" >&6
42835else
42836 echo "$as_me:$LINENO: result: no" >&5
42837echo "${ECHO_T}no" >&6
42838fi
42839
42840fi
42841if test -z "$ac_cv_prog_RANLIB"; then
42842 ac_ct_RANLIB=$RANLIB
42843 # Extract the first word of "ranlib", so it can be a program name with args.
42844set dummy ranlib; ac_word=$2
42845echo "$as_me:$LINENO: checking for $ac_word" >&5
42846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42847if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42848 echo $ECHO_N "(cached) $ECHO_C" >&6
42849else
42850 if test -n "$ac_ct_RANLIB"; then
42851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42852else
42853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42854for as_dir in $PATH
42855do
42856 IFS=$as_save_IFS
42857 test -z "$as_dir" && as_dir=.
42858 for ac_exec_ext in '' $ac_executable_extensions; do
42859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42860 ac_cv_prog_ac_ct_RANLIB="ranlib"
42861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42862 break 2
42863 fi
42864done
42865done
42866
42867 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
42868fi
42869fi
42870ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
42871if test -n "$ac_ct_RANLIB"; then
42872 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
42873echo "${ECHO_T}$ac_ct_RANLIB" >&6
42874else
42875 echo "$as_me:$LINENO: result: no" >&5
42876echo "${ECHO_T}no" >&6
42877fi
42878
42879 RANLIB=$ac_ct_RANLIB
42880else
42881 RANLIB="$ac_cv_prog_RANLIB"
42882fi
42883
42884 # Find a good install program. We prefer a C program (faster),
42885# so one script is as good as another. But avoid the broken or
42886# incompatible versions:
42887# SysV /etc/install, /usr/sbin/install
42888# SunOS /usr/etc/install
42889# IRIX /sbin/install
42890# AIX /bin/install
42891# AmigaOS /C/install, which installs bootblocks on floppy discs
42892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42893# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42895# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42896# ./install, which can be erroneously created by make from ./install.sh.
42897echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42898echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42899if test -z "$INSTALL"; then
42900if test "${ac_cv_path_install+set}" = set; then
42901 echo $ECHO_N "(cached) $ECHO_C" >&6
42902else
42903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42904for as_dir in $PATH
42905do
42906 IFS=$as_save_IFS
42907 test -z "$as_dir" && as_dir=.
42908 # Account for people who put trailing slashes in PATH elements.
42909case $as_dir/ in
42910 ./ | .// | /cC/* | \
42911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42913 /usr/ucb/* ) ;;
42914 *)
42915 # OSF1 and SCO ODT 3.0 have their own names for install.
42916 # Don't use installbsd from OSF since it installs stuff as root
42917 # by default.
42918 for ac_prog in ginstall scoinst install; do
42919 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42921 if test $ac_prog = install &&
42922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42923 # AIX install. It has an incompatible calling convention.
42924 :
42925 elif test $ac_prog = install &&
42926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42927 # program-specific install script used by HP pwplus--don't use.
42928 :
42929 else
42930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42931 break 3
42932 fi
42933 fi
a848cd7e
SC
42934 done
42935 done
42936 ;;
42937esac
42938done
42939
42940
42941fi
42942 if test "${ac_cv_path_install+set}" = set; then
42943 INSTALL=$ac_cv_path_install
42944 else
42945 # As a last resort, use the slow shell script. We don't cache a
42946 # path for INSTALL within a source directory, because that will
42947 # break other packages using the cache if that directory is
42948 # removed, or if the path is relative.
42949 INSTALL=$ac_install_sh
42950 fi
42951fi
42952echo "$as_me:$LINENO: result: $INSTALL" >&5
42953echo "${ECHO_T}$INSTALL" >&6
42954
42955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42956# It thinks the first close brace ends the variable substitution.
42957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42958
42959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42960
42961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42962
42963 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42965LN_S=$as_ln_s
42966if test "$LN_S" = "ln -s"; then
42967 echo "$as_me:$LINENO: result: yes" >&5
42968echo "${ECHO_T}yes" >&6
42969else
42970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42971echo "${ECHO_T}no, using $LN_S" >&6
42972fi
42973
42974
42975 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42976echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42977set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42978if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42979 echo $ECHO_N "(cached) $ECHO_C" >&6
42980else
42981 cat >conftest.make <<\_ACEOF
42982all:
42983 @echo 'ac_maketemp="$(MAKE)"'
42984_ACEOF
42985# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42986eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42987if test -n "$ac_maketemp"; then
42988 eval ac_cv_prog_make_${ac_make}_set=yes
42989else
42990 eval ac_cv_prog_make_${ac_make}_set=no
42991fi
42992rm -f conftest.make
42993fi
42994if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42995 echo "$as_me:$LINENO: result: yes" >&5
42996echo "${ECHO_T}yes" >&6
42997 SET_MAKE=
42998else
42999 echo "$as_me:$LINENO: result: no" >&5
43000echo "${ECHO_T}no" >&6
43001 SET_MAKE="MAKE=${MAKE-make}"
43002fi
43003
43004
43005
43006 if test -n "$ac_tool_prefix"; then
43007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43008set dummy ${ac_tool_prefix}ar; ac_word=$2
43009echo "$as_me:$LINENO: checking for $ac_word" >&5
43010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43011if test "${ac_cv_prog_AR+set}" = set; then
43012 echo $ECHO_N "(cached) $ECHO_C" >&6
43013else
43014 if test -n "$AR"; then
43015 ac_cv_prog_AR="$AR" # Let the user override the test.
43016else
43017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43018for as_dir in $PATH
43019do
43020 IFS=$as_save_IFS
43021 test -z "$as_dir" && as_dir=.
43022 for ac_exec_ext in '' $ac_executable_extensions; do
43023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43024 ac_cv_prog_AR="${ac_tool_prefix}ar"
43025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43026 break 2
43027 fi
43028done
43029done
43030
43031fi
43032fi
43033AR=$ac_cv_prog_AR
43034if test -n "$AR"; then
43035 echo "$as_me:$LINENO: result: $AR" >&5
43036echo "${ECHO_T}$AR" >&6
43037else
43038 echo "$as_me:$LINENO: result: no" >&5
43039echo "${ECHO_T}no" >&6
43040fi
43041
43042fi
43043if test -z "$ac_cv_prog_AR"; then
43044 ac_ct_AR=$AR
43045 # Extract the first word of "ar", so it can be a program name with args.
43046set dummy ar; ac_word=$2
43047echo "$as_me:$LINENO: checking for $ac_word" >&5
43048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43049if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43050 echo $ECHO_N "(cached) $ECHO_C" >&6
43051else
43052 if test -n "$ac_ct_AR"; then
43053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43054else
43055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43056for as_dir in $PATH
43057do
43058 IFS=$as_save_IFS
43059 test -z "$as_dir" && as_dir=.
43060 for ac_exec_ext in '' $ac_executable_extensions; do
43061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43062 ac_cv_prog_ac_ct_AR="ar"
43063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43064 break 2
43065 fi
43066done
43067done
43068
43069 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43070fi
43071fi
43072ac_ct_AR=$ac_cv_prog_ac_ct_AR
43073if test -n "$ac_ct_AR"; then
43074 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43075echo "${ECHO_T}$ac_ct_AR" >&6
43076else
43077 echo "$as_me:$LINENO: result: no" >&5
43078echo "${ECHO_T}no" >&6
43079fi
43080
43081 AR=$ac_ct_AR
43082else
43083 AR="$ac_cv_prog_AR"
43084fi
43085
43086 if test -n "$ac_tool_prefix"; then
43087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43088set dummy ${ac_tool_prefix}strip; ac_word=$2
43089echo "$as_me:$LINENO: checking for $ac_word" >&5
43090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43091if test "${ac_cv_prog_STRIP+set}" = set; then
43092 echo $ECHO_N "(cached) $ECHO_C" >&6
43093else
43094 if test -n "$STRIP"; then
43095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43096else
43097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43098for as_dir in $PATH
43099do
43100 IFS=$as_save_IFS
43101 test -z "$as_dir" && as_dir=.
43102 for ac_exec_ext in '' $ac_executable_extensions; do
43103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43106 break 2
43107 fi
43108done
43109done
43110
43111fi
43112fi
43113STRIP=$ac_cv_prog_STRIP
43114if test -n "$STRIP"; then
43115 echo "$as_me:$LINENO: result: $STRIP" >&5
43116echo "${ECHO_T}$STRIP" >&6
43117else
43118 echo "$as_me:$LINENO: result: no" >&5
43119echo "${ECHO_T}no" >&6
43120fi
43121
43122fi
43123if test -z "$ac_cv_prog_STRIP"; then
43124 ac_ct_STRIP=$STRIP
43125 # Extract the first word of "strip", so it can be a program name with args.
43126set dummy strip; ac_word=$2
43127echo "$as_me:$LINENO: checking for $ac_word" >&5
43128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43129if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43130 echo $ECHO_N "(cached) $ECHO_C" >&6
43131else
43132 if test -n "$ac_ct_STRIP"; then
43133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43134else
43135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43136for as_dir in $PATH
43137do
43138 IFS=$as_save_IFS
43139 test -z "$as_dir" && as_dir=.
43140 for ac_exec_ext in '' $ac_executable_extensions; do
43141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43142 ac_cv_prog_ac_ct_STRIP="strip"
43143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43144 break 2
43145 fi
43146done
43147done
43148
43149 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43150fi
43151fi
43152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43153if test -n "$ac_ct_STRIP"; then
43154 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43155echo "${ECHO_T}$ac_ct_STRIP" >&6
43156else
43157 echo "$as_me:$LINENO: result: no" >&5
43158echo "${ECHO_T}no" >&6
43159fi
43160
43161 STRIP=$ac_ct_STRIP
43162else
43163 STRIP="$ac_cv_prog_STRIP"
43164fi
43165
43166 if test -n "$ac_tool_prefix"; then
43167 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43168set dummy ${ac_tool_prefix}nm; ac_word=$2
43169echo "$as_me:$LINENO: checking for $ac_word" >&5
43170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43171if test "${ac_cv_prog_NM+set}" = set; then
43172 echo $ECHO_N "(cached) $ECHO_C" >&6
43173else
43174 if test -n "$NM"; then
43175 ac_cv_prog_NM="$NM" # Let the user override the test.
43176else
43177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43178for as_dir in $PATH
43179do
43180 IFS=$as_save_IFS
43181 test -z "$as_dir" && as_dir=.
43182 for ac_exec_ext in '' $ac_executable_extensions; do
43183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43184 ac_cv_prog_NM="${ac_tool_prefix}nm"
43185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43186 break 2
43187 fi
43188done
43189done
43190
43191fi
43192fi
43193NM=$ac_cv_prog_NM
43194if test -n "$NM"; then
43195 echo "$as_me:$LINENO: result: $NM" >&5
43196echo "${ECHO_T}$NM" >&6
43197else
43198 echo "$as_me:$LINENO: result: no" >&5
43199echo "${ECHO_T}no" >&6
43200fi
43201
43202fi
43203if test -z "$ac_cv_prog_NM"; then
43204 ac_ct_NM=$NM
43205 # Extract the first word of "nm", so it can be a program name with args.
43206set dummy nm; ac_word=$2
43207echo "$as_me:$LINENO: checking for $ac_word" >&5
43208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43209if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43210 echo $ECHO_N "(cached) $ECHO_C" >&6
43211else
43212 if test -n "$ac_ct_NM"; then
43213 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43214else
43215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43216for as_dir in $PATH
43217do
43218 IFS=$as_save_IFS
43219 test -z "$as_dir" && as_dir=.
43220 for ac_exec_ext in '' $ac_executable_extensions; do
43221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43222 ac_cv_prog_ac_ct_NM="nm"
43223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43224 break 2
43225 fi
43226done
43227done
43228
43229 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43230fi
43231fi
43232ac_ct_NM=$ac_cv_prog_ac_ct_NM
43233if test -n "$ac_ct_NM"; then
43234 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43235echo "${ECHO_T}$ac_ct_NM" >&6
43236else
43237 echo "$as_me:$LINENO: result: no" >&5
43238echo "${ECHO_T}no" >&6
43239fi
43240
43241 NM=$ac_ct_NM
43242else
43243 NM="$ac_cv_prog_NM"
43244fi
43245
43246
43247 case ${BAKEFILE_HOST} in
43248 *-hp-hpux* )
1e9e8aba 43249 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43250 ;;
43251 *) INSTALL_DIR="$INSTALL -d"
43252 ;;
43253 esac
43254
43255
43256 LDFLAGS_GUI=
43257 case ${BAKEFILE_HOST} in
43258 *-*-cygwin* | *-*-mingw32* )
43259 LDFLAGS_GUI="-mwindows"
43260 esac
43261
43262
43263 fi
43264
43265 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43266echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43267if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43268 echo $ECHO_N "(cached) $ECHO_C" >&6
43269else
43270
43271 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43272 egrep -s GNU > /dev/null); then
43273 bakefile_cv_prog_makeisgnu="yes"
43274 else
43275 bakefile_cv_prog_makeisgnu="no"
43276 fi
43277
43278fi
43279echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43280echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43281
43282 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43283 IF_GNU_MAKE=""
43284 else
43285 IF_GNU_MAKE="#"
43286 fi
43287
43288
43289
43290 PLATFORM_UNIX=0
43291 PLATFORM_WIN32=0
43292 PLATFORM_MSDOS=0
43293 PLATFORM_MAC=0
1e9e8aba 43294 PLATFORM_MACOS=0
a848cd7e
SC
43295 PLATFORM_MACOSX=0
43296 PLATFORM_OS2=0
1e9e8aba 43297 PLATFORM_BEOS=0
a848cd7e
SC
43298
43299 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43300 case "${BAKEFILE_HOST}" in
810b94f0 43301 *-*-mingw32* )
a848cd7e
SC
43302 PLATFORM_WIN32=1
43303 ;;
43304 *-pc-msdosdjgpp )
43305 PLATFORM_MSDOS=1
43306 ;;
43307 *-pc-os2_emx | *-pc-os2-emx )
43308 PLATFORM_OS2=1
43309 ;;
47bd5406 43310 *-*-darwin* )
a848cd7e
SC
43311 PLATFORM_MAC=1
43312 PLATFORM_MACOSX=1
43313 ;;
1e9e8aba
DE
43314 *-*-beos* )
43315 PLATFORM_BEOS=1
43316 ;;
43317 powerpc-apple-macos* )
43318 PLATFORM_MAC=1
43319 PLATFORM_MACOS=1
43320 ;;
a848cd7e
SC
43321 * )
43322 PLATFORM_UNIX=1
43323 ;;
43324 esac
43325 else
43326 case "$BAKEFILE_FORCE_PLATFORM" in
43327 win32 )
43328 PLATFORM_WIN32=1
43329 ;;
43330 msdos )
43331 PLATFORM_MSDOS=1
43332 ;;
43333 os2 )
43334 PLATFORM_OS2=1
43335 ;;
43336 darwin )
43337 PLATFORM_MAC=1
43338 PLATFORM_MACOSX=1
43339 ;;
43340 unix )
43341 PLATFORM_UNIX=1
43342 ;;
1e9e8aba
DE
43343 beos )
43344 PLATFORM_BEOS=1
43345 ;;
a848cd7e
SC
43346 * )
43347 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43348echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43349 { (exit 1); exit 1; }; }
43350 ;;
43351 esac
43352 fi
43353
43354
43355
43356
43357
43358
43359
43360
43361
1e9e8aba
DE
43362
43363
a848cd7e
SC
43364 # Check whether --enable-omf or --disable-omf was given.
43365if test "${enable_omf+set}" = set; then
43366 enableval="$enable_omf"
43367 bk_os2_use_omf="$enableval"
43368fi;
43369
43370 case "${BAKEFILE_HOST}" in
43371 *-*-darwin* )
47bd5406
VZ
43372 if test "x$GCC" = "xyes"; then
43373 CFLAGS="$CFLAGS -fno-common"
43374 CXXFLAGS="$CXXFLAGS -fno-common"
43375 fi
43376 if test "x$XLCC" = "xyes"; then
43377 CFLAGS="$CFLAGS -qnocommon"
43378 CXXFLAGS="$CXXFLAGS -qnocommon"
43379 fi
a848cd7e
SC
43380 ;;
43381
43382 *-pc-os2_emx | *-pc-os2-emx )
43383 if test "x$bk_os2_use_omf" = "xyes" ; then
43384 AR=emxomfar
43385 RANLIB=:
43386 LDFLAGS="-Zomf $LDFLAGS"
43387 CFLAGS="-Zomf $CFLAGS"
43388 CXXFLAGS="-Zomf $CXXFLAGS"
43389 OS2_LIBEXT="lib"
43390 else
43391 OS2_LIBEXT="a"
43392 fi
43393 ;;
1e9e8aba
DE
43394
43395 i*86-*-beos* )
43396 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43397 ;;
a848cd7e
SC
43398 esac
43399
43400
43401 SO_SUFFIX="so"
43402 SO_SUFFIX_MODULE="so"
43403 EXEEXT=""
43404 LIBPREFIX="lib"
43405 LIBEXT=".a"
43406 DLLPREFIX="lib"
43407 DLLPREFIX_MODULE=""
43408 DLLIMP_SUFFIX=""
810b94f0 43409 dlldir="$libdir"
a848cd7e
SC
43410
43411 case "${BAKEFILE_HOST}" in
43412 *-hp-hpux* )
43413 SO_SUFFIX="sl"
43414 SO_SUFFIX_MODULE="sl"
43415 ;;
43416 *-*-aix* )
43417 SO_SUFFIX="a"
43418 SO_SUFFIX_MODULE="a"
43419 ;;
810b94f0
MW
43420 *-*-cygwin* )
43421 SO_SUFFIX="dll"
43422 SO_SUFFIX_MODULE="dll"
43423 DLLIMP_SUFFIX="dll.a"
43424 EXEEXT=".exe"
43425 DLLPREFIX="cyg"
43426 dlldir="$bindir"
43427 ;;
43428 *-*-mingw32* )
a848cd7e
SC
43429 SO_SUFFIX="dll"
43430 SO_SUFFIX_MODULE="dll"
43431 DLLIMP_SUFFIX="dll.a"
43432 EXEEXT=".exe"
43433 DLLPREFIX=""
810b94f0 43434 dlldir="$bindir"
a848cd7e
SC
43435 ;;
43436 *-pc-msdosdjgpp )
43437 EXEEXT=".exe"
43438 DLLPREFIX=""
810b94f0 43439 dlldir="$bindir"
a848cd7e
SC
43440 ;;
43441 *-pc-os2_emx | *-pc-os2-emx )
43442 SO_SUFFIX="dll"
43443 SO_SUFFIX_MODULE="dll"
43444 DLLIMP_SUFFIX=$OS2_LIBEXT
43445 EXEEXT=".exe"
43446 DLLPREFIX=""
43447 LIBPREFIX=""
43448 LIBEXT=".$OS2_LIBEXT"
810b94f0 43449 dlldir="$bindir"
a848cd7e 43450 ;;
47bd5406 43451 *-*-darwin* )
a848cd7e
SC
43452 SO_SUFFIX="dylib"
43453 SO_SUFFIX_MODULE="bundle"
43454 ;;
43455 esac
43456
43457 if test "x$DLLIMP_SUFFIX" = "x" ; then
43458 DLLIMP_SUFFIX="$SO_SUFFIX"
43459 fi
43460
43461
43462
43463
43464
43465
43466
43467
43468
43469
43470
810b94f0 43471
1e9e8aba
DE
43472 PIC_FLAG=""
43473 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43474 PIC_FLAG="-fPIC"
43475 fi
43476
1e9e8aba
DE
43477 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43478 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43479 WINDOWS_IMPLIB=0
1e9e8aba 43480
a848cd7e
SC
43481 case "${BAKEFILE_HOST}" in
43482 *-hp-hpux* )
1e9e8aba 43483 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43484 LDFLAGS="$LDFLAGS -L/usr/lib"
43485
43486 SHARED_LD_CC="${CC} -b -o"
43487 SHARED_LD_CXX="${CXX} -b -o"
43488 PIC_FLAG="+Z"
43489 fi
43490 ;;
43491
43492 *-*-linux* )
43493 if test "x$GCC" != "xyes"; then
43494 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43495echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43496if test "${bakefile_cv_prog_icc+set}" = set; then
43497 echo $ECHO_N "(cached) $ECHO_C" >&6
43498else
43499
43500 cat >conftest.$ac_ext <<_ACEOF
43501/* confdefs.h. */
43502_ACEOF
43503cat confdefs.h >>conftest.$ac_ext
43504cat >>conftest.$ac_ext <<_ACEOF
43505/* end confdefs.h. */
43506
43507int
43508main ()
43509{
43510
43511 #ifndef __INTEL_COMPILER
43512 #error Not icc
43513 #endif
43514
43515 ;
43516 return 0;
43517}
43518_ACEOF
43519rm -f conftest.$ac_objext
43520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43521 (eval $ac_compile) 2>conftest.er1
a848cd7e 43522 ac_status=$?
ac1cb8d3
VS
43523 grep -v '^ *+' conftest.er1 >conftest.err
43524 rm -f conftest.er1
43525 cat conftest.err >&5
a848cd7e
SC
43526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527 (exit $ac_status); } &&
6ebeb4c7 43528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43530 (eval $ac_try) 2>&5
43531 ac_status=$?
43532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533 (exit $ac_status); }; } &&
43534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43536 (eval $ac_try) 2>&5
43537 ac_status=$?
43538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43539 (exit $ac_status); }; }; then
43540 bakefile_cv_prog_icc=yes
43541else
43542 echo "$as_me: failed program was:" >&5
43543sed 's/^/| /' conftest.$ac_ext >&5
43544
43545bakefile_cv_prog_icc=no
43546
43547fi
ac1cb8d3 43548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43549
43550fi
43551echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43552echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43553 if test "$bakefile_cv_prog_icc" = "yes"; then
43554 PIC_FLAG="-KPIC"
43555 fi
43556 fi
43557 ;;
43558
43559 *-*-solaris2* )
43560 if test "x$GCC" != xyes ; then
43561 SHARED_LD_CC="${CC} -G -o"
43562 SHARED_LD_CXX="${CXX} -G -o"
43563 PIC_FLAG="-KPIC"
43564 fi
43565 ;;
43566
43567 *-*-darwin* )
43568
43569 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43570echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43571if test "${wx_cv_gcc31+set}" = set; then
43572 echo $ECHO_N "(cached) $ECHO_C" >&6
43573else
43574
43575 cat >conftest.$ac_ext <<_ACEOF
43576/* confdefs.h. */
43577_ACEOF
43578cat confdefs.h >>conftest.$ac_ext
43579cat >>conftest.$ac_ext <<_ACEOF
43580/* end confdefs.h. */
43581
43582int
43583main ()
43584{
43585
43586 #if (__GNUC__ < 3) || \
43587 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43588 #error old gcc
43589 #endif
43590
43591 ;
43592 return 0;
43593}
43594_ACEOF
43595rm -f conftest.$ac_objext
43596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43597 (eval $ac_compile) 2>conftest.er1
a848cd7e 43598 ac_status=$?
ac1cb8d3
VS
43599 grep -v '^ *+' conftest.er1 >conftest.err
43600 rm -f conftest.er1
43601 cat conftest.err >&5
a848cd7e
SC
43602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43603 (exit $ac_status); } &&
6ebeb4c7 43604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43606 (eval $ac_try) 2>&5
43607 ac_status=$?
43608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43609 (exit $ac_status); }; } &&
43610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43612 (eval $ac_try) 2>&5
43613 ac_status=$?
43614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43615 (exit $ac_status); }; }; then
43616
43617 wx_cv_gcc31=yes
43618
43619else
43620 echo "$as_me: failed program was:" >&5
43621sed 's/^/| /' conftest.$ac_ext >&5
43622
43623
43624 wx_cv_gcc31=no
43625
43626
43627fi
ac1cb8d3 43628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43629
43630fi
43631echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43632echo "${ECHO_T}$wx_cv_gcc31" >&6
43633 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43634
43635D='$'
43636cat <<EOF >shared-ld-sh
a848cd7e
SC
43637#!/bin/sh
43638#-----------------------------------------------------------------------------
43639#-- Name: distrib/mac/shared-ld-sh
43640#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43641#-- Author: Gilles Depeyrot
43642#-- Copyright: (c) 2002 Gilles Depeyrot
43643#-- Licence: any use permitted
43644#-----------------------------------------------------------------------------
43645
43646verbose=0
43647args=""
43648objects=""
43649linking_flag="-dynamiclib"
810b94f0 43650ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43651
473276a9
VS
43652while test ${D}# -gt 0; do
43653 case ${D}1 in
a848cd7e
SC
43654
43655 -v)
43656 verbose=1
43657 ;;
43658
43659 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43660 # collect these options and values
473276a9 43661 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43662 shift
43663 ;;
43664
810b94f0
MW
43665 -s|-Wl,*)
43666 # collect these load args
43667 ldargs="${D}{ldargs} ${D}1"
2113bc77 43668 ;;
810b94f0
MW
43669
43670 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43671 # collect these options
473276a9 43672 args="${D}{args} ${D}1"
a848cd7e
SC
43673 ;;
43674
43675 -dynamiclib|-bundle)
473276a9 43676 linking_flag="${D}1"
a848cd7e
SC
43677 ;;
43678
43679 -*)
473276a9 43680 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43681 exit 1
43682 ;;
43683
43684 *.o | *.a | *.dylib)
43685 # collect object files
473276a9 43686 objects="${D}{objects} ${D}1"
a848cd7e
SC
43687 ;;
43688
43689 *)
473276a9 43690 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43691 exit 1
43692 ;;
43693
43694 esac
43695 shift
43696done
43697
810b94f0
MW
43698status=0
43699
a848cd7e
SC
43700#
43701# Link one module containing all the others
43702#
473276a9 43703if test ${D}{verbose} = 1; then
810b94f0 43704 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43705fi
810b94f0 43706c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43707status=${D}?
a848cd7e
SC
43708
43709#
810b94f0
MW
43710# Link the shared library from the single module created, but only if the
43711# previous command didn't fail:
a848cd7e 43712#
810b94f0
MW
43713if test ${D}{status} = 0; then
43714 if test ${D}{verbose} = 1; then
43715 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43716 fi
43717 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43718 status=${D}?
a848cd7e
SC
43719fi
43720
43721#
43722# Remove intermediate module
43723#
473276a9 43724rm -f master.${D}${D}.o
a848cd7e 43725
810b94f0 43726exit ${D}status
a848cd7e 43727EOF
473276a9 43728
a848cd7e
SC
43729 chmod +x shared-ld-sh
43730
43731 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43732 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43733 SHARED_LD_CXX="$SHARED_LD_CC"
43734 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43735 else
43736 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43737 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43738 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43739 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43740 fi
43741
47bd5406
VZ
43742 if test "x$GCC" == "xyes"; then
43743 PIC_FLAG="-dynamic -fPIC"
43744 fi
43745 if test "x$XLCC" = "xyes"; then
43746 PIC_FLAG="-dynamic -DPIC"
43747 fi
a848cd7e
SC
43748 ;;
43749
43750 *-*-aix* )
f6b50c59
VZ
43751 if test "x$GCC" = "xyes"; then
43752 PIC_FLAG=""
43753
43754 case "${BAKEFILE_HOST}" in
43755 *-*-aix5* )
43756 LD_EXPFULL="-Wl,-bexpfull"
43757 ;;
43758 esac
43759
7b94a67c
VZ
43760 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
43761 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 43762 else
f6b50c59 43763 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
43764set dummy makeC++SharedLib; ac_word=$2
43765echo "$as_me:$LINENO: checking for $ac_word" >&5
43766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43767if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43768 echo $ECHO_N "(cached) $ECHO_C" >&6
43769else
43770 if test -n "$AIX_CXX_LD"; then
43771 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43772else
43773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43774for as_dir in $PATH
43775do
43776 IFS=$as_save_IFS
43777 test -z "$as_dir" && as_dir=.
43778 for ac_exec_ext in '' $ac_executable_extensions; do
43779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43780 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43782 break 2
43783 fi
43784done
43785done
43786
43787 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43788fi
43789fi
43790AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43791if test -n "$AIX_CXX_LD"; then
43792 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43793echo "${ECHO_T}$AIX_CXX_LD" >&6
43794else
43795 echo "$as_me:$LINENO: result: no" >&5
43796echo "${ECHO_T}no" >&6
43797fi
43798
f6b50c59 43799 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
43800 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43801 fi
43802 ;;
43803
43804 *-*-beos* )
1e9e8aba
DE
43805 SHARED_LD_CC="${LD} -nostart -o"
43806 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43807 ;;
43808
43809 *-*-irix* )
43810 if test "x$GCC" != "xyes"; then
43811 PIC_FLAG="-KPIC"
43812 fi
43813 ;;
43814
43815 *-*-cygwin* | *-*-mingw32* )
43816 PIC_FLAG=""
1e9e8aba
DE
43817 SHARED_LD_CC="\$(CC) -shared -o"
43818 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43819 WINDOWS_IMPLIB=1
a848cd7e
SC
43820 ;;
43821
43822 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43823 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43824 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43825 PIC_FLAG=""
473276a9
VS
43826
43827D='$'
43828cat <<EOF >dllar.sh
43829#!/bin/sh
43830#
43831# dllar - a tool to build both a .dll and an .a file
43832# from a set of object (.o) files for EMX/OS2.
43833#
43834# Written by Andrew Zabolotny, bit@freya.etu.ru
43835# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43836#
43837# This script will accept a set of files on the command line.
43838# All the public symbols from the .o files will be exported into
43839# a .DEF file, then linker will be run (through gcc) against them to
43840# build a shared library consisting of all given .o files. All libraries
43841# (.a) will be first decompressed into component .o files then act as
43842# described above. You can optionally give a description (-d "description")
43843# which will be put into .DLL. To see the list of accepted options (as well
43844# as command-line format) simply run this program without options. The .DLL
43845# is built to be imported by name (there is no guarantee that new versions
43846# of the library you build will have same ordinals for same symbols).
43847#
43848# dllar is free software; you can redistribute it and/or modify
43849# it under the terms of the GNU General Public License as published by
43850# the Free Software Foundation; either version 2, or (at your option)
43851# any later version.
43852#
43853# dllar is distributed in the hope that it will be useful,
43854# but WITHOUT ANY WARRANTY; without even the implied warranty of
43855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43856# GNU General Public License for more details.
43857#
43858# You should have received a copy of the GNU General Public License
43859# along with dllar; see the file COPYING. If not, write to the Free
43860# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
43861# 02111-1307, USA.
43862
43863# To successfuly run this program you will need:
43864# - Current drive should have LFN support (HPFS, ext2, network, etc)
43865# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
43866# - gcc
43867# (used to build the .dll)
43868# - emxexp
43869# (used to create .def file from .o files)
43870# - emximp
43871# (used to create .a file from .def file)
43872# - GNU text utilites (cat, sort, uniq)
43873# used to process emxexp output
43874# - GNU file utilities (mv, rm)
43875# - GNU sed
43876# - lxlite (optional, see flag below)
43877# (used for general .dll cleanup)
43878#
43879
43880flag_USE_LXLITE=1;
43881
43882#
43883# helper functions
43884# basnam, variant of basename, which does _not_ remove the path, _iff_
43885# second argument (suffix to remove) is given
43886basnam(){
43887 case ${D}# in
43888 1)
1e9e8aba 43889 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43890 ;;
43891 2)
43892 echo ${D}1 | sed 's/'${D}2'${D}//'
43893 ;;
43894 *)
43895 echo "error in basnam ${D}*"
43896 exit 8
43897 ;;
43898 esac
43899}
43900
43901# Cleanup temporary files and output
43902CleanUp() {
43903 cd ${D}curDir
43904 for i in ${D}inputFiles ; do
43905 case ${D}i in
43906 *!)
43907 rm -rf \`basnam ${D}i !\`
43908 ;;
43909 *)
43910 ;;
43911 esac
43912 done
43913
43914 # Kill result in case of failure as there is just to many stupid make/nmake
43915 # things out there which doesn't do this.
1e9e8aba 43916 if [ ${D}# -eq 0 ]; then
473276a9
VS
43917 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43918 fi
43919}
43920
43921# Print usage and exit script with rc=1.
43922PrintHelp() {
b1d22ded
DE
43923 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43924 echo ' [-name-mangler-script script.sh]'
43925 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43926 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43927 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43928 echo ' [*.o] [*.a]'
473276a9
VS
43929 echo '*> "output_file" should have no extension.'
43930 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43931 echo ' The import library name is derived from this and is set to "name".a,'
43932 echo ' unless overridden by -import'
43933 echo '*> "importlib_name" should have no extension.'
43934 echo ' If it has the .o, or .a extension, it is automatically removed.'
43935 echo ' This name is used as the import library name and may be longer and'
43936 echo ' more descriptive than the DLL name which has to follow the old '
43937 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43938 echo '*> "script.sh may be given to override the output_file name by a'
43939 echo ' different name. It is mainly useful if the regular make process'
43940 echo ' of some package does not take into account OS/2 restriction of'
43941 echo ' DLL name lengths. It takes the importlib name as input and is'
43942 echo ' supposed to procude a shorter name as output. The script should'
43943 echo ' expect to get importlib_name without extension and should produce'
43944 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43945 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43946 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43947 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43948 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43949 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43950 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43951 echo ' If the last character of a symbol is "*", all symbols beginning'
43952 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43953 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43954 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43955 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43956 echo ' C runtime DLLs.'
b1d22ded 43957 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43958 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43959 echo ' unchanged to GCC at the end of command line.'
43960 echo '*> If you create a DLL from a library and you do not specify -o,'
43961 echo ' the basename for DLL and import library will be set to library name,'
43962 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43963 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43964 echo ' library will be renamed into gcc_s.a.'
43965 echo '--------'
43966 echo 'Example:'
43967 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43968 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43969 CleanUp
43970 exit 1
43971}
43972
43973# Execute a command.
43974# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43975# @Uses Whatever CleanUp() uses.
43976doCommand() {
43977 echo "${D}*"
43978 eval ${D}*
43979 rcCmd=${D}?
43980
1e9e8aba 43981 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43982 echo "command failed, exit code="${D}rcCmd
43983 CleanUp
43984 exit ${D}rcCmd
43985 fi
43986}
43987
43988# main routine
43989# setup globals
43990cmdLine=${D}*
43991outFile=""
43992outimpFile=""
43993inputFiles=""
b1d22ded 43994renameScript=""
473276a9
VS
43995description=""
43996CC=gcc.exe
43997CFLAGS="-s -Zcrtdll"
43998EXTRA_CFLAGS=""
43999EXPORT_BY_ORDINALS=0
44000exclude_symbols=""
44001library_flags=""
44002curDir=\`pwd\`
44003curDirS=curDir
44004case ${D}curDirS in
44005*/)
44006 ;;
44007*)
44008 curDirS=${D}{curDirS}"/"
44009 ;;
44010esac
44011# Parse commandline
44012libsToLink=0
b1d22ded 44013omfLinking=0
1e9e8aba 44014while [ ${D}1 ]; do
473276a9
VS
44015 case ${D}1 in
44016 -ord*)
44017 EXPORT_BY_ORDINALS=1;
44018 ;;
44019 -o*)
44020 shift
44021 outFile=${D}1
44022 ;;
44023 -i*)
44024 shift
44025 outimpFile=${D}1
44026 ;;
b1d22ded
DE
44027 -name-mangler-script)
44028 shift
44029 renameScript=${D}1
44030 ;;
473276a9
VS
44031 -d*)
44032 shift
44033 description=${D}1
44034 ;;
44035 -f*)
44036 shift
44037 CFLAGS=${D}1
44038 ;;
44039 -c*)
44040 shift
44041 CC=${D}1
44042 ;;
44043 -h*)
44044 PrintHelp
44045 ;;
44046 -ex*)
44047 shift
44048 exclude_symbols=${D}{exclude_symbols}${D}1" "
44049 ;;
44050 -libf*)
44051 shift
44052 library_flags=${D}{library_flags}${D}1" "
44053 ;;
44054 -nocrt*)
44055 CFLAGS="-s"
44056 ;;
44057 -nolxl*)
44058 flag_USE_LXLITE=0
44059 ;;
44060 -* | /*)
44061 case ${D}1 in
44062 -L* | -l*)
44063 libsToLink=1
44064 ;;
b1d22ded
DE
44065 -Zomf)
44066 omfLinking=1
44067 ;;
473276a9
VS
44068 *)
44069 ;;
44070 esac
44071 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44072 ;;
b1d22ded
DE
44073 *.dll)
44074 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44075 if [ ${D}omfLinking -eq 1 ]; then
44076 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44077 else
44078 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44079 fi
44080 ;;
473276a9
VS
44081 *)
44082 found=0;
1e9e8aba 44083 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44084 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44085 else
44086 for file in ${D}1 ; do
1e9e8aba 44087 if [ -f ${D}file ]; then
473276a9
VS
44088 inputFiles="${D}{inputFiles} ${D}file"
44089 found=1
44090 fi
44091 done
1e9e8aba 44092 if [ ${D}found -eq 0 ]; then
473276a9
VS
44093 echo "ERROR: No file(s) found: "${D}1
44094 exit 8
44095 fi
44096 fi
44097 ;;
44098 esac
44099 shift
44100done # iterate cmdline words
44101
44102#
1e9e8aba 44103if [ -z "${D}inputFiles" ]; then
473276a9
VS
44104 echo "dllar: no input files"
44105 PrintHelp
44106fi
44107
44108# Now extract all .o files from .a files
44109newInputFiles=""
44110for file in ${D}inputFiles ; do
44111 case ${D}file in
44112 *.a | *.lib)
44113 case ${D}file in
44114 *.a)
44115 suffix=".a"
44116 AR="ar"
44117 ;;
44118 *.lib)
44119 suffix=".lib"
44120 AR="emxomfar"
44121 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44122 ;;
44123 *)
44124 ;;
44125 esac
44126 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44127 mkdir ${D}dirname
1e9e8aba 44128 if [ ${D}? -ne 0 ]; then
473276a9
VS
44129 echo "Failed to create subdirectory ./${D}dirname"
44130 CleanUp
44131 exit 8;
44132 fi
44133 # Append '!' to indicate archive
44134 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44135 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44136 cd ${D}curDir
44137 found=0;
44138 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44139 if [ -f ${D}subfile ]; then
473276a9 44140 found=1
1e9e8aba 44141 if [ -s ${D}subfile ]; then
473276a9
VS
44142 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44143 newInputFiles="${D}newInputFiles ${D}subfile"
44144 fi
44145 fi
44146 done
1e9e8aba
DE
44147 if [ ${D}found -eq 0 ]; then
44148 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44149 fi
44150 ;;
44151 *)
44152 newInputFiles="${D}{newInputFiles} ${D}file"
44153 ;;
44154 esac
44155done
44156inputFiles="${D}newInputFiles"
44157
44158# Output filename(s).
44159do_backup=0;
1e9e8aba 44160if [ -z ${D}outFile ]; then
473276a9
VS
44161 do_backup=1;
44162 set outFile ${D}inputFiles; outFile=${D}2
44163fi
44164
44165# If it is an archive, remove the '!' and the '_%' suffixes
44166case ${D}outFile in
44167*_%!)
44168 outFile=\`basnam ${D}outFile _%!\`
44169 ;;
44170*)
44171 ;;
44172esac
44173case ${D}outFile in
44174*.dll)
44175 outFile=\`basnam ${D}outFile .dll\`
44176 ;;
44177*.DLL)
44178 outFile=\`basnam ${D}outFile .DLL\`
44179 ;;
44180*.o)
44181 outFile=\`basnam ${D}outFile .o\`
44182 ;;
44183*.obj)
44184 outFile=\`basnam ${D}outFile .obj\`
44185 ;;
44186*.a)
44187 outFile=\`basnam ${D}outFile .a\`
44188 ;;
44189*.lib)
44190 outFile=\`basnam ${D}outFile .lib\`
44191 ;;
44192*)
44193 ;;
44194esac
44195case ${D}outimpFile in
44196*.a)
44197 outimpFile=\`basnam ${D}outimpFile .a\`
44198 ;;
44199*.lib)
44200 outimpFile=\`basnam ${D}outimpFile .lib\`
44201 ;;
44202*)
44203 ;;
44204esac
1e9e8aba 44205if [ -z ${D}outimpFile ]; then
473276a9
VS
44206 outimpFile=${D}outFile
44207fi
44208defFile="${D}{outFile}.def"
44209arcFile="${D}{outimpFile}.a"
44210arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44211
44212#create ${D}dllFile as something matching 8.3 restrictions,
44213if [ -z ${D}renameScript ] ; then
44214 dllFile="${D}outFile"
44215else
44216 dllFile=\`${D}renameScript ${D}outimpFile\`
44217fi
473276a9 44218
1e9e8aba
DE
44219if [ ${D}do_backup -ne 0 ] ; then
44220 if [ -f ${D}arcFile ] ; then
473276a9
VS
44221 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44222 fi
1e9e8aba 44223 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44224 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44225 fi
44226fi
44227
44228# Extract public symbols from all the object files.
44229tmpdefFile=${D}{defFile}_%
44230rm -f ${D}tmpdefFile
44231for file in ${D}inputFiles ; do
44232 case ${D}file in
44233 *!)
44234 ;;
44235 *)
44236 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44237 ;;
44238 esac
44239done
44240
44241# Create the def file.
44242rm -f ${D}defFile
44243echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44244dllFile="${D}{dllFile}.dll"
44245if [ ! -z ${D}description ]; then
1e9e8aba 44246 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44247fi
44248echo "EXPORTS" >> ${D}defFile
44249
44250doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44251grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44252
44253# Checks if the export is ok or not.
44254for word in ${D}exclude_symbols; do
44255 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44256 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44257done
44258
44259
1e9e8aba
DE
44260if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44261 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44262 sed '
44263 N
44264 : loop
1e9e8aba 44265 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44266 t loop
44267 ' > ${D}{tmpdefFile}%
44268 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44269else
44270 rm -f ${D}{tmpdefFile}%
44271fi
44272cat ${D}tmpdefFile >> ${D}defFile
44273rm -f ${D}tmpdefFile
44274
44275# Do linking, create implib, and apply lxlite.
44276gccCmdl="";
44277for file in ${D}inputFiles ; do
44278 case ${D}file in
44279 *!)
44280 ;;
44281 *)
44282 gccCmdl="${D}gccCmdl ${D}file"
44283 ;;
44284 esac
44285done
44286doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44287touch "${D}{outFile}.dll"
44288
44289doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44290if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44291 add_flags="";
1e9e8aba 44292 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44293 add_flags="-ynd"
44294 fi
44295 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44296fi
44297doCommand "emxomf -s -l ${D}arcFile"
44298
44299# Successful exit.
44300CleanUp 1
44301exit 0
44302EOF
44303
44304 chmod +x dllar.sh
a848cd7e
SC
44305 ;;
44306
1e9e8aba 44307 powerpc-apple-macos* | \
0ad5d837 44308 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44309 *-*-sunos4* | \
44310 *-*-osf* | \
44311 *-*-dgux5* | \
47a7e797
MW
44312 *-*-sysv5* | \
44313 *-pc-msdosdjgpp )
a848cd7e
SC
44314 ;;
44315
44316 *)
44317 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44318echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44319 { (exit 1); exit 1; }; }
44320 esac
44321
2057db16
VS
44322 if test "x$PIC_FLAG" != "x" ; then
44323 PIC_FLAG="$PIC_FLAG -DPIC"
44324 fi
44325
a848cd7e
SC
44326 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44327 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44328 fi
44329 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44330 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44331 fi
44332
44333
44334
44335
44336
44337
44338
44339
810b94f0 44340
a848cd7e
SC
44341 USE_SOVERSION=0
44342 USE_SOVERLINUX=0
44343 USE_SOVERSOLARIS=0
810b94f0 44344 USE_SOVERCYGWIN=0
a848cd7e
SC
44345 USE_SOSYMLINKS=0
44346 USE_MACVERSION=0
44347 SONAME_FLAG=
44348
44349 case "${BAKEFILE_HOST}" in
0ad5d837 44350 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44351 SONAME_FLAG="-Wl,-soname,"
44352 USE_SOVERSION=1
44353 USE_SOVERLINUX=1
44354 USE_SOSYMLINKS=1
44355 ;;
44356
a848cd7e
SC
44357 *-*-solaris2* )
44358 SONAME_FLAG="-h "
44359 USE_SOVERSION=1
44360 USE_SOVERSOLARIS=1
44361 USE_SOSYMLINKS=1
44362 ;;
44363
44364 *-*-darwin* )
44365 USE_MACVERSION=1
44366 USE_SOVERSION=1
44367 USE_SOSYMLINKS=1
44368 ;;
810b94f0
MW
44369
44370 *-*-cygwin* )
44371 USE_SOVERSION=1
44372 USE_SOVERCYGWIN=1
44373 ;;
a848cd7e
SC
44374 esac
44375
44376
44377
44378
44379
44380
44381
44382
44383
810b94f0 44384
a848cd7e
SC
44385 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44386echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44387 DEPS_TRACKING=1
a848cd7e
SC
44388
44389 if test "x$GCC" = "xyes"; then
44390 DEPSMODE=gcc
a848cd7e 44391 case "${BAKEFILE_HOST}" in
47bd5406 44392 *-*-darwin* )
0ad5d837 44393 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44394 ;;
44395 * )
0ad5d837 44396 DEPSFLAG="-MMD"
a848cd7e
SC
44397 ;;
44398 esac
44399 echo "$as_me:$LINENO: result: gcc" >&5
44400echo "${ECHO_T}gcc" >&6
b1d22ded 44401 elif test "x$MWCC" = "xyes"; then
81f90336 44402 DEPSMODE=mwcc
0ad5d837 44403 DEPSFLAG="-MM"
b1d22ded
DE
44404 echo "$as_me:$LINENO: result: mwcc" >&5
44405echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44406 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44407 DEPSMODE=unixcc
44408 DEPSFLAG="-xM1"
44409 echo "$as_me:$LINENO: result: Sun cc" >&5
44410echo "${ECHO_T}Sun cc" >&6
44411 elif test "x$SGICC" = "xyes"; then
44412 DEPSMODE=unixcc
44413 DEPSFLAG="-M"
44414 echo "$as_me:$LINENO: result: SGI cc" >&5
44415echo "${ECHO_T}SGI cc" >&6
a848cd7e 44416 else
0ad5d837 44417 DEPS_TRACKING=0
a848cd7e
SC
44418 echo "$as_me:$LINENO: result: none" >&5
44419echo "${ECHO_T}none" >&6
44420 fi
44421
44422 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44423
44424D='$'
44425cat <<EOF >bk-deps
a848cd7e
SC
44426#!/bin/sh
44427
44428# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44429# script. It is used to track C/C++ files dependencies in portable way.
44430#
44431# Permission is given to use this file in any way.
44432
473276a9 44433DEPSMODE=${DEPSMODE}
a848cd7e 44434DEPSDIR=.deps
0ad5d837 44435DEPSFLAG="${DEPSFLAG}"
a848cd7e 44436
473276a9 44437mkdir -p ${D}DEPSDIR
a848cd7e 44438
473276a9 44439if test ${D}DEPSMODE = gcc ; then
0ad5d837 44440 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44441 status=${D}?
44442 if test ${D}{status} != 0 ; then
44443 exit ${D}{status}
a848cd7e
SC
44444 fi
44445 # move created file to the location we want it in:
473276a9
VS
44446 while test ${D}# -gt 0; do
44447 case "${D}1" in
a848cd7e
SC
44448 -o )
44449 shift
473276a9 44450 objfile=${D}1
a848cd7e
SC
44451 ;;
44452 -* )
44453 ;;
44454 * )
473276a9 44455 srcfile=${D}1
a848cd7e
SC
44456 ;;
44457 esac
44458 shift
44459 done
1e9e8aba
DE
44460 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
44461 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
44462 if test -f ${D}depfile ; then
44463 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44464 rm -f ${D}depfile
a848cd7e 44465 else
1e9e8aba 44466 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
44467 if test -f ${D}depfile ; then
44468 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44469 rm -f ${D}depfile
a848cd7e
SC
44470 fi
44471 fi
44472 exit 0
81f90336 44473elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 44474 ${D}* || exit ${D}?
81f90336
MW
44475 # Run mwcc again with -MM and redirect into the dep file we want
44476 # NOTE: We can't use shift here because we need ${D}* to be valid
44477 prevarg=
44478 for arg in ${D}* ; do
44479 if test "${D}prevarg" = "-o"; then
44480 objfile=${D}arg
44481 else
44482 case "${D}arg" in
44483 -* )
44484 ;;
44485 * )
44486 srcfile=${D}arg
44487 ;;
44488 esac
44489 fi
44490 prevarg="${D}arg"
44491 done
0ad5d837 44492 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 44493 exit 0
0ad5d837 44494elif test ${D}DEPSMODE = unixcc; then
f6b50c59 44495 ${D}* || exit ${D}?
a9e5b1f0
MW
44496 # Run compiler again with deps flag and redirect into the dep file.
44497 # It doesn't work if the '-o FILE' option is used, but without it the
44498 # dependency file will contain the wrong name for the object. So it is
44499 # removed from the command line, and the dep file is fixed with sed.
44500 cmd=""
44501 while test ${D}# -gt 0; do
44502 case "${D}1" in
44503 -o )
44504 shift
44505 objfile=${D}1
44506 ;;
44507 * )
44508 eval arg${D}#=\\${D}1
44509 cmd="${D}cmd \\${D}arg${D}#"
44510 ;;
44511 esac
44512 shift
44513 done
0ad5d837 44514 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 44515 exit 0
a848cd7e 44516else
473276a9
VS
44517 ${D}*
44518 exit ${D}?
a848cd7e
SC
44519fi
44520EOF
473276a9 44521
a848cd7e
SC
44522 chmod +x bk-deps
44523 fi
44524
44525
44526
44527
44528 RESCOMP=
44529 SETFILE=
44530
44531 case ${BAKEFILE_HOST} in
44532 *-*-cygwin* | *-*-mingw32* )
44533 if test "$build" != "$host" ; then
44534 RESCOMP=$host_alias-windres
44535 else
44536 # Extract the first word of "windres", so it can be a program name with args.
44537set dummy windres; ac_word=$2
44538echo "$as_me:$LINENO: checking for $ac_word" >&5
44539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44540if test "${ac_cv_prog_RESCOMP+set}" = set; then
44541 echo $ECHO_N "(cached) $ECHO_C" >&6
44542else
44543 if test -n "$RESCOMP"; then
44544 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44545else
44546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44547for as_dir in $PATH
44548do
44549 IFS=$as_save_IFS
44550 test -z "$as_dir" && as_dir=.
44551 for ac_exec_ext in '' $ac_executable_extensions; do
44552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44553 ac_cv_prog_RESCOMP="windres"
44554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44555 break 2
44556 fi
44557done
44558done
44559
44560 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44561fi
44562fi
44563RESCOMP=$ac_cv_prog_RESCOMP
44564if test -n "$RESCOMP"; then
44565 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44566echo "${ECHO_T}$RESCOMP" >&6
44567else
44568 echo "$as_me:$LINENO: result: no" >&5
44569echo "${ECHO_T}no" >&6
44570fi
44571
44572 fi
44573 ;;
44574
1e9e8aba 44575 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44576 # Extract the first word of "Rez", so it can be a program name with args.
44577set dummy Rez; ac_word=$2
44578echo "$as_me:$LINENO: checking for $ac_word" >&5
44579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44580if test "${ac_cv_prog_RESCOMP+set}" = set; then
44581 echo $ECHO_N "(cached) $ECHO_C" >&6
44582else
44583 if test -n "$RESCOMP"; then
44584 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44585else
44586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44587for as_dir in $PATH
44588do
44589 IFS=$as_save_IFS
44590 test -z "$as_dir" && as_dir=.
44591 for ac_exec_ext in '' $ac_executable_extensions; do
44592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44593 ac_cv_prog_RESCOMP="Rez"
44594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44595 break 2
44596 fi
44597done
44598done
44599
44600 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44601fi
44602fi
44603RESCOMP=$ac_cv_prog_RESCOMP
44604if test -n "$RESCOMP"; then
44605 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44606echo "${ECHO_T}$RESCOMP" >&6
44607else
44608 echo "$as_me:$LINENO: result: no" >&5
44609echo "${ECHO_T}no" >&6
44610fi
44611
44612 # Extract the first word of "SetFile", so it can be a program name with args.
44613set dummy SetFile; ac_word=$2
44614echo "$as_me:$LINENO: checking for $ac_word" >&5
44615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44616if test "${ac_cv_prog_SETFILE+set}" = set; then
44617 echo $ECHO_N "(cached) $ECHO_C" >&6
44618else
44619 if test -n "$SETFILE"; then
44620 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44621else
44622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44623for as_dir in $PATH
44624do
44625 IFS=$as_save_IFS
44626 test -z "$as_dir" && as_dir=.
44627 for ac_exec_ext in '' $ac_executable_extensions; do
44628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44629 ac_cv_prog_SETFILE="SetFile"
44630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44631 break 2
44632 fi
44633done
44634done
44635
44636 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44637fi
44638fi
44639SETFILE=$ac_cv_prog_SETFILE
44640if test -n "$SETFILE"; then
44641 echo "$as_me:$LINENO: result: $SETFILE" >&5
44642echo "${ECHO_T}$SETFILE" >&6
44643else
44644 echo "$as_me:$LINENO: result: no" >&5
44645echo "${ECHO_T}no" >&6
44646fi
44647
44648 ;;
44649 esac
44650
44651
44652
44653
44654
c9469659 44655 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44656
dcc1b6ad 44657
c9469659 44658BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44659
646b6ec1 44660
74b84332 44661
a848cd7e
SC
44662 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44663if test "${enable_precomp_headers+set}" = set; then
44664 enableval="$enable_precomp_headers"
44665 bk_use_pch="$enableval"
44666fi;
44667
44668 GCC_PCH=0
44669
44670 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44671 if test "x$GCC" = "xyes"; then
44672 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44673echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44674 cat >conftest.$ac_ext <<_ACEOF
44675/* confdefs.h. */
44676_ACEOF
44677cat confdefs.h >>conftest.$ac_ext
44678cat >>conftest.$ac_ext <<_ACEOF
44679/* end confdefs.h. */
44680
44681int
44682main ()
44683{
44684
44685 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44686 #error "no pch support"
44687 #endif
44688 #if (__GNUC__ < 3)
44689 #error "no pch support"
44690 #endif
44691 #if (__GNUC__ == 3) && \
44692 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44693 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44694 #error "no pch support"
44695 #endif
44696
44697 ;
44698 return 0;
44699}
44700_ACEOF
44701rm -f conftest.$ac_objext
44702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44703 (eval $ac_compile) 2>conftest.er1
a848cd7e 44704 ac_status=$?
ac1cb8d3
VS
44705 grep -v '^ *+' conftest.er1 >conftest.err
44706 rm -f conftest.er1
44707 cat conftest.err >&5
a848cd7e
SC
44708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709 (exit $ac_status); } &&
6ebeb4c7 44710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44712 (eval $ac_try) 2>&5
44713 ac_status=$?
44714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715 (exit $ac_status); }; } &&
44716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44718 (eval $ac_try) 2>&5
44719 ac_status=$?
44720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44721 (exit $ac_status); }; }; then
44722
44723 echo "$as_me:$LINENO: result: yes" >&5
44724echo "${ECHO_T}yes" >&6
a848cd7e
SC
44725 GCC_PCH=1
44726
44727else
44728 echo "$as_me: failed program was:" >&5
44729sed 's/^/| /' conftest.$ac_ext >&5
44730
44731
44732 echo "$as_me:$LINENO: result: no" >&5
44733echo "${ECHO_T}no" >&6
44734
44735fi
ac1cb8d3 44736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44737 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44738
44739D='$'
44740cat <<EOF >bk-make-pch
a848cd7e
SC
44741#!/bin/sh
44742
44743# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44744# script. It is used to generated precompiled headers.
44745#
44746# Permission is given to use this file in any way.
44747
1e9e8aba
DE
44748outfile="${D}{1}"
44749header="${D}{2}"
a848cd7e
SC
44750shift
44751shift
44752
44753compiler=
44754headerfile=
1e9e8aba
DE
44755while test ${D}{#} -gt 0; do
44756 case "${D}{1}" in
a848cd7e 44757 -I* )
1e9e8aba
DE
44758 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44759 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44760 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44761 fi
44762 ;;
44763 esac
1e9e8aba 44764 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44765 shift
44766done
44767
1e9e8aba
DE
44768if test "x${D}{headerfile}" = "x" ; then
44769 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44770else
1e9e8aba
DE
44771 if test -f ${D}{outfile} ; then
44772 rm -f ${D}{outfile}
a848cd7e 44773 else
1e9e8aba 44774 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44775 fi
1e9e8aba 44776 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44777 mkdir -p .deps
44778 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44779 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44780 exit ${D}{?}
a848cd7e
SC
44781fi
44782EOF
1e9e8aba 44783
a848cd7e
SC
44784 chmod +x bk-make-pch
44785 fi
44786 fi
44787 fi
44788
44789
44790
a848cd7e
SC
44791 COND_BUILD_DEBUG="#"
44792 if test "x$BUILD" = "xdebug" ; then
44793 COND_BUILD_DEBUG=""
44794 fi
44795
44796 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44797 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44798 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44799 fi
44800
44801 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44802 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44803 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44804 fi
44805
44806 COND_BUILD_DEBUG_UNICODE_0="#"
44807 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44808 COND_BUILD_DEBUG_UNICODE_0=""
44809 fi
44810
44811 COND_BUILD_DEBUG_UNICODE_1="#"
44812 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44813 COND_BUILD_DEBUG_UNICODE_1=""
44814 fi
44815
44816 COND_BUILD_RELEASE="#"
44817 if test "x$BUILD" = "xrelease" ; then
44818 COND_BUILD_RELEASE=""
44819 fi
44820
44821 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44822 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44823 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44824 fi
44825
44826 COND_BUILD_RELEASE_UNICODE_0="#"
44827 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44828 COND_BUILD_RELEASE_UNICODE_0=""
44829 fi
44830
44831 COND_BUILD_RELEASE_UNICODE_1="#"
44832 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44833 COND_BUILD_RELEASE_UNICODE_1=""
44834 fi
44835
44836 COND_DEBUG_FLAG_1="#"
44837 if test "x$DEBUG_FLAG" = "x1" ; then
44838 COND_DEBUG_FLAG_1=""
44839 fi
44840
44841 COND_DEBUG_INFO_0="#"
44842 if test "x$DEBUG_INFO" = "x0" ; then
44843 COND_DEBUG_INFO_0=""
44844 fi
44845
44846 COND_DEBUG_INFO_1="#"
44847 if test "x$DEBUG_INFO" = "x1" ; then
44848 COND_DEBUG_INFO_1=""
44849 fi
44850
44851 COND_DEPS_TRACKING_0="#"
44852 if test "x$DEPS_TRACKING" = "x0" ; then
44853 COND_DEPS_TRACKING_0=""
44854 fi
44855
44856 COND_DEPS_TRACKING_1="#"
44857 if test "x$DEPS_TRACKING" = "x1" ; then
44858 COND_DEPS_TRACKING_1=""
44859 fi
44860
44861 COND_GCC_PCH_1="#"
44862 if test "x$GCC_PCH" = "x1" ; then
44863 COND_GCC_PCH_1=""
44864 fi
44865
44866 COND_MONOLITHIC_0="#"
44867 if test "x$MONOLITHIC" = "x0" ; then
44868 COND_MONOLITHIC_0=""
44869 fi
44870
44871 COND_MONOLITHIC_0_SHARED_0="#"
44872 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
44873 COND_MONOLITHIC_0_SHARED_0=""
44874 fi
44875
44876 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
44877 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
44878 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
44879 fi
44880
90970d69
DE
44881 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44882 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44883 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44884 fi
44885
a848cd7e
SC
44886 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44887 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44888 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44889 fi
44890
6671c68b
VZ
44891 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44892 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44893 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44894 fi
44895
a848cd7e
SC
44896 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44897 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44898 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44899 fi
44900
ceec2216
RL
44901 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44902 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44903 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44904 fi
44905
a848cd7e
SC
44906 COND_MONOLITHIC_0_SHARED_1="#"
44907 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44908 COND_MONOLITHIC_0_SHARED_1=""
44909 fi
44910
44911 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44912 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44913 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44914 fi
44915
90970d69
DE
44916 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44917 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44918 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44919 fi
44920
a848cd7e
SC
44921 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44922 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44923 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44924 fi
44925
6671c68b
VZ
44926 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44927 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44928 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44929 fi
44930
a848cd7e
SC
44931 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44932 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44933 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44934 fi
44935
ceec2216
RL
44936 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44937 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44938 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44939 fi
44940
a848cd7e
SC
44941 COND_MONOLITHIC_0_USE_ODBC_1="#"
44942 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44943 COND_MONOLITHIC_0_USE_ODBC_1=""
44944 fi
44945
44946 COND_MONOLITHIC_1="#"
44947 if test "x$MONOLITHIC" = "x1" ; then
44948 COND_MONOLITHIC_1=""
44949 fi
44950
44951 COND_MONOLITHIC_1_SHARED_0="#"
44952 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44953 COND_MONOLITHIC_1_SHARED_0=""
44954 fi
44955
44956 COND_MONOLITHIC_1_SHARED_1="#"
44957 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44958 COND_MONOLITHIC_1_SHARED_1=""
44959 fi
44960
44961 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44962 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44963 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44964 fi
44965
44966 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44967 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44968 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44969 fi
44970
eb730a0c
JS
44971 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44972 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44973 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44974 fi
44975
a848cd7e
SC
44976 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44977 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44978 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44979 fi
44980
44981 COND_PLATFORM_MACOSX_1="#"
44982 if test "x$PLATFORM_MACOSX" = "x1" ; then
44983 COND_PLATFORM_MACOSX_1=""
44984 fi
44985
a30f955f
VS
44986 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44987 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44988 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44989 fi
44990
a848cd7e
SC
44991 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44992 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44993 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44994 fi
44995
44996 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44997 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44998 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44999 fi
45000
45001 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45002 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45003 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45004 fi
45005
fc480dc1
DE
45006 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45007 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45008 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45009 fi
45010
1e9e8aba
DE
45011 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45012 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45013 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45014 fi
45015
ebee3cd0
VS
45016 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45017 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45018 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45019 fi
45020
45021 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45022 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45023 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45024 fi
45025
a848cd7e
SC
45026 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45027 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45028 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45029 fi
45030
45031 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45032 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45033 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45034 fi
45035
b48a2016
DE
45036 COND_PLATFORM_MACOS_1="#"
45037 if test "x$PLATFORM_MACOS" = "x1" ; then
45038 COND_PLATFORM_MACOS_1=""
45039 fi
45040
083508af
MW
45041 COND_PLATFORM_MAC_1="#"
45042 if test "x$PLATFORM_MAC" = "x1" ; then
45043 COND_PLATFORM_MAC_1=""
45044 fi
45045
83d8eb47
MW
45046 COND_PLATFORM_MSDOS_1="#"
45047 if test "x$PLATFORM_MSDOS" = "x1" ; then
45048 COND_PLATFORM_MSDOS_1=""
45049 fi
45050
a848cd7e
SC
45051 COND_PLATFORM_OS2_1="#"
45052 if test "x$PLATFORM_OS2" = "x1" ; then
45053 COND_PLATFORM_OS2_1=""
45054 fi
45055
45056 COND_PLATFORM_UNIX_0="#"
45057 if test "x$PLATFORM_UNIX" = "x0" ; then
45058 COND_PLATFORM_UNIX_0=""
45059 fi
45060
45061 COND_PLATFORM_UNIX_1="#"
45062 if test "x$PLATFORM_UNIX" = "x1" ; then
45063 COND_PLATFORM_UNIX_1=""
45064 fi
45065
45066 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45067 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45068 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45069 fi
45070
45071 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45072 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45073 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45074 fi
45075
45076 COND_PLATFORM_WIN32_0="#"
45077 if test "x$PLATFORM_WIN32" = "x0" ; then
45078 COND_PLATFORM_WIN32_0=""
45079 fi
45080
45081 COND_PLATFORM_WIN32_1="#"
45082 if test "x$PLATFORM_WIN32" = "x1" ; then
45083 COND_PLATFORM_WIN32_1=""
45084 fi
45085
45086 COND_SHARED_0="#"
45087 if test "x$SHARED" = "x0" ; then
45088 COND_SHARED_0=""
45089 fi
45090
083508af
MW
45091 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45092 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45093 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45094 fi
45095
45096 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45097 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45098 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45099 fi
45100
45101 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45102 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45103 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45104 fi
45105
a848cd7e
SC
45106 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45107 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45108 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45109 fi
45110
45111 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45112 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45113 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45114 fi
45115
45116 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45117 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45118 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45119 fi
45120
45121 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45122 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45123 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45124 fi
45125
083508af
MW
45126 COND_SHARED_0_USE_XRC_1="#"
45127 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45128 COND_SHARED_0_USE_XRC_1=""
45129 fi
45130
a848cd7e
SC
45131 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45132 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45133 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45134 fi
45135
45136 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45137 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45138 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45139 fi
45140
45141 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45142 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45143 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45144 fi
45145
45146 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45147 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45148 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45149 fi
45150
45151 COND_SHARED_1="#"
45152 if test "x$SHARED" = "x1" ; then
45153 COND_SHARED_1=""
45154 fi
45155
45156 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45157 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45158 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45159 fi
45160
083508af
MW
45161 COND_SHARED_1_USE_XRC_1="#"
45162 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45163 COND_SHARED_1_USE_XRC_1=""
45164 fi
45165
a30f955f
VS
45166 COND_TOOLKIT_="#"
45167 if test "x$TOOLKIT" = "x" ; then
45168 COND_TOOLKIT_=""
45169 fi
45170
a848cd7e
SC
45171 COND_TOOLKIT_COCOA="#"
45172 if test "x$TOOLKIT" = "xCOCOA" ; then
45173 COND_TOOLKIT_COCOA=""
45174 fi
45175
a49baeab
DE
45176 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45177 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45178 COND_TOOLKIT_COCOA_USE_GUI_1=""
45179 fi
45180
a848cd7e
SC
45181 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45182 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45183 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45184 fi
45185
45186 COND_TOOLKIT_GTK="#"
45187 if test "x$TOOLKIT" = "xGTK" ; then
45188 COND_TOOLKIT_GTK=""
45189 fi
45190
45191 COND_TOOLKIT_GTK_USE_GUI_1="#"
45192 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45193 COND_TOOLKIT_GTK_USE_GUI_1=""
45194 fi
45195
45196 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45197 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45198 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45199 fi
45200
45201 COND_TOOLKIT_MAC="#"
45202 if test "x$TOOLKIT" = "xMAC" ; then
45203 COND_TOOLKIT_MAC=""
45204 fi
45205
45206 COND_TOOLKIT_MAC_USE_GUI_1="#"
45207 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45208 COND_TOOLKIT_MAC_USE_GUI_1=""
45209 fi
45210
45211 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45212 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45213 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45214 fi
45215
45216 COND_TOOLKIT_MGL="#"
45217 if test "x$TOOLKIT" = "xMGL" ; then
45218 COND_TOOLKIT_MGL=""
45219 fi
45220
45221 COND_TOOLKIT_MGL_USE_GUI_1="#"
45222 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45223 COND_TOOLKIT_MGL_USE_GUI_1=""
45224 fi
45225
45226 COND_TOOLKIT_MOTIF="#"
45227 if test "x$TOOLKIT" = "xMOTIF" ; then
45228 COND_TOOLKIT_MOTIF=""
45229 fi
45230
45231 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45232 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45233 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45234 fi
45235
45236 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45237 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45238 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45239 fi
45240
45241 COND_TOOLKIT_MSW="#"
45242 if test "x$TOOLKIT" = "xMSW" ; then
45243 COND_TOOLKIT_MSW=""
45244 fi
45245
45246 COND_TOOLKIT_MSW_USE_GUI_1="#"
45247 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45248 COND_TOOLKIT_MSW_USE_GUI_1=""
45249 fi
45250
45251 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45252 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45253 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45254 fi
45255
45256 COND_TOOLKIT_PM="#"
45257 if test "x$TOOLKIT" = "xPM" ; then
45258 COND_TOOLKIT_PM=""
45259 fi
45260
45261 COND_TOOLKIT_PM_USE_GUI_1="#"
45262 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45263 COND_TOOLKIT_PM_USE_GUI_1=""
45264 fi
45265
45266 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45267 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45268 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45269 fi
45270
3fd9c298
DE
45271 COND_TOOLKIT_WINCE="#"
45272 if test "x$TOOLKIT" = "xWINCE" ; then
45273 COND_TOOLKIT_WINCE=""
45274 fi
45275
45276 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45277 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45278 COND_TOOLKIT_WINCE_USE_GUI_1=""
45279 fi
45280
45281 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45282 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45283 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45284 fi
45285
a848cd7e
SC
45286 COND_TOOLKIT_X11="#"
45287 if test "x$TOOLKIT" = "xX11" ; then
45288 COND_TOOLKIT_X11=""
45289 fi
45290
45291 COND_TOOLKIT_X11_USE_GUI_1="#"
45292 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45293 COND_TOOLKIT_X11_USE_GUI_1=""
45294 fi
45295
45296 COND_UNICODE_1="#"
45297 if test "x$UNICODE" = "x1" ; then
45298 COND_UNICODE_1=""
45299 fi
45300
45301 COND_USE_EXCEPTIONS_0="#"
45302 if test "x$USE_EXCEPTIONS" = "x0" ; then
45303 COND_USE_EXCEPTIONS_0=""
45304 fi
45305
45306 COND_USE_EXCEPTIONS_1="#"
45307 if test "x$USE_EXCEPTIONS" = "x1" ; then
45308 COND_USE_EXCEPTIONS_1=""
45309 fi
45310
45311 COND_USE_GUI_0="#"
45312 if test "x$USE_GUI" = "x0" ; then
45313 COND_USE_GUI_0=""
45314 fi
45315
45316 COND_USE_GUI_1="#"
45317 if test "x$USE_GUI" = "x1" ; then
45318 COND_USE_GUI_1=""
45319 fi
45320
45321 COND_USE_GUI_1_WXUNIV_0="#"
45322 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45323 COND_USE_GUI_1_WXUNIV_0=""
45324 fi
45325
45326 COND_USE_GUI_1_WXUNIV_1="#"
45327 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45328 COND_USE_GUI_1_WXUNIV_1=""
45329 fi
45330
45331 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45332 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45333 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45334 fi
45335
45336 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45337 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45338 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45339 fi
45340
45341 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45342 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45343 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45344 fi
45345
083508af
MW
45346 COND_USE_ODBC_1="#"
45347 if test "x$USE_ODBC" = "x1" ; then
45348 COND_USE_ODBC_1=""
45349 fi
45350
45351 COND_USE_OPENGL_1="#"
45352 if test "x$USE_OPENGL" = "x1" ; then
45353 COND_USE_OPENGL_1=""
45354 fi
45355
a848cd7e
SC
45356 COND_USE_PLUGINS_0="#"
45357 if test "x$USE_PLUGINS" = "x0" ; then
45358 COND_USE_PLUGINS_0=""
45359 fi
45360
0b78747f
MW
45361 COND_USE_RTTI_0="#"
45362 if test "x$USE_RTTI" = "x0" ; then
45363 COND_USE_RTTI_0=""
45364 fi
45365
45366 COND_USE_RTTI_1="#"
45367 if test "x$USE_RTTI" = "x1" ; then
45368 COND_USE_RTTI_1=""
45369 fi
45370
a848cd7e
SC
45371 COND_USE_SOSYMLINKS_1="#"
45372 if test "x$USE_SOSYMLINKS" = "x1" ; then
45373 COND_USE_SOSYMLINKS_1=""
45374 fi
45375
eb730a0c
JS
45376 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45377 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45378 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45379 fi
45380
a848cd7e
SC
45381 COND_USE_SOVERLINUX_1="#"
45382 if test "x$USE_SOVERLINUX" = "x1" ; then
45383 COND_USE_SOVERLINUX_1=""
45384 fi
45385
45386 COND_USE_SOVERSION_0="#"
45387 if test "x$USE_SOVERSION" = "x0" ; then
45388 COND_USE_SOVERSION_0=""
45389 fi
45390
45391 COND_USE_SOVERSOLARIS_1="#"
45392 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45393 COND_USE_SOVERSOLARIS_1=""
45394 fi
45395
0b78747f
MW
45396 COND_USE_THREADS_0="#"
45397 if test "x$USE_THREADS" = "x0" ; then
45398 COND_USE_THREADS_0=""
45399 fi
45400
45401 COND_USE_THREADS_1="#"
45402 if test "x$USE_THREADS" = "x1" ; then
45403 COND_USE_THREADS_1=""
45404 fi
45405
a13a7f89
RL
45406 COND_USE_XRC_1="#"
45407 if test "x$USE_XRC" = "x1" ; then
45408 COND_USE_XRC_1=""
45409 fi
45410
eb730a0c
JS
45411 COND_WINDOWS_IMPLIB_1="#"
45412 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45413 COND_WINDOWS_IMPLIB_1=""
45414 fi
45415
a848cd7e
SC
45416 COND_WITH_PLUGIN_SDL_1="#"
45417 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45418 COND_WITH_PLUGIN_SDL_1=""
45419 fi
45420
1e6eb025
VZ
45421 COND_WXUNIV_0="#"
45422 if test "x$WXUNIV" = "x0" ; then
45423 COND_WXUNIV_0=""
45424 fi
45425
a848cd7e
SC
45426 COND_WXUNIV_1="#"
45427 if test "x$WXUNIV" = "x1" ; then
45428 COND_WXUNIV_1=""
45429 fi
45430
45431 COND_WXUSE_EXPAT_BUILTIN="#"
45432 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45433 COND_WXUSE_EXPAT_BUILTIN=""
45434 fi
45435
45436 COND_WXUSE_LIBJPEG_BUILTIN="#"
45437 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45438 COND_WXUSE_LIBJPEG_BUILTIN=""
45439 fi
45440
45441 COND_WXUSE_LIBPNG_BUILTIN="#"
45442 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45443 COND_WXUSE_LIBPNG_BUILTIN=""
45444 fi
45445
45446 COND_WXUSE_LIBTIFF_BUILTIN="#"
45447 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45448 COND_WXUSE_LIBTIFF_BUILTIN=""
45449 fi
45450
45451 COND_WXUSE_ODBC_BUILTIN="#"
45452 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
45453 COND_WXUSE_ODBC_BUILTIN=""
45454 fi
45455
45456 COND_WXUSE_REGEX_BUILTIN="#"
45457 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
45458 COND_WXUSE_REGEX_BUILTIN=""
45459 fi
45460
45461 COND_WXUSE_ZLIB_BUILTIN="#"
45462 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
45463 COND_WXUSE_ZLIB_BUILTIN=""
45464 fi
45465
45466
45467
810b94f0
MW
45468 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45469 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
45470echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
45471 { (exit 1); exit 1; }; }
45472 fi
45473
2057db16
VS
45474 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45475 { { 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
45476echo "$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;}
45477 { (exit 1); exit 1; }; }
45478 fi
45479
a848cd7e 45480
ceec2216
RL
45481if test "$wxUSE_SHARED" = "yes"; then
45482
45483 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45484 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45485
5b674b9d
DE
45486 case "${host}" in
45487 *-pc-os2_emx | *-pc-os2-emx )
45488 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45489 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45490 cp -p ${srcdir}/src/os2/dllnames.sh .
45491 cp -p ${srcdir}/src/os2/dllar.sh .
45492 ;;
45493 esac
ceec2216
RL
45494else
45495
45496 EXE_LINKER="$CXX -o"
45497
45498fi
69120ee4
VZ
45499if test "$wxUSE_OMF" = "yes"; then
45500 case "${host}" in
45501 *-pc-os2_emx | *-pc-os2-emx )
45502 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45503 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45504 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45505 ;;
45506 esac
45507fi
a848cd7e 45508
c08ebc62 45509if test $GCC_PCH = 1 ; then
254e8e29 45510 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 45511fi
a848cd7e
SC
45512
45513
45514SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539
45540
45541
45542
45543
45544
45545
45546
45547
45548
45549
45550
45551
45552
45553
45554
45555
45556
a848cd7e
SC
45557
45558
45559
45560
45561
45562
45563
45564
45565
45566
45567
45568
45569
45570
45571
45572
45573
45574
ddd14b14 45575
a848cd7e
SC
45576
45577
45578echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45579echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45580set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45581if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45582 echo $ECHO_N "(cached) $ECHO_C" >&6
45583else
45584 cat >conftest.make <<\_ACEOF
45585all:
45586 @echo 'ac_maketemp="$(MAKE)"'
45587_ACEOF
45588# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45589eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45590if test -n "$ac_maketemp"; then
45591 eval ac_cv_prog_make_${ac_make}_set=yes
45592else
45593 eval ac_cv_prog_make_${ac_make}_set=no
45594fi
45595rm -f conftest.make
45596fi
45597if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45598 echo "$as_me:$LINENO: result: yes" >&5
45599echo "${ECHO_T}yes" >&6
45600 SET_MAKE=
45601else
45602 echo "$as_me:$LINENO: result: no" >&5
45603echo "${ECHO_T}no" >&6
45604 SET_MAKE="MAKE=${MAKE-make}"
45605fi
45606
45607
a848cd7e 45608
ceec2216
RL
45609 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45610
a848cd7e 45611
ceec2216 45612 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45613
a848cd7e 45614
ceec2216 45615 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45616
ceec2216
RL
45617
45618 ac_config_files="$ac_config_files version-script Makefile"
45619
45620
45621 ac_config_commands="$ac_config_commands wx-config
45622 "
a848cd7e
SC
45623
45624
9103d280
RL
45625
45626
a848cd7e
SC
45627if test "$wxUSE_GUI" = "yes"; then
45628 SUBDIRS="samples demos utils contrib"
45629else SUBDIRS="samples utils"
45630fi
45631
45632
45633
45634# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45635if test "${with_cppunit_prefix+set}" = set; then
45636 withval="$with_cppunit_prefix"
45637 cppunit_config_prefix="$withval"
45638else
45639 cppunit_config_prefix=""
45640fi;
45641
45642# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45643if test "${with_cppunit_exec_prefix+set}" = set; then
45644 withval="$with_cppunit_exec_prefix"
45645 cppunit_config_exec_prefix="$withval"
45646else
45647 cppunit_config_exec_prefix=""
45648fi;
45649
45650 if test x$cppunit_config_exec_prefix != x ; then
45651 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45652 if test x${CPPUNIT_CONFIG+set} != xset ; then
45653 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45654 fi
45655 fi
45656 if test x$cppunit_config_prefix != x ; then
45657 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45658 if test x${CPPUNIT_CONFIG+set} != xset ; then
45659 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45660 fi
45661 fi
45662
45663 # Extract the first word of "cppunit-config", so it can be a program name with args.
45664set dummy cppunit-config; ac_word=$2
45665echo "$as_me:$LINENO: checking for $ac_word" >&5
45666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45667if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45668 echo $ECHO_N "(cached) $ECHO_C" >&6
45669else
45670 case $CPPUNIT_CONFIG in
45671 [\\/]* | ?:[\\/]*)
45672 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45673 ;;
45674 *)
45675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45676for as_dir in $PATH
45677do
45678 IFS=$as_save_IFS
45679 test -z "$as_dir" && as_dir=.
45680 for ac_exec_ext in '' $ac_executable_extensions; do
45681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45682 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45684 break 2
45685 fi
45686done
45687done
45688
45689 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45690 ;;
45691esac
45692fi
45693CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45694
45695if test -n "$CPPUNIT_CONFIG"; then
45696 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45697echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45698else
45699 echo "$as_me:$LINENO: result: no" >&5
45700echo "${ECHO_T}no" >&6
45701fi
45702
45703 cppunit_version_min=1.8.0
45704
45705 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45706echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45707 no_cppunit=""
45708 if test "$CPPUNIT_CONFIG" = "no" ; then
45709 no_cppunit=yes
45710 else
45711 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45712 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45713 cppunit_version=`$CPPUNIT_CONFIG --version`
45714
45715 cppunit_major_version=`echo $cppunit_version | \
45716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45717 cppunit_minor_version=`echo $cppunit_version | \
45718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45719 cppunit_micro_version=`echo $cppunit_version | \
45720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45721
45722 cppunit_major_min=`echo $cppunit_version_min | \
45723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45724 cppunit_minor_min=`echo $cppunit_version_min | \
45725 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45726 cppunit_micro_min=`echo $cppunit_version_min | \
45727 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45728
45729 cppunit_version_proper=`expr \
45730 $cppunit_major_version \> $cppunit_major_min \| \
45731 $cppunit_major_version \= $cppunit_major_min \& \
45732 $cppunit_minor_version \> $cppunit_minor_min \| \
45733 $cppunit_major_version \= $cppunit_major_min \& \
45734 $cppunit_minor_version \= $cppunit_minor_min \& \
45735 $cppunit_micro_version \>= $cppunit_micro_min `
45736
45737 if test "$cppunit_version_proper" = "1" ; then
45738 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45739echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45740 else
45741 echo "$as_me:$LINENO: result: no" >&5
45742echo "${ECHO_T}no" >&6
45743 no_cppunit=yes
45744 fi
45745 fi
45746
45747 if test "x$no_cppunit" = x ; then
c2218763 45748 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45749 else
45750 CPPUNIT_CFLAGS=""
45751 CPPUNIT_LIBS=""
c2218763 45752 :
a848cd7e
SC
45753 fi
45754
45755
45756
45757
45758
45759for subdir in `echo $SUBDIRS`; do
45760 if test -d ${srcdir}/${subdir} ; then
45761 if test "$wxUSE_GUI" = "yes"; then
45762 if test ${subdir} = "samples"; then
45763 makefiles="samples/Makefile.in $makefiles"
45764 for sample in `echo $SAMPLES_SUBDIRS`; do
45765 if test -d $srcdir/samples/$sample; then
45766 makefiles="samples/$sample/Makefile.in $makefiles"
45767 fi
45768 done
9c112555
MW
45769 else
45770 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45771 eval "disabled=\$$disabled_var"
45772 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45773 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45774 fi
45775 else if test ${subdir} = "samples"; then
45776 makefiles="samples/Makefile.in samples/console/Makefile.in"
45777 elif test ${subdir} = "utils"; then
6537ccf8
VS
45778 makefiles=""
45779 for util in HelpGen tex2rtf ; do
45780 if test -d $srcdir/utils/$util ; then
45781 makefiles="utils/$util/Makefile.in \
45782 utils/$util/src/Makefile.in \
45783 $makefiles"
45784 fi
45785 done
a848cd7e
SC
45786 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45787 fi
45788 fi
45789
45790 for mkin in $makefiles ; do
45791 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45792 ac_config_files="$ac_config_files $mk"
45793
45794 done
45795 fi
45796done
45797
45798
45799cat >confcache <<\_ACEOF
45800# This file is a shell script that caches the results of configure
45801# tests run on this system so they can be shared between configure
45802# scripts and configure runs, see configure's option --config-cache.
45803# It is not useful on other systems. If it contains results you don't
45804# want to keep, you may remove or edit it.
45805#
45806# config.status only pays attention to the cache file if you give it
45807# the --recheck option to rerun configure.
45808#
45809# `ac_cv_env_foo' variables (set or unset) will be overridden when
45810# loading this file, other *unset* `ac_cv_foo' will be assigned the
45811# following values.
45812
45813_ACEOF
45814
45815# The following way of writing the cache mishandles newlines in values,
45816# but we know of no workaround that is simple, portable, and efficient.
45817# So, don't put newlines in cache variables' values.
45818# Ultrix sh set writes to stderr and can't be redirected directly,
45819# and sets the high bit in the cache file unless we assign to the vars.
45820{
45821 (set) 2>&1 |
45822 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45823 *ac_space=\ *)
45824 # `set' does not quote correctly, so add quotes (double-quote
45825 # substitution turns \\\\ into \\, and sed turns \\ into \).
45826 sed -n \
ac1cb8d3
VS
45827 "s/'/'\\\\''/g;
45828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45829 ;;
45830 *)
45831 # `set' quotes correctly as required by POSIX, so do not add quotes.
45832 sed -n \
ac1cb8d3 45833 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45834 ;;
45835 esac;
45836} |
45837 sed '
45838 t clear
45839 : clear
45840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45841 t end
45842 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45843 : end' >>confcache
45844if diff $cache_file confcache >/dev/null 2>&1; then :; else
45845 if test -w $cache_file; then
45846 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45847 cat confcache >$cache_file
45848 else
45849 echo "not updating unwritable cache $cache_file"
45850 fi
45851fi
45852rm -f confcache
45853
45854test "x$prefix" = xNONE && prefix=$ac_default_prefix
45855# Let make expand exec_prefix.
45856test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45857
45858# VPATH may cause trouble with some makes, so we remove $(srcdir),
45859# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45860# trailing colons and then remove the whole line if VPATH becomes empty
45861# (actually we leave an empty line to preserve line numbers).
45862if test "x$srcdir" = x.; then
ac1cb8d3 45863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45864s/:*\$(srcdir):*/:/;
45865s/:*\${srcdir}:*/:/;
45866s/:*@srcdir@:*/:/;
ac1cb8d3 45867s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45868s/:*$//;
ac1cb8d3 45869s/^[^=]*=[ ]*$//;
a848cd7e
SC
45870}'
45871fi
45872
45873DEFS=-DHAVE_CONFIG_H
45874
45875ac_libobjs=
45876ac_ltlibobjs=
45877for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45878 # 1. Remove the extension, and $U if already installed.
45879 ac_i=`echo "$ac_i" |
ac1cb8d3 45880 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45881 # 2. Add them.
45882 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45883 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45884done
45885LIBOBJS=$ac_libobjs
45886
45887LTLIBOBJS=$ac_ltlibobjs
45888
45889
45890
45891: ${CONFIG_STATUS=./config.status}
45892ac_clean_files_save=$ac_clean_files
45893ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45894{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45895echo "$as_me: creating $CONFIG_STATUS" >&6;}
45896cat >$CONFIG_STATUS <<_ACEOF
45897#! $SHELL
45898# Generated by $as_me.
45899# Run this file to recreate the current configuration.
45900# Compiler output produced by configure, useful for debugging
45901# configure, is in config.log if it exists.
45902
45903debug=false
45904ac_cs_recheck=false
45905ac_cs_silent=false
45906SHELL=\${CONFIG_SHELL-$SHELL}
45907_ACEOF
45908
45909cat >>$CONFIG_STATUS <<\_ACEOF
45910## --------------------- ##
45911## M4sh Initialization. ##
45912## --------------------- ##
45913
45914# Be Bourne compatible
45915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45916 emulate sh
45917 NULLCMD=:
45918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45919 # is contrary to our usage. Disable this feature.
45920 alias -g '${1+"$@"}'='"$@"'
45921elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45922 set -o posix
45923fi
ac1cb8d3 45924DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45925
45926# Support unset when possible.
ac1cb8d3 45927if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45928 as_unset=unset
45929else
45930 as_unset=false
45931fi
45932
45933
45934# Work around bugs in pre-3.0 UWIN ksh.
45935$as_unset ENV MAIL MAILPATH
45936PS1='$ '
45937PS2='> '
45938PS4='+ '
45939
45940# NLS nuisances.
45941for as_var in \
45942 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45943 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45944 LC_TELEPHONE LC_TIME
45945do
ac1cb8d3 45946 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45947 eval $as_var=C; export $as_var
45948 else
45949 $as_unset $as_var
45950 fi
45951done
45952
45953# Required to use basename.
45954if expr a : '\(a\)' >/dev/null 2>&1; then
45955 as_expr=expr
45956else
45957 as_expr=false
45958fi
45959
45960if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45961 as_basename=basename
45962else
45963 as_basename=false
45964fi
45965
45966
45967# Name of the executable.
45968as_me=`$as_basename "$0" ||
45969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45970 X"$0" : 'X\(//\)$' \| \
45971 X"$0" : 'X\(/\)$' \| \
45972 . : '\(.\)' 2>/dev/null ||
45973echo X/"$0" |
45974 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45975 /^X\/\(\/\/\)$/{ s//\1/; q; }
45976 /^X\/\(\/\).*/{ s//\1/; q; }
45977 s/.*/./; q'`
45978
45979
45980# PATH needs CR, and LINENO needs CR and PATH.
45981# Avoid depending upon Character Ranges.
45982as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45983as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45984as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45985as_cr_digits='0123456789'
45986as_cr_alnum=$as_cr_Letters$as_cr_digits
45987
45988# The user is always right.
45989if test "${PATH_SEPARATOR+set}" != set; then
45990 echo "#! /bin/sh" >conf$$.sh
45991 echo "exit 0" >>conf$$.sh
45992 chmod +x conf$$.sh
45993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45994 PATH_SEPARATOR=';'
45995 else
45996 PATH_SEPARATOR=:
45997 fi
45998 rm -f conf$$.sh
45999fi
46000
46001
46002 as_lineno_1=$LINENO
46003 as_lineno_2=$LINENO
46004 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46005 test "x$as_lineno_1" != "x$as_lineno_2" &&
46006 test "x$as_lineno_3" = "x$as_lineno_2" || {
46007 # Find who we are. Look in the path if we contain no path at all
46008 # relative or not.
46009 case $0 in
46010 *[\\/]* ) as_myself=$0 ;;
46011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46012for as_dir in $PATH
46013do
46014 IFS=$as_save_IFS
46015 test -z "$as_dir" && as_dir=.
46016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46017done
46018
46019 ;;
46020 esac
46021 # We did not find ourselves, most probably we were run as `sh COMMAND'
46022 # in which case we are not to be found in the path.
46023 if test "x$as_myself" = x; then
46024 as_myself=$0
46025 fi
46026 if test ! -f "$as_myself"; then
46027 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46028echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46029 { (exit 1); exit 1; }; }
46030 fi
46031 case $CONFIG_SHELL in
46032 '')
46033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46034for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46035do
46036 IFS=$as_save_IFS
46037 test -z "$as_dir" && as_dir=.
46038 for as_base in sh bash ksh sh5; do
46039 case $as_dir in
46040 /*)
46041 if ("$as_dir/$as_base" -c '
46042 as_lineno_1=$LINENO
46043 as_lineno_2=$LINENO
46044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46045 test "x$as_lineno_1" != "x$as_lineno_2" &&
46046 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46047 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46048 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46049 CONFIG_SHELL=$as_dir/$as_base
46050 export CONFIG_SHELL
46051 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46052 fi;;
46053 esac
46054 done
46055done
46056;;
46057 esac
46058
46059 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46060 # uniformly replaced by the line number. The first 'sed' inserts a
46061 # line-number line before each line; the second 'sed' does the real
46062 # work. The second script uses 'N' to pair each line-number line
46063 # with the numbered line, and appends trailing '-' during
46064 # substitution so that $LINENO is not a special case at line end.
46065 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46066 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46067 sed '=' <$as_myself |
46068 sed '
46069 N
46070 s,$,-,
46071 : loop
46072 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46073 t loop
46074 s,-$,,
46075 s,^['$as_cr_digits']*\n,,
46076 ' >$as_me.lineno &&
46077 chmod +x $as_me.lineno ||
46078 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46079echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46080 { (exit 1); exit 1; }; }
46081
46082 # Don't try to exec as it changes $[0], causing all sort of problems
46083 # (the dirname of $[0] is not the place where we might find the
46084 # original and so on. Autoconf is especially sensible to this).
46085 . ./$as_me.lineno
46086 # Exit status is that of the last command.
46087 exit
46088}
46089
46090
46091case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46092 *c*,-n*) ECHO_N= ECHO_C='
46093' ECHO_T=' ' ;;
46094 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46095 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46096esac
46097
46098if expr a : '\(a\)' >/dev/null 2>&1; then
46099 as_expr=expr
46100else
46101 as_expr=false
46102fi
46103
46104rm -f conf$$ conf$$.exe conf$$.file
46105echo >conf$$.file
46106if ln -s conf$$.file conf$$ 2>/dev/null; then
46107 # We could just check for DJGPP; but this test a) works b) is more generic
46108 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46109 if test -f conf$$.exe; then
46110 # Don't use ln at all; we don't have any links
46111 as_ln_s='cp -p'
46112 else
46113 as_ln_s='ln -s'
46114 fi
46115elif ln conf$$.file conf$$ 2>/dev/null; then
46116 as_ln_s=ln
46117else
46118 as_ln_s='cp -p'
46119fi
46120rm -f conf$$ conf$$.exe conf$$.file
46121
46122if mkdir -p . 2>/dev/null; then
46123 as_mkdir_p=:
46124else
ac1cb8d3 46125 test -d ./-p && rmdir ./-p
a848cd7e
SC
46126 as_mkdir_p=false
46127fi
46128
46129as_executable_p="test -f"
46130
46131# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46132as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46133
46134# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46135as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46136
46137
46138# IFS
46139# We need space, tab and new line, in precisely that order.
46140as_nl='
46141'
46142IFS=" $as_nl"
46143
46144# CDPATH.
46145$as_unset CDPATH
46146
46147exec 6>&1
46148
46149# Open the log real soon, to keep \$[0] and so on meaningful, and to
46150# report actual input values of CONFIG_FILES etc. instead of their
46151# values after options handling. Logging --version etc. is OK.
46152exec 5>>config.log
46153{
46154 echo
46155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46156## Running $as_me. ##
46157_ASBOX
46158} >&5
46159cat >&5 <<_CSEOF
46160
eb730a0c 46161This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 46162generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46163
46164 CONFIG_FILES = $CONFIG_FILES
46165 CONFIG_HEADERS = $CONFIG_HEADERS
46166 CONFIG_LINKS = $CONFIG_LINKS
46167 CONFIG_COMMANDS = $CONFIG_COMMANDS
46168 $ $0 $@
46169
46170_CSEOF
46171echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46172echo >&5
46173_ACEOF
46174
46175# Files that config.status was made for.
46176if test -n "$ac_config_files"; then
46177 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46178fi
46179
46180if test -n "$ac_config_headers"; then
46181 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46182fi
46183
46184if test -n "$ac_config_links"; then
46185 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46186fi
46187
46188if test -n "$ac_config_commands"; then
46189 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46190fi
46191
46192cat >>$CONFIG_STATUS <<\_ACEOF
46193
46194ac_cs_usage="\
46195\`$as_me' instantiates files from templates according to the
46196current configuration.
46197
46198Usage: $0 [OPTIONS] [FILE]...
46199
46200 -h, --help print this help, then exit
46201 -V, --version print version number, then exit
46202 -q, --quiet do not print progress messages
46203 -d, --debug don't remove temporary files
46204 --recheck update $as_me by reconfiguring in the same conditions
46205 --file=FILE[:TEMPLATE]
ac1cb8d3 46206 instantiate the configuration file FILE
a848cd7e 46207 --header=FILE[:TEMPLATE]
ac1cb8d3 46208 instantiate the configuration header FILE
a848cd7e
SC
46209
46210Configuration files:
46211$config_files
46212
46213Configuration headers:
46214$config_headers
46215
46216Configuration commands:
46217$config_commands
46218
46219Report bugs to <bug-autoconf@gnu.org>."
46220_ACEOF
46221
46222cat >>$CONFIG_STATUS <<_ACEOF
46223ac_cs_version="\\
eb730a0c 46224wxWidgets config.status 2.6.2
ac1cb8d3 46225configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46227
ac1cb8d3 46228Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46229This config.status script is free software; the Free Software Foundation
46230gives unlimited permission to copy, distribute and modify it."
46231srcdir=$srcdir
46232INSTALL="$INSTALL"
46233_ACEOF
46234
46235cat >>$CONFIG_STATUS <<\_ACEOF
46236# If no file are specified by the user, then we need to provide default
46237# value. By we need to know if files were specified by the user.
46238ac_need_defaults=:
46239while test $# != 0
46240do
46241 case $1 in
46242 --*=*)
46243 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46244 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46245 ac_shift=:
46246 ;;
46247 -*)
46248 ac_option=$1
46249 ac_optarg=$2
46250 ac_shift=shift
46251 ;;
46252 *) # This is not an option, so the user has probably given explicit
46253 # arguments.
46254 ac_option=$1
46255 ac_need_defaults=false;;
46256 esac
46257
46258 case $ac_option in
46259 # Handling of the options.
46260_ACEOF
46261cat >>$CONFIG_STATUS <<\_ACEOF
46262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46263 ac_cs_recheck=: ;;
46264 --version | --vers* | -V )
46265 echo "$ac_cs_version"; exit 0 ;;
46266 --he | --h)
46267 # Conflict between --help and --header
46268 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46269Try \`$0 --help' for more information." >&5
46270echo "$as_me: error: ambiguous option: $1
46271Try \`$0 --help' for more information." >&2;}
46272 { (exit 1); exit 1; }; };;
46273 --help | --hel | -h )
46274 echo "$ac_cs_usage"; exit 0 ;;
46275 --debug | --d* | -d )
46276 debug=: ;;
46277 --file | --fil | --fi | --f )
46278 $ac_shift
46279 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46280 ac_need_defaults=false;;
46281 --header | --heade | --head | --hea )
46282 $ac_shift
46283 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46284 ac_need_defaults=false;;
46285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46287 ac_cs_silent=: ;;
46288
46289 # This is an error.
46290 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46291Try \`$0 --help' for more information." >&5
46292echo "$as_me: error: unrecognized option: $1
46293Try \`$0 --help' for more information." >&2;}
46294 { (exit 1); exit 1; }; } ;;
46295
46296 *) ac_config_targets="$ac_config_targets $1" ;;
46297
46298 esac
46299 shift
46300done
46301
46302ac_configure_extra_args=
46303
46304if $ac_cs_silent; then
46305 exec 6>/dev/null
46306 ac_configure_extra_args="$ac_configure_extra_args --silent"
46307fi
46308
46309_ACEOF
46310cat >>$CONFIG_STATUS <<_ACEOF
46311if \$ac_cs_recheck; then
46312 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46313 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46314fi
46315
46316_ACEOF
46317
46318cat >>$CONFIG_STATUS <<_ACEOF
46319#
46320# INIT-COMMANDS section.
46321#
46322
ceec2216
RL
46323 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46324 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46325 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46326 LN_S="${LN_S}"
a848cd7e
SC
46327
46328
46329_ACEOF
46330
46331
46332
46333cat >>$CONFIG_STATUS <<\_ACEOF
46334for ac_config_target in $ac_config_targets
46335do
46336 case "$ac_config_target" in
46337 # Handling of arguments.
ceec2216
RL
46338 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46339 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46340 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46341 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46342 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46343 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46344 "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
46345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46346echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46347 { (exit 1); exit 1; }; };;
46348 esac
46349done
46350
46351# If the user did not use the arguments to specify the items to instantiate,
46352# then the envvar interface is used. Set only those that are not.
46353# We use the long form for the default assignment because of an extremely
46354# bizarre bug on SunOS 4.1.3.
46355if $ac_need_defaults; then
46356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46359fi
46360
46361# Have a temporary directory for convenience. Make it in the build tree
46362# simply because there is no reason to put it here, and in addition,
46363# creating and moving files from /tmp can sometimes cause problems.
46364# Create a temporary directory, and hook for its removal unless debugging.
46365$debug ||
46366{
46367 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46368 trap '{ (exit 1); exit 1; }' 1 2 13 15
46369}
46370
46371# Create a (secure) tmp directory for tmp files.
46372
46373{
46374 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46375 test -n "$tmp" && test -d "$tmp"
46376} ||
46377{
46378 tmp=./confstat$$-$RANDOM
46379 (umask 077 && mkdir $tmp)
46380} ||
46381{
46382 echo "$me: cannot create a temporary directory in ." >&2
46383 { (exit 1); exit 1; }
46384}
46385
46386_ACEOF
46387
46388cat >>$CONFIG_STATUS <<_ACEOF
46389
46390#
46391# CONFIG_FILES section.
46392#
46393
46394# No need to generate the scripts if there are no CONFIG_FILES.
46395# This happens for instance when ./config.status config.h
46396if test -n "\$CONFIG_FILES"; then
46397 # Protect against being on the right side of a sed subst in config.status.
46398 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46399 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46400s,@SHELL@,$SHELL,;t t
46401s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46402s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46403s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46404s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46405s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46406s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46407s,@exec_prefix@,$exec_prefix,;t t
46408s,@prefix@,$prefix,;t t
46409s,@program_transform_name@,$program_transform_name,;t t
46410s,@bindir@,$bindir,;t t
46411s,@sbindir@,$sbindir,;t t
46412s,@libexecdir@,$libexecdir,;t t
46413s,@datadir@,$datadir,;t t
46414s,@sysconfdir@,$sysconfdir,;t t
46415s,@sharedstatedir@,$sharedstatedir,;t t
46416s,@localstatedir@,$localstatedir,;t t
46417s,@libdir@,$libdir,;t t
46418s,@includedir@,$includedir,;t t
46419s,@oldincludedir@,$oldincludedir,;t t
46420s,@infodir@,$infodir,;t t
46421s,@mandir@,$mandir,;t t
46422s,@build_alias@,$build_alias,;t t
46423s,@host_alias@,$host_alias,;t t
46424s,@target_alias@,$target_alias,;t t
46425s,@DEFS@,$DEFS,;t t
46426s,@ECHO_C@,$ECHO_C,;t t
46427s,@ECHO_N@,$ECHO_N,;t t
46428s,@ECHO_T@,$ECHO_T,;t t
46429s,@LIBS@,$LIBS,;t t
46430s,@build@,$build,;t t
46431s,@build_cpu@,$build_cpu,;t t
46432s,@build_vendor@,$build_vendor,;t t
46433s,@build_os@,$build_os,;t t
46434s,@host@,$host,;t t
46435s,@host_cpu@,$host_cpu,;t t
46436s,@host_vendor@,$host_vendor,;t t
46437s,@host_os@,$host_os,;t t
46438s,@target@,$target,;t t
46439s,@target_cpu@,$target_cpu,;t t
46440s,@target_vendor@,$target_vendor,;t t
46441s,@target_os@,$target_os,;t t
46442s,@CC@,$CC,;t t
46443s,@CFLAGS@,$CFLAGS,;t t
46444s,@LDFLAGS@,$LDFLAGS,;t t
46445s,@CPPFLAGS@,$CPPFLAGS,;t t
46446s,@ac_ct_CC@,$ac_ct_CC,;t t
46447s,@EXEEXT@,$EXEEXT,;t t
46448s,@OBJEXT@,$OBJEXT,;t t
46449s,@CPP@,$CPP,;t t
46450s,@EGREP@,$EGREP,;t t
46451s,@CXX@,$CXX,;t t
46452s,@CXXFLAGS@,$CXXFLAGS,;t t
46453s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46454s,@RANLIB@,$RANLIB,;t t
46455s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46456s,@AR@,$AR,;t t
8c80d384 46457s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46458s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46459s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46460s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46461s,@STRIP@,$STRIP,;t t
8c80d384
DE
46462s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46463s,@RESCOMP@,$RESCOMP,;t t
46464s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46465s,@DLLTOOL@,$DLLTOOL,;t t
46466s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46467s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46468s,@LN_S@,$LN_S,;t t
46469s,@CXXCPP@,$CXXCPP,;t t
46470s,@subdirs@,$subdirs,;t t
46471s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46472s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46473s,@GTK_LIBS@,$GTK_LIBS,;t t
46474s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46475s,@X_CFLAGS@,$X_CFLAGS,;t t
46476s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46477s,@X_LIBS@,$X_LIBS,;t t
46478s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46479s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46480s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46481s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46482s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46483s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46484s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46485s,@DEREZ@,$DEREZ,;t t
46486s,@SETFILE@,$SETFILE,;t t
46487s,@LIBICONV@,$LIBICONV,;t t
46488s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46489s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46490s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46491s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46492s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46493s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46494s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46495s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46496s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46497s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46498s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46499s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46500s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46501s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46502s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46503s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46504s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46505s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46506s,@VENDOR@,$VENDOR,;t t
46507s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46508s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46509s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46510s,@WXUNIV@,$WXUNIV,;t t
46511s,@MONOLITHIC@,$MONOLITHIC,;t t
46512s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46513s,@EXTRALIBS@,$EXTRALIBS,;t t
46514s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46515s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46516s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46517s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46518s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46519s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46520s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46521s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46522s,@UNICODE@,$UNICODE,;t t
46523s,@BUILD@,$BUILD,;t t
46524s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46525s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46526s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46527s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46528s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46529s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46530s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46531s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46532s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46533s,@SET_MAKE@,$SET_MAKE,;t t
46534s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46535s,@NM@,$NM,;t t
46536s,@ac_ct_NM@,$ac_ct_NM,;t t
46537s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46538s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46539s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46540s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46541s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46542s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46543s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46544s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46545s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46546s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46547s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46548s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46549s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46550s,@LIBPREFIX@,$LIBPREFIX,;t t
46551s,@LIBEXT@,$LIBEXT,;t t
46552s,@DLLPREFIX@,$DLLPREFIX,;t t
46553s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46554s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46555s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46556s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46557s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46558s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46559s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46560s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46561s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46562s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46563s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46564s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46565s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46566s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46567s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46568s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46569s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46570s,@GCC_PCH@,$GCC_PCH,;t t
46571s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46572s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46573s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46574s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46575s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46576s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46577s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46578s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46579s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46580s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46581s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46582s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46583s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46584s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46585s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46586s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46587s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46588s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46589s,@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 46590s,@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 46591s,@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 46592s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46593s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46594s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46595s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46596s,@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 46597s,@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 46598s,@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 46599s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46600s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46601s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46602s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46603s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46604s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46605s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46606s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46607s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46608s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46609s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46610s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46611s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46612s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46613s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46614s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46615s,@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
46616s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46617s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46618s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46619s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46620s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46621s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46622s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46623s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46624s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46625s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46626s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46627s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46628s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46629s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46630s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46631s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46632s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46633s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46634s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46635s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46636s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46637s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46638s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46639s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46640s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46641s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46642s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46643s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46644s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46645s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46646s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46647s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46648s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46649s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46650s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46651s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46652s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46653s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46654s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46655s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46656s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46657s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46658s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46659s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46660s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46661s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46662s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46663s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
46664s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46665s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46666s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46667s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46668s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46669s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
46670s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46671s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46672s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46673s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46674s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46675s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46676s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46677s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46678s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46679s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46680s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46681s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46682s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46683s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46684s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46685s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46686s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46687s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46688s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46689s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46690s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46691s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46692s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46693s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46694s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46695s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46696s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46697s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46698s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46699s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46700s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46701s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46702s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46703s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46704s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46705s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46706s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46707s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46708s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46709s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46710s,@USE_GUI@,$USE_GUI,;t t
46711s,@AFMINSTALL@,$AFMINSTALL,;t t
46712s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46713s,@TOOLKIT@,$TOOLKIT,;t t
46714s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46715s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46716s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46717s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46718s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46719s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46720s,@WIDGET_SET@,$WIDGET_SET,;t t
46721s,@WX_RELEASE@,$WX_RELEASE,;t t
46722s,@WX_VERSION@,$WX_VERSION,;t t
46723s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46724s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46725s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46726s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46727s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46728s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46729s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46730s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46731s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46732s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46733s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46734s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46735s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46736s,@DISTDIR@,$DISTDIR,;t t
46737s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46738s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46739s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46740s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46741s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46742s,@RESFLAGS@,$RESFLAGS,;t t
46743s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46744s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46745s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46746s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46747s,@MACRESCOMP@,$MACRESCOMP,;t t
46748s,@MACSETFILE@,$MACSETFILE,;t t
46749s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46750s,@GCC@,$GCC,;t t
a848cd7e
SC
46751s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46752s,@LIBOBJS@,$LIBOBJS,;t t
46753s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46754CEOF
46755
46756_ACEOF
46757
46758 cat >>$CONFIG_STATUS <<\_ACEOF
46759 # Split the substitutions into bite-sized pieces for seds with
46760 # small command number limits, like on Digital OSF/1 and HP-UX.
46761 ac_max_sed_lines=48
46762 ac_sed_frag=1 # Number of current file.
46763 ac_beg=1 # First line for current file.
46764 ac_end=$ac_max_sed_lines # Line after last line for current file.
46765 ac_more_lines=:
46766 ac_sed_cmds=
46767 while $ac_more_lines; do
46768 if test $ac_beg -gt 1; then
46769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46770 else
46771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46772 fi
46773 if test ! -s $tmp/subs.frag; then
46774 ac_more_lines=false
46775 else
46776 # The purpose of the label and of the branching condition is to
46777 # speed up the sed processing (if there are no `@' at all, there
46778 # is no need to browse any of the substitutions).
46779 # These are the two extra sed commands mentioned above.
46780 (echo ':t
46781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46782 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46784 else
ac1cb8d3 46785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46786 fi
46787 ac_sed_frag=`expr $ac_sed_frag + 1`
46788 ac_beg=$ac_end
46789 ac_end=`expr $ac_end + $ac_max_sed_lines`
46790 fi
46791 done
46792 if test -z "$ac_sed_cmds"; then
46793 ac_sed_cmds=cat
46794 fi
46795fi # test -n "$CONFIG_FILES"
46796
46797_ACEOF
46798cat >>$CONFIG_STATUS <<\_ACEOF
46799for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46801 case $ac_file in
46802 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46803 cat >$tmp/stdin
46804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46808 * ) ac_file_in=$ac_file.in ;;
46809 esac
46810
46811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46814 X"$ac_file" : 'X\(//\)[^/]' \| \
46815 X"$ac_file" : 'X\(//\)$' \| \
46816 X"$ac_file" : 'X\(/\)' \| \
46817 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46818echo X"$ac_file" |
46819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46821 /^X\(\/\/\)$/{ s//\1/; q; }
46822 /^X\(\/\).*/{ s//\1/; q; }
46823 s/.*/./; q'`
46824 { if $as_mkdir_p; then
46825 mkdir -p "$ac_dir"
46826 else
46827 as_dir="$ac_dir"
46828 as_dirs=
46829 while test ! -d "$as_dir"; do
46830 as_dirs="$as_dir $as_dirs"
46831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46833 X"$as_dir" : 'X\(//\)[^/]' \| \
46834 X"$as_dir" : 'X\(//\)$' \| \
46835 X"$as_dir" : 'X\(/\)' \| \
46836 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46837echo X"$as_dir" |
46838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46840 /^X\(\/\/\)$/{ s//\1/; q; }
46841 /^X\(\/\).*/{ s//\1/; q; }
46842 s/.*/./; q'`
46843 done
46844 test ! -n "$as_dirs" || mkdir $as_dirs
46845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46846echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46847 { (exit 1); exit 1; }; }; }
46848
46849 ac_builddir=.
46850
46851if test "$ac_dir" != .; then
46852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46853 # A "../" for each directory in $ac_dir_suffix.
46854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46855else
46856 ac_dir_suffix= ac_top_builddir=
46857fi
46858
46859case $srcdir in
46860 .) # No --srcdir option. We are building in place.
46861 ac_srcdir=.
46862 if test -z "$ac_top_builddir"; then
46863 ac_top_srcdir=.
46864 else
46865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46866 fi ;;
46867 [\\/]* | ?:[\\/]* ) # Absolute path.
46868 ac_srcdir=$srcdir$ac_dir_suffix;
46869 ac_top_srcdir=$srcdir ;;
46870 *) # Relative path.
46871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46873esac
ac1cb8d3
VS
46874
46875# Do not use `cd foo && pwd` to compute absolute paths, because
46876# the directories may not exist.
46877case `pwd` in
46878.) ac_abs_builddir="$ac_dir";;
46879*)
46880 case "$ac_dir" in
46881 .) ac_abs_builddir=`pwd`;;
46882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46884 esac;;
46885esac
46886case $ac_abs_builddir in
46887.) ac_abs_top_builddir=${ac_top_builddir}.;;
46888*)
46889 case ${ac_top_builddir}. in
46890 .) ac_abs_top_builddir=$ac_abs_builddir;;
46891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46893 esac;;
46894esac
46895case $ac_abs_builddir in
46896.) ac_abs_srcdir=$ac_srcdir;;
46897*)
46898 case $ac_srcdir in
46899 .) ac_abs_srcdir=$ac_abs_builddir;;
46900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46902 esac;;
46903esac
46904case $ac_abs_builddir in
46905.) ac_abs_top_srcdir=$ac_top_srcdir;;
46906*)
46907 case $ac_top_srcdir in
46908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46911 esac;;
46912esac
a848cd7e
SC
46913
46914
46915 case $INSTALL in
46916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46917 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46918 esac
46919
a848cd7e
SC
46920 # Let's still pretend it is `configure' which instantiates (i.e., don't
46921 # use $as_me), people would be surprised to read:
46922 # /* config.h. Generated by config.status. */
46923 if test x"$ac_file" = x-; then
46924 configure_input=
46925 else
46926 configure_input="$ac_file. "
46927 fi
46928 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46929 sed 's,.*/,,'` by configure."
a848cd7e
SC
46930
46931 # First look for the input files in the build tree, otherwise in the
46932 # src tree.
46933 ac_file_inputs=`IFS=:
46934 for f in $ac_file_in; do
46935 case $f in
46936 -) echo $tmp/stdin ;;
46937 [\\/$]*)
ac1cb8d3
VS
46938 # Absolute (can't be DOS-style, as IFS=:)
46939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46940echo "$as_me: error: cannot find input file: $f" >&2;}
46941 { (exit 1); exit 1; }; }
ac1cb8d3 46942 echo "$f";;
a848cd7e 46943 *) # Relative
ac1cb8d3
VS
46944 if test -f "$f"; then
46945 # Build tree
46946 echo "$f"
46947 elif test -f "$srcdir/$f"; then
46948 # Source tree
46949 echo "$srcdir/$f"
46950 else
46951 # /dev/null tree
46952 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46953echo "$as_me: error: cannot find input file: $f" >&2;}
46954 { (exit 1); exit 1; }; }
ac1cb8d3 46955 fi;;
a848cd7e
SC
46956 esac
46957 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46958
46959 if test x"$ac_file" != x-; then
46960 { echo "$as_me:$LINENO: creating $ac_file" >&5
46961echo "$as_me: creating $ac_file" >&6;}
46962 rm -f "$ac_file"
46963 fi
a848cd7e
SC
46964_ACEOF
46965cat >>$CONFIG_STATUS <<_ACEOF
46966 sed "$ac_vpsub
46967$extrasub
46968_ACEOF
46969cat >>$CONFIG_STATUS <<\_ACEOF
46970:t
46971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46972s,@configure_input@,$configure_input,;t t
46973s,@srcdir@,$ac_srcdir,;t t
46974s,@abs_srcdir@,$ac_abs_srcdir,;t t
46975s,@top_srcdir@,$ac_top_srcdir,;t t
46976s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46977s,@builddir@,$ac_builddir,;t t
46978s,@abs_builddir@,$ac_abs_builddir,;t t
46979s,@top_builddir@,$ac_top_builddir,;t t
46980s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46981s,@INSTALL@,$ac_INSTALL,;t t
46982" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46983 rm -f $tmp/stdin
46984 if test x"$ac_file" != x-; then
46985 mv $tmp/out $ac_file
46986 else
46987 cat $tmp/out
46988 rm -f $tmp/out
46989 fi
46990
ceec2216
RL
46991 # Run the commands associated with the file.
46992 case $ac_file in
46993 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46994 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46995 esac
a848cd7e
SC
46996done
46997_ACEOF
46998cat >>$CONFIG_STATUS <<\_ACEOF
46999
47000#
47001# CONFIG_HEADER section.
47002#
47003
47004# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47005# NAME is the cpp macro being defined and VALUE is the value it is being given.
47006#
47007# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47008ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47009ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47010ac_dC=' '
47011ac_dD=',;t'
47012# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47013ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47014ac_uB='$,\1#\2define\3'
47015ac_uC=' '
47016ac_uD=',;t'
47017
47018for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47020 case $ac_file in
47021 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47022 cat >$tmp/stdin
47023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47027 * ) ac_file_in=$ac_file.in ;;
47028 esac
47029
47030 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47031echo "$as_me: creating $ac_file" >&6;}
47032
47033 # First look for the input files in the build tree, otherwise in the
47034 # src tree.
47035 ac_file_inputs=`IFS=:
47036 for f in $ac_file_in; do
47037 case $f in
47038 -) echo $tmp/stdin ;;
47039 [\\/$]*)
ac1cb8d3
VS
47040 # Absolute (can't be DOS-style, as IFS=:)
47041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47042echo "$as_me: error: cannot find input file: $f" >&2;}
47043 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47044 # Do quote $f, to prevent DOS paths from being IFS'd.
47045 echo "$f";;
a848cd7e 47046 *) # Relative
ac1cb8d3
VS
47047 if test -f "$f"; then
47048 # Build tree
47049 echo "$f"
47050 elif test -f "$srcdir/$f"; then
47051 # Source tree
47052 echo "$srcdir/$f"
47053 else
47054 # /dev/null tree
47055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47056echo "$as_me: error: cannot find input file: $f" >&2;}
47057 { (exit 1); exit 1; }; }
ac1cb8d3 47058 fi;;
a848cd7e
SC
47059 esac
47060 done` || { (exit 1); exit 1; }
47061 # Remove the trailing spaces.
ac1cb8d3 47062 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47063
47064_ACEOF
47065
47066# Transform confdefs.h into two sed scripts, `conftest.defines' and
47067# `conftest.undefs', that substitutes the proper values into
47068# config.h.in to produce config.h. The first handles `#define'
47069# templates, and the second `#undef' templates.
47070# And first: Protect against being on the right side of a sed subst in
47071# config.status. Protect against being in an unquoted here document
47072# in config.status.
47073rm -f conftest.defines conftest.undefs
47074# Using a here document instead of a string reduces the quoting nightmare.
47075# Putting comments in sed scripts is not portable.
47076#
47077# `end' is used to avoid that the second main sed command (meant for
47078# 0-ary CPP macros) applies to n-ary macro definitions.
47079# See the Autoconf documentation for `clear'.
47080cat >confdef2sed.sed <<\_ACEOF
47081s/[\\&,]/\\&/g
47082s,[\\$`],\\&,g
47083t clear
47084: clear
ac1cb8d3 47085s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47086t end
ac1cb8d3 47087s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47088: end
47089_ACEOF
47090# If some macros were called several times there might be several times
47091# the same #defines, which is useless. Nevertheless, we may not want to
47092# sort them, since we want the *last* AC-DEFINE to be honored.
47093uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47094sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47095rm -f confdef2sed.sed
47096
47097# This sed command replaces #undef with comments. This is necessary, for
47098# example, in the case of _POSIX_SOURCE, which is predefined and required
47099# on some systems where configure will not decide to define it.
47100cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47101s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47102_ACEOF
47103
47104# Break up conftest.defines because some shells have a limit on the size
47105# of here documents, and old seds have small limits too (100 cmds).
47106echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47107echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47108echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47109echo ' :' >>$CONFIG_STATUS
47110rm -f conftest.tail
47111while grep . conftest.defines >/dev/null
47112do
47113 # Write a limited-size here document to $tmp/defines.sed.
47114 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47115 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47116 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47117 # Work around the forget-to-reset-the-flag bug.
47118 echo 't clr' >>$CONFIG_STATUS
47119 echo ': clr' >>$CONFIG_STATUS
47120 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47121 echo 'CEOF
47122 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47123 rm -f $tmp/in
47124 mv $tmp/out $tmp/in
47125' >>$CONFIG_STATUS
47126 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47127 rm -f conftest.defines
47128 mv conftest.tail conftest.defines
47129done
47130rm -f conftest.defines
47131echo ' fi # grep' >>$CONFIG_STATUS
47132echo >>$CONFIG_STATUS
47133
47134# Break up conftest.undefs because some shells have a limit on the size
47135# of here documents, and old seds have small limits too (100 cmds).
47136echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47137rm -f conftest.tail
47138while grep . conftest.undefs >/dev/null
47139do
47140 # Write a limited-size here document to $tmp/undefs.sed.
47141 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47142 # Speed up: don't consider the non `#undef'
ac1cb8d3 47143 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47144 # Work around the forget-to-reset-the-flag bug.
47145 echo 't clr' >>$CONFIG_STATUS
47146 echo ': clr' >>$CONFIG_STATUS
47147 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47148 echo 'CEOF
47149 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47150 rm -f $tmp/in
47151 mv $tmp/out $tmp/in
47152' >>$CONFIG_STATUS
47153 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47154 rm -f conftest.undefs
47155 mv conftest.tail conftest.undefs
47156done
47157rm -f conftest.undefs
47158
47159cat >>$CONFIG_STATUS <<\_ACEOF
47160 # Let's still pretend it is `configure' which instantiates (i.e., don't
47161 # use $as_me), people would be surprised to read:
47162 # /* config.h. Generated by config.status. */
47163 if test x"$ac_file" = x-; then
47164 echo "/* Generated by configure. */" >$tmp/config.h
47165 else
47166 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47167 fi
47168 cat $tmp/in >>$tmp/config.h
47169 rm -f $tmp/in
47170 if test x"$ac_file" != x-; then
47171 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47172 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47173echo "$as_me: $ac_file is unchanged" >&6;}
47174 else
47175 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47176$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47177 X"$ac_file" : 'X\(//\)[^/]' \| \
47178 X"$ac_file" : 'X\(//\)$' \| \
47179 X"$ac_file" : 'X\(/\)' \| \
47180 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47181echo X"$ac_file" |
47182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47184 /^X\(\/\/\)$/{ s//\1/; q; }
47185 /^X\(\/\).*/{ s//\1/; q; }
47186 s/.*/./; q'`
47187 { if $as_mkdir_p; then
47188 mkdir -p "$ac_dir"
47189 else
47190 as_dir="$ac_dir"
47191 as_dirs=
47192 while test ! -d "$as_dir"; do
47193 as_dirs="$as_dir $as_dirs"
47194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47196 X"$as_dir" : 'X\(//\)[^/]' \| \
47197 X"$as_dir" : 'X\(//\)$' \| \
47198 X"$as_dir" : 'X\(/\)' \| \
47199 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47200echo X"$as_dir" |
47201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47203 /^X\(\/\/\)$/{ s//\1/; q; }
47204 /^X\(\/\).*/{ s//\1/; q; }
47205 s/.*/./; q'`
47206 done
47207 test ! -n "$as_dirs" || mkdir $as_dirs
47208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47209echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47210 { (exit 1); exit 1; }; }; }
47211
47212 rm -f $ac_file
47213 mv $tmp/config.h $ac_file
47214 fi
47215 else
47216 cat $tmp/config.h
47217 rm -f $tmp/config.h
47218 fi
47219done
47220_ACEOF
47221cat >>$CONFIG_STATUS <<\_ACEOF
47222
47223#
47224# CONFIG_COMMANDS section.
47225#
47226for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47227 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47228 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47229 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47230$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47231 X"$ac_dest" : 'X\(//\)[^/]' \| \
47232 X"$ac_dest" : 'X\(//\)$' \| \
47233 X"$ac_dest" : 'X\(/\)' \| \
47234 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47235echo X"$ac_dest" |
47236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47238 /^X\(\/\/\)$/{ s//\1/; q; }
47239 /^X\(\/\).*/{ s//\1/; q; }
47240 s/.*/./; q'`
ac1cb8d3
VS
47241 { if $as_mkdir_p; then
47242 mkdir -p "$ac_dir"
47243 else
47244 as_dir="$ac_dir"
47245 as_dirs=
47246 while test ! -d "$as_dir"; do
47247 as_dirs="$as_dir $as_dirs"
47248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47250 X"$as_dir" : 'X\(//\)[^/]' \| \
47251 X"$as_dir" : 'X\(//\)$' \| \
47252 X"$as_dir" : 'X\(/\)' \| \
47253 . : '\(.\)' 2>/dev/null ||
47254echo X"$as_dir" |
47255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47257 /^X\(\/\/\)$/{ s//\1/; q; }
47258 /^X\(\/\).*/{ s//\1/; q; }
47259 s/.*/./; q'`
47260 done
47261 test ! -n "$as_dirs" || mkdir $as_dirs
47262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47263echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47264 { (exit 1); exit 1; }; }; }
47265
a848cd7e
SC
47266 ac_builddir=.
47267
47268if test "$ac_dir" != .; then
47269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47270 # A "../" for each directory in $ac_dir_suffix.
47271 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47272else
47273 ac_dir_suffix= ac_top_builddir=
47274fi
47275
47276case $srcdir in
47277 .) # No --srcdir option. We are building in place.
47278 ac_srcdir=.
47279 if test -z "$ac_top_builddir"; then
47280 ac_top_srcdir=.
47281 else
47282 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47283 fi ;;
47284 [\\/]* | ?:[\\/]* ) # Absolute path.
47285 ac_srcdir=$srcdir$ac_dir_suffix;
47286 ac_top_srcdir=$srcdir ;;
47287 *) # Relative path.
47288 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47289 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47290esac
ac1cb8d3
VS
47291
47292# Do not use `cd foo && pwd` to compute absolute paths, because
47293# the directories may not exist.
47294case `pwd` in
47295.) ac_abs_builddir="$ac_dir";;
47296*)
47297 case "$ac_dir" in
47298 .) ac_abs_builddir=`pwd`;;
47299 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47300 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47301 esac;;
47302esac
47303case $ac_abs_builddir in
47304.) ac_abs_top_builddir=${ac_top_builddir}.;;
47305*)
47306 case ${ac_top_builddir}. in
47307 .) ac_abs_top_builddir=$ac_abs_builddir;;
47308 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47309 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47310 esac;;
47311esac
47312case $ac_abs_builddir in
47313.) ac_abs_srcdir=$ac_srcdir;;
47314*)
47315 case $ac_srcdir in
47316 .) ac_abs_srcdir=$ac_abs_builddir;;
47317 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47318 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47319 esac;;
47320esac
47321case $ac_abs_builddir in
47322.) ac_abs_top_srcdir=$ac_top_srcdir;;
47323*)
47324 case $ac_top_srcdir in
47325 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47326 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47327 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47328 esac;;
47329esac
a848cd7e
SC
47330
47331
47332 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47333echo "$as_me: executing $ac_dest commands" >&6;}
47334 case $ac_dest in
ceec2216
RL
47335 wx-config ) rm -f wx-config
47336 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47337 ;;
a848cd7e
SC
47338 esac
47339done
47340_ACEOF
47341
47342cat >>$CONFIG_STATUS <<\_ACEOF
47343
47344{ (exit 0); exit 0; }
47345_ACEOF
47346chmod +x $CONFIG_STATUS
47347ac_clean_files=$ac_clean_files_save
47348
47349
47350# configure is writing to config.log, and then calls config.status.
47351# config.status does its own redirection, appending to config.log.
47352# Unfortunately, on DOS this fails, as config.log is still kept open
47353# by configure, so config.status won't be able to write to it; its
47354# output is simply discarded. So we exec the FD to /dev/null,
47355# effectively closing config.log, so it can be properly (re)opened and
47356# appended to by config.status. When coming back to configure, we
47357# need to make the FD available again.
47358if test "$no_create" != yes; then
47359 ac_cs_success=:
47360 ac_config_status_args=
47361 test "$silent" = yes &&
47362 ac_config_status_args="$ac_config_status_args --quiet"
47363 exec 5>/dev/null
47364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47365 exec 5>>config.log
47366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47367 # would make configure fail if this is the last instruction.
47368 $ac_cs_success || { (exit 1); exit 1; }
47369fi
47370
47371#
47372# CONFIG_SUBDIRS section.
47373#
47374if test "$no_recursion" != yes; then
47375
47376 # Remove --cache-file and --srcdir arguments so they do not pile up.
47377 ac_sub_configure_args=
47378 ac_prev=
47379 for ac_arg in $ac_configure_args; do
47380 if test -n "$ac_prev"; then
47381 ac_prev=
47382 continue
47383 fi
47384 case $ac_arg in
47385 -cache-file | --cache-file | --cache-fil | --cache-fi \
47386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47387 ac_prev=cache_file ;;
47388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47390 | --c=*)
47391 ;;
47392 --config-cache | -C)
47393 ;;
47394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47395 ac_prev=srcdir ;;
47396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47397 ;;
47398 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47399 ac_prev=prefix ;;
47400 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47401 ;;
47402 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47403 esac
47404 done
47405
47406 # Always prepend --prefix to ensure using the same prefix
47407 # in subdir configurations.
47408 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47409
47410 ac_popdir=`pwd`
47411 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47412
47413 # Do not complain, so a configure script can configure whichever
47414 # parts of a large source tree are present.
47415 test -d $srcdir/$ac_dir || continue
47416
47417 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47418echo "$as_me: configuring in $ac_dir" >&6;}
47419 { if $as_mkdir_p; then
47420 mkdir -p "$ac_dir"
47421 else
47422 as_dir="$ac_dir"
47423 as_dirs=
47424 while test ! -d "$as_dir"; do
47425 as_dirs="$as_dir $as_dirs"
47426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47427$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47428 X"$as_dir" : 'X\(//\)[^/]' \| \
47429 X"$as_dir" : 'X\(//\)$' \| \
47430 X"$as_dir" : 'X\(/\)' \| \
47431 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47432echo X"$as_dir" |
47433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47435 /^X\(\/\/\)$/{ s//\1/; q; }
47436 /^X\(\/\).*/{ s//\1/; q; }
47437 s/.*/./; q'`
47438 done
47439 test ! -n "$as_dirs" || mkdir $as_dirs
47440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47441echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47442 { (exit 1); exit 1; }; }; }
47443
47444 ac_builddir=.
47445
47446if test "$ac_dir" != .; then
47447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47448 # A "../" for each directory in $ac_dir_suffix.
47449 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47450else
47451 ac_dir_suffix= ac_top_builddir=
47452fi
47453
47454case $srcdir in
47455 .) # No --srcdir option. We are building in place.
47456 ac_srcdir=.
47457 if test -z "$ac_top_builddir"; then
47458 ac_top_srcdir=.
47459 else
47460 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47461 fi ;;
47462 [\\/]* | ?:[\\/]* ) # Absolute path.
47463 ac_srcdir=$srcdir$ac_dir_suffix;
47464 ac_top_srcdir=$srcdir ;;
47465 *) # Relative path.
47466 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47467 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47468esac
ac1cb8d3
VS
47469
47470# Do not use `cd foo && pwd` to compute absolute paths, because
47471# the directories may not exist.
47472case `pwd` in
47473.) ac_abs_builddir="$ac_dir";;
47474*)
47475 case "$ac_dir" in
47476 .) ac_abs_builddir=`pwd`;;
47477 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47478 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47479 esac;;
47480esac
47481case $ac_abs_builddir in
47482.) ac_abs_top_builddir=${ac_top_builddir}.;;
47483*)
47484 case ${ac_top_builddir}. in
47485 .) ac_abs_top_builddir=$ac_abs_builddir;;
47486 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47487 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47488 esac;;
47489esac
47490case $ac_abs_builddir in
47491.) ac_abs_srcdir=$ac_srcdir;;
47492*)
47493 case $ac_srcdir in
47494 .) ac_abs_srcdir=$ac_abs_builddir;;
47495 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47496 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47497 esac;;
47498esac
47499case $ac_abs_builddir in
47500.) ac_abs_top_srcdir=$ac_top_srcdir;;
47501*)
47502 case $ac_top_srcdir in
47503 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47504 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47505 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47506 esac;;
47507esac
a848cd7e
SC
47508
47509
47510 cd $ac_dir
47511
47512 # Check for guested configure; otherwise get Cygnus style configure.
47513 if test -f $ac_srcdir/configure.gnu; then
47514 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47515 elif test -f $ac_srcdir/configure; then
47516 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47517 elif test -f $ac_srcdir/configure.in; then
47518 ac_sub_configure=$ac_configure
47519 else
47520 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47521echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47522 ac_sub_configure=
47523 fi
47524
47525 # The recursion is here.
47526 if test -n "$ac_sub_configure"; then
47527 # Make the cache file name correct relative to the subdirectory.
47528 case $cache_file in
47529 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47530 *) # Relative path.
ac1cb8d3 47531 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47532 esac
47533
47534 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47535echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47536 # The eval makes quoting arguments work.
47537 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47538 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47539 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47540echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47541 { (exit 1); exit 1; }; }
47542 fi
47543
6ebeb4c7 47544 cd "$ac_popdir"
a848cd7e
SC
47545 done
47546fi
47547
47548
47549echo
77ffb593 47550echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47551echo ""
4d4ff94c 47552echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47553echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47554
77ffb593
JS
47555echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47556echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47557echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47558
77ffb593
JS
47559echo " What level of wxWidgets compatibility should be enabled?"
47560echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47561echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47562
77ffb593 47563echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47564echo " jpeg ${wxUSE_LIBJPEG-none}"
47565echo " png ${wxUSE_LIBPNG-none}"
47566echo " regex ${wxUSE_REGEX}"
47567echo " tiff ${wxUSE_LIBTIFF-none}"
47568if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47569echo " xpm ${wxUSE_LIBXPM-none}"
47570fi
47571echo " zlib ${wxUSE_ZLIB}"
47572echo " odbc ${wxUSE_ODBC}"
47573echo " expat ${wxUSE_EXPAT}"
47574echo " libmspack ${wxUSE_LIBMSPACK}"
47575echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47576echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47577
47578echo ""
47579