]> git.saurik.com Git - wxWidgets.git/blame - configure
removed wxUSE_MENU_CALLBACK references: the code inside the #if couldn't compile...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
083508af 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
6ebeb4c7 1193 cd "$ac_popdir"
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
eb730a0c 1200wxWidgets configure 2.6.2
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
eb730a0c 1214It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535 1664wx_minor_version_number=6
eb730a0c 1665wx_release_number=2
063c96c1 1666wx_subrelease_number=1
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
a848cd7e
SC
1674
1675
1676
1677USE_UNIX=1
1678USE_OS2=0
1679USE_WIN32=0
1680USE_DOS=0
1681USE_BEOS=0
1682USE_MAC=0
1683
1684USE_AIX=
1685USE_BSD= USE_DARWIN= USE_FREEBSD=
1686USE_GNU= USE_HPUX=
1687USE_LINUX=
1688USE_NETBSD=
1689USE_OPENBSD=
1690USE_OSF= USE_SGI=
1691USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1692USE_ULTRIX=
1693USE_UNIXWARE=
1694
1695USE_ALPHA=
1696
1697NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1698
1699ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1700
1701DEFAULT_wxUSE_COCOA=0
1702DEFAULT_wxUSE_GTK=0
1703DEFAULT_wxUSE_MAC=0
1704DEFAULT_wxUSE_MGL=0
1705DEFAULT_wxUSE_MICROWIN=0
1706DEFAULT_wxUSE_MOTIF=0
1707DEFAULT_wxUSE_MSW=0
1708DEFAULT_wxUSE_PM=0
1709DEFAULT_wxUSE_X11=0
1710
1711DEFAULT_DEFAULT_wxUSE_COCOA=0
1712DEFAULT_DEFAULT_wxUSE_GTK=0
1713DEFAULT_DEFAULT_wxUSE_MAC=0
1714DEFAULT_DEFAULT_wxUSE_MGL=0
1715DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1716DEFAULT_DEFAULT_wxUSE_MOTIF=0
1717DEFAULT_DEFAULT_wxUSE_MSW=0
1718DEFAULT_DEFAULT_wxUSE_PM=0
1719DEFAULT_DEFAULT_wxUSE_X11=0
1720
1721PROGRAM_EXT=
1722SO_SUFFIX=so
1723SAMPLES_RPATH_FLAG=
1724SAMPLES_RPATH_POSTLINK=
1725
a03b8b04
RD
1726DEFAULT_STD_FLAG=yes
1727
a848cd7e
SC
1728case "${host}" in
1729 *-hp-hpux* )
1730 USE_HPUX=1
1731 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1732 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1733 SO_SUFFIX=sl
1734 cat >>confdefs.h <<\_ACEOF
1735#define __HPUX__ 1
1736_ACEOF
1737
1738 ;;
1739 *-*-linux* )
1740 USE_LINUX=1
1741 cat >>confdefs.h <<\_ACEOF
1742#define __LINUX__ 1
1743_ACEOF
1744
1745 TMP=`uname -m`
1746 if test "x$TMP" = "xalpha"; then
1747 USE_ALPHA=1
1748 cat >>confdefs.h <<\_ACEOF
1749#define __ALPHA__ 1
1750_ACEOF
1751
1752 fi
1753 DEFAULT_DEFAULT_wxUSE_GTK=1
1754 ;;
1755 *-*-gnu* | *-*-k*bsd*-gnu )
1756 USE_GNU=1
1757 TMP=`uname -m`
1758 if test "x$TMP" = "xalpha"; then
1759 USE_ALPHA=1
1760 cat >>confdefs.h <<\_ACEOF
1761#define __ALPHA__ 1
1762_ACEOF
1763
1764 fi
1765 DEFAULT_DEFAULT_wxUSE_GTK=1
1766 ;;
1767 *-*-irix5* | *-*-irix6* )
1768 USE_SGI=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SGI__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SVR4__ 1
1776_ACEOF
1777
1778 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1779 ;;
1780 *-*-solaris2* )
1781 USE_SUN=1
1782 USE_SOLARIS=1
1783 USE_SVR4=1
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SUN__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SOLARIS__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SVR4__ 1
1794_ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1798 ;;
1799 *-*-sunos4* )
1800 USE_SUN=1
1801 USE_SUNOS=1
1802 USE_BSD=1
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SUN__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUNOS__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1816 ;;
1817 *-*-freebsd*)
1818 USE_BSD=1
1819 USE_FREEBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __FREEBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-openbsd*)
1831 USE_BSD=1
1832 USE_OPENBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __OPENBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-netbsd*)
1844 USE_BSD=1
1845 USE_NETBSD=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __NETBSD__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __BSD__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_GTK=1
1855 ;;
1856 *-*-osf* )
1857 USE_ALPHA=1
1858 USE_OSF=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __OSF__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1869 ;;
1870 *-*-dgux5* )
1871 USE_ALPHA=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __ALPHA__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-sysv5* )
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SYSV__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SVR4__ 1
1892_ACEOF
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896 *-*-aix* )
1897 USE_AIX=1
1898 USE_SYSV=1
1899 USE_SVR4=1
1900 SO_SUFFIX=a
1901 cat >>confdefs.h <<\_ACEOF
1902#define __AIX__ 1
1903_ACEOF
1904
1905 cat >>confdefs.h <<\_ACEOF
1906#define __SYSV__ 1
1907_ACEOF
1908
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SVR4__ 1
1911_ACEOF
1912
1913 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1914 ;;
1915
1916 *-*-*UnixWare*)
1917 USE_SYSV=1
1918 USE_SVR4=1
1919 USE_UNIXWARE=1
1920 cat >>confdefs.h <<\_ACEOF
1921#define __UNIXWARE__ 1
1922_ACEOF
1923
1924 ;;
1925
1926 *-*-cygwin* | *-*-mingw32* )
1927 SO_SUFFIX=dll
1928 PROGRAM_EXT=".exe"
1929 RESCOMP=windres
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
1977 powerpc-*-darwin* )
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
10047
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-palette or --disable-palette was given.
10054if test "${enable_palette+set}" = set; then
10055 enableval="$enable_palette"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_palette='wxUSE_PALETTE=yes'
10059 else
10060 ac_cv_use_palette='wxUSE_PALETTE=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10073
10074fi;
10075
10076 eval "$ac_cv_use_palette"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_PALETTE" = 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
10089
10090 enablestring=
10091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10092echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10093 no_cache=0
10094 # Check whether --enable-image or --disable-image was given.
10095if test "${enable_image+set}" = set; then
10096 enableval="$enable_image"
10097
10098 if test "$enableval" = yes; then
10099 ac_cv_use_image='wxUSE_IMAGE=yes'
10100 else
10101 ac_cv_use_image='wxUSE_IMAGE=no'
10102 fi
10103
10104else
10105
10106 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10107 if test "x$LINE" != x ; then
10108 eval "DEFAULT_$LINE"
10109 else
10110 no_cache=1
10111 fi
10112
10113 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10114
10115fi;
10116
10117 eval "$ac_cv_use_image"
10118 if test "$no_cache" != 1; then
10119 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10120 fi
10121
10122 if test "$wxUSE_IMAGE" = yes; then
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
10125 else
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
10128 fi
10129
10130
10131 enablestring=
10132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10133echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10134 no_cache=0
10135 # Check whether --enable-gif or --disable-gif was given.
10136if test "${enable_gif+set}" = set; then
10137 enableval="$enable_gif"
10138
10139 if test "$enableval" = yes; then
10140 ac_cv_use_gif='wxUSE_GIF=yes'
10141 else
10142 ac_cv_use_gif='wxUSE_GIF=no'
10143 fi
10144
10145else
10146
10147 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10148 if test "x$LINE" != x ; then
10149 eval "DEFAULT_$LINE"
10150 else
10151 no_cache=1
10152 fi
10153
10154 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10155
10156fi;
10157
10158 eval "$ac_cv_use_gif"
10159 if test "$no_cache" != 1; then
10160 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10161 fi
10162
10163 if test "$wxUSE_GIF" = yes; then
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166 else
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
10169 fi
10170
10171
10172 enablestring=
10173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10174echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10175 no_cache=0
10176 # Check whether --enable-pcx or --disable-pcx was given.
10177if test "${enable_pcx+set}" = set; then
10178 enableval="$enable_pcx"
10179
10180 if test "$enableval" = yes; then
10181 ac_cv_use_pcx='wxUSE_PCX=yes'
10182 else
10183 ac_cv_use_pcx='wxUSE_PCX=no'
10184 fi
10185
10186else
10187
10188 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10189 if test "x$LINE" != x ; then
10190 eval "DEFAULT_$LINE"
10191 else
10192 no_cache=1
10193 fi
10194
10195 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10196
10197fi;
10198
10199 eval "$ac_cv_use_pcx"
10200 if test "$no_cache" != 1; then
10201 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10202 fi
10203
10204 if test "$wxUSE_PCX" = yes; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206echo "${ECHO_T}yes" >&6
10207 else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210 fi
10211
10212
10213 enablestring=
10214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10215echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10216 no_cache=0
10217 # Check whether --enable-iff or --disable-iff was given.
10218if test "${enable_iff+set}" = set; then
10219 enableval="$enable_iff"
10220
10221 if test "$enableval" = yes; then
10222 ac_cv_use_iff='wxUSE_IFF=yes'
10223 else
10224 ac_cv_use_iff='wxUSE_IFF=no'
10225 fi
10226
10227else
10228
10229 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10230 if test "x$LINE" != x ; then
10231 eval "DEFAULT_$LINE"
10232 else
10233 no_cache=1
10234 fi
10235
10236 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10237
10238fi;
10239
10240 eval "$ac_cv_use_iff"
10241 if test "$no_cache" != 1; then
10242 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10243 fi
10244
10245 if test "$wxUSE_IFF" = yes; then
10246 echo "$as_me:$LINENO: result: yes" >&5
10247echo "${ECHO_T}yes" >&6
10248 else
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
10251 fi
10252
10253
10254 enablestring=
10255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10256echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10257 no_cache=0
10258 # Check whether --enable-pnm or --disable-pnm was given.
10259if test "${enable_pnm+set}" = set; then
10260 enableval="$enable_pnm"
10261
10262 if test "$enableval" = yes; then
10263 ac_cv_use_pnm='wxUSE_PNM=yes'
10264 else
10265 ac_cv_use_pnm='wxUSE_PNM=no'
10266 fi
10267
10268else
10269
10270 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10271 if test "x$LINE" != x ; then
10272 eval "DEFAULT_$LINE"
10273 else
10274 no_cache=1
10275 fi
10276
10277 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10278
10279fi;
10280
10281 eval "$ac_cv_use_pnm"
10282 if test "$no_cache" != 1; then
10283 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10284 fi
10285
10286 if test "$wxUSE_PNM" = yes; then
10287 echo "$as_me:$LINENO: result: yes" >&5
10288echo "${ECHO_T}yes" >&6
10289 else
10290 echo "$as_me:$LINENO: result: no" >&5
10291echo "${ECHO_T}no" >&6
10292 fi
10293
10294
10295 enablestring=
10296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10297echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10298 no_cache=0
10299 # Check whether --enable-xpm or --disable-xpm was given.
10300if test "${enable_xpm+set}" = set; then
10301 enableval="$enable_xpm"
10302
10303 if test "$enableval" = yes; then
10304 ac_cv_use_xpm='wxUSE_XPM=yes'
10305 else
10306 ac_cv_use_xpm='wxUSE_XPM=no'
10307 fi
10308
10309else
10310
10311 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10312 if test "x$LINE" != x ; then
10313 eval "DEFAULT_$LINE"
10314 else
10315 no_cache=1
10316 fi
10317
10318 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10319
10320fi;
10321
10322 eval "$ac_cv_use_xpm"
10323 if test "$no_cache" != 1; then
10324 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10325 fi
10326
10327 if test "$wxUSE_XPM" = yes; then
10328 echo "$as_me:$LINENO: result: yes" >&5
10329echo "${ECHO_T}yes" >&6
10330 else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333 fi
10334
10335
10336 enablestring=
10337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10338echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10339 no_cache=0
10340 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10341if test "${enable_ico_cur+set}" = set; then
10342 enableval="$enable_ico_cur"
10343
10344 if test "$enableval" = yes; then
10345 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10346 else
10347 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10348 fi
10349
10350else
10351
10352 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10353 if test "x$LINE" != x ; then
10354 eval "DEFAULT_$LINE"
10355 else
10356 no_cache=1
10357 fi
10358
10359 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10360
10361fi;
10362
10363 eval "$ac_cv_use_ico_cur"
10364 if test "$no_cache" != 1; then
10365 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10366 fi
10367
10368 if test "$wxUSE_ICO_CUR" = yes; then
10369 echo "$as_me:$LINENO: result: yes" >&5
10370echo "${ECHO_T}yes" >&6
10371 else
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
10374 fi
10375
10376
10377fi
10378
10379
10380
ceec2216
RL
10381# Check whether --with-flavour or --without-flavour was given.
10382if test "${with_flavour+set}" = set; then
10383 withval="$with_flavour"
10384 WX_FLAVOUR="$withval"
10385fi;
10386
10387
10388
a848cd7e
SC
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-official_build or --disable-official_build was given.
10394if test "${enable_official_build+set}" = set; then
10395 enableval="$enable_official_build"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10399 else
10400 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10413
10414fi;
10415
10416 eval "$ac_cv_use_official_build"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429# Check whether --enable-vendor or --disable-vendor was given.
10430if test "${enable_vendor+set}" = set; then
10431 enableval="$enable_vendor"
10432 VENDOR="$enableval"
10433fi;
10434if test "x$VENDOR" = "x"; then
10435 VENDOR="custom"
10436fi
10437
a848cd7e
SC
10438
10439
10440
10441 echo "saving argument cache $wx_arg_cache_file"
10442 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10443
10444
10445
10446echo "$as_me:$LINENO: checking for toolkit" >&5
10447echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10448
10449# In Wine, we need to default to MSW, not GTK or MOTIF
10450if test "$wxUSE_WINE" = "yes"; then
10451 DEFAULT_DEFAULT_wxUSE_GTK=0
10452 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10453 DEFAULT_DEFAULT_wxUSE_MSW=1
10454 wxUSE_SHARED=no
10455fi
10456
f597b41c 10457
a848cd7e
SC
10458if test "$wxUSE_GUI" = "yes"; then
10459
10460 if test "$USE_BEOS" = 1; then
10461 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10462echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10463 { (exit 1); exit 1; }; }
10464 fi
10465
10466 if test "$TOOLKIT_GIVEN" = 1; then
10467 for toolkit in `echo $ALL_TOOLKITS`; do
10468 var=wxUSE_$toolkit
10469 eval "value=\$${var}"
f34ca037
MW
10470 if test "x$value" = "xno"; then
10471 eval "$var=0"
10472 elif test "x$value" != "x"; then
10473 eval "$var=1"
10474 fi
10475
10476 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10477 eval "wx${toolkit}_VERSION=$value"
10478 fi
a848cd7e
SC
10479 done
10480 else
10481 for toolkit in `echo $ALL_TOOLKITS`; do
10482 if test "$has_toolkit_in_cache" != 1; then
10483 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10484 else
10485 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10486
10487 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10488 if test "x$version" != "x"; then
10489 eval "wx${toolkit}_VERSION=$version"
10490 fi
a848cd7e
SC
10491 fi
10492 eval "wxUSE_$toolkit=\$${var}"
10493 done
10494 fi
10495
10496 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10497 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10498 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10499
10500 case "${host}" in
10501 *-pc-os2_emx | *-pc-os2-emx )
10502 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10503 esac
10504
10505 case "$NUM_TOOLKITS" in
10506 1)
10507 ;;
10508 0)
10509 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10510echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10511 { (exit 1); exit 1; }; }
10512 ;;
10513 *)
10514 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10515echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10516 { (exit 1); exit 1; }; }
10517 esac
10518
f34ca037
MW
10519 # to be removed when --disable-gtk2 isn't needed
10520 if test "x$wxUSE_GTK2" = "xyes"; then
10521 wxGTK_VERSION=2
10522 elif test "x$wxUSE_GTK2" = "xno"; then
10523 wxGTK_VERSION=1
10524 fi
10525
a848cd7e
SC
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 var=wxUSE_$toolkit
10528 eval "value=\$${var}"
10529 if test "x$value" != x; then
10530 cache_var=CACHE_$toolkit
10531 eval "cache=\$${cache_var}"
10532 if test "$cache" = 1; then
10533 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10534 eval "version=\$wx${toolkit}_VERSION"
10535 if test "x$version" != "x"; then
10536 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10537 fi
a848cd7e
SC
10538 fi
10539 if test "$value" = 1; then
10540 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10541 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10542echo "${ECHO_T}$toolkit_echo" >&6
10543 fi
10544 fi
10545 done
10546else
10547 if test "x$host_alias" != "x"; then
10548 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10549echo "${ECHO_T}base ($host_alias hosted) only" >&6
10550 else
10551 echo "$as_me:$LINENO: result: base only" >&5
10552echo "${ECHO_T}base only" >&6
10553 fi
10554fi
10555
10556wants_win32=0
10557doesnt_want_win32=0
10558case "${host}" in
10559 *-*-cygwin*)
10560 if test "$wxUSE_MSW" = 1 ; then
10561 wants_win32=1
7275146d 10562 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10563 else
10564 doesnt_want_win32=1
10565 fi
10566 ;;
10567 *-*-mingw*)
10568 wants_win32=1
10569 ;;
10570esac
10571
10572if test "$wxUSE_WINE" = "yes"; then
10573 wants_win32=1
10574 CC=winegcc
10575 CXX=wineg++
10576 RESCOMP=wrc
10577 LDFLAGS_GUI="-mwindows"
10578fi
10579
10580if test "$wants_win32" = 1 ; then
10581 USE_UNIX=0
10582 USE_WIN32=1
10583 cat >>confdefs.h <<\_ACEOF
10584#define __WIN32__ 1
10585_ACEOF
10586
10587 cat >>confdefs.h <<\_ACEOF
10588#define __WIN95__ 1
10589_ACEOF
10590
10591 cat >>confdefs.h <<\_ACEOF
10592#define __WINDOWS__ 1
10593_ACEOF
10594
10595 cat >>confdefs.h <<\_ACEOF
10596#define __GNUWIN32__ 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define STRICT 1
10601_ACEOF
10602
10603 cat >>confdefs.h <<\_ACEOF
10604#define WINVER 0x0400
10605_ACEOF
10606
10607fi
10608if test "$doesnt_want_win32" = 1 ; then
10609 USE_UNIX=1
10610 USE_WIN32=0
10611fi
10612
10613if test "$USE_UNIX" = 1 ; then
10614 wxUSE_UNIX=yes
10615 cat >>confdefs.h <<\_ACEOF
10616#define __UNIX__ 1
10617_ACEOF
10618
10619fi
10620
10621
10622cat >confcache <<\_ACEOF
10623# This file is a shell script that caches the results of configure
10624# tests run on this system so they can be shared between configure
10625# scripts and configure runs, see configure's option --config-cache.
10626# It is not useful on other systems. If it contains results you don't
10627# want to keep, you may remove or edit it.
10628#
10629# config.status only pays attention to the cache file if you give it
10630# the --recheck option to rerun configure.
10631#
10632# `ac_cv_env_foo' variables (set or unset) will be overridden when
10633# loading this file, other *unset* `ac_cv_foo' will be assigned the
10634# following values.
10635
10636_ACEOF
10637
10638# The following way of writing the cache mishandles newlines in values,
10639# but we know of no workaround that is simple, portable, and efficient.
10640# So, don't put newlines in cache variables' values.
10641# Ultrix sh set writes to stderr and can't be redirected directly,
10642# and sets the high bit in the cache file unless we assign to the vars.
10643{
10644 (set) 2>&1 |
10645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10646 *ac_space=\ *)
10647 # `set' does not quote correctly, so add quotes (double-quote
10648 # substitution turns \\\\ into \\, and sed turns \\ into \).
10649 sed -n \
ac1cb8d3
VS
10650 "s/'/'\\\\''/g;
10651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10652 ;;
10653 *)
10654 # `set' quotes correctly as required by POSIX, so do not add quotes.
10655 sed -n \
ac1cb8d3 10656 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10657 ;;
10658 esac;
10659} |
10660 sed '
10661 t clear
10662 : clear
10663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10664 t end
10665 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10666 : end' >>confcache
10667if diff $cache_file confcache >/dev/null 2>&1; then :; else
10668 if test -w $cache_file; then
10669 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10670 cat confcache >$cache_file
10671 else
10672 echo "not updating unwritable cache $cache_file"
10673 fi
10674fi
10675rm -f confcache
10676
10677if test "$build" != "$host" ; then
1e9e8aba 10678 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10679 CC=$host_alias-gcc
10680 CXX=$host_alias-c++
10681 AR=$host_alias-ar
10682 RANLIB=$host_alias-ranlib
10683 DLLTOOL=$host_alias-dlltool
10684 RESCOMP=$host_alias-windres
a848cd7e 10685 STRIP=$host_alias-strip
1e9e8aba
DE
10686 elif test "x$CC" '!=' "x"; then
10687 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10688 else
10689 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10690echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10691 { (exit 1); exit 1; }; }
10692 fi
10693fi
10694
10695CFLAGS=${CFLAGS:=}
6dcfc289
DE
10696
10697
10698 ac_ext=c
a848cd7e
SC
10699ac_cpp='$CPP $CPPFLAGS'
10700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702ac_compiler_gnu=$ac_cv_c_compiler_gnu
10703if test -n "$ac_tool_prefix"; then
10704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10705set dummy ${ac_tool_prefix}gcc; ac_word=$2
10706echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708if test "${ac_cv_prog_CC+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 if test -n "$CC"; then
10712 ac_cv_prog_CC="$CC" # Let the user override the test.
10713else
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725done
10726done
10727
10728fi
10729fi
10730CC=$ac_cv_prog_CC
10731if test -n "$CC"; then
10732 echo "$as_me:$LINENO: result: $CC" >&5
10733echo "${ECHO_T}$CC" >&6
10734else
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
10737fi
10738
10739fi
10740if test -z "$ac_cv_prog_CC"; then
10741 ac_ct_CC=$CC
10742 # Extract the first word of "gcc", so it can be a program name with args.
10743set dummy gcc; ac_word=$2
10744echo "$as_me:$LINENO: checking for $ac_word" >&5
10745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 if test -n "$ac_ct_CC"; then
10750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_ac_ct_CC="gcc"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
10766fi
10767fi
10768ac_ct_CC=$ac_cv_prog_ac_ct_CC
10769if test -n "$ac_ct_CC"; then
10770 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10771echo "${ECHO_T}$ac_ct_CC" >&6
10772else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775fi
10776
10777 CC=$ac_ct_CC
10778else
10779 CC="$ac_cv_prog_CC"
10780fi
10781
10782if test -z "$CC"; then
10783 if test -n "$ac_tool_prefix"; then
10784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10785set dummy ${ac_tool_prefix}cc; ac_word=$2
10786echo "$as_me:$LINENO: checking for $ac_word" >&5
10787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788if test "${ac_cv_prog_CC+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 if test -n "$CC"; then
10792 ac_cv_prog_CC="$CC" # Let the user override the test.
10793else
10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795for as_dir in $PATH
10796do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_CC="${ac_tool_prefix}cc"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805done
10806done
10807
10808fi
10809fi
10810CC=$ac_cv_prog_CC
10811if test -n "$CC"; then
10812 echo "$as_me:$LINENO: result: $CC" >&5
10813echo "${ECHO_T}$CC" >&6
10814else
10815 echo "$as_me:$LINENO: result: no" >&5
10816echo "${ECHO_T}no" >&6
10817fi
10818
10819fi
10820if test -z "$ac_cv_prog_CC"; then
10821 ac_ct_CC=$CC
10822 # Extract the first word of "cc", so it can be a program name with args.
10823set dummy cc; ac_word=$2
10824echo "$as_me:$LINENO: checking for $ac_word" >&5
10825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 if test -n "$ac_ct_CC"; then
10830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10831else
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_ac_ct_CC="cc"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10842 fi
10843done
10844done
10845
10846fi
10847fi
10848ac_ct_CC=$ac_cv_prog_ac_ct_CC
10849if test -n "$ac_ct_CC"; then
10850 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10851echo "${ECHO_T}$ac_ct_CC" >&6
10852else
10853 echo "$as_me:$LINENO: result: no" >&5
10854echo "${ECHO_T}no" >&6
10855fi
10856
10857 CC=$ac_ct_CC
10858else
10859 CC="$ac_cv_prog_CC"
10860fi
10861
10862fi
10863if test -z "$CC"; then
10864 # Extract the first word of "cc", so it can be a program name with args.
10865set dummy cc; ac_word=$2
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868if test "${ac_cv_prog_CC+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 if test -n "$CC"; then
10872 ac_cv_prog_CC="$CC" # Let the user override the test.
10873else
10874 ac_prog_rejected=no
10875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876for as_dir in $PATH
10877do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10883 ac_prog_rejected=yes
10884 continue
10885 fi
10886 ac_cv_prog_CC="cc"
10887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890done
10891done
10892
10893if test $ac_prog_rejected = yes; then
10894 # We found a bogon in the path, so make sure we never use it.
10895 set dummy $ac_cv_prog_CC
10896 shift
10897 if test $# != 0; then
10898 # We chose a different compiler from the bogus one.
10899 # However, it has the same basename, so the bogon will be chosen
10900 # first if we set CC to just the basename; use the full file name.
10901 shift
10902 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10903 fi
10904fi
10905fi
10906fi
10907CC=$ac_cv_prog_CC
10908if test -n "$CC"; then
10909 echo "$as_me:$LINENO: result: $CC" >&5
10910echo "${ECHO_T}$CC" >&6
10911else
10912 echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6
10914fi
10915
10916fi
10917if test -z "$CC"; then
10918 if test -n "$ac_tool_prefix"; then
10919 for ac_prog in cl
10920 do
10921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10923echo "$as_me:$LINENO: checking for $ac_word" >&5
10924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925if test "${ac_cv_prog_CC+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 if test -n "$CC"; then
10929 ac_cv_prog_CC="$CC" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942done
10943done
10944
10945fi
10946fi
10947CC=$ac_cv_prog_CC
10948if test -n "$CC"; then
10949 echo "$as_me:$LINENO: result: $CC" >&5
10950echo "${ECHO_T}$CC" >&6
10951else
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
10954fi
10955
10956 test -n "$CC" && break
10957 done
10958fi
10959if test -z "$CC"; then
10960 ac_ct_CC=$CC
10961 for ac_prog in cl
10962do
10963 # Extract the first word of "$ac_prog", so it can be a program name with args.
10964set dummy $ac_prog; ac_word=$2
10965echo "$as_me:$LINENO: checking for $ac_word" >&5
10966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 if test -n "$ac_ct_CC"; then
10971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_prog_ac_ct_CC="$ac_prog"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985done
10986
10987fi
10988fi
10989ac_ct_CC=$ac_cv_prog_ac_ct_CC
10990if test -n "$ac_ct_CC"; then
10991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10992echo "${ECHO_T}$ac_ct_CC" >&6
10993else
10994 echo "$as_me:$LINENO: result: no" >&5
10995echo "${ECHO_T}no" >&6
10996fi
10997
10998 test -n "$ac_ct_CC" && break
10999done
11000
11001 CC=$ac_ct_CC
11002fi
11003
11004fi
11005
11006
11007test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11008See \`config.log' for more details." >&5
11009echo "$as_me: error: no acceptable C compiler found in \$PATH
11010See \`config.log' for more details." >&2;}
11011 { (exit 1); exit 1; }; }
11012
11013# Provide some information about the compiler.
11014echo "$as_me:$LINENO:" \
11015 "checking for C compiler version" >&5
11016ac_compiler=`set X $ac_compile; echo $2`
11017{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11018 (eval $ac_compiler --version </dev/null >&5) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }
11022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11023 (eval $ac_compiler -v </dev/null >&5) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }
11027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11028 (eval $ac_compiler -V </dev/null >&5) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }
11032
11033cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039
11040int
11041main ()
11042{
11043
11044 ;
11045 return 0;
11046}
11047_ACEOF
11048ac_clean_files_save=$ac_clean_files
11049ac_clean_files="$ac_clean_files a.out a.exe b.out"
11050# Try to create an executable without -o first, disregard a.out.
11051# It will help us diagnose broken compilers, and finding out an intuition
11052# of exeext.
ac1cb8d3
VS
11053echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11054echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11055ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11056if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11057 (eval $ac_link_default) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; then
11061 # Find the output, starting from the most likely. This scheme is
11062# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11063# resort.
11064
11065# Be careful to initialize this variable, since it used to be cached.
11066# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11067ac_cv_exeext=
11068# b.out is created by i960 compilers.
11069for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11070do
11071 test -f "$ac_file" || continue
11072 case $ac_file in
11073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11074 ;;
a848cd7e 11075 conftest.$ac_ext )
ac1cb8d3
VS
11076 # This is the source file.
11077 ;;
a848cd7e 11078 [ab].out )
ac1cb8d3
VS
11079 # We found the default executable, but exeext='' is most
11080 # certainly right.
11081 break;;
a848cd7e 11082 *.* )
ac1cb8d3
VS
11083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11084 # FIXME: I believe we export ac_cv_exeext for Libtool,
11085 # but it would be cool to find out if it's true. Does anybody
11086 # maintain Libtool? --akim.
11087 export ac_cv_exeext
11088 break;;
a848cd7e 11089 * )
ac1cb8d3 11090 break;;
a848cd7e
SC
11091 esac
11092done
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11098See \`config.log' for more details." >&5
11099echo "$as_me: error: C compiler cannot create executables
11100See \`config.log' for more details." >&2;}
11101 { (exit 77); exit 77; }; }
11102fi
11103
11104ac_exeext=$ac_cv_exeext
11105echo "$as_me:$LINENO: result: $ac_file" >&5
11106echo "${ECHO_T}$ac_file" >&6
11107
11108# Check the compiler produces executables we can run. If not, either
11109# the compiler is broken, or we cross compile.
11110echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11111echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11112# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11113# If not cross compiling, check that we can run a simple program.
11114if test "$cross_compiling" != yes; then
11115 if { ac_try='./$ac_file'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 cross_compiling=no
11122 else
11123 if test "$cross_compiling" = maybe; then
11124 cross_compiling=yes
11125 else
11126 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11127If you meant to cross compile, use \`--host'.
11128See \`config.log' for more details." >&5
11129echo "$as_me: error: cannot run C compiled programs.
11130If you meant to cross compile, use \`--host'.
11131See \`config.log' for more details." >&2;}
11132 { (exit 1); exit 1; }; }
11133 fi
11134 fi
11135fi
11136echo "$as_me:$LINENO: result: yes" >&5
11137echo "${ECHO_T}yes" >&6
11138
11139rm -f a.out a.exe conftest$ac_cv_exeext b.out
11140ac_clean_files=$ac_clean_files_save
11141# Check the compiler produces executables we can run. If not, either
11142# the compiler is broken, or we cross compile.
11143echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11144echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11145echo "$as_me:$LINENO: result: $cross_compiling" >&5
11146echo "${ECHO_T}$cross_compiling" >&6
11147
11148echo "$as_me:$LINENO: checking for suffix of executables" >&5
11149echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; then
11155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11156# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11157# work properly (i.e., refer to `conftest.exe'), while it won't with
11158# `rm'.
11159for ac_file in conftest.exe conftest conftest.*; do
11160 test -f "$ac_file" || continue
11161 case $ac_file in
11162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11164 export ac_cv_exeext
11165 break;;
a848cd7e
SC
11166 * ) break;;
11167 esac
11168done
11169else
11170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11171See \`config.log' for more details." >&5
11172echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11173See \`config.log' for more details." >&2;}
11174 { (exit 1); exit 1; }; }
11175fi
11176
11177rm -f conftest$ac_cv_exeext
11178echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11179echo "${ECHO_T}$ac_cv_exeext" >&6
11180
11181rm -f conftest.$ac_ext
11182EXEEXT=$ac_cv_exeext
11183ac_exeext=$EXEEXT
11184echo "$as_me:$LINENO: checking for suffix of object files" >&5
11185echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11186if test "${ac_cv_objext+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188else
11189 cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
11195
11196int
11197main ()
11198{
11199
11200 ;
11201 return 0;
11202}
11203_ACEOF
11204rm -f conftest.o conftest.obj
11205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; then
11210 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11211 case $ac_file in
11212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11214 break;;
11215 esac
11216done
11217else
11218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11222See \`config.log' for more details." >&5
11223echo "$as_me: error: cannot compute suffix of object files: cannot compile
11224See \`config.log' for more details." >&2;}
11225 { (exit 1); exit 1; }; }
11226fi
11227
11228rm -f conftest.$ac_cv_objext conftest.$ac_ext
11229fi
11230echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11231echo "${ECHO_T}$ac_cv_objext" >&6
11232OBJEXT=$ac_cv_objext
11233ac_objext=$OBJEXT
11234echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11235echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11236if test "${ac_cv_c_compiler_gnu+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245
11246int
11247main ()
11248{
11249#ifndef __GNUC__
11250 choke me
11251#endif
11252
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11259 (eval $ac_compile) 2>conftest.er1
a848cd7e 11260 ac_status=$?
ac1cb8d3
VS
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
a848cd7e
SC
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
6ebeb4c7 11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_compiler_gnu=yes
11279else
11280 echo "$as_me: failed program was:" >&5
11281sed 's/^/| /' conftest.$ac_ext >&5
11282
11283ac_compiler_gnu=no
11284fi
ac1cb8d3 11285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11286ac_cv_c_compiler_gnu=$ac_compiler_gnu
11287
11288fi
11289echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11290echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11291GCC=`test $ac_compiler_gnu = yes && echo yes`
11292ac_test_CFLAGS=${CFLAGS+set}
11293ac_save_CFLAGS=$CFLAGS
52ada004 11294CFLAGS="-g"
a848cd7e
SC
11295echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11296echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11297if test "${ac_cv_prog_cc_g+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else
11300 cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306
11307int
11308main ()
11309{
11310
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext
11316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11317 (eval $ac_compile) 2>conftest.er1
a848cd7e 11318 ac_status=$?
ac1cb8d3
VS
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
a848cd7e
SC
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
6ebeb4c7 11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_prog_cc_g=yes
11337else
11338 echo "$as_me: failed program was:" >&5
11339sed 's/^/| /' conftest.$ac_ext >&5
11340
11341ac_cv_prog_cc_g=no
11342fi
ac1cb8d3 11343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11344fi
11345echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11346echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11347if test "$ac_test_CFLAGS" = set; then
11348 CFLAGS=$ac_save_CFLAGS
11349elif test $ac_cv_prog_cc_g = yes; then
11350 if test "$GCC" = yes; then
11351 CFLAGS="-g -O2"
11352 else
11353 CFLAGS="-g"
11354 fi
11355else
11356 if test "$GCC" = yes; then
11357 CFLAGS="-O2"
11358 else
11359 CFLAGS=
11360 fi
11361fi
11362echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11363echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11364if test "${ac_cv_prog_cc_stdc+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 ac_cv_prog_cc_stdc=no
11368ac_save_CC=$CC
11369cat >conftest.$ac_ext <<_ACEOF
11370/* confdefs.h. */
11371_ACEOF
11372cat confdefs.h >>conftest.$ac_ext
11373cat >>conftest.$ac_ext <<_ACEOF
11374/* end confdefs.h. */
11375#include <stdarg.h>
11376#include <stdio.h>
11377#include <sys/types.h>
11378#include <sys/stat.h>
11379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11380struct buf { int x; };
11381FILE * (*rcsopen) (struct buf *, struct stat *, int);
11382static char *e (p, i)
11383 char **p;
11384 int i;
11385{
11386 return p[i];
11387}
11388static char *f (char * (*g) (char **, int), char **p, ...)
11389{
11390 char *s;
11391 va_list v;
11392 va_start (v,p);
11393 s = g (p, va_arg (v,int));
11394 va_end (v);
11395 return s;
11396}
ac1cb8d3
VS
11397
11398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11399 function prototypes and stuff, but not '\xHH' hex character constants.
11400 These don't provoke an error unfortunately, instead are silently treated
11401 as 'x'. The following induces an error, until -std1 is added to get
11402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11403 array size at least. It's necessary to write '\x00'==0 to get something
11404 that's true only with -std1. */
11405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11406
a848cd7e
SC
11407int test (int i, double x);
11408struct s1 {int (*f) (int a);};
11409struct s2 {int (*f) (double a);};
11410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11411int argc;
11412char **argv;
11413int
11414main ()
11415{
11416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421# Don't try gcc -ansi; that turns off useful extensions and
11422# breaks some systems' header files.
11423# AIX -qlanglvl=ansi
11424# Ultrix and OSF/1 -std1
11425# HP-UX 10.20 and later -Ae
11426# HP-UX older versions -Aa -D_HPUX_SOURCE
11427# SVR4 -Xc -D__EXTENSIONS__
11428for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11429do
11430 CC="$ac_save_CC $ac_arg"
11431 rm -f conftest.$ac_objext
11432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11433 (eval $ac_compile) 2>conftest.er1
a848cd7e 11434 ac_status=$?
ac1cb8d3
VS
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
a848cd7e
SC
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
6ebeb4c7 11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_cv_prog_cc_stdc=$ac_arg
11453break
11454else
11455 echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458fi
ac1cb8d3 11459rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11460done
11461rm -f conftest.$ac_ext conftest.$ac_objext
11462CC=$ac_save_CC
11463
11464fi
11465
11466case "x$ac_cv_prog_cc_stdc" in
11467 x|xno)
11468 echo "$as_me:$LINENO: result: none needed" >&5
11469echo "${ECHO_T}none needed" >&6 ;;
11470 *)
11471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11472echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11473 CC="$CC $ac_cv_prog_cc_stdc" ;;
11474esac
11475
11476# Some people use a C++ compiler to compile C. Since we use `exit',
11477# in C++ we need to declare it. In case someone uses the same compiler
11478# for both compiling C and C++ we need to have the C++ compiler decide
11479# the declaration of exit, since it's the most demanding environment.
11480cat >conftest.$ac_ext <<_ACEOF
11481#ifndef __cplusplus
11482 choke me
11483#endif
11484_ACEOF
11485rm -f conftest.$ac_objext
11486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11487 (eval $ac_compile) 2>conftest.er1
a848cd7e 11488 ac_status=$?
ac1cb8d3
VS
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
a848cd7e
SC
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
6ebeb4c7 11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 for ac_declaration in \
ac1cb8d3 11507 '' \
a848cd7e
SC
11508 'extern "C" void std::exit (int) throw (); using std::exit;' \
11509 'extern "C" void std::exit (int); using std::exit;' \
11510 'extern "C" void exit (int) throw ();' \
11511 'extern "C" void exit (int);' \
11512 'void exit (int);'
11513do
11514 cat >conftest.$ac_ext <<_ACEOF
11515/* confdefs.h. */
11516_ACEOF
11517cat confdefs.h >>conftest.$ac_ext
11518cat >>conftest.$ac_ext <<_ACEOF
11519/* end confdefs.h. */
de59c161 11520$ac_declaration
ac1cb8d3 11521#include <stdlib.h>
a848cd7e
SC
11522int
11523main ()
11524{
11525exit (42);
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 :
11552else
11553 echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556continue
11557fi
ac1cb8d3 11558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565$ac_declaration
11566int
11567main ()
11568{
11569exit (42);
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574rm -f conftest.$ac_objext
11575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11576 (eval $ac_compile) 2>conftest.er1
a848cd7e 11577 ac_status=$?
ac1cb8d3
VS
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
a848cd7e
SC
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
6ebeb4c7 11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 break
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600fi
ac1cb8d3 11601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11602done
11603rm -f conftest*
11604if test -n "$ac_declaration"; then
11605 echo '#ifdef __cplusplus' >>confdefs.h
11606 echo $ac_declaration >>confdefs.h
11607 echo '#endif' >>confdefs.h
11608fi
11609
11610else
11611 echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
11614fi
ac1cb8d3 11615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11616ac_ext=c
11617ac_cpp='$CPP $CPPFLAGS'
11618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621
6dcfc289 11622 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11623echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11624if test "${wx_cv_c_exto+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
11633
11634int
11635main ()
11636{
11637
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest.$ac_ext.o
11643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644 (eval $ac_compile) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; then
11648 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11649 case $ac_file in
11650 conftest.$ac_ext.o)
11651 wx_cv_c_exto="-ext o"
11652 ;;
11653 *)
11654 ;;
11655 esac
11656done
11657else
11658 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11659See \`config.log' for more details." >&5
11660echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11661See \`config.log' for more details." >&2;}
11662 { (exit 1); exit 1; }; }
11663
11664fi
11665
11666rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11667
11668fi
11669echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11670echo "${ECHO_T}$wx_cv_c_exto" >&6
11671if test "x$wx_cv_c_exto" '!=' "x"; then
11672 if test "c" = "c"; then
11673 CFLAGS="$wx_cv_c_exto $CFLAGS"
11674 fi
11675 if test "c" = "cxx"; then
11676 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11677 fi
11678fi
11679
6dcfc289
DE
11680 if test "x$wx_cv_c_exto" '!=' "x"; then
11681 unset ac_cv_prog_cc_g
11682 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11683ac_save_CFLAGS=$CFLAGS
52ada004 11684CFLAGS="-g"
480ccd21
DE
11685echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11686echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11687if test "${ac_cv_prog_cc_g+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696
11697int
11698main ()
11699{
11700
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext
11706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707 (eval $ac_compile) 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
6ebeb4c7 11714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_prog_cc_g=yes
11727else
11728 echo "$as_me: failed program was:" >&5
11729sed 's/^/| /' conftest.$ac_ext >&5
11730
11731ac_cv_prog_cc_g=no
11732fi
11733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11734fi
11735echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11736echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11737if test "$ac_test_CFLAGS" = set; then
11738 CFLAGS=$ac_save_CFLAGS
11739elif test $ac_cv_prog_cc_g = yes; then
11740 if test "$GCC" = yes; then
11741 CFLAGS="-g -O2"
11742 else
11743 CFLAGS="-g"
11744 fi
11745else
11746 if test "$GCC" = yes; then
11747 CFLAGS="-O2"
11748 else
11749 CFLAGS=
11750 fi
11751fi
6dcfc289
DE
11752 fi
11753 ac_ext=c
95986553
DE
11754ac_cpp='$CPP $CPPFLAGS'
11755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758
11759echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11760echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11761if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
11770
11771int
11772main ()
11773{
11774#ifndef __MWERKS__
11775 choke me
11776#endif
11777
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782rm -f conftest.$ac_objext
11783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 (eval $ac_compile) 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
6ebeb4c7 11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 bakefile_compiler_mwerks=yes
11804else
11805 echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808bakefile_compiler_mwerks=no
11809fi
11810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11812
11813fi
11814echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11815echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11816
0e6fa1d9 11817MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11818ac_ext=c
11819ac_cpp='$CPP $CPPFLAGS'
11820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823
11824
6dcfc289 11825 ac_ext=c
9273ffba
DE
11826ac_cpp='$CPP $CPPFLAGS'
11827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829ac_compiler_gnu=$ac_cv_c_compiler_gnu
11830
11831echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11832echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11833if test "${wx_cv_c_compiler_xlc+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842
11843int
11844main ()
11845{
11846#ifndef __xlC__
11847 choke me
11848#endif
11849
11850 ;
11851 return 0;
11852}
11853_ACEOF
11854rm -f conftest.$ac_objext
11855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11856 (eval $ac_compile) 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
6ebeb4c7 11863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest.$ac_objext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 wx_compiler_xlc=yes
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880wx_compiler_xlc=no
11881fi
11882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11883 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11884
11885fi
11886echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11887echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11888
0e6fa1d9 11889XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11890ac_ext=c
11891ac_cpp='$CPP $CPPFLAGS'
11892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895
11896
a848cd7e 11897
6dcfc289 11898
a9e5b1f0
MW
11899 ac_ext=c
11900ac_cpp='$CPP $CPPFLAGS'
11901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903ac_compiler_gnu=$ac_cv_c_compiler_gnu
11904
11905 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11906echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11907if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916
11917int
11918main ()
11919{
11920
11921 #ifndef __SUNPRO_C
11922 choke me
11923 #endif
11924
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext
11930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
6ebeb4c7 11938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest.$ac_objext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 bakefile_cv_c_compiler___SUNPRO_C=yes
11951else
11952 echo "$as_me: failed program was:" >&5
11953sed 's/^/| /' conftest.$ac_ext >&5
11954
11955bakefile_cv_c_compiler___SUNPRO_C=no
11956
11957fi
11958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11959
11960
11961fi
11962echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11963echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11964 ac_ext=c
11965ac_cpp='$CPP $CPPFLAGS'
11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969
11970 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11971 :; SUNCC=yes
11972 else
11973 :;
11974 fi
11975
11976
11977
11978
a848cd7e
SC
11979ac_ext=c
11980ac_cpp='$CPP $CPPFLAGS'
11981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11983ac_compiler_gnu=$ac_cv_c_compiler_gnu
11984echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11985echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11986# On Suns, sometimes $CPP names a directory.
11987if test -n "$CPP" && test -d "$CPP"; then
11988 CPP=
11989fi
11990if test -z "$CPP"; then
11991 if test "${ac_cv_prog_CPP+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 # Double quotes because CPP needs to be expanded
11995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11996 do
11997 ac_preproc_ok=false
11998for ac_c_preproc_warn_flag in '' yes
11999do
12000 # Use a header file that comes with gcc, so configuring glibc
12001 # with a fresh cross-compiler works.
12002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12003 # <limits.h> exists even on freestanding compilers.
12004 # On the NeXT, cc -E runs the code through the compiler's parser,
12005 # not just through cpp. "Syntax error" is here to catch this case.
12006 cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
12012#ifdef __STDC__
12013# include <limits.h>
12014#else
12015# include <assert.h>
12016#endif
ac1cb8d3 12017 Syntax error
a848cd7e
SC
12018_ACEOF
12019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev/null; then
12027 if test -s conftest.err; then
12028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12030 else
12031 ac_cpp_err=
12032 fi
12033else
12034 ac_cpp_err=yes
12035fi
12036if test -z "$ac_cpp_err"; then
12037 :
12038else
12039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 # Broken: fails on valid input.
12043continue
12044fi
12045rm -f conftest.err conftest.$ac_ext
12046
12047 # OK, works on sane cases. Now check whether non-existent headers
12048 # can be detected and how.
12049 cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
12055#include <ac_nonexistent.h>
12056_ACEOF
12057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12068 else
12069 ac_cpp_err=
12070 fi
12071else
12072 ac_cpp_err=yes
12073fi
12074if test -z "$ac_cpp_err"; then
12075 # Broken: success on invalid input.
12076continue
12077else
12078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 # Passes both tests.
12082ac_preproc_ok=:
12083break
12084fi
12085rm -f conftest.err conftest.$ac_ext
12086
12087done
12088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12089rm -f conftest.err conftest.$ac_ext
12090if $ac_preproc_ok; then
12091 break
12092fi
12093
12094 done
12095 ac_cv_prog_CPP=$CPP
12096
12097fi
12098 CPP=$ac_cv_prog_CPP
12099else
12100 ac_cv_prog_CPP=$CPP
12101fi
12102echo "$as_me:$LINENO: result: $CPP" >&5
12103echo "${ECHO_T}$CPP" >&6
12104ac_preproc_ok=false
12105for ac_c_preproc_warn_flag in '' yes
12106do
12107 # Use a header file that comes with gcc, so configuring glibc
12108 # with a fresh cross-compiler works.
12109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110 # <limits.h> exists even on freestanding compilers.
12111 # On the NeXT, cc -E runs the code through the compiler's parser,
12112 # not just through cpp. "Syntax error" is here to catch this case.
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119#ifdef __STDC__
12120# include <limits.h>
12121#else
12122# include <assert.h>
12123#endif
ac1cb8d3 12124 Syntax error
a848cd7e
SC
12125_ACEOF
12126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } >/dev/null; then
12134 if test -s conftest.err; then
12135 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12137 else
12138 ac_cpp_err=
12139 fi
12140else
12141 ac_cpp_err=yes
12142fi
12143if test -z "$ac_cpp_err"; then
12144 :
12145else
12146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 # Broken: fails on valid input.
12150continue
12151fi
12152rm -f conftest.err conftest.$ac_ext
12153
12154 # OK, works on sane cases. Now check whether non-existent headers
12155 # can be detected and how.
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162#include <ac_nonexistent.h>
12163_ACEOF
12164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } >/dev/null; then
12172 if test -s conftest.err; then
12173 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12175 else
12176 ac_cpp_err=
12177 fi
12178else
12179 ac_cpp_err=yes
12180fi
12181if test -z "$ac_cpp_err"; then
12182 # Broken: success on invalid input.
12183continue
12184else
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 # Passes both tests.
12189ac_preproc_ok=:
12190break
12191fi
12192rm -f conftest.err conftest.$ac_ext
12193
12194done
12195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12196rm -f conftest.err conftest.$ac_ext
12197if $ac_preproc_ok; then
12198 :
12199else
12200 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12201See \`config.log' for more details." >&5
12202echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12203See \`config.log' for more details." >&2;}
12204 { (exit 1); exit 1; }; }
12205fi
12206
12207ac_ext=c
12208ac_cpp='$CPP $CPPFLAGS'
12209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212
12213
12214echo "$as_me:$LINENO: checking for egrep" >&5
12215echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12216if test "${ac_cv_prog_egrep+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218else
12219 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12220 then ac_cv_prog_egrep='grep -E'
12221 else ac_cv_prog_egrep='egrep'
12222 fi
12223fi
12224echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12225echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12226 EGREP=$ac_cv_prog_egrep
12227
12228
12229if test $ac_cv_c_compiler_gnu = yes; then
12230 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12231echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12232if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
12243Autoconf TIOCGETP
12244_ACEOF
12245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12246 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12247 ac_cv_prog_gcc_traditional=yes
12248else
12249 ac_cv_prog_gcc_traditional=no
12250fi
12251rm -f conftest*
12252
12253
12254 if test $ac_cv_prog_gcc_traditional = no; then
12255 cat >conftest.$ac_ext <<_ACEOF
12256/* confdefs.h. */
12257_ACEOF
12258cat confdefs.h >>conftest.$ac_ext
12259cat >>conftest.$ac_ext <<_ACEOF
12260/* end confdefs.h. */
12261#include <termio.h>
12262Autoconf TCGETA
12263_ACEOF
12264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12266 ac_cv_prog_gcc_traditional=yes
12267fi
12268rm -f conftest*
12269
12270 fi
12271fi
12272echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12273echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12274 if test $ac_cv_prog_gcc_traditional = yes; then
12275 CC="$CC -traditional"
12276 fi
12277fi
12278
12279
12280
12281
12282ac_ext=cc
12283ac_cpp='$CXXCPP $CPPFLAGS'
12284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12287
12288
12289CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12290
12291
12292 ac_ext=cc
a848cd7e
SC
12293ac_cpp='$CXXCPP $CPPFLAGS'
12294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12297if test -n "$ac_tool_prefix"; then
12298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12299 do
12300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12302echo "$as_me:$LINENO: checking for $ac_word" >&5
12303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12304if test "${ac_cv_prog_CXX+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 if test -n "$CXX"; then
12308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321done
12322done
12323
12324fi
12325fi
12326CXX=$ac_cv_prog_CXX
12327if test -n "$CXX"; then
12328 echo "$as_me:$LINENO: result: $CXX" >&5
12329echo "${ECHO_T}$CXX" >&6
12330else
12331 echo "$as_me:$LINENO: result: no" >&5
12332echo "${ECHO_T}no" >&6
12333fi
12334
12335 test -n "$CXX" && break
12336 done
12337fi
12338if test -z "$CXX"; then
12339 ac_ct_CXX=$CXX
12340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12341do
12342 # Extract the first word of "$ac_prog", so it can be a program name with args.
12343set dummy $ac_prog; ac_word=$2
12344echo "$as_me:$LINENO: checking for $ac_word" >&5
12345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12346if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12348else
12349 if test -n "$ac_ct_CXX"; then
12350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359 ac_cv_prog_ac_ct_CXX="$ac_prog"
12360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363done
12364done
12365
12366fi
12367fi
12368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12369if test -n "$ac_ct_CXX"; then
12370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12371echo "${ECHO_T}$ac_ct_CXX" >&6
12372else
12373 echo "$as_me:$LINENO: result: no" >&5
12374echo "${ECHO_T}no" >&6
12375fi
12376
12377 test -n "$ac_ct_CXX" && break
12378done
12379test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12380
12381 CXX=$ac_ct_CXX
12382fi
12383
12384
12385# Provide some information about the compiler.
12386echo "$as_me:$LINENO:" \
12387 "checking for C++ compiler version" >&5
12388ac_compiler=`set X $ac_compile; echo $2`
12389{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12390 (eval $ac_compiler --version </dev/null >&5) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }
12394{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12395 (eval $ac_compiler -v </dev/null >&5) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }
12399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12400 (eval $ac_compiler -V </dev/null >&5) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }
12404
12405echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12406echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409else
12410 cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h. */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h. */
12416
12417int
12418main ()
12419{
12420#ifndef __GNUC__
12421 choke me
12422#endif
12423
12424 ;
12425 return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext
12429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12430 (eval $ac_compile) 2>conftest.er1
a848cd7e 12431 ac_status=$?
ac1cb8d3
VS
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
a848cd7e
SC
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
6ebeb4c7 12437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_compiler_gnu=yes
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_compiler_gnu=no
12455fi
ac1cb8d3 12456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12457ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12458
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12461echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12462GXX=`test $ac_compiler_gnu = yes && echo yes`
12463ac_test_CXXFLAGS=${CXXFLAGS+set}
12464ac_save_CXXFLAGS=$CXXFLAGS
12465CXXFLAGS="-g"
12466echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12467echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12468if test "${ac_cv_prog_cxx_g+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477
12478int
12479main ()
12480{
12481
12482 ;
12483 return 0;
12484}
12485_ACEOF
12486rm -f conftest.$ac_objext
12487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12488 (eval $ac_compile) 2>conftest.er1
a848cd7e 12489 ac_status=$?
ac1cb8d3
VS
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
a848cd7e
SC
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
6ebeb4c7 12495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_prog_cxx_g=yes
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512ac_cv_prog_cxx_g=no
12513fi
ac1cb8d3 12514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12515fi
12516echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12517echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12518if test "$ac_test_CXXFLAGS" = set; then
12519 CXXFLAGS=$ac_save_CXXFLAGS
12520elif test $ac_cv_prog_cxx_g = yes; then
12521 if test "$GXX" = yes; then
52ada004 12522 CXXFLAGS="-g -O2"
a848cd7e 12523 else
52ada004 12524 CXXFLAGS="-g"
a848cd7e
SC
12525 fi
12526else
12527 if test "$GXX" = yes; then
12528 CXXFLAGS="-O2"
12529 else
12530 CXXFLAGS=
12531 fi
12532fi
12533for ac_declaration in \
ac1cb8d3 12534 '' \
a848cd7e
SC
12535 'extern "C" void std::exit (int) throw (); using std::exit;' \
12536 'extern "C" void std::exit (int); using std::exit;' \
12537 'extern "C" void exit (int) throw ();' \
12538 'extern "C" void exit (int);' \
12539 'void exit (int);'
12540do
12541 cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
de59c161 12547$ac_declaration
ac1cb8d3 12548#include <stdlib.h>
a848cd7e
SC
12549int
12550main ()
12551{
12552exit (42);
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12559 (eval $ac_compile) 2>conftest.er1
a848cd7e 12560 ac_status=$?
ac1cb8d3
VS
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
a848cd7e
SC
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
6ebeb4c7 12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 :
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583continue
12584fi
ac1cb8d3 12585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592$ac_declaration
12593int
12594main ()
12595{
12596exit (42);
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12603 (eval $ac_compile) 2>conftest.er1
a848cd7e 12604 ac_status=$?
ac1cb8d3
VS
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
a848cd7e
SC
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
6ebeb4c7 12610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 break
12623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627fi
ac1cb8d3 12628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12629done
12630rm -f conftest*
12631if test -n "$ac_declaration"; then
12632 echo '#ifdef __cplusplus' >>confdefs.h
12633 echo $ac_declaration >>confdefs.h
12634 echo '#endif' >>confdefs.h
12635fi
12636
12637ac_ext=cc
12638ac_cpp='$CXXCPP $CPPFLAGS'
12639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12642
6dcfc289 12643 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12644echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12645if test "${wx_cv_cxx_exto+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654
12655int
12656main ()
12657{
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext conftest.$ac_ext.o
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; then
12669 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12670 case $ac_file in
12671 conftest.$ac_ext.o)
12672 wx_cv_cxx_exto="-ext o"
12673 ;;
12674 *)
12675 ;;
12676 esac
12677done
12678else
12679 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12680See \`config.log' for more details." >&5
12681echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12682See \`config.log' for more details." >&2;}
12683 { (exit 1); exit 1; }; }
12684
12685fi
12686
12687rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12688
12689fi
12690echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12691echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12692if test "x$wx_cv_cxx_exto" '!=' "x"; then
12693 if test "cxx" = "c"; then
12694 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12695 fi
12696 if test "cxx" = "cxx"; then
12697 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12698 fi
12699fi
12700
6dcfc289
DE
12701 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12702 unset ac_cv_prog_cxx_g
12703 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12704ac_save_CXXFLAGS=$CXXFLAGS
12705CXXFLAGS="-g"
12706echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12707echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12708if test "${ac_cv_prog_cxx_g+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717
12718int
12719main ()
12720{
12721
12722 ;
12723 return 0;
12724}
12725_ACEOF
12726rm -f conftest.$ac_objext
12727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12728 (eval $ac_compile) 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
6ebeb4c7 12735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; } &&
12741 { ac_try='test -s conftest.$ac_objext'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12747 ac_cv_prog_cxx_g=yes
12748else
12749 echo "$as_me: failed program was:" >&5
12750sed 's/^/| /' conftest.$ac_ext >&5
12751
12752ac_cv_prog_cxx_g=no
12753fi
12754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755fi
12756echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12757echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12758if test "$ac_test_CXXFLAGS" = set; then
12759 CXXFLAGS=$ac_save_CXXFLAGS
12760elif test $ac_cv_prog_cxx_g = yes; then
12761 if test "$GXX" = yes; then
52ada004 12762 CXXFLAGS="-g -O2"
480ccd21 12763 else
52ada004 12764 CXXFLAGS="-g"
480ccd21
DE
12765 fi
12766else
12767 if test "$GXX" = yes; then
12768 CXXFLAGS="-O2"
12769 else
12770 CXXFLAGS=
12771 fi
12772fi
6dcfc289
DE
12773 fi
12774 ac_ext=cc
95986553
DE
12775ac_cpp='$CXXCPP $CPPFLAGS'
12776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12779
12780echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12781echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12782if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
12785 cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791
12792int
12793main ()
12794{
12795#ifndef __MWERKS__
12796 choke me
12797#endif
12798
12799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
6ebeb4c7 12812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 bakefile_compiler_mwerks=yes
12825else
12826 echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829bakefile_compiler_mwerks=no
12830fi
12831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12832 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12833
12834fi
12835echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12836echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12837
0e6fa1d9 12838MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12839ac_ext=cc
12840ac_cpp='$CXXCPP $CPPFLAGS'
12841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12844
12845
6dcfc289 12846 ac_ext=cc
9273ffba
DE
12847ac_cpp='$CXXCPP $CPPFLAGS'
12848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12851
12852echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12853echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12854if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857 cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863
12864int
12865main ()
12866{
12867#ifndef __xlC__
12868 choke me
12869#endif
12870
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
12876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
6ebeb4c7 12884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 wx_compiler_xlc=yes
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901wx_compiler_xlc=no
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12905
12906fi
12907echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12908echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12909
0e6fa1d9 12910XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12911ac_ext=cc
12912ac_cpp='$CXXCPP $CPPFLAGS'
12913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12916
12917
95986553 12918
6dcfc289 12919
a9e5b1f0
MW
12920 ac_ext=cc
12921ac_cpp='$CXXCPP $CPPFLAGS'
12922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12925
12926 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12927echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12928if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930else
12931 cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937
12938int
12939main ()
12940{
12941
12942 #ifndef __SUNPRO_CC
12943 choke me
12944 #endif
12945
12946 ;
12947 return 0;
12948}
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
6ebeb4c7 12959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12972else
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976bakefile_cv_cxx_compiler___SUNPRO_CC=no
12977
12978fi
12979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980
12981
12982fi
12983echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
12984echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
12985 ac_ext=cc
12986ac_cpp='$CXXCPP $CPPFLAGS'
12987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12990
12991 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
12992 :; SUNCXX=yes
12993 else
12994 :;
12995 fi
12996
12997
12998
12999
a848cd7e
SC
13000ac_ext=c
13001ac_cpp='$CPP $CPPFLAGS'
13002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004ac_compiler_gnu=$ac_cv_c_compiler_gnu
13005
13006
a848cd7e
SC
13007if test -n "$ac_tool_prefix"; then
13008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13009set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13010echo "$as_me:$LINENO: checking for $ac_word" >&5
13011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13012if test "${ac_cv_prog_RANLIB+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 if test -n "$RANLIB"; then
13016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029done
13030done
13031
13032fi
13033fi
13034RANLIB=$ac_cv_prog_RANLIB
13035if test -n "$RANLIB"; then
13036 echo "$as_me:$LINENO: result: $RANLIB" >&5
13037echo "${ECHO_T}$RANLIB" >&6
13038else
13039 echo "$as_me:$LINENO: result: no" >&5
13040echo "${ECHO_T}no" >&6
13041fi
13042
13043fi
13044if test -z "$ac_cv_prog_RANLIB"; then
13045 ac_ct_RANLIB=$RANLIB
13046 # Extract the first word of "ranlib", so it can be a program name with args.
13047set dummy ranlib; ac_word=$2
13048echo "$as_me:$LINENO: checking for $ac_word" >&5
13049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13050if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 if test -n "$ac_ct_RANLIB"; then
13054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13055else
13056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $PATH
13058do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_prog_ac_ct_RANLIB="ranlib"
13064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067done
13068done
13069
13070 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13071fi
13072fi
13073ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13074if test -n "$ac_ct_RANLIB"; then
13075 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13076echo "${ECHO_T}$ac_ct_RANLIB" >&6
13077else
13078 echo "$as_me:$LINENO: result: no" >&5
13079echo "${ECHO_T}no" >&6
13080fi
13081
13082 RANLIB=$ac_ct_RANLIB
13083else
13084 RANLIB="$ac_cv_prog_RANLIB"
13085fi
13086
13087
13088# Extract the first word of "ar", so it can be a program name with args.
13089set dummy ar; ac_word=$2
13090echo "$as_me:$LINENO: checking for $ac_word" >&5
13091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092if test "${ac_cv_prog_AR+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 if test -n "$AR"; then
13096 ac_cv_prog_AR="$AR" # Let the user override the test.
13097else
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_prog_AR="ar"
13106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109done
13110done
13111
13112fi
13113fi
13114AR=$ac_cv_prog_AR
13115if test -n "$AR"; then
13116 echo "$as_me:$LINENO: result: $AR" >&5
13117echo "${ECHO_T}$AR" >&6
13118else
13119 echo "$as_me:$LINENO: result: no" >&5
13120echo "${ECHO_T}no" >&6
13121fi
13122
13123if test "x$AR" = "x" ; then
77ffb593
JS
13124 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13125echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13126 { (exit 1); exit 1; }; }
13127fi
13128
13129# Find a good install program. We prefer a C program (faster),
13130# so one script is as good as another. But avoid the broken or
13131# incompatible versions:
13132# SysV /etc/install, /usr/sbin/install
13133# SunOS /usr/etc/install
13134# IRIX /sbin/install
13135# AIX /bin/install
13136# AmigaOS /C/install, which installs bootblocks on floppy discs
13137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13140# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13141# ./install, which can be erroneously created by make from ./install.sh.
13142echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13143echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13144if test -z "$INSTALL"; then
13145if test "${ac_cv_path_install+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151 IFS=$as_save_IFS
13152 test -z "$as_dir" && as_dir=.
13153 # Account for people who put trailing slashes in PATH elements.
13154case $as_dir/ in
13155 ./ | .// | /cC/* | \
13156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13158 /usr/ucb/* ) ;;
13159 *)
13160 # OSF1 and SCO ODT 3.0 have their own names for install.
13161 # Don't use installbsd from OSF since it installs stuff as root
13162 # by default.
13163 for ac_prog in ginstall scoinst install; do
13164 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13165 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13166 if test $ac_prog = install &&
13167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13168 # AIX install. It has an incompatible calling convention.
13169 :
13170 elif test $ac_prog = install &&
13171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13172 # program-specific install script used by HP pwplus--don't use.
13173 :
13174 else
13175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13176 break 3
13177 fi
13178 fi
a848cd7e
SC
13179 done
13180 done
13181 ;;
13182esac
13183done
13184
13185
13186fi
13187 if test "${ac_cv_path_install+set}" = set; then
13188 INSTALL=$ac_cv_path_install
13189 else
13190 # As a last resort, use the slow shell script. We don't cache a
13191 # path for INSTALL within a source directory, because that will
13192 # break other packages using the cache if that directory is
13193 # removed, or if the path is relative.
13194 INSTALL=$ac_install_sh
13195 fi
13196fi
13197echo "$as_me:$LINENO: result: $INSTALL" >&5
13198echo "${ECHO_T}$INSTALL" >&6
13199
13200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13201# It thinks the first close brace ends the variable substitution.
13202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13203
13204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13205
13206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13207
13208
13209case ${INSTALL} in
13210 /* ) # Absolute
13211 ;;
13212 ?:* ) # Drive letter, considered as absolute.
13213 ;;
13214 *)
13215 INSTALL=`pwd`/${INSTALL} ;;
13216esac
13217
a848cd7e
SC
13218
13219case "${host}" in
13220
13221 powerpc-*-darwin* )
13222 INSTALL_PROGRAM="cp -fp"
13223 INSTALL_DATA="cp -fp"
13224 ;;
13225 *)
13226 ;;
13227esac
13228
13229# Extract the first word of "strip", so it can be a program name with args.
13230set dummy strip; ac_word=$2
13231echo "$as_me:$LINENO: checking for $ac_word" >&5
13232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13233if test "${ac_cv_prog_STRIP+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236 if test -n "$STRIP"; then
13237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13238else
13239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240for as_dir in $PATH
13241do
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246 ac_cv_prog_STRIP="strip"
13247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13249 fi
13250done
13251done
13252
13253 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13254fi
13255fi
13256STRIP=$ac_cv_prog_STRIP
13257if test -n "$STRIP"; then
13258 echo "$as_me:$LINENO: result: $STRIP" >&5
13259echo "${ECHO_T}$STRIP" >&6
13260else
13261 echo "$as_me:$LINENO: result: no" >&5
13262echo "${ECHO_T}no" >&6
13263fi
13264
13265
13266echo "$as_me:$LINENO: checking if make is GNU make" >&5
13267echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13268if test "${wx_cv_prog_makeisgnu+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271
13272 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13273 egrep -s GNU > /dev/null); then
13274 wx_cv_prog_makeisgnu="yes"
13275 else
13276 wx_cv_prog_makeisgnu="no"
13277 fi
13278
13279fi
13280echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13281echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13282
13283if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13284 IF_GNU_MAKE=""
13285else
13286 IF_GNU_MAKE="#"
13287fi
13288
13289
13290
13291if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13292echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13293echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13294if test "${wx_cv_prog_makevpath+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297
13298cat - << EOF > confMake
13299check : file
13300 cp \$? \$@
13301 cp \$? final_file
13302EOF
13303
13304if test ! -d sub ; then
13305 mkdir sub
13306fi
13307echo dummy > sub/file
13308${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13309RESULT=$?
13310rm -f sub/file check final_file confMake
13311rmdir sub
13312if test "$RESULT" = 0; then
13313 wx_cv_prog_makevpath="yes"
13314else
13315 wx_cv_prog_makevpath="no"
13316fi
13317
13318fi
13319echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13320echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13321
13322if test "x$wx_cv_prog_makevpath" != "xyes"; then
13323{ { echo "$as_me:$LINENO: error:
13324You need a make-utility that is able to use the variable
13325VPATH correctly.
13326If your version of make does not support VPATH correctly,
13327please install GNU-make (possibly as gmake), and start
13328configure with the following command:
13329export MAKE=gmake; ./configure for sh-type shells
13330setenv MAKE gmake; ./configure for csh-type shells
13331Also please do remember to use gmake in this case every time
13332you are trying to compile.
13333" >&5
13334echo "$as_me: error:
13335You need a make-utility that is able to use the variable
13336VPATH correctly.
13337If your version of make does not support VPATH correctly,
13338please install GNU-make (possibly as gmake), and start
13339configure with the following command:
13340export MAKE=gmake; ./configure for sh-type shells
13341setenv MAKE gmake; ./configure for csh-type shells
13342Also please do remember to use gmake in this case every time
13343you are trying to compile.
13344" >&2;}
13345 { (exit 1); exit 1; }; }
13346fi fi
13347echo "$as_me:$LINENO: checking whether ln -s works" >&5
13348echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13349LN_S=$as_ln_s
13350if test "$LN_S" = "ln -s"; then
13351 echo "$as_me:$LINENO: result: yes" >&5
13352echo "${ECHO_T}yes" >&6
13353else
13354 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13355echo "${ECHO_T}no, using $LN_S" >&6
13356fi
13357
13358
13359
2113bc77 13360if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13361 CXXFLAGS="$CXXFLAGS -qunique"
13362fi
13363
13364
4d7ec9f1
DE
13365case "${host}" in
13366 powerpc-*-darwin* )
13367 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13368echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
13375
13376int
13377main ()
13378{
13379#ifndef __POWERPC__
13380 choke me for lack of PowerPC
13381#endif
13382
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext
13388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
6ebeb4c7 13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 echo "$as_me:$LINENO: result: yes" >&5
13409echo "${ECHO_T}yes" >&6
13410else
13411 echo "$as_me: failed program was:" >&5
13412sed 's/^/| /' conftest.$ac_ext >&5
13413
13414echo "$as_me:$LINENO: result: no" >&5
13415echo "${ECHO_T}no" >&6
13416 cat >>confdefs.h <<\_ACEOF
13417#define __POWERPC__ 1
13418_ACEOF
13419
13420
13421fi
13422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13423 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13424echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13426/* confdefs.h. */
13427_ACEOF
13428cat confdefs.h >>conftest.$ac_ext
13429cat >>conftest.$ac_ext <<_ACEOF
13430/* end confdefs.h. */
13431#include <CoreFoundation/CFBase.h>
13432
13433int
13434main ()
13435{
13436
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext
13442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
6ebeb4c7 13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 echo "$as_me:$LINENO: result: yes" >&5
13463echo "${ECHO_T}yes" >&6
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468echo "$as_me:$LINENO: result: no" >&5
13469echo "${ECHO_T}no" >&6
13470 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13471echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478#define __CF_USE_FRAMEWORK_INCLUDES__
13479#include <CoreFoundation/CFBase.h>
13480
13481int
13482main ()
13483{
13484
13485 ;
13486 return 0;
13487}
13488_ACEOF
13489rm -f conftest.$ac_objext
13490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
6ebeb4c7 13498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 echo "$as_me:$LINENO: result: yes" >&5
13511echo "${ECHO_T}yes" >&6
13512 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
13517{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13518See \`config.log' for more details." >&5
13519echo "$as_me: error: no. CoreFoundation not available.
13520See \`config.log' for more details." >&2;}
13521 { (exit 1); exit 1; }; }
13522
13523fi
13524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525
13526
13527fi
13528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13529 ;;
13530esac
13531
a848cd7e
SC
13532case "${host}" in
13533 *-pc-os2_emx | *-pc-os2-emx )
13534 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13535 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13536echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13537if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 ac_check_lib_save_LIBS=$LIBS
13541LIBS="-lcExt $LIBS"
13542cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h. */
13548
13549/* Override any gcc2 internal prototype to avoid an error. */
13550#ifdef __cplusplus
13551extern "C"
13552#endif
13553/* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13555char drand48 ();
13556int
13557main ()
13558{
13559drand48 ();
13560 ;
13561 return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext conftest$ac_exeext
13565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13566 (eval $ac_link) 2>conftest.er1
a848cd7e 13567 ac_status=$?
ac1cb8d3
VS
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
a848cd7e
SC
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
6ebeb4c7 13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_lib_cExt_drand48=yes
13586else
13587 echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
13590ac_cv_lib_cExt_drand48=no
13591fi
ac1cb8d3
VS
13592rm -f conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13594LIBS=$ac_check_lib_save_LIBS
13595fi
13596echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13597echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13598if test $ac_cv_lib_cExt_drand48 = yes; then
13599 LIBS="$LIBS -lcExt"
13600fi
13601
13602 else
13603 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13604 fi
69120ee4
VZ
13605 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13606echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13607if test "${wx_cv_gccversion+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609else
13610
391a765e
VS
13611 if test "$cross_compiling" = yes; then
13612 wx_cv_gccversion="EMX2"
13613
13614else
13615 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621
391a765e 13622 #include <stdio.h>
a848cd7e 13623
391a765e
VS
13624 int main()
13625 {
13626 FILE *f=fopen("conftestval", "w");
13627 if (!f) exit(1);
13628 fprintf(f,
a848cd7e 13629 #if (__GNUC__ < 3)
391a765e
VS
13630 "EMX2"
13631 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13632 "EMX3"
13633 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13634 "Innotek5"
13635 #else
13636 "Innotek6"
a848cd7e 13637 #endif
391a765e
VS
13638 );
13639 exit(0);
13640 }
a848cd7e 13641
a848cd7e 13642_ACEOF
391a765e
VS
13643rm -f conftest$ac_exeext
13644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645 (eval $ac_link) 2>&5
ac1cb8d3
VS
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
391a765e 13654 wx_cv_gccversion=`cat conftestval`
a848cd7e 13655else
391a765e
VS
13656 echo "$as_me: program exited with status $ac_status" >&5
13657echo "$as_me: failed program was:" >&5
a848cd7e
SC
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
391a765e
VS
13660( exit $ac_status )
13661wx_cv_gccversion="EMX2"
a848cd7e 13662fi
391a765e 13663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13664fi
a848cd7e
SC
13665
13666fi
13667echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13668echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13669 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13670 LIBS="$LIBS -lstdcpp"
13671 LDFLAGS="$LDFLAGS -Zsysv-signals"
13672 else
391a765e 13673 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13674 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13675 LDFLAGS="$LDFLAGS -Zsysv-signals"
13676 else
13677 LIBS="$LIBS -lstdc++"
13678 fi
13679 fi
94acd38e
DE
13680 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13681 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13682echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13683 wxUSE_OMF=yes
2da0c077 13684 enable_omf=yes
a848cd7e
SC
13685 fi
13686 ;;
13687 *)
13688
13689
13690
13691 ac_ext=cc
13692ac_cpp='$CXXCPP $CPPFLAGS'
13693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13696
13697
95986553 13698 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13699echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13700if test "${ac_cv_string_strcasecmp+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13702else
13703
13704 cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710
13711 #include <string.h>
13712
13713int
13714main ()
13715{
13716
13717 strcasecmp("foo", "bar");
13718
13719 ;
13720 return 0;
13721}
13722_ACEOF
13723rm -f conftest.$ac_objext conftest$ac_exeext
13724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13725 (eval $ac_link) 2>conftest.er1
a848cd7e 13726 ac_status=$?
ac1cb8d3
VS
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
a848cd7e
SC
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
6ebeb4c7 13732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_string_strcasecmp=yes
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749ac_cv_string_strcasecmp=no
13750
13751fi
ac1cb8d3
VS
13752rm -f conftest.err conftest.$ac_objext \
13753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13754
13755fi
13756echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13757echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13758
13759 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13760 cat >>confdefs.h <<\_ACEOF
13761#define HAVE_STRCASECMP_IN_STRING_H 1
13762_ACEOF
13763
13764 else
13765 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13766echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13767if test "${ac_cv_strings_strcasecmp+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770
13771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777
13778 #include <strings.h>
13779
13780int
13781main ()
13782{
13783
13784 strcasecmp("foo", "bar");
13785
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext conftest$ac_exeext
13791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13792 (eval $ac_link) 2>conftest.er1
a848cd7e 13793 ac_status=$?
ac1cb8d3
VS
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
a848cd7e
SC
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
6ebeb4c7 13799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_strings_strcasecmp=yes
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816ac_cv_strings_strcasecmp=no
13817
13818fi
ac1cb8d3
VS
13819rm -f conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13821
13822fi
13823echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13824echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13825
0c3c69fc 13826 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13827 cat >>confdefs.h <<\_ACEOF
13828#define HAVE_STRCASECMP_IN_STRINGS_H 1
13829_ACEOF
13830
13831 else
13832 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13833echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13834 { (exit 1); exit 1; }; }
13835 fi
13836 fi
13837
13838 ac_ext=c
13839ac_cpp='$CPP $CPPFLAGS'
13840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842ac_compiler_gnu=$ac_cv_c_compiler_gnu
13843
13844 ;;
13845esac
13846
13847
13848echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13850if test "${ac_cv_header_stdc+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853 cat >conftest.$ac_ext <<_ACEOF
13854/* confdefs.h. */
13855_ACEOF
13856cat confdefs.h >>conftest.$ac_ext
13857cat >>conftest.$ac_ext <<_ACEOF
13858/* end confdefs.h. */
13859#include <stdlib.h>
13860#include <stdarg.h>
13861#include <string.h>
13862#include <float.h>
13863
13864int
13865main ()
13866{
13867
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13874 (eval $ac_compile) 2>conftest.er1
a848cd7e 13875 ac_status=$?
ac1cb8d3
VS
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
a848cd7e
SC
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
6ebeb4c7 13881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_header_stdc=yes
13894else
13895 echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
13898ac_cv_header_stdc=no
13899fi
ac1cb8d3 13900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13901
13902if test $ac_cv_header_stdc = yes; then
13903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13904 cat >conftest.$ac_ext <<_ACEOF
13905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
13910#include <string.h>
13911
13912_ACEOF
13913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13914 $EGREP "memchr" >/dev/null 2>&1; then
13915 :
13916else
13917 ac_cv_header_stdc=no
13918fi
13919rm -f conftest*
13920
13921fi
13922
13923if test $ac_cv_header_stdc = yes; then
13924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13925 cat >conftest.$ac_ext <<_ACEOF
13926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931#include <stdlib.h>
13932
13933_ACEOF
13934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13935 $EGREP "free" >/dev/null 2>&1; then
13936 :
13937else
13938 ac_cv_header_stdc=no
13939fi
13940rm -f conftest*
13941
13942fi
13943
13944if test $ac_cv_header_stdc = yes; then
13945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13946 if test "$cross_compiling" = yes; then
13947 :
13948else
13949 cat >conftest.$ac_ext <<_ACEOF
13950/* confdefs.h. */
13951_ACEOF
13952cat confdefs.h >>conftest.$ac_ext
13953cat >>conftest.$ac_ext <<_ACEOF
13954/* end confdefs.h. */
13955#include <ctype.h>
13956#if ((' ' & 0x0FF) == 0x020)
13957# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13958# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13959#else
13960# define ISLOWER(c) \
ac1cb8d3
VS
13961 (('a' <= (c) && (c) <= 'i') \
13962 || ('j' <= (c) && (c) <= 'r') \
13963 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13964# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13965#endif
13966
13967#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13968int
13969main ()
13970{
13971 int i;
13972 for (i = 0; i < 256; i++)
13973 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13974 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13975 exit(2);
13976 exit (0);
13977}
13978_ACEOF
13979rm -f conftest$ac_exeext
13980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 :
13991else
13992 echo "$as_me: program exited with status $ac_status" >&5
13993echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996( exit $ac_status )
13997ac_cv_header_stdc=no
13998fi
ac1cb8d3 13999rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14000fi
14001fi
14002fi
14003echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14004echo "${ECHO_T}$ac_cv_header_stdc" >&6
14005if test $ac_cv_header_stdc = yes; then
14006
14007cat >>confdefs.h <<\_ACEOF
14008#define STDC_HEADERS 1
14009_ACEOF
14010
14011fi
14012
14013# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14024 inttypes.h stdint.h unistd.h
a848cd7e
SC
14025do
14026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14027echo "$as_me:$LINENO: checking for $ac_header" >&5
14028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14029if eval "test \"\${$as_ac_Header+set}\" = set"; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031else
14032 cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h. */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
14037/* end confdefs.h. */
14038$ac_includes_default
14039
14040#include <$ac_header>
14041_ACEOF
14042rm -f conftest.$ac_objext
14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14044 (eval $ac_compile) 2>conftest.er1
a848cd7e 14045 ac_status=$?
ac1cb8d3
VS
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
a848cd7e
SC
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
6ebeb4c7 14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 eval "$as_ac_Header=yes"
14064else
14065 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5
14067
14068eval "$as_ac_Header=no"
14069fi
ac1cb8d3 14070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14071fi
14072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074if test `eval echo '${'$as_ac_Header'}'` = yes; then
14075 cat >>confdefs.h <<_ACEOF
14076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14077_ACEOF
14078
14079fi
14080
14081done
14082
14083
14084
14085for ac_header in stdlib.h
14086do
14087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088if eval "test \"\${$as_ac_Header+set}\" = set"; then
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14093fi
14094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14096else
14097 # Is the header compilable?
14098echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14100cat >conftest.$ac_ext <<_ACEOF
14101/* confdefs.h. */
14102_ACEOF
14103cat confdefs.h >>conftest.$ac_ext
14104cat >>conftest.$ac_ext <<_ACEOF
14105/* end confdefs.h. */
14106$ac_includes_default
14107#include <$ac_header>
14108_ACEOF
14109rm -f conftest.$ac_objext
14110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14111 (eval $ac_compile) 2>conftest.er1
a848cd7e 14112 ac_status=$?
ac1cb8d3
VS
14113 grep -v '^ *+' conftest.er1 >conftest.err
14114 rm -f conftest.er1
14115 cat conftest.err >&5
a848cd7e
SC
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
6ebeb4c7 14118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_header_compiler=yes
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_header_compiler=no
14136fi
ac1cb8d3 14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139echo "${ECHO_T}$ac_header_compiler" >&6
14140
14141# Is the header present?
14142echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150#include <$ac_header>
14151_ACEOF
14152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } >/dev/null; then
14160 if test -s conftest.err; then
14161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14163 else
14164 ac_cpp_err=
14165 fi
14166else
14167 ac_cpp_err=yes
14168fi
14169if test -z "$ac_cpp_err"; then
14170 ac_header_preproc=yes
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_header_preproc=no
14176fi
14177rm -f conftest.err conftest.$ac_ext
14178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14179echo "${ECHO_T}$ac_header_preproc" >&6
14180
14181# So? What about this header?
ac1cb8d3
VS
14182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14183 yes:no: )
a848cd7e
SC
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14188 ac_header_preproc=yes
a848cd7e 14189 ;;
ac1cb8d3 14190 no:yes:* )
a848cd7e
SC
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14203 (
14204 cat <<\_ASBOX
ac1cb8d3
VS
14205## ----------------------------------------- ##
14206## Report this to wx-dev@lists.wxwidgets.org ##
14207## ----------------------------------------- ##
a848cd7e
SC
14208_ASBOX
14209 ) |
14210 sed "s/^/$as_me: WARNING: /" >&2
14211 ;;
14212esac
14213echo "$as_me:$LINENO: checking for $ac_header" >&5
14214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
ac1cb8d3 14218 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14219fi
14220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14222
14223fi
14224if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227_ACEOF
14228
14229fi
14230
14231done
14232
14233
14234for ac_header in malloc.h
14235do
14236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14237if eval "test \"\${$as_ac_Header+set}\" = set"; then
14238 echo "$as_me:$LINENO: checking for $ac_header" >&5
14239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14240if eval "test \"\${$as_ac_Header+set}\" = set"; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242fi
14243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14245else
14246 # Is the header compilable?
14247echo "$as_me:$LINENO: checking $ac_header usability" >&5
14248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14249cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255$ac_includes_default
14256#include <$ac_header>
14257_ACEOF
14258rm -f conftest.$ac_objext
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14260 (eval $ac_compile) 2>conftest.er1
a848cd7e 14261 ac_status=$?
ac1cb8d3
VS
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
a848cd7e
SC
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
6ebeb4c7 14267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_header_compiler=yes
14280else
14281 echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
14284ac_header_compiler=no
14285fi
ac1cb8d3 14286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14288echo "${ECHO_T}$ac_header_compiler" >&6
14289
14290# Is the header present?
14291echo "$as_me:$LINENO: checking $ac_header presence" >&5
14292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14293cat >conftest.$ac_ext <<_ACEOF
14294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
14299#include <$ac_header>
14300_ACEOF
14301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } >/dev/null; then
14309 if test -s conftest.err; then
14310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14312 else
14313 ac_cpp_err=
14314 fi
14315else
14316 ac_cpp_err=yes
14317fi
14318if test -z "$ac_cpp_err"; then
14319 ac_header_preproc=yes
14320else
14321 echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_header_preproc=no
14325fi
14326rm -f conftest.err conftest.$ac_ext
14327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14328echo "${ECHO_T}$ac_header_preproc" >&6
14329
14330# So? What about this header?
ac1cb8d3
VS
14331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14332 yes:no: )
a848cd7e
SC
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14337 ac_header_preproc=yes
a848cd7e 14338 ;;
ac1cb8d3 14339 no:yes:* )
a848cd7e
SC
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14352 (
14353 cat <<\_ASBOX
ac1cb8d3
VS
14354## ----------------------------------------- ##
14355## Report this to wx-dev@lists.wxwidgets.org ##
14356## ----------------------------------------- ##
a848cd7e
SC
14357_ASBOX
14358 ) |
14359 sed "s/^/$as_me: WARNING: /" >&2
14360 ;;
14361esac
14362echo "$as_me:$LINENO: checking for $ac_header" >&5
14363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366else
ac1cb8d3 14367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14368fi
14369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14371
14372fi
14373if test `eval echo '${'$as_ac_Header'}'` = yes; then
14374 cat >>confdefs.h <<_ACEOF
14375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14376_ACEOF
14377
14378fi
14379
14380done
14381
14382
14383for ac_header in unistd.h
14384do
14385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14386if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387 echo "$as_me:$LINENO: checking for $ac_header" >&5
14388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14389if eval "test \"\${$as_ac_Header+set}\" = set"; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391fi
14392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14394else
14395 # Is the header compilable?
14396echo "$as_me:$LINENO: checking $ac_header usability" >&5
14397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14398cat >conftest.$ac_ext <<_ACEOF
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404$ac_includes_default
14405#include <$ac_header>
14406_ACEOF
14407rm -f conftest.$ac_objext
14408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14409 (eval $ac_compile) 2>conftest.er1
a848cd7e 14410 ac_status=$?
ac1cb8d3
VS
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
a848cd7e
SC
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
6ebeb4c7 14416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_header_compiler=yes
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433ac_header_compiler=no
14434fi
ac1cb8d3 14435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14437echo "${ECHO_T}$ac_header_compiler" >&6
14438
14439# Is the header present?
14440echo "$as_me:$LINENO: checking $ac_header presence" >&5
14441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14442cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448#include <$ac_header>
14449_ACEOF
14450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14461 else
14462 ac_cpp_err=
14463 fi
14464else
14465 ac_cpp_err=yes
14466fi
14467if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_header_preproc=no
14474fi
14475rm -f conftest.err conftest.$ac_ext
14476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14477echo "${ECHO_T}$ac_header_preproc" >&6
14478
14479# So? What about this header?
ac1cb8d3
VS
14480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481 yes:no: )
a848cd7e
SC
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14486 ac_header_preproc=yes
a848cd7e 14487 ;;
ac1cb8d3 14488 no:yes:* )
a848cd7e
SC
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14501 (
14502 cat <<\_ASBOX
ac1cb8d3
VS
14503## ----------------------------------------- ##
14504## Report this to wx-dev@lists.wxwidgets.org ##
14505## ----------------------------------------- ##
a848cd7e
SC
14506_ASBOX
14507 ) |
14508 sed "s/^/$as_me: WARNING: /" >&2
14509 ;;
14510esac
14511echo "$as_me:$LINENO: checking for $ac_header" >&5
14512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14513if eval "test \"\${$as_ac_Header+set}\" = set"; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
ac1cb8d3 14516 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14517fi
14518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14520
14521fi
14522if test `eval echo '${'$as_ac_Header'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14525_ACEOF
14526
14527fi
14528
14529done
14530
14531
14532for ac_header in wchar.h
14533do
14534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14535if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536 echo "$as_me:$LINENO: checking for $ac_header" >&5
14537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14538if eval "test \"\${$as_ac_Header+set}\" = set"; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540fi
14541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14543else
14544 # Is the header compilable?
14545echo "$as_me:$LINENO: checking $ac_header usability" >&5
14546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14547cat >conftest.$ac_ext <<_ACEOF
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553$ac_includes_default
14554#include <$ac_header>
14555_ACEOF
14556rm -f conftest.$ac_objext
14557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14558 (eval $ac_compile) 2>conftest.er1
a848cd7e 14559 ac_status=$?
ac1cb8d3
VS
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
a848cd7e
SC
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
6ebeb4c7 14565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_header_compiler=yes
14578else
14579 echo "$as_me: failed program was:" >&5
14580sed 's/^/| /' conftest.$ac_ext >&5
14581
14582ac_header_compiler=no
14583fi
ac1cb8d3 14584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14586echo "${ECHO_T}$ac_header_compiler" >&6
14587
14588# Is the header present?
14589echo "$as_me:$LINENO: checking $ac_header presence" >&5
14590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14591cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597#include <$ac_header>
14598_ACEOF
14599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null; then
14607 if test -s conftest.err; then
14608 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14610 else
14611 ac_cpp_err=
14612 fi
14613else
14614 ac_cpp_err=yes
14615fi
14616if test -z "$ac_cpp_err"; then
14617 ac_header_preproc=yes
14618else
14619 echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_header_preproc=no
14623fi
14624rm -f conftest.err conftest.$ac_ext
14625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14626echo "${ECHO_T}$ac_header_preproc" >&6
14627
14628# So? What about this header?
ac1cb8d3
VS
14629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14630 yes:no: )
a848cd7e
SC
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14635 ac_header_preproc=yes
a848cd7e 14636 ;;
ac1cb8d3 14637 no:yes:* )
a848cd7e
SC
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14650 (
14651 cat <<\_ASBOX
ac1cb8d3
VS
14652## ----------------------------------------- ##
14653## Report this to wx-dev@lists.wxwidgets.org ##
14654## ----------------------------------------- ##
a848cd7e
SC
14655_ASBOX
14656 ) |
14657 sed "s/^/$as_me: WARNING: /" >&2
14658 ;;
14659esac
14660echo "$as_me:$LINENO: checking for $ac_header" >&5
14661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14662if eval "test \"\${$as_ac_Header+set}\" = set"; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
ac1cb8d3 14665 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14666fi
14667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14669
14670fi
14671if test `eval echo '${'$as_ac_Header'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14674_ACEOF
14675
14676fi
14677
14678done
14679
14680
14681if test "$ac_cv_header_wchar_h" != "yes"; then
14682
14683for ac_header in wcstr.h
14684do
14685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686if eval "test \"\${$as_ac_Header+set}\" = set"; then
14687 echo "$as_me:$LINENO: checking for $ac_header" >&5
14688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14689if eval "test \"\${$as_ac_Header+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691fi
14692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14694else
14695 # Is the header compilable?
14696echo "$as_me:$LINENO: checking $ac_header usability" >&5
14697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14698cat >conftest.$ac_ext <<_ACEOF
14699/* confdefs.h. */
14700_ACEOF
14701cat confdefs.h >>conftest.$ac_ext
14702cat >>conftest.$ac_ext <<_ACEOF
14703/* end confdefs.h. */
14704$ac_includes_default
14705#include <$ac_header>
14706_ACEOF
14707rm -f conftest.$ac_objext
14708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14709 (eval $ac_compile) 2>conftest.er1
a848cd7e 14710 ac_status=$?
ac1cb8d3
VS
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
a848cd7e
SC
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
6ebeb4c7 14716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_header_compiler=yes
14729else
14730 echo "$as_me: failed program was:" >&5
14731sed 's/^/| /' conftest.$ac_ext >&5
14732
14733ac_header_compiler=no
14734fi
ac1cb8d3 14735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737echo "${ECHO_T}$ac_header_compiler" >&6
14738
14739# Is the header present?
14740echo "$as_me:$LINENO: checking $ac_header presence" >&5
14741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14742cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748#include <$ac_header>
14749_ACEOF
14750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } >/dev/null; then
14758 if test -s conftest.err; then
14759 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14761 else
14762 ac_cpp_err=
14763 fi
14764else
14765 ac_cpp_err=yes
14766fi
14767if test -z "$ac_cpp_err"; then
14768 ac_header_preproc=yes
14769else
14770 echo "$as_me: failed program was:" >&5
14771sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_header_preproc=no
14774fi
14775rm -f conftest.err conftest.$ac_ext
14776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777echo "${ECHO_T}$ac_header_preproc" >&6
14778
14779# So? What about this header?
ac1cb8d3
VS
14780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 yes:no: )
a848cd7e
SC
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14786 ac_header_preproc=yes
a848cd7e 14787 ;;
ac1cb8d3 14788 no:yes:* )
a848cd7e
SC
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14801 (
14802 cat <<\_ASBOX
ac1cb8d3
VS
14803## ----------------------------------------- ##
14804## Report this to wx-dev@lists.wxwidgets.org ##
14805## ----------------------------------------- ##
a848cd7e
SC
14806_ASBOX
14807 ) |
14808 sed "s/^/$as_me: WARNING: /" >&2
14809 ;;
14810esac
14811echo "$as_me:$LINENO: checking for $ac_header" >&5
14812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14813if eval "test \"\${$as_ac_Header+set}\" = set"; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
ac1cb8d3 14816 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14817fi
14818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14820
14821fi
14822if test `eval echo '${'$as_ac_Header'}'` = yes; then
14823 cat >>confdefs.h <<_ACEOF
14824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14825_ACEOF
14826
14827fi
14828
14829done
14830
14831fi
14832
14833
14834for ac_header in fnmatch.h
14835do
14836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14837if eval "test \"\${$as_ac_Header+set}\" = set"; then
14838 echo "$as_me:$LINENO: checking for $ac_header" >&5
14839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14840if eval "test \"\${$as_ac_Header+set}\" = set"; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842fi
14843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14845else
14846 # Is the header compilable?
14847echo "$as_me:$LINENO: checking $ac_header usability" >&5
14848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14849cat >conftest.$ac_ext <<_ACEOF
14850/* confdefs.h. */
14851_ACEOF
14852cat confdefs.h >>conftest.$ac_ext
14853cat >>conftest.$ac_ext <<_ACEOF
14854/* end confdefs.h. */
14855$ac_includes_default
14856#include <$ac_header>
14857_ACEOF
14858rm -f conftest.$ac_objext
14859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14860 (eval $ac_compile) 2>conftest.er1
a848cd7e 14861 ac_status=$?
ac1cb8d3
VS
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
a848cd7e
SC
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
6ebeb4c7 14867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_header_compiler=yes
14880else
14881 echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884ac_header_compiler=no
14885fi
ac1cb8d3 14886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888echo "${ECHO_T}$ac_header_compiler" >&6
14889
14890# Is the header present?
14891echo "$as_me:$LINENO: checking $ac_header presence" >&5
14892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
14899#include <$ac_header>
14900_ACEOF
14901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } >/dev/null; then
14909 if test -s conftest.err; then
14910 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14912 else
14913 ac_cpp_err=
14914 fi
14915else
14916 ac_cpp_err=yes
14917fi
14918if test -z "$ac_cpp_err"; then
14919 ac_header_preproc=yes
14920else
14921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ac_header_preproc=no
14925fi
14926rm -f conftest.err conftest.$ac_ext
14927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14928echo "${ECHO_T}$ac_header_preproc" >&6
14929
14930# So? What about this header?
ac1cb8d3
VS
14931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14932 yes:no: )
a848cd7e
SC
14933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14937 ac_header_preproc=yes
a848cd7e 14938 ;;
ac1cb8d3 14939 no:yes:* )
a848cd7e
SC
14940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14952 (
14953 cat <<\_ASBOX
ac1cb8d3
VS
14954## ----------------------------------------- ##
14955## Report this to wx-dev@lists.wxwidgets.org ##
14956## ----------------------------------------- ##
a848cd7e
SC
14957_ASBOX
14958 ) |
14959 sed "s/^/$as_me: WARNING: /" >&2
14960 ;;
14961esac
14962echo "$as_me:$LINENO: checking for $ac_header" >&5
14963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14964if eval "test \"\${$as_ac_Header+set}\" = set"; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
ac1cb8d3 14967 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14968fi
14969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14971
14972fi
14973if test `eval echo '${'$as_ac_Header'}'` = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14976_ACEOF
14977
14978fi
14979
14980done
14981
14982
a848cd7e
SC
14983
14984for ac_header in langinfo.h
14985do
14986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14987if eval "test \"\${$as_ac_Header+set}\" = set"; then
14988 echo "$as_me:$LINENO: checking for $ac_header" >&5
14989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14990if eval "test \"\${$as_ac_Header+set}\" = set"; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992fi
14993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14995else
14996 # Is the header compilable?
14997echo "$as_me:$LINENO: checking $ac_header usability" >&5
14998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14999cat >conftest.$ac_ext <<_ACEOF
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005$ac_includes_default
15006#include <$ac_header>
15007_ACEOF
15008rm -f conftest.$ac_objext
15009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15010 (eval $ac_compile) 2>conftest.er1
a848cd7e 15011 ac_status=$?
ac1cb8d3
VS
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
a848cd7e
SC
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
6ebeb4c7 15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 ac_header_compiler=yes
15030else
15031 echo "$as_me: failed program was:" >&5
15032sed 's/^/| /' conftest.$ac_ext >&5
15033
15034ac_header_compiler=no
15035fi
ac1cb8d3 15036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15037echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15038echo "${ECHO_T}$ac_header_compiler" >&6
15039
15040# Is the header present?
15041echo "$as_me:$LINENO: checking $ac_header presence" >&5
15042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15043cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h. */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h. */
15049#include <$ac_header>
15050_ACEOF
15051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } >/dev/null; then
15059 if test -s conftest.err; then
15060 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15062 else
15063 ac_cpp_err=
15064 fi
15065else
15066 ac_cpp_err=yes
15067fi
15068if test -z "$ac_cpp_err"; then
15069 ac_header_preproc=yes
15070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074 ac_header_preproc=no
15075fi
15076rm -f conftest.err conftest.$ac_ext
15077echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15078echo "${ECHO_T}$ac_header_preproc" >&6
15079
15080# So? What about this header?
ac1cb8d3
VS
15081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15082 yes:no: )
a848cd7e
SC
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15087 ac_header_preproc=yes
a848cd7e 15088 ;;
ac1cb8d3 15089 no:yes:* )
a848cd7e
SC
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15102 (
15103 cat <<\_ASBOX
ac1cb8d3
VS
15104## ----------------------------------------- ##
15105## Report this to wx-dev@lists.wxwidgets.org ##
15106## ----------------------------------------- ##
a848cd7e
SC
15107_ASBOX
15108 ) |
15109 sed "s/^/$as_me: WARNING: /" >&2
15110 ;;
15111esac
15112echo "$as_me:$LINENO: checking for $ac_header" >&5
15113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15114if eval "test \"\${$as_ac_Header+set}\" = set"; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116else
ac1cb8d3 15117 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15118fi
15119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15121
15122fi
15123if test `eval echo '${'$as_ac_Header'}'` = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15126_ACEOF
15127
15128fi
15129
15130done
15131
15132
15133case "${host}" in
15134 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15135 if test $ac_cv_header_langinfo_h = "yes" \
15136 -a \( "$wx_cv_gccversion" = "EMX2" \
15137 -o "$wx_cv_gccversion" = "EMX3" \
15138 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15139 LIBS="$LIBS -lintl"
15140 fi
15141 ;;
15142esac
15143
15144if test "$wxUSE_GUI" = "yes"; then
15145 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15146
15147for ac_header in X11/Xlib.h
15148do
15149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15150if eval "test \"\${$as_ac_Header+set}\" = set"; then
15151 echo "$as_me:$LINENO: checking for $ac_header" >&5
15152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15153if eval "test \"\${$as_ac_Header+set}\" = set"; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155fi
15156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15158else
15159 # Is the header compilable?
15160echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15162cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168$ac_includes_default
15169#include <$ac_header>
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15173 (eval $ac_compile) 2>conftest.er1
a848cd7e 15174 ac_status=$?
ac1cb8d3
VS
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
a848cd7e
SC
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
6ebeb4c7 15180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_header_compiler=yes
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197ac_header_compiler=no
15198fi
ac1cb8d3 15199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201echo "${ECHO_T}$ac_header_compiler" >&6
15202
15203# Is the header present?
15204echo "$as_me:$LINENO: checking $ac_header presence" >&5
15205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15206cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212#include <$ac_header>
15213_ACEOF
15214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } >/dev/null; then
15222 if test -s conftest.err; then
15223 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15225 else
15226 ac_cpp_err=
15227 fi
15228else
15229 ac_cpp_err=yes
15230fi
15231if test -z "$ac_cpp_err"; then
15232 ac_header_preproc=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_header_preproc=no
15238fi
15239rm -f conftest.err conftest.$ac_ext
15240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15241echo "${ECHO_T}$ac_header_preproc" >&6
15242
15243# So? What about this header?
ac1cb8d3
VS
15244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15245 yes:no: )
a848cd7e
SC
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15250 ac_header_preproc=yes
a848cd7e 15251 ;;
ac1cb8d3 15252 no:yes:* )
a848cd7e
SC
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15260echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15265 (
15266 cat <<\_ASBOX
ac1cb8d3
VS
15267## ----------------------------------------- ##
15268## Report this to wx-dev@lists.wxwidgets.org ##
15269## ----------------------------------------- ##
a848cd7e
SC
15270_ASBOX
15271 ) |
15272 sed "s/^/$as_me: WARNING: /" >&2
15273 ;;
15274esac
15275echo "$as_me:$LINENO: checking for $ac_header" >&5
15276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15277if eval "test \"\${$as_ac_Header+set}\" = set"; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
ac1cb8d3 15280 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15281fi
15282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284
15285fi
15286if test `eval echo '${'$as_ac_Header'}'` = yes; then
15287 cat >>confdefs.h <<_ACEOF
15288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15289_ACEOF
15290
15291fi
15292
15293done
15294
15295
15296for ac_header in X11/XKBlib.h
15297do
15298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15299echo "$as_me:$LINENO: checking for $ac_header" >&5
15300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15301if eval "test \"\${$as_ac_Header+set}\" = set"; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303else
15304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310
15311 #if HAVE_X11_XLIB_H
15312 #include <X11/Xlib.h>
15313 #endif
15314
15315
15316#include <$ac_header>
15317_ACEOF
15318rm -f conftest.$ac_objext
15319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15320 (eval $ac_compile) 2>conftest.er1
a848cd7e 15321 ac_status=$?
ac1cb8d3
VS
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
a848cd7e
SC
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
6ebeb4c7 15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 eval "$as_ac_Header=yes"
15340else
15341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344eval "$as_ac_Header=no"
15345fi
ac1cb8d3 15346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15347fi
15348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15350if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353_ACEOF
15354
15355fi
15356
15357done
15358
15359 fi
15360fi
15361
15362
15363echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15364echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15365if test "${ac_cv_c_const+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367else
15368 cat >conftest.$ac_ext <<_ACEOF
15369/* confdefs.h. */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h. */
15374
15375int
15376main ()
15377{
15378/* FIXME: Include the comments suggested by Paul. */
15379#ifndef __cplusplus
15380 /* Ultrix mips cc rejects this. */
15381 typedef int charset[2];
15382 const charset x;
15383 /* SunOS 4.1.1 cc rejects this. */
15384 char const *const *ccp;
15385 char **p;
15386 /* NEC SVR4.0.2 mips cc rejects this. */
15387 struct point {int x, y;};
15388 static struct point const zero = {0,0};
15389 /* AIX XL C 1.02.0.0 rejects this.
15390 It does not let you subtract one const X* pointer from another in
15391 an arm of an if-expression whose if-part is not a constant
15392 expression */
15393 const char *g = "string";
15394 ccp = &g + (g ? g-g : 0);
15395 /* HPUX 7.0 cc rejects these. */
15396 ++ccp;
15397 p = (char**) ccp;
15398 ccp = (char const *const *) p;
15399 { /* SCO 3.2v4 cc rejects this. */
15400 char *t;
15401 char const *s = 0 ? (char *) 0 : (char const *) 0;
15402
15403 *t++ = 0;
15404 }
15405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15406 int x[] = {25, 17};
15407 const int *foo = &x[0];
15408 ++foo;
15409 }
15410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15411 typedef const int *iptr;
15412 iptr p = 0;
15413 ++p;
15414 }
15415 { /* AIX XL C 1.02.0.0 rejects this saying
15416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15417 struct s { int j; const int *ap[3]; };
15418 struct s *b; b->j = 5;
15419 }
15420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15421 const int foo = 10;
15422 }
15423#endif
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15431 (eval $ac_compile) 2>conftest.er1
a848cd7e 15432 ac_status=$?
ac1cb8d3
VS
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
a848cd7e
SC
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
6ebeb4c7 15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_c_const=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_cv_c_const=no
15456fi
ac1cb8d3 15457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15458fi
15459echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15460echo "${ECHO_T}$ac_cv_c_const" >&6
15461if test $ac_cv_c_const = no; then
15462
15463cat >>confdefs.h <<\_ACEOF
15464#define const
15465_ACEOF
15466
15467fi
15468
15469echo "$as_me:$LINENO: checking for inline" >&5
15470echo $ECHO_N "checking for inline... $ECHO_C" >&6
15471if test "${ac_cv_c_inline+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
15474 ac_cv_c_inline=no
15475for ac_kw in inline __inline__ __inline; do
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482#ifndef __cplusplus
15483typedef int foo_t;
15484static $ac_kw foo_t static_foo () {return 0; }
15485$ac_kw foo_t foo () {return 0; }
15486#endif
15487
15488_ACEOF
15489rm -f conftest.$ac_objext
15490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15491 (eval $ac_compile) 2>conftest.er1
a848cd7e 15492 ac_status=$?
ac1cb8d3
VS
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
a848cd7e
SC
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
6ebeb4c7 15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_c_inline=$ac_kw; break
15511else
15512 echo "$as_me: failed program was:" >&5
15513sed 's/^/| /' conftest.$ac_ext >&5
15514
15515fi
ac1cb8d3 15516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15517done
15518
15519fi
15520echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15521echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15522
15523
a848cd7e
SC
15524case $ac_cv_c_inline in
15525 inline | yes) ;;
ac1cb8d3
VS
15526 *)
15527 case $ac_cv_c_inline in
15528 no) ac_val=;;
15529 *) ac_val=$ac_cv_c_inline;;
15530 esac
15531 cat >>confdefs.h <<_ACEOF
15532#ifndef __cplusplus
15533#define inline $ac_val
15534#endif
de59c161 15535_ACEOF
ac1cb8d3 15536 ;;
a848cd7e
SC
15537esac
15538
15539
15540echo "$as_me:$LINENO: checking for char" >&5
15541echo $ECHO_N "checking for char... $ECHO_C" >&6
15542if test "${ac_cv_type_char+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else
15545 cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
15551$ac_includes_default
15552int
15553main ()
15554{
15555if ((char *) 0)
15556 return 0;
15557if (sizeof (char))
15558 return 0;
15559 ;
15560 return 0;
15561}
15562_ACEOF
15563rm -f conftest.$ac_objext
15564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15565 (eval $ac_compile) 2>conftest.er1
a848cd7e 15566 ac_status=$?
ac1cb8d3
VS
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
a848cd7e
SC
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
6ebeb4c7 15572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_cv_type_char=yes
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589ac_cv_type_char=no
15590fi
ac1cb8d3 15591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15592fi
15593echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15594echo "${ECHO_T}$ac_cv_type_char" >&6
15595
15596echo "$as_me:$LINENO: checking size of char" >&5
15597echo $ECHO_N "checking size of char... $ECHO_C" >&6
15598if test "${ac_cv_sizeof_char+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601 if test "$ac_cv_type_char" = yes; then
15602 # The cast to unsigned long works around a bug in the HP C Compiler
15603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15605 # This bug is HP SR number 8606223364.
15606 if test "$cross_compiling" = yes; then
15607 # Depending upon the size, compute the lo and hi bounds.
15608cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614$ac_includes_default
15615int
15616main ()
15617{
15618static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15619test_array [0] = 0
15620
15621 ;
15622 return 0;
15623}
15624_ACEOF
15625rm -f conftest.$ac_objext
15626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15627 (eval $ac_compile) 2>conftest.er1
a848cd7e 15628 ac_status=$?
ac1cb8d3
VS
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
a848cd7e
SC
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
6ebeb4c7 15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_lo=0 ac_mid=0
15647 while :; do
15648 cat >conftest.$ac_ext <<_ACEOF
15649/* confdefs.h. */
15650_ACEOF
15651cat confdefs.h >>conftest.$ac_ext
15652cat >>conftest.$ac_ext <<_ACEOF
15653/* end confdefs.h. */
15654$ac_includes_default
15655int
15656main ()
15657{
15658static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15659test_array [0] = 0
15660
15661 ;
15662 return 0;
15663}
15664_ACEOF
15665rm -f conftest.$ac_objext
15666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15667 (eval $ac_compile) 2>conftest.er1
a848cd7e 15668 ac_status=$?
ac1cb8d3
VS
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
a848cd7e
SC
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
6ebeb4c7 15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_hi=$ac_mid; break
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15692 if test $ac_lo -le $ac_mid; then
15693 ac_lo= ac_hi=
15694 break
15695 fi
15696 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15697fi
ac1cb8d3 15698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15699 done
15700else
15701 echo "$as_me: failed program was:" >&5
15702sed 's/^/| /' conftest.$ac_ext >&5
15703
15704cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710$ac_includes_default
15711int
15712main ()
15713{
15714static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15715test_array [0] = 0
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest.$ac_objext
15722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15723 (eval $ac_compile) 2>conftest.er1
a848cd7e 15724 ac_status=$?
ac1cb8d3
VS
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
a848cd7e
SC
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
6ebeb4c7 15730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_hi=-1 ac_mid=-1
15743 while :; do
15744 cat >conftest.$ac_ext <<_ACEOF
15745/* confdefs.h. */
15746_ACEOF
15747cat confdefs.h >>conftest.$ac_ext
15748cat >>conftest.$ac_ext <<_ACEOF
15749/* end confdefs.h. */
15750$ac_includes_default
15751int
15752main ()
15753{
15754static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15755test_array [0] = 0
15756
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext
15762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15763 (eval $ac_compile) 2>conftest.er1
a848cd7e 15764 ac_status=$?
ac1cb8d3
VS
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
a848cd7e
SC
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
6ebeb4c7 15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_lo=$ac_mid; break
15783else
15784 echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15788 if test $ac_mid -le $ac_hi; then
15789 ac_lo= ac_hi=
15790 break
15791 fi
15792 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15793fi
ac1cb8d3 15794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15795 done
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800ac_lo= ac_hi=
15801fi
ac1cb8d3 15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15803fi
ac1cb8d3 15804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15805# Binary search between lo and hi bounds.
15806while test "x$ac_lo" != "x$ac_hi"; do
15807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15808 cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h. */
15814$ac_includes_default
15815int
15816main ()
15817{
15818static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15819test_array [0] = 0
15820
15821 ;
15822 return 0;
15823}
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15827 (eval $ac_compile) 2>conftest.er1
a848cd7e 15828 ac_status=$?
ac1cb8d3
VS
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
a848cd7e
SC
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
6ebeb4c7 15834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 ac_hi=$ac_mid
15847else
15848 echo "$as_me: failed program was:" >&5
15849sed 's/^/| /' conftest.$ac_ext >&5
15850
15851ac_lo=`expr '(' $ac_mid ')' + 1`
15852fi
ac1cb8d3 15853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15854done
15855case $ac_lo in
15856?*) ac_cv_sizeof_char=$ac_lo;;
15857'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15858See \`config.log' for more details." >&5
15859echo "$as_me: error: cannot compute sizeof (char), 77
15860See \`config.log' for more details." >&2;}
15861 { (exit 1); exit 1; }; } ;;
15862esac
15863else
15864 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15865 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15866echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15867 { (exit 1); exit 1; }; }
15868else
15869 cat >conftest.$ac_ext <<_ACEOF
15870/* confdefs.h. */
15871_ACEOF
15872cat confdefs.h >>conftest.$ac_ext
15873cat >>conftest.$ac_ext <<_ACEOF
15874/* end confdefs.h. */
15875$ac_includes_default
15876long longval () { return (long) (sizeof (char)); }
15877unsigned long ulongval () { return (long) (sizeof (char)); }
15878#include <stdio.h>
15879#include <stdlib.h>
15880int
15881main ()
15882{
15883
15884 FILE *f = fopen ("conftest.val", "w");
15885 if (! f)
15886 exit (1);
15887 if (((long) (sizeof (char))) < 0)
15888 {
15889 long i = longval ();
15890 if (i != ((long) (sizeof (char))))
15891 exit (1);
15892 fprintf (f, "%ld\n", i);
15893 }
15894 else
15895 {
15896 unsigned long i = ulongval ();
15897 if (i != ((long) (sizeof (char))))
15898 exit (1);
15899 fprintf (f, "%lu\n", i);
15900 }
15901 exit (ferror (f) || fclose (f) != 0);
15902
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest$ac_exeext
15908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_char=`cat conftest.val`
15919else
15920 echo "$as_me: program exited with status $ac_status" >&5
15921echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924( exit $ac_status )
15925{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15926See \`config.log' for more details." >&5
15927echo "$as_me: error: cannot compute sizeof (char), 77
15928See \`config.log' for more details." >&2;}
15929 { (exit 1); exit 1; }; }
15930fi
ac1cb8d3 15931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15932fi
15933fi
15934rm -f conftest.val
15935else
15936 ac_cv_sizeof_char=0
15937fi
15938fi
15939echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15940echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15941cat >>confdefs.h <<_ACEOF
15942#define SIZEOF_CHAR $ac_cv_sizeof_char
15943_ACEOF
15944
15945
15946echo "$as_me:$LINENO: checking for short" >&5
15947echo $ECHO_N "checking for short... $ECHO_C" >&6
15948if test "${ac_cv_type_short+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950else
15951 cat >conftest.$ac_ext <<_ACEOF
15952/* confdefs.h. */
15953_ACEOF
15954cat confdefs.h >>conftest.$ac_ext
15955cat >>conftest.$ac_ext <<_ACEOF
15956/* end confdefs.h. */
15957$ac_includes_default
15958int
15959main ()
15960{
15961if ((short *) 0)
15962 return 0;
15963if (sizeof (short))
15964 return 0;
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15971 (eval $ac_compile) 2>conftest.er1
a848cd7e 15972 ac_status=$?
ac1cb8d3
VS
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
a848cd7e
SC
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
6ebeb4c7 15978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_type_short=yes
15991else
15992 echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995ac_cv_type_short=no
15996fi
ac1cb8d3 15997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15998fi
15999echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16000echo "${ECHO_T}$ac_cv_type_short" >&6
16001
16002echo "$as_me:$LINENO: checking size of short" >&5
16003echo $ECHO_N "checking size of short... $ECHO_C" >&6
16004if test "${ac_cv_sizeof_short+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006else
16007 if test "$ac_cv_type_short" = yes; then
16008 # The cast to unsigned long works around a bug in the HP C Compiler
16009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16011 # This bug is HP SR number 8606223364.
16012 if test "$cross_compiling" = yes; then
16013 # Depending upon the size, compute the lo and hi bounds.
16014cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021int
16022main ()
16023{
16024static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16025test_array [0] = 0
16026
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_lo=0 ac_mid=0
16053 while :; do
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060$ac_includes_default
16061int
16062main ()
16063{
16064static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16065test_array [0] = 0
16066
16067 ;
16068 return 0;
16069}
16070_ACEOF
16071rm -f conftest.$ac_objext
16072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16073 (eval $ac_compile) 2>conftest.er1
a848cd7e 16074 ac_status=$?
ac1cb8d3
VS
16075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
a848cd7e
SC
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
6ebeb4c7 16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_hi=$ac_mid; break
16093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16098 if test $ac_lo -le $ac_mid; then
16099 ac_lo= ac_hi=
16100 break
16101 fi
16102 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16103fi
ac1cb8d3 16104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16105 done
16106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116$ac_includes_default
16117int
16118main ()
16119{
16120static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16121test_array [0] = 0
16122
16123 ;
16124 return 0;
16125}
16126_ACEOF
16127rm -f conftest.$ac_objext
16128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16129 (eval $ac_compile) 2>conftest.er1
a848cd7e 16130 ac_status=$?
ac1cb8d3
VS
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
a848cd7e
SC
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
6ebeb4c7 16136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16148 ac_hi=-1 ac_mid=-1
16149 while :; do
16150 cat >conftest.$ac_ext <<_ACEOF
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156$ac_includes_default
16157int
16158main ()
16159{
16160static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16161test_array [0] = 0
16162
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext
16168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16169 (eval $ac_compile) 2>conftest.er1
a848cd7e 16170 ac_status=$?
ac1cb8d3
VS
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
a848cd7e
SC
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
6ebeb4c7 16176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; } &&
16182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; }; then
16188 ac_lo=$ac_mid; break
16189else
16190 echo "$as_me: failed program was:" >&5
16191sed 's/^/| /' conftest.$ac_ext >&5
16192
16193ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16194 if test $ac_mid -le $ac_hi; then
16195 ac_lo= ac_hi=
16196 break
16197 fi
16198 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16199fi
ac1cb8d3 16200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16201 done
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206ac_lo= ac_hi=
16207fi
ac1cb8d3 16208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16209fi
ac1cb8d3 16210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16211# Binary search between lo and hi bounds.
16212while test "x$ac_lo" != "x$ac_hi"; do
16213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16214 cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220$ac_includes_default
16221int
16222main ()
16223{
16224static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16225test_array [0] = 0
16226
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231rm -f conftest.$ac_objext
16232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16233 (eval $ac_compile) 2>conftest.er1
a848cd7e 16234 ac_status=$?
ac1cb8d3
VS
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
a848cd7e
SC
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
6ebeb4c7 16240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_hi=$ac_mid
16253else
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257ac_lo=`expr '(' $ac_mid ')' + 1`
16258fi
ac1cb8d3 16259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16260done
16261case $ac_lo in
16262?*) ac_cv_sizeof_short=$ac_lo;;
16263'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16264See \`config.log' for more details." >&5
16265echo "$as_me: error: cannot compute sizeof (short), 77
16266See \`config.log' for more details." >&2;}
16267 { (exit 1); exit 1; }; } ;;
16268esac
16269else
16270 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16271 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16272echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16273 { (exit 1); exit 1; }; }
16274else
16275 cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h. */
16281$ac_includes_default
16282long longval () { return (long) (sizeof (short)); }
16283unsigned long ulongval () { return (long) (sizeof (short)); }
16284#include <stdio.h>
16285#include <stdlib.h>
16286int
16287main ()
16288{
16289
16290 FILE *f = fopen ("conftest.val", "w");
16291 if (! f)
16292 exit (1);
16293 if (((long) (sizeof (short))) < 0)
16294 {
16295 long i = longval ();
16296 if (i != ((long) (sizeof (short))))
16297 exit (1);
16298 fprintf (f, "%ld\n", i);
16299 }
16300 else
16301 {
16302 unsigned long i = ulongval ();
16303 if (i != ((long) (sizeof (short))))
16304 exit (1);
16305 fprintf (f, "%lu\n", i);
16306 }
16307 exit (ferror (f) || fclose (f) != 0);
16308
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313rm -f conftest$ac_exeext
16314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_cv_sizeof_short=`cat conftest.val`
16325else
16326 echo "$as_me: program exited with status $ac_status" >&5
16327echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330( exit $ac_status )
16331{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16332See \`config.log' for more details." >&5
16333echo "$as_me: error: cannot compute sizeof (short), 77
16334See \`config.log' for more details." >&2;}
16335 { (exit 1); exit 1; }; }
16336fi
ac1cb8d3 16337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16338fi
16339fi
16340rm -f conftest.val
16341else
16342 ac_cv_sizeof_short=0
16343fi
16344fi
16345echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16346echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16347cat >>confdefs.h <<_ACEOF
16348#define SIZEOF_SHORT $ac_cv_sizeof_short
16349_ACEOF
16350
16351
16352echo "$as_me:$LINENO: checking for void *" >&5
16353echo $ECHO_N "checking for void *... $ECHO_C" >&6
16354if test "${ac_cv_type_void_p+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357 cat >conftest.$ac_ext <<_ACEOF
16358/* confdefs.h. */
16359_ACEOF
16360cat confdefs.h >>conftest.$ac_ext
16361cat >>conftest.$ac_ext <<_ACEOF
16362/* end confdefs.h. */
16363$ac_includes_default
16364int
16365main ()
16366{
16367if ((void * *) 0)
16368 return 0;
16369if (sizeof (void *))
16370 return 0;
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest.$ac_objext
16376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16377 (eval $ac_compile) 2>conftest.er1
a848cd7e 16378 ac_status=$?
ac1cb8d3
VS
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
a848cd7e
SC
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
6ebeb4c7 16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ac_cv_type_void_p=yes
16397else
16398 echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
16400
16401ac_cv_type_void_p=no
16402fi
ac1cb8d3 16403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16404fi
16405echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16406echo "${ECHO_T}$ac_cv_type_void_p" >&6
16407
16408echo "$as_me:$LINENO: checking size of void *" >&5
16409echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16410if test "${ac_cv_sizeof_void_p+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412else
16413 if test "$ac_cv_type_void_p" = yes; then
16414 # The cast to unsigned long works around a bug in the HP C Compiler
16415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16417 # This bug is HP SR number 8606223364.
16418 if test "$cross_compiling" = yes; then
16419 # Depending upon the size, compute the lo and hi bounds.
16420cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16431test_array [0] = 0
16432
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_lo=0 ac_mid=0
16459 while :; do
16460 cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
16466$ac_includes_default
16467int
16468main ()
16469{
16470static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16471test_array [0] = 0
16472
16473 ;
16474 return 0;
16475}
16476_ACEOF
16477rm -f conftest.$ac_objext
16478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16479 (eval $ac_compile) 2>conftest.er1
a848cd7e 16480 ac_status=$?
ac1cb8d3
VS
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
a848cd7e
SC
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
6ebeb4c7 16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_hi=$ac_mid; break
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16504 if test $ac_lo -le $ac_mid; then
16505 ac_lo= ac_hi=
16506 break
16507 fi
16508 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16509fi
ac1cb8d3 16510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16511 done
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
16516cat >conftest.$ac_ext <<_ACEOF
16517/* confdefs.h. */
16518_ACEOF
16519cat confdefs.h >>conftest.$ac_ext
16520cat >>conftest.$ac_ext <<_ACEOF
16521/* end confdefs.h. */
16522$ac_includes_default
16523int
16524main ()
16525{
16526static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16527test_array [0] = 0
16528
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16535 (eval $ac_compile) 2>conftest.er1
a848cd7e 16536 ac_status=$?
ac1cb8d3
VS
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
a848cd7e
SC
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
6ebeb4c7 16542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16554 ac_hi=-1 ac_mid=-1
16555 while :; do
16556 cat >conftest.$ac_ext <<_ACEOF
16557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
16562$ac_includes_default
16563int
16564main ()
16565{
16566static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16567test_array [0] = 0
16568
16569 ;
16570 return 0;
16571}
16572_ACEOF
16573rm -f conftest.$ac_objext
16574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16575 (eval $ac_compile) 2>conftest.er1
a848cd7e 16576 ac_status=$?
ac1cb8d3
VS
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
a848cd7e
SC
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
6ebeb4c7 16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_lo=$ac_mid; break
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16600 if test $ac_mid -le $ac_hi; then
16601 ac_lo= ac_hi=
16602 break
16603 fi
16604 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16605fi
ac1cb8d3 16606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16607 done
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612ac_lo= ac_hi=
16613fi
ac1cb8d3 16614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16615fi
ac1cb8d3 16616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16617# Binary search between lo and hi bounds.
16618while test "x$ac_lo" != "x$ac_hi"; do
16619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16620 cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626$ac_includes_default
16627int
16628main ()
16629{
16630static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16631test_array [0] = 0
16632
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext
16638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16639 (eval $ac_compile) 2>conftest.er1
a848cd7e 16640 ac_status=$?
ac1cb8d3
VS
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
a848cd7e
SC
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
6ebeb4c7 16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_hi=$ac_mid
16659else
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663ac_lo=`expr '(' $ac_mid ')' + 1`
16664fi
ac1cb8d3 16665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16666done
16667case $ac_lo in
16668?*) ac_cv_sizeof_void_p=$ac_lo;;
16669'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16670See \`config.log' for more details." >&5
16671echo "$as_me: error: cannot compute sizeof (void *), 77
16672See \`config.log' for more details." >&2;}
16673 { (exit 1); exit 1; }; } ;;
16674esac
16675else
16676 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16677 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16678echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16679 { (exit 1); exit 1; }; }
16680else
16681 cat >conftest.$ac_ext <<_ACEOF
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
16687$ac_includes_default
16688long longval () { return (long) (sizeof (void *)); }
16689unsigned long ulongval () { return (long) (sizeof (void *)); }
16690#include <stdio.h>
16691#include <stdlib.h>
16692int
16693main ()
16694{
16695
16696 FILE *f = fopen ("conftest.val", "w");
16697 if (! f)
16698 exit (1);
16699 if (((long) (sizeof (void *))) < 0)
16700 {
16701 long i = longval ();
16702 if (i != ((long) (sizeof (void *))))
16703 exit (1);
16704 fprintf (f, "%ld\n", i);
16705 }
16706 else
16707 {
16708 unsigned long i = ulongval ();
16709 if (i != ((long) (sizeof (void *))))
16710 exit (1);
16711 fprintf (f, "%lu\n", i);
16712 }
16713 exit (ferror (f) || fclose (f) != 0);
16714
16715 ;
16716 return 0;
16717}
16718_ACEOF
16719rm -f conftest$ac_exeext
16720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721 (eval $ac_link) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_cv_sizeof_void_p=`cat conftest.val`
16731else
16732 echo "$as_me: program exited with status $ac_status" >&5
16733echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736( exit $ac_status )
16737{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16738See \`config.log' for more details." >&5
16739echo "$as_me: error: cannot compute sizeof (void *), 77
16740See \`config.log' for more details." >&2;}
16741 { (exit 1); exit 1; }; }
16742fi
ac1cb8d3 16743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16744fi
16745fi
16746rm -f conftest.val
16747else
16748 ac_cv_sizeof_void_p=0
16749fi
16750fi
16751echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16752echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16753cat >>confdefs.h <<_ACEOF
16754#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16755_ACEOF
16756
16757
16758echo "$as_me:$LINENO: checking for int" >&5
16759echo $ECHO_N "checking for int... $ECHO_C" >&6
16760if test "${ac_cv_type_int+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
16763 cat >conftest.$ac_ext <<_ACEOF
16764/* confdefs.h. */
16765_ACEOF
16766cat confdefs.h >>conftest.$ac_ext
16767cat >>conftest.$ac_ext <<_ACEOF
16768/* end confdefs.h. */
16769$ac_includes_default
16770int
16771main ()
16772{
16773if ((int *) 0)
16774 return 0;
16775if (sizeof (int))
16776 return 0;
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest.$ac_objext
16782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16783 (eval $ac_compile) 2>conftest.er1
a848cd7e 16784 ac_status=$?
ac1cb8d3
VS
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
a848cd7e
SC
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
6ebeb4c7 16790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_type_int=yes
16803else
16804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807ac_cv_type_int=no
16808fi
ac1cb8d3 16809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16810fi
16811echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16812echo "${ECHO_T}$ac_cv_type_int" >&6
16813
16814echo "$as_me:$LINENO: checking size of int" >&5
16815echo $ECHO_N "checking size of int... $ECHO_C" >&6
16816if test "${ac_cv_sizeof_int+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 if test "$ac_cv_type_int" = yes; then
16820 # The cast to unsigned long works around a bug in the HP C Compiler
16821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16823 # This bug is HP SR number 8606223364.
16824 if test "$cross_compiling" = yes; then
16825 # Depending upon the size, compute the lo and hi bounds.
16826cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832$ac_includes_default
16833int
16834main ()
16835{
16836static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16837test_array [0] = 0
16838
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_lo=0 ac_mid=0
16865 while :; do
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873int
16874main ()
16875{
16876static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16877test_array [0] = 0
16878
16879 ;
16880 return 0;
16881}
16882_ACEOF
16883rm -f conftest.$ac_objext
16884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16885 (eval $ac_compile) 2>conftest.er1
a848cd7e 16886 ac_status=$?
ac1cb8d3
VS
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
a848cd7e
SC
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
6ebeb4c7 16892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_hi=$ac_mid; break
16905else
16906 echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
16909ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16910 if test $ac_lo -le $ac_mid; then
16911 ac_lo= ac_hi=
16912 break
16913 fi
16914 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16915fi
ac1cb8d3 16916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16917 done
16918else
16919 echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928$ac_includes_default
16929int
16930main ()
16931{
16932static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16933test_array [0] = 0
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939rm -f conftest.$ac_objext
16940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16941 (eval $ac_compile) 2>conftest.er1
a848cd7e 16942 ac_status=$?
ac1cb8d3
VS
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
a848cd7e
SC
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
6ebeb4c7 16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16960 ac_hi=-1 ac_mid=-1
16961 while :; do
16962 cat >conftest.$ac_ext <<_ACEOF
16963/* confdefs.h. */
16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
16968$ac_includes_default
16969int
16970main ()
16971{
16972static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16973test_array [0] = 0
16974
16975 ;
16976 return 0;
16977}
16978_ACEOF
16979rm -f conftest.$ac_objext
16980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16981 (eval $ac_compile) 2>conftest.er1
a848cd7e 16982 ac_status=$?
ac1cb8d3
VS
16983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
a848cd7e
SC
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
6ebeb4c7 16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_lo=$ac_mid; break
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17006 if test $ac_mid -le $ac_hi; then
17007 ac_lo= ac_hi=
17008 break
17009 fi
17010 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17011fi
ac1cb8d3 17012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17013 done
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018ac_lo= ac_hi=
17019fi
ac1cb8d3 17020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17021fi
ac1cb8d3 17022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17023# Binary search between lo and hi bounds.
17024while test "x$ac_lo" != "x$ac_hi"; do
17025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17026 cat >conftest.$ac_ext <<_ACEOF
17027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
17032$ac_includes_default
17033int
17034main ()
17035{
17036static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17037test_array [0] = 0
17038
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043rm -f conftest.$ac_objext
17044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17045 (eval $ac_compile) 2>conftest.er1
a848cd7e 17046 ac_status=$?
ac1cb8d3
VS
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
a848cd7e
SC
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
6ebeb4c7 17052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_hi=$ac_mid
17065else
17066 echo "$as_me: failed program was:" >&5
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
17069ac_lo=`expr '(' $ac_mid ')' + 1`
17070fi
ac1cb8d3 17071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17072done
17073case $ac_lo in
17074?*) ac_cv_sizeof_int=$ac_lo;;
17075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17076See \`config.log' for more details." >&5
17077echo "$as_me: error: cannot compute sizeof (int), 77
17078See \`config.log' for more details." >&2;}
17079 { (exit 1); exit 1; }; } ;;
17080esac
17081else
17082 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17083 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17084echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17085 { (exit 1); exit 1; }; }
17086else
17087 cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
17093$ac_includes_default
17094long longval () { return (long) (sizeof (int)); }
17095unsigned long ulongval () { return (long) (sizeof (int)); }
17096#include <stdio.h>
17097#include <stdlib.h>
17098int
17099main ()
17100{
17101
17102 FILE *f = fopen ("conftest.val", "w");
17103 if (! f)
17104 exit (1);
17105 if (((long) (sizeof (int))) < 0)
17106 {
17107 long i = longval ();
17108 if (i != ((long) (sizeof (int))))
17109 exit (1);
17110 fprintf (f, "%ld\n", i);
17111 }
17112 else
17113 {
17114 unsigned long i = ulongval ();
17115 if (i != ((long) (sizeof (int))))
17116 exit (1);
17117 fprintf (f, "%lu\n", i);
17118 }
17119 exit (ferror (f) || fclose (f) != 0);
17120
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest$ac_exeext
17126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_sizeof_int=`cat conftest.val`
17137else
17138 echo "$as_me: program exited with status $ac_status" >&5
17139echo "$as_me: failed program was:" >&5
17140sed 's/^/| /' conftest.$ac_ext >&5
17141
17142( exit $ac_status )
17143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17144See \`config.log' for more details." >&5
17145echo "$as_me: error: cannot compute sizeof (int), 77
17146See \`config.log' for more details." >&2;}
17147 { (exit 1); exit 1; }; }
17148fi
ac1cb8d3 17149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17150fi
17151fi
17152rm -f conftest.val
17153else
17154 ac_cv_sizeof_int=0
17155fi
17156fi
17157echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17158echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17159cat >>confdefs.h <<_ACEOF
17160#define SIZEOF_INT $ac_cv_sizeof_int
17161_ACEOF
17162
17163
17164echo "$as_me:$LINENO: checking for long" >&5
17165echo $ECHO_N "checking for long... $ECHO_C" >&6
17166if test "${ac_cv_type_long+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168else
17169 cat >conftest.$ac_ext <<_ACEOF
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176int
17177main ()
17178{
17179if ((long *) 0)
17180 return 0;
17181if (sizeof (long))
17182 return 0;
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext
17188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17189 (eval $ac_compile) 2>conftest.er1
a848cd7e 17190 ac_status=$?
ac1cb8d3
VS
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
a848cd7e
SC
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
6ebeb4c7 17196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_cv_type_long=yes
17209else
17210 echo "$as_me: failed program was:" >&5
17211sed 's/^/| /' conftest.$ac_ext >&5
17212
17213ac_cv_type_long=no
17214fi
ac1cb8d3 17215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17216fi
17217echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17218echo "${ECHO_T}$ac_cv_type_long" >&6
17219
17220echo "$as_me:$LINENO: checking size of long" >&5
17221echo $ECHO_N "checking size of long... $ECHO_C" >&6
17222if test "${ac_cv_sizeof_long+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224else
17225 if test "$ac_cv_type_long" = yes; then
17226 # The cast to unsigned long works around a bug in the HP C Compiler
17227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17229 # This bug is HP SR number 8606223364.
17230 if test "$cross_compiling" = yes; then
17231 # Depending upon the size, compute the lo and hi bounds.
17232cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239int
17240main ()
17241{
17242static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17243test_array [0] = 0
17244
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_lo=0 ac_mid=0
17271 while :; do
17272 cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278$ac_includes_default
17279int
17280main ()
17281{
17282static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17283test_array [0] = 0
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289rm -f conftest.$ac_objext
17290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17291 (eval $ac_compile) 2>conftest.er1
a848cd7e 17292 ac_status=$?
ac1cb8d3
VS
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
a848cd7e
SC
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
6ebeb4c7 17298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_hi=$ac_mid; break
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17316 if test $ac_lo -le $ac_mid; then
17317 ac_lo= ac_hi=
17318 break
17319 fi
17320 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17321fi
ac1cb8d3 17322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17323 done
17324else
17325 echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
17328cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334$ac_includes_default
17335int
17336main ()
17337{
17338static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17339test_array [0] = 0
17340
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345rm -f conftest.$ac_objext
17346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17347 (eval $ac_compile) 2>conftest.er1
a848cd7e 17348 ac_status=$?
ac1cb8d3
VS
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
a848cd7e
SC
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
6ebeb4c7 17354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; } &&
17360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17366 ac_hi=-1 ac_mid=-1
17367 while :; do
17368 cat >conftest.$ac_ext <<_ACEOF
17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
17374$ac_includes_default
17375int
17376main ()
17377{
17378static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17379test_array [0] = 0
17380
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext
17386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17387 (eval $ac_compile) 2>conftest.er1
a848cd7e 17388 ac_status=$?
ac1cb8d3
VS
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
a848cd7e
SC
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
6ebeb4c7 17394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_lo=$ac_mid; break
17407else
17408 echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
17411ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17412 if test $ac_mid -le $ac_hi; then
17413 ac_lo= ac_hi=
17414 break
17415 fi
17416 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17417fi
ac1cb8d3 17418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17419 done
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424ac_lo= ac_hi=
17425fi
ac1cb8d3 17426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17427fi
ac1cb8d3 17428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17429# Binary search between lo and hi bounds.
17430while test "x$ac_lo" != "x$ac_hi"; do
17431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17432 cat >conftest.$ac_ext <<_ACEOF
17433/* confdefs.h. */
17434_ACEOF
17435cat confdefs.h >>conftest.$ac_ext
17436cat >>conftest.$ac_ext <<_ACEOF
17437/* end confdefs.h. */
17438$ac_includes_default
17439int
17440main ()
17441{
17442static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17443test_array [0] = 0
17444
17445 ;
17446 return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext
17450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17451 (eval $ac_compile) 2>conftest.er1
a848cd7e 17452 ac_status=$?
ac1cb8d3
VS
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
a848cd7e
SC
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
6ebeb4c7 17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_hi=$ac_mid
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475ac_lo=`expr '(' $ac_mid ')' + 1`
17476fi
ac1cb8d3 17477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17478done
17479case $ac_lo in
17480?*) ac_cv_sizeof_long=$ac_lo;;
17481'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17482See \`config.log' for more details." >&5
17483echo "$as_me: error: cannot compute sizeof (long), 77
17484See \`config.log' for more details." >&2;}
17485 { (exit 1); exit 1; }; } ;;
17486esac
17487else
17488 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17489 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17490echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17491 { (exit 1); exit 1; }; }
17492else
17493 cat >conftest.$ac_ext <<_ACEOF
17494/* confdefs.h. */
17495_ACEOF
17496cat confdefs.h >>conftest.$ac_ext
17497cat >>conftest.$ac_ext <<_ACEOF
17498/* end confdefs.h. */
17499$ac_includes_default
17500long longval () { return (long) (sizeof (long)); }
17501unsigned long ulongval () { return (long) (sizeof (long)); }
17502#include <stdio.h>
17503#include <stdlib.h>
17504int
17505main ()
17506{
17507
17508 FILE *f = fopen ("conftest.val", "w");
17509 if (! f)
17510 exit (1);
17511 if (((long) (sizeof (long))) < 0)
17512 {
17513 long i = longval ();
17514 if (i != ((long) (sizeof (long))))
17515 exit (1);
17516 fprintf (f, "%ld\n", i);
17517 }
17518 else
17519 {
17520 unsigned long i = ulongval ();
17521 if (i != ((long) (sizeof (long))))
17522 exit (1);
17523 fprintf (f, "%lu\n", i);
17524 }
17525 exit (ferror (f) || fclose (f) != 0);
17526
17527 ;
17528 return 0;
17529}
17530_ACEOF
17531rm -f conftest$ac_exeext
17532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17533 (eval $ac_link) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_sizeof_long=`cat conftest.val`
17543else
17544 echo "$as_me: program exited with status $ac_status" >&5
17545echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548( exit $ac_status )
17549{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17550See \`config.log' for more details." >&5
17551echo "$as_me: error: cannot compute sizeof (long), 77
17552See \`config.log' for more details." >&2;}
17553 { (exit 1); exit 1; }; }
17554fi
ac1cb8d3 17555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17556fi
17557fi
17558rm -f conftest.val
17559else
17560 ac_cv_sizeof_long=0
17561fi
17562fi
17563echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17564echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17565cat >>confdefs.h <<_ACEOF
17566#define SIZEOF_LONG $ac_cv_sizeof_long
17567_ACEOF
17568
17569
17570echo "$as_me:$LINENO: checking for size_t" >&5
17571echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17572if test "${ac_cv_type_size_t+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574else
17575 cat >conftest.$ac_ext <<_ACEOF
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
17581$ac_includes_default
17582int
17583main ()
17584{
17585if ((size_t *) 0)
17586 return 0;
17587if (sizeof (size_t))
17588 return 0;
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest.$ac_objext
17594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17595 (eval $ac_compile) 2>conftest.er1
a848cd7e 17596 ac_status=$?
ac1cb8d3
VS
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
a848cd7e
SC
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
6ebeb4c7 17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_type_size_t=yes
17615else
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619ac_cv_type_size_t=no
17620fi
ac1cb8d3 17621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17622fi
17623echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17624echo "${ECHO_T}$ac_cv_type_size_t" >&6
17625
17626echo "$as_me:$LINENO: checking size of size_t" >&5
17627echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17628if test "${ac_cv_sizeof_size_t+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631 if test "$ac_cv_type_size_t" = yes; then
17632 # The cast to unsigned long works around a bug in the HP C Compiler
17633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635 # This bug is HP SR number 8606223364.
17636 if test "$cross_compiling" = yes; then
17637 # Depending upon the size, compute the lo and hi bounds.
17638cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17649test_array [0] = 0
17650
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_lo=0 ac_mid=0
17677 while :; do
17678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685int
17686main ()
17687{
17688static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17689test_array [0] = 0
17690
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695rm -f conftest.$ac_objext
17696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17697 (eval $ac_compile) 2>conftest.er1
a848cd7e 17698 ac_status=$?
ac1cb8d3
VS
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
a848cd7e
SC
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
6ebeb4c7 17704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_hi=$ac_mid; break
17717else
17718 echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17722 if test $ac_lo -le $ac_mid; then
17723 ac_lo= ac_hi=
17724 break
17725 fi
17726 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17727fi
ac1cb8d3 17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17729 done
17730else
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734cat >conftest.$ac_ext <<_ACEOF
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
17740$ac_includes_default
17741int
17742main ()
17743{
17744static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17745test_array [0] = 0
17746
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext
17752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17753 (eval $ac_compile) 2>conftest.er1
a848cd7e 17754 ac_status=$?
ac1cb8d3
VS
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
a848cd7e
SC
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
6ebeb4c7 17760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17772 ac_hi=-1 ac_mid=-1
17773 while :; do
17774 cat >conftest.$ac_ext <<_ACEOF
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780$ac_includes_default
17781int
17782main ()
17783{
17784static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17785test_array [0] = 0
17786
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest.$ac_objext
17792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17793 (eval $ac_compile) 2>conftest.er1
a848cd7e 17794 ac_status=$?
ac1cb8d3
VS
17795 grep -v '^ *+' conftest.er1 >conftest.err
17796 rm -f conftest.er1
17797 cat conftest.err >&5
a848cd7e
SC
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
6ebeb4c7 17800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
17812 ac_lo=$ac_mid; break
17813else
17814 echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17818 if test $ac_mid -le $ac_hi; then
17819 ac_lo= ac_hi=
17820 break
17821 fi
17822 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17823fi
ac1cb8d3 17824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17825 done
17826else
17827 echo "$as_me: failed program was:" >&5
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
17830ac_lo= ac_hi=
17831fi
ac1cb8d3 17832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17833fi
ac1cb8d3 17834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17835# Binary search between lo and hi bounds.
17836while test "x$ac_lo" != "x$ac_hi"; do
17837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17849test_array [0] = 0
17850
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17857 (eval $ac_compile) 2>conftest.er1
a848cd7e 17858 ac_status=$?
ac1cb8d3
VS
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
a848cd7e
SC
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
6ebeb4c7 17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_hi=$ac_mid
17877else
17878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881ac_lo=`expr '(' $ac_mid ')' + 1`
17882fi
ac1cb8d3 17883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17884done
17885case $ac_lo in
17886?*) ac_cv_sizeof_size_t=$ac_lo;;
17887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17888See \`config.log' for more details." >&5
17889echo "$as_me: error: cannot compute sizeof (size_t), 77
17890See \`config.log' for more details." >&2;}
17891 { (exit 1); exit 1; }; } ;;
17892esac
17893else
17894 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17895 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17896echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17897 { (exit 1); exit 1; }; }
17898else
17899 cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905$ac_includes_default
17906long longval () { return (long) (sizeof (size_t)); }
17907unsigned long ulongval () { return (long) (sizeof (size_t)); }
17908#include <stdio.h>
17909#include <stdlib.h>
17910int
17911main ()
17912{
17913
17914 FILE *f = fopen ("conftest.val", "w");
17915 if (! f)
17916 exit (1);
17917 if (((long) (sizeof (size_t))) < 0)
17918 {
17919 long i = longval ();
17920 if (i != ((long) (sizeof (size_t))))
17921 exit (1);
17922 fprintf (f, "%ld\n", i);
17923 }
17924 else
17925 {
17926 unsigned long i = ulongval ();
17927 if (i != ((long) (sizeof (size_t))))
17928 exit (1);
17929 fprintf (f, "%lu\n", i);
17930 }
17931 exit (ferror (f) || fclose (f) != 0);
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest$ac_exeext
17938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 (eval $ac_link) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_sizeof_size_t=`cat conftest.val`
17949else
17950 echo "$as_me: program exited with status $ac_status" >&5
17951echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954( exit $ac_status )
17955{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17956See \`config.log' for more details." >&5
17957echo "$as_me: error: cannot compute sizeof (size_t), 77
17958See \`config.log' for more details." >&2;}
17959 { (exit 1); exit 1; }; }
17960fi
ac1cb8d3 17961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17962fi
17963fi
17964rm -f conftest.val
17965else
17966 ac_cv_sizeof_size_t=0
17967fi
17968fi
17969echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17970echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17971cat >>confdefs.h <<_ACEOF
17972#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17973_ACEOF
17974
17975
17976
17977case "${host}" in
17978 arm-*-linux* )
17979 echo "$as_me:$LINENO: checking for long long" >&5
17980echo $ECHO_N "checking for long long... $ECHO_C" >&6
17981if test "${ac_cv_type_long_long+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983else
17984 cat >conftest.$ac_ext <<_ACEOF
17985/* confdefs.h. */
17986_ACEOF
17987cat confdefs.h >>conftest.$ac_ext
17988cat >>conftest.$ac_ext <<_ACEOF
17989/* end confdefs.h. */
17990$ac_includes_default
17991int
17992main ()
17993{
17994if ((long long *) 0)
17995 return 0;
17996if (sizeof (long long))
17997 return 0;
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext
18003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18004 (eval $ac_compile) 2>conftest.er1
a848cd7e 18005 ac_status=$?
ac1cb8d3
VS
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
a848cd7e
SC
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
6ebeb4c7 18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_type_long_long=yes
18024else
18025 echo "$as_me: failed program was:" >&5
18026sed 's/^/| /' conftest.$ac_ext >&5
18027
18028ac_cv_type_long_long=no
18029fi
ac1cb8d3 18030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18031fi
18032echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18033echo "${ECHO_T}$ac_cv_type_long_long" >&6
18034
18035echo "$as_me:$LINENO: checking size of long long" >&5
18036echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18037if test "${ac_cv_sizeof_long_long+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18039else
18040 if test "$ac_cv_type_long_long" = yes; then
18041 # The cast to unsigned long works around a bug in the HP C Compiler
18042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18044 # This bug is HP SR number 8606223364.
18045 if test "$cross_compiling" = yes; then
18046 # Depending upon the size, compute the lo and hi bounds.
18047cat >conftest.$ac_ext <<_ACEOF
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
18053$ac_includes_default
18054int
18055main ()
18056{
18057static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18058test_array [0] = 0
18059
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18066 (eval $ac_compile) 2>conftest.er1
a848cd7e 18067 ac_status=$?
ac1cb8d3
VS
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
a848cd7e
SC
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } &&
6ebeb4c7 18073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; } &&
18079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_lo=0 ac_mid=0
18086 while :; do
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094int
18095main ()
18096{
18097static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18098test_array [0] = 0
18099
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext
18105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18106 (eval $ac_compile) 2>conftest.er1
a848cd7e 18107 ac_status=$?
ac1cb8d3
VS
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
a848cd7e
SC
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
6ebeb4c7 18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_hi=$ac_mid; break
18126else
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18131 if test $ac_lo -le $ac_mid; then
18132 ac_lo= ac_hi=
18133 break
18134 fi
18135 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18138 done
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149$ac_includes_default
18150int
18151main ()
18152{
18153static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18154test_array [0] = 0
18155
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest.$ac_objext
18161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18162 (eval $ac_compile) 2>conftest.er1
a848cd7e 18163 ac_status=$?
ac1cb8d3
VS
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
a848cd7e
SC
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
6ebeb4c7 18169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_hi=-1 ac_mid=-1
18182 while :; do
18183 cat >conftest.$ac_ext <<_ACEOF
18184/* confdefs.h. */
18185_ACEOF
18186cat confdefs.h >>conftest.$ac_ext
18187cat >>conftest.$ac_ext <<_ACEOF
18188/* end confdefs.h. */
18189$ac_includes_default
18190int
18191main ()
18192{
18193static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18194test_array [0] = 0
18195
18196 ;
18197 return 0;
18198}
18199_ACEOF
18200rm -f conftest.$ac_objext
18201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18202 (eval $ac_compile) 2>conftest.er1
a848cd7e 18203 ac_status=$?
ac1cb8d3
VS
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
a848cd7e
SC
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
6ebeb4c7 18209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_lo=$ac_mid; break
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18227 if test $ac_mid -le $ac_hi; then
18228 ac_lo= ac_hi=
18229 break
18230 fi
18231 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18232fi
ac1cb8d3 18233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18234 done
18235else
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
18239ac_lo= ac_hi=
18240fi
ac1cb8d3 18241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18242fi
ac1cb8d3 18243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18244# Binary search between lo and hi bounds.
18245while test "x$ac_lo" != "x$ac_hi"; do
18246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18247 cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h. */
18253$ac_includes_default
18254int
18255main ()
18256{
18257static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18258test_array [0] = 0
18259
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18266 (eval $ac_compile) 2>conftest.er1
a848cd7e 18267 ac_status=$?
ac1cb8d3
VS
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
a848cd7e
SC
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
6ebeb4c7 18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 ac_hi=$ac_mid
18286else
18287 echo "$as_me: failed program was:" >&5
18288sed 's/^/| /' conftest.$ac_ext >&5
18289
18290ac_lo=`expr '(' $ac_mid ')' + 1`
18291fi
ac1cb8d3 18292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18293done
18294case $ac_lo in
18295?*) ac_cv_sizeof_long_long=$ac_lo;;
18296'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18297See \`config.log' for more details." >&5
18298echo "$as_me: error: cannot compute sizeof (long long), 77
18299See \`config.log' for more details." >&2;}
18300 { (exit 1); exit 1; }; } ;;
18301esac
18302else
18303 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18304 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18305echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18306 { (exit 1); exit 1; }; }
18307else
18308 cat >conftest.$ac_ext <<_ACEOF
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
18314$ac_includes_default
18315long longval () { return (long) (sizeof (long long)); }
18316unsigned long ulongval () { return (long) (sizeof (long long)); }
18317#include <stdio.h>
18318#include <stdlib.h>
18319int
18320main ()
18321{
18322
18323 FILE *f = fopen ("conftest.val", "w");
18324 if (! f)
18325 exit (1);
18326 if (((long) (sizeof (long long))) < 0)
18327 {
18328 long i = longval ();
18329 if (i != ((long) (sizeof (long long))))
18330 exit (1);
18331 fprintf (f, "%ld\n", i);
18332 }
18333 else
18334 {
18335 unsigned long i = ulongval ();
18336 if (i != ((long) (sizeof (long long))))
18337 exit (1);
18338 fprintf (f, "%lu\n", i);
18339 }
18340 exit (ferror (f) || fclose (f) != 0);
18341
18342 ;
18343 return 0;
18344}
18345_ACEOF
18346rm -f conftest$ac_exeext
18347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348 (eval $ac_link) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_sizeof_long_long=`cat conftest.val`
18358else
18359 echo "$as_me: program exited with status $ac_status" >&5
18360echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
18363( exit $ac_status )
18364{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18365See \`config.log' for more details." >&5
18366echo "$as_me: error: cannot compute sizeof (long long), 77
18367See \`config.log' for more details." >&2;}
18368 { (exit 1); exit 1; }; }
18369fi
ac1cb8d3 18370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18371fi
18372fi
18373rm -f conftest.val
18374else
18375 ac_cv_sizeof_long_long=0
18376fi
18377fi
18378echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18379echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18380cat >>confdefs.h <<_ACEOF
18381#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18382_ACEOF
18383
18384
18385 ;;
18386 *-hp-hpux* )
18387 echo "$as_me:$LINENO: checking for long long" >&5
18388echo $ECHO_N "checking for long long... $ECHO_C" >&6
18389if test "${ac_cv_type_long_long+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391else
18392 cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398$ac_includes_default
18399int
18400main ()
18401{
18402if ((long long *) 0)
18403 return 0;
18404if (sizeof (long long))
18405 return 0;
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18412 (eval $ac_compile) 2>conftest.er1
a848cd7e 18413 ac_status=$?
ac1cb8d3
VS
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
a848cd7e
SC
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
6ebeb4c7 18419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_type_long_long=yes
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_cv_type_long_long=no
18437fi
ac1cb8d3 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18439fi
18440echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18441echo "${ECHO_T}$ac_cv_type_long_long" >&6
18442
18443echo "$as_me:$LINENO: checking size of long long" >&5
18444echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18445if test "${ac_cv_sizeof_long_long+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448 if test "$ac_cv_type_long_long" = yes; then
18449 # The cast to unsigned long works around a bug in the HP C Compiler
18450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18452 # This bug is HP SR number 8606223364.
18453 if test "$cross_compiling" = yes; then
18454 # Depending upon the size, compute the lo and hi bounds.
18455cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
18461$ac_includes_default
18462int
18463main ()
18464{
18465static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18466test_array [0] = 0
18467
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest.$ac_objext
18473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18474 (eval $ac_compile) 2>conftest.er1
a848cd7e 18475 ac_status=$?
ac1cb8d3
VS
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
a848cd7e
SC
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
6ebeb4c7 18481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_lo=0 ac_mid=0
18494 while :; do
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
6ebeb4c7 18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_hi=$ac_mid; break
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18539 if test $ac_lo -le $ac_mid; then
18540 ac_lo= ac_hi=
18541 break
18542 fi
18543 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18544fi
ac1cb8d3 18545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18546 done
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h. */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h. */
18557$ac_includes_default
18558int
18559main ()
18560{
18561static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18562test_array [0] = 0
18563
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext
18569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18570 (eval $ac_compile) 2>conftest.er1
a848cd7e 18571 ac_status=$?
ac1cb8d3
VS
18572 grep -v '^ *+' conftest.er1 >conftest.err
18573 rm -f conftest.er1
18574 cat conftest.err >&5
a848cd7e
SC
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
6ebeb4c7 18577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_hi=-1 ac_mid=-1
18590 while :; do
18591 cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597$ac_includes_default
18598int
18599main ()
18600{
18601static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18602test_array [0] = 0
18603
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext
18609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18610 (eval $ac_compile) 2>conftest.er1
a848cd7e 18611 ac_status=$?
ac1cb8d3
VS
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
a848cd7e
SC
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
6ebeb4c7 18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 ac_lo=$ac_mid; break
18630else
18631 echo "$as_me: failed program was:" >&5
18632sed 's/^/| /' conftest.$ac_ext >&5
18633
18634ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18635 if test $ac_mid -le $ac_hi; then
18636 ac_lo= ac_hi=
18637 break
18638 fi
18639 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18640fi
ac1cb8d3 18641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18642 done
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647ac_lo= ac_hi=
18648fi
ac1cb8d3 18649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18650fi
ac1cb8d3 18651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18652# Binary search between lo and hi bounds.
18653while test "x$ac_lo" != "x$ac_hi"; do
18654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18655 cat >conftest.$ac_ext <<_ACEOF
18656/* confdefs.h. */
18657_ACEOF
18658cat confdefs.h >>conftest.$ac_ext
18659cat >>conftest.$ac_ext <<_ACEOF
18660/* end confdefs.h. */
18661$ac_includes_default
18662int
18663main ()
18664{
18665static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18666test_array [0] = 0
18667
18668 ;
18669 return 0;
18670}
18671_ACEOF
18672rm -f conftest.$ac_objext
18673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18674 (eval $ac_compile) 2>conftest.er1
a848cd7e 18675 ac_status=$?
ac1cb8d3
VS
18676 grep -v '^ *+' conftest.er1 >conftest.err
18677 rm -f conftest.er1
18678 cat conftest.err >&5
a848cd7e
SC
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
6ebeb4c7 18681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_hi=$ac_mid
18694else
18695 echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698ac_lo=`expr '(' $ac_mid ')' + 1`
18699fi
ac1cb8d3 18700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18701done
18702case $ac_lo in
18703?*) ac_cv_sizeof_long_long=$ac_lo;;
18704'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18705See \`config.log' for more details." >&5
18706echo "$as_me: error: cannot compute sizeof (long long), 77
18707See \`config.log' for more details." >&2;}
18708 { (exit 1); exit 1; }; } ;;
18709esac
18710else
18711 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18712 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18713echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18714 { (exit 1); exit 1; }; }
18715else
18716 cat >conftest.$ac_ext <<_ACEOF
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722$ac_includes_default
18723long longval () { return (long) (sizeof (long long)); }
18724unsigned long ulongval () { return (long) (sizeof (long long)); }
18725#include <stdio.h>
18726#include <stdlib.h>
18727int
18728main ()
18729{
18730
18731 FILE *f = fopen ("conftest.val", "w");
18732 if (! f)
18733 exit (1);
18734 if (((long) (sizeof (long long))) < 0)
18735 {
18736 long i = longval ();
18737 if (i != ((long) (sizeof (long long))))
18738 exit (1);
18739 fprintf (f, "%ld\n", i);
18740 }
18741 else
18742 {
18743 unsigned long i = ulongval ();
18744 if (i != ((long) (sizeof (long long))))
18745 exit (1);
18746 fprintf (f, "%lu\n", i);
18747 }
18748 exit (ferror (f) || fclose (f) != 0);
18749
18750 ;
18751 return 0;
18752}
18753_ACEOF
18754rm -f conftest$ac_exeext
18755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756 (eval $ac_link) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 ac_cv_sizeof_long_long=`cat conftest.val`
18766else
18767 echo "$as_me: program exited with status $ac_status" >&5
18768echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771( exit $ac_status )
18772{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18773See \`config.log' for more details." >&5
18774echo "$as_me: error: cannot compute sizeof (long long), 77
18775See \`config.log' for more details." >&2;}
18776 { (exit 1); exit 1; }; }
18777fi
ac1cb8d3 18778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18779fi
18780fi
18781rm -f conftest.val
18782else
18783 ac_cv_sizeof_long_long=0
18784fi
18785fi
18786echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18787echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18788cat >>confdefs.h <<_ACEOF
18789#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18790_ACEOF
18791
18792
18793 if test "$ac_cv_sizeof_long_long" != "0"; then
18794 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18795 fi
18796 ;;
18797 * )
18798 echo "$as_me:$LINENO: checking for long long" >&5
18799echo $ECHO_N "checking for long long... $ECHO_C" >&6
18800if test "${ac_cv_type_long_long+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18802else
18803 cat >conftest.$ac_ext <<_ACEOF
18804/* confdefs.h. */
18805_ACEOF
18806cat confdefs.h >>conftest.$ac_ext
18807cat >>conftest.$ac_ext <<_ACEOF
18808/* end confdefs.h. */
18809$ac_includes_default
18810int
18811main ()
18812{
18813if ((long long *) 0)
18814 return 0;
18815if (sizeof (long long))
18816 return 0;
18817 ;
18818 return 0;
18819}
18820_ACEOF
18821rm -f conftest.$ac_objext
18822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18823 (eval $ac_compile) 2>conftest.er1
a848cd7e 18824 ac_status=$?
ac1cb8d3
VS
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
a848cd7e
SC
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
6ebeb4c7 18830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_type_long_long=yes
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847ac_cv_type_long_long=no
18848fi
ac1cb8d3 18849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18850fi
18851echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18852echo "${ECHO_T}$ac_cv_type_long_long" >&6
18853
18854echo "$as_me:$LINENO: checking size of long long" >&5
18855echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18856if test "${ac_cv_sizeof_long_long+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18858else
18859 if test "$ac_cv_type_long_long" = yes; then
18860 # The cast to unsigned long works around a bug in the HP C Compiler
18861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18863 # This bug is HP SR number 8606223364.
18864 if test "$cross_compiling" = yes; then
18865 # Depending upon the size, compute the lo and hi bounds.
18866cat >conftest.$ac_ext <<_ACEOF
18867/* confdefs.h. */
18868_ACEOF
18869cat confdefs.h >>conftest.$ac_ext
18870cat >>conftest.$ac_ext <<_ACEOF
18871/* end confdefs.h. */
18872$ac_includes_default
18873int
18874main ()
18875{
18876static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18877test_array [0] = 0
18878
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext
18884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18885 (eval $ac_compile) 2>conftest.er1
a848cd7e 18886 ac_status=$?
ac1cb8d3
VS
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
a848cd7e
SC
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
6ebeb4c7 18892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_lo=0 ac_mid=0
18905 while :; do
18906 cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h. */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h. */
18912$ac_includes_default
18913int
18914main ()
18915{
18916static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18917test_array [0] = 0
18918
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext
18924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18925 (eval $ac_compile) 2>conftest.er1
a848cd7e 18926 ac_status=$?
ac1cb8d3
VS
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
a848cd7e
SC
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
6ebeb4c7 18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_hi=$ac_mid; break
18945else
18946 echo "$as_me: failed program was:" >&5
18947sed 's/^/| /' conftest.$ac_ext >&5
18948
18949ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18950 if test $ac_lo -le $ac_mid; then
18951 ac_lo= ac_hi=
18952 break
18953 fi
18954 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957 done
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
18968$ac_includes_default
18969int
18970main ()
18971{
18972static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18973test_array [0] = 0
18974
18975 ;
18976 return 0;
18977}
18978_ACEOF
18979rm -f conftest.$ac_objext
18980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18981 (eval $ac_compile) 2>conftest.er1
a848cd7e 18982 ac_status=$?
ac1cb8d3
VS
18983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
a848cd7e
SC
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
6ebeb4c7 18988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000 ac_hi=-1 ac_mid=-1
19001 while :; do
19002 cat >conftest.$ac_ext <<_ACEOF
19003/* confdefs.h. */
19004_ACEOF
19005cat confdefs.h >>conftest.$ac_ext
19006cat >>conftest.$ac_ext <<_ACEOF
19007/* end confdefs.h. */
19008$ac_includes_default
19009int
19010main ()
19011{
19012static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19013test_array [0] = 0
19014
19015 ;
19016 return 0;
19017}
19018_ACEOF
19019rm -f conftest.$ac_objext
19020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19021 (eval $ac_compile) 2>conftest.er1
a848cd7e 19022 ac_status=$?
ac1cb8d3
VS
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
a848cd7e
SC
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
6ebeb4c7 19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_lo=$ac_mid; break
19041else
19042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19046 if test $ac_mid -le $ac_hi; then
19047 ac_lo= ac_hi=
19048 break
19049 fi
19050 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19051fi
ac1cb8d3 19052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19053 done
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058ac_lo= ac_hi=
19059fi
ac1cb8d3 19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19061fi
ac1cb8d3 19062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19063# Binary search between lo and hi bounds.
19064while test "x$ac_lo" != "x$ac_hi"; do
19065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19066 cat >conftest.$ac_ext <<_ACEOF
19067/* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
19072$ac_includes_default
19073int
19074main ()
19075{
19076static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19077test_array [0] = 0
19078
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083rm -f conftest.$ac_objext
19084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19085 (eval $ac_compile) 2>conftest.er1
a848cd7e 19086 ac_status=$?
ac1cb8d3
VS
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
a848cd7e
SC
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
6ebeb4c7 19092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_hi=$ac_mid
19105else
19106 echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109ac_lo=`expr '(' $ac_mid ')' + 1`
19110fi
ac1cb8d3 19111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19112done
19113case $ac_lo in
19114?*) ac_cv_sizeof_long_long=$ac_lo;;
19115'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19116See \`config.log' for more details." >&5
19117echo "$as_me: error: cannot compute sizeof (long long), 77
19118See \`config.log' for more details." >&2;}
19119 { (exit 1); exit 1; }; } ;;
19120esac
19121else
19122 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19123 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19124echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19125 { (exit 1); exit 1; }; }
19126else
19127 cat >conftest.$ac_ext <<_ACEOF
19128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
19133$ac_includes_default
19134long longval () { return (long) (sizeof (long long)); }
19135unsigned long ulongval () { return (long) (sizeof (long long)); }
19136#include <stdio.h>
19137#include <stdlib.h>
19138int
19139main ()
19140{
19141
19142 FILE *f = fopen ("conftest.val", "w");
19143 if (! f)
19144 exit (1);
19145 if (((long) (sizeof (long long))) < 0)
19146 {
19147 long i = longval ();
19148 if (i != ((long) (sizeof (long long))))
19149 exit (1);
19150 fprintf (f, "%ld\n", i);
19151 }
19152 else
19153 {
19154 unsigned long i = ulongval ();
19155 if (i != ((long) (sizeof (long long))))
19156 exit (1);
19157 fprintf (f, "%lu\n", i);
19158 }
19159 exit (ferror (f) || fclose (f) != 0);
19160
19161 ;
19162 return 0;
19163}
19164_ACEOF
19165rm -f conftest$ac_exeext
19166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_cv_sizeof_long_long=`cat conftest.val`
19177else
19178 echo "$as_me: program exited with status $ac_status" >&5
19179echo "$as_me: failed program was:" >&5
19180sed 's/^/| /' conftest.$ac_ext >&5
19181
19182( exit $ac_status )
19183{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19184See \`config.log' for more details." >&5
19185echo "$as_me: error: cannot compute sizeof (long long), 77
19186See \`config.log' for more details." >&2;}
19187 { (exit 1); exit 1; }; }
19188fi
ac1cb8d3 19189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19190fi
19191fi
19192rm -f conftest.val
19193else
19194 ac_cv_sizeof_long_long=0
19195fi
19196fi
19197echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19198echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19199cat >>confdefs.h <<_ACEOF
19200#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19201_ACEOF
19202
19203
19204esac
19205
238ecede
MW
19206echo "$as_me:$LINENO: checking for wchar_t" >&5
19207echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19208if test "${ac_cv_type_wchar_t+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210else
19211 cat >conftest.$ac_ext <<_ACEOF
19212/* confdefs.h. */
19213_ACEOF
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
19217
83d8eb47
MW
19218 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19219 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19220 # error "fake wchar_t"
19221 #endif
19222 #ifdef HAVE_WCHAR_H
19223 # ifdef __CYGWIN__
19224 # include <stddef.h>
19225 # endif
19226 # include <wchar.h>
19227 #endif
19228 #ifdef HAVE_STDLIB_H
19229 # include <stdlib.h>
19230 #endif
19231 #include <stdio.h>
19232
19233
19234
19235int
19236main ()
19237{
19238if ((wchar_t *) 0)
19239 return 0;
19240if (sizeof (wchar_t))
19241 return 0;
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext
19247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19249 ac_status=$?
19250 grep -v '^ *+' conftest.er1 >conftest.err
19251 rm -f conftest.er1
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
6ebeb4c7 19255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_cv_type_wchar_t=yes
19268else
19269 echo "$as_me: failed program was:" >&5
19270sed 's/^/| /' conftest.$ac_ext >&5
19271
19272ac_cv_type_wchar_t=no
19273fi
19274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19275fi
19276echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19277echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19278
a848cd7e
SC
19279echo "$as_me:$LINENO: checking size of wchar_t" >&5
19280echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19281if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283else
238ecede
MW
19284 if test "$ac_cv_type_wchar_t" = yes; then
19285 # The cast to unsigned long works around a bug in the HP C Compiler
19286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19288 # This bug is HP SR number 8606223364.
19289 if test "$cross_compiling" = yes; then
19290 # Depending upon the size, compute the lo and hi bounds.
19291cat >conftest.$ac_ext <<_ACEOF
19292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
19297
83d8eb47
MW
19298 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19299 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19300 # error "fake wchar_t"
19301 #endif
19302 #ifdef HAVE_WCHAR_H
19303 # ifdef __CYGWIN__
19304 # include <stddef.h>
19305 # endif
19306 # include <wchar.h>
19307 #endif
19308 #ifdef HAVE_STDLIB_H
19309 # include <stdlib.h>
19310 #endif
19311 #include <stdio.h>
19312
19313
19314
19315int
19316main ()
19317{
19318static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19319test_array [0] = 0
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19327 (eval $ac_compile) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
6ebeb4c7 19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_lo=0 ac_mid=0
19347 while :; do
19348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
19354
83d8eb47
MW
19355 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19356 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19357 # error "fake wchar_t"
19358 #endif
19359 #ifdef HAVE_WCHAR_H
19360 # ifdef __CYGWIN__
19361 # include <stddef.h>
19362 # endif
19363 # include <wchar.h>
19364 #endif
19365 #ifdef HAVE_STDLIB_H
19366 # include <stdlib.h>
19367 #endif
19368 #include <stdio.h>
19369
19370
19371
19372int
19373main ()
19374{
19375static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19376test_array [0] = 0
19377
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext
19383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384 (eval $ac_compile) 2>conftest.er1
19385 ac_status=$?
19386 grep -v '^ *+' conftest.er1 >conftest.err
19387 rm -f conftest.er1
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
6ebeb4c7 19391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_hi=$ac_mid; break
19404else
19405 echo "$as_me: failed program was:" >&5
19406sed 's/^/| /' conftest.$ac_ext >&5
19407
19408ac_lo=`expr $ac_mid + 1`
19409 if test $ac_lo -le $ac_mid; then
19410 ac_lo= ac_hi=
19411 break
19412 fi
19413 ac_mid=`expr 2 '*' $ac_mid + 1`
19414fi
19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416 done
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427
83d8eb47
MW
19428 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19429 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19430 # error "fake wchar_t"
19431 #endif
19432 #ifdef HAVE_WCHAR_H
19433 # ifdef __CYGWIN__
19434 # include <stddef.h>
19435 # endif
19436 # include <wchar.h>
19437 #endif
19438 #ifdef HAVE_STDLIB_H
19439 # include <stdlib.h>
19440 #endif
19441 #include <stdio.h>
19442
19443
19444
19445int
19446main ()
19447{
19448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19449test_array [0] = 0
19450
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455rm -f conftest.$ac_objext
19456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
6ebeb4c7 19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_hi=-1 ac_mid=-1
19477 while :; do
19478 cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484
83d8eb47
MW
19485 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19486 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19487 # error "fake wchar_t"
19488 #endif
19489 #ifdef HAVE_WCHAR_H
19490 # ifdef __CYGWIN__
19491 # include <stddef.h>
19492 # endif
19493 # include <wchar.h>
19494 #endif
19495 #ifdef HAVE_STDLIB_H
19496 # include <stdlib.h>
19497 #endif
19498 #include <stdio.h>
19499
19500
19501
19502int
19503main ()
19504{
19505static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19506test_array [0] = 0
19507
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
6ebeb4c7 19521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; } &&
19527 { ac_try='test -s conftest.$ac_objext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_lo=$ac_mid; break
19534else
19535 echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538ac_hi=`expr '(' $ac_mid ')' - 1`
19539 if test $ac_mid -le $ac_hi; then
19540 ac_lo= ac_hi=
19541 break
19542 fi
19543 ac_mid=`expr 2 '*' $ac_mid`
19544fi
19545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546 done
19547else
19548 echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551ac_lo= ac_hi=
19552fi
19553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19554fi
19555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556# Binary search between lo and hi bounds.
19557while test "x$ac_lo" != "x$ac_hi"; do
19558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19559 cat >conftest.$ac_ext <<_ACEOF
19560/* confdefs.h. */
19561_ACEOF
19562cat confdefs.h >>conftest.$ac_ext
19563cat >>conftest.$ac_ext <<_ACEOF
19564/* end confdefs.h. */
19565
83d8eb47
MW
19566 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19567 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19568 # error "fake wchar_t"
19569 #endif
19570 #ifdef HAVE_WCHAR_H
19571 # ifdef __CYGWIN__
19572 # include <stddef.h>
19573 # endif
19574 # include <wchar.h>
19575 #endif
19576 #ifdef HAVE_STDLIB_H
19577 # include <stdlib.h>
19578 #endif
19579 #include <stdio.h>
a848cd7e 19580
a848cd7e 19581
a848cd7e 19582
238ecede
MW
19583int
19584main ()
19585{
19586static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19587test_array [0] = 0
a848cd7e 19588
238ecede
MW
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
6ebeb4c7 19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_hi=$ac_mid
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619ac_lo=`expr '(' $ac_mid ')' + 1`
19620fi
19621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622done
19623case $ac_lo in
19624?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19625'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19626See \`config.log' for more details." >&5
19627echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19628See \`config.log' for more details." >&2;}
19629 { (exit 1); exit 1; }; } ;;
19630esac
19631else
19632 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19633 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19634echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19635 { (exit 1); exit 1; }; }
a848cd7e
SC
19636else
19637 cat >conftest.$ac_ext <<_ACEOF
19638/* confdefs.h. */
19639_ACEOF
19640cat confdefs.h >>conftest.$ac_ext
19641cat >>conftest.$ac_ext <<_ACEOF
19642/* end confdefs.h. */
19643
83d8eb47
MW
19644 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19645 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19646 # error "fake wchar_t"
19647 #endif
19648 #ifdef HAVE_WCHAR_H
19649 # ifdef __CYGWIN__
19650 # include <stddef.h>
19651 # endif
19652 # include <wchar.h>
19653 #endif
19654 #ifdef HAVE_STDLIB_H
19655 # include <stdlib.h>
19656 #endif
19657 #include <stdio.h>
19658
19659
19660
19661long longval () { return (long) (sizeof (wchar_t)); }
19662unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19663#include <stdio.h>
19664#include <stdlib.h>
19665int
19666main ()
19667{
a848cd7e 19668
238ecede
MW
19669 FILE *f = fopen ("conftest.val", "w");
19670 if (! f)
19671 exit (1);
19672 if (((long) (sizeof (wchar_t))) < 0)
19673 {
19674 long i = longval ();
19675 if (i != ((long) (sizeof (wchar_t))))
19676 exit (1);
19677 fprintf (f, "%ld\n", i);
19678 }
19679 else
19680 {
19681 unsigned long i = ulongval ();
19682 if (i != ((long) (sizeof (wchar_t))))
19683 exit (1);
19684 fprintf (f, "%lu\n", i);
19685 }
19686 exit (ferror (f) || fclose (f) != 0);
19687
19688 ;
19689 return 0;
19690}
a848cd7e
SC
19691_ACEOF
19692rm -f conftest$ac_exeext
19693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19694 (eval $ac_link) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
238ecede 19703 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19704else
19705 echo "$as_me: program exited with status $ac_status" >&5
19706echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
19708
19709( exit $ac_status )
238ecede
MW
19710{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19711See \`config.log' for more details." >&5
19712echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19713See \`config.log' for more details." >&2;}
19714 { (exit 1); exit 1; }; }
a848cd7e 19715fi
ac1cb8d3 19716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19717fi
a848cd7e 19718fi
238ecede
MW
19719rm -f conftest.val
19720else
19721 ac_cv_sizeof_wchar_t=0
19722fi
19723fi
19724echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19725echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19726cat >>confdefs.h <<_ACEOF
238ecede 19727#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19728_ACEOF
19729
19730
47a7e797
MW
19731if test "$ac_cv_sizeof_wchar_t" != "0"; then
19732 wxUSE_WCHAR_T=yes
19733else
19734 wxUSE_WCHAR_T=no
19735fi
238ecede 19736
ba3d13e1
VZ
19737echo "$as_me:$LINENO: checking for va_copy" >&5
19738echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19739if test "${wx_cv_func_va_copy+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741else
19742
19743 cat >conftest.$ac_ext <<_ACEOF
19744
19745 #include <stdarg.h>
19746 void foo(char *f, ...)
19747 {
19748 va_list ap1, ap2;
19749 va_start(ap1, f);
19750 va_copy(ap2, ap1);
19751 va_end(ap2);
19752 va_end(ap1);
19753 }
5886b072
VZ
19754 int main()
19755 {
b902e639
VZ
19756 foo("hi", 17);
19757 return 0;
5886b072 19758 }
ba3d13e1
VZ
19759_ACEOF
19760rm -f conftest.$ac_objext conftest$ac_exeext
19761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 (eval $ac_link) 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
6ebeb4c7 19769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest$ac_exeext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 wx_cv_func_va_copy=yes
19782else
19783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786wx_cv_func_va_copy=no
19787
19788fi
19789rm -f conftest.err conftest.$ac_objext \
19790 conftest$ac_exeext conftest.$ac_ext
19791
19792
19793fi
19794echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19795echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19796
19797if test $wx_cv_func_va_copy = "yes"; then
19798 cat >>confdefs.h <<\_ACEOF
19799#define HAVE_VA_COPY 1
19800_ACEOF
19801
19802else
19803 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19804echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19805if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808
19809 if test "$cross_compiling" = yes; then
19810 wx_cv_type_va_list_lvalue=yes
19811
19812else
19813 cat >conftest.$ac_ext <<_ACEOF
19814
19815 #include <stdarg.h>
19816 int foo(char *f, ...)
19817 {
19818 va_list ap1, ap2;
19819 va_start(ap1, f);
19820 ap2 = ap1;
19821 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19822 return 1;
19823 va_end(ap2);
19824 va_end(ap1);
19825 return 0;
19826 }
19827 int main()
19828 {
19829 return foo("hi", 17);
19830 }
19831_ACEOF
19832rm -f conftest$ac_exeext
19833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19834 (eval $ac_link) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 wx_cv_type_va_list_lvalue=yes
19844else
19845 echo "$as_me: program exited with status $ac_status" >&5
19846echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849( exit $ac_status )
19850wx_cv_type_va_list_lvalue=no
19851fi
19852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19853fi
19854
19855
19856fi
19857echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19858echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19859
19860 if test $wx_cv_type_va_list_lvalue != "yes"; then
19861 cat >>confdefs.h <<\_ACEOF
19862#define VA_LIST_IS_ARRAY 1
19863_ACEOF
19864
19865 fi
19866fi
19867
a848cd7e
SC
19868# Check whether --enable-largefile or --disable-largefile was given.
19869if test "${enable_largefile+set}" = set; then
19870 enableval="$enable_largefile"
19871
19872fi;
19873if test "$enable_largefile" != no; then
19874 wx_largefile=no
19875
19876 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19877echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19878if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
19881
19882 cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h. */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h. */
19888#define _FILE_OFFSET_BITS 64
19889 #include <sys/types.h>
19890int
19891main ()
19892{
19893typedef struct {
19894 unsigned int field: sizeof(off_t) == 8;
19895} wxlf;
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19903 (eval $ac_compile) 2>conftest.er1
a848cd7e 19904 ac_status=$?
ac1cb8d3
VS
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
a848cd7e
SC
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
6ebeb4c7 19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_sys_file_offset_bits=64
19923else
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927ac_cv_sys_file_offset_bits=no
19928fi
ac1cb8d3 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19930
19931
19932fi
19933echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19934echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19935
19936 if test "$ac_cv_sys_file_offset_bits" != no; then
19937 wx_largefile=yes
19938 cat >>confdefs.h <<_ACEOF
19939#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19940_ACEOF
19941
19942 fi
19943
19944 if test "x$wx_largefile" != "xyes"; then
19945
19946 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19947echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19948if test "${ac_cv_sys_large_files+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950else
19951
19952 cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958#define _LARGE_FILES 1
19959 #include <sys/types.h>
19960int
19961main ()
19962{
19963typedef struct {
19964 unsigned int field: sizeof(off_t) == 8;
19965} wxlf;
19966
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19973 (eval $ac_compile) 2>conftest.er1
a848cd7e 19974 ac_status=$?
ac1cb8d3
VS
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
a848cd7e
SC
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
6ebeb4c7 19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_sys_large_files=1
19993else
19994 echo "$as_me: failed program was:" >&5
19995sed 's/^/| /' conftest.$ac_ext >&5
19996
19997ac_cv_sys_large_files=no
19998fi
ac1cb8d3 19999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20000
20001
20002fi
20003echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20004echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20005
20006 if test "$ac_cv_sys_large_files" != no; then
20007 wx_largefile=yes
20008 cat >>confdefs.h <<_ACEOF
20009#define _LARGE_FILES $ac_cv_sys_large_files
20010_ACEOF
20011
20012 fi
20013
20014 fi
20015
20016 echo "$as_me:$LINENO: checking if large file support is available" >&5
20017echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20018 if test "x$wx_largefile" = "xyes"; then
20019 cat >>confdefs.h <<\_ACEOF
20020#define HAVE_LARGEFILE_SUPPORT 1
20021_ACEOF
20022
20023 fi
20024 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20025echo "${ECHO_T}$wx_largefile" >&6
20026fi
20027
5b674b9d
DE
20028
20029if test "x$wx_largefile" = "xyes"; then
20030 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20031 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20032 else
20033 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20034 fi
20035 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20036echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20037if test "${ac_cv_sys_largefile_source+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040 while :; do
20041 ac_cv_sys_largefile_source=no
20042 cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
20048#include <stdio.h>
20049int
20050main ()
20051{
20052return !fseeko;
20053 ;
20054 return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext
20058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20059 (eval $ac_compile) 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
6ebeb4c7 20066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 break
20079else
20080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083fi
20084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
20091#define _LARGEFILE_SOURCE 1
20092#include <stdio.h>
20093int
20094main ()
20095{
20096return !fseeko;
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext
20102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20103 (eval $ac_compile) 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } &&
6ebeb4c7 20110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; } &&
20116 { ac_try='test -s conftest.$ac_objext'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_cv_sys_largefile_source=1; break
20123else
20124 echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127fi
20128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 break
20130done
20131fi
20132echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20133echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20134if test "$ac_cv_sys_largefile_source" != no; then
20135
20136cat >>confdefs.h <<_ACEOF
20137#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20138_ACEOF
20139
20140fi
20141rm -f conftest*
20142
20143# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20144# in glibc 2.1.3, but that breaks too many other things.
20145# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20146echo "$as_me:$LINENO: checking for fseeko" >&5
20147echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20148if test "${ac_cv_func_fseeko+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157#include <stdio.h>
20158int
20159main ()
20160{
20161return fseeko && fseeko (stdin, 0, 0);
20162 ;
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest.$ac_objext conftest$ac_exeext
20167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
6ebeb4c7 20175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_func_fseeko=yes
20188else
20189 echo "$as_me: failed program was:" >&5
20190sed 's/^/| /' conftest.$ac_ext >&5
20191
20192ac_cv_func_fseeko=no
20193fi
20194rm -f conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196fi
20197echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20198echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20199if test $ac_cv_func_fseeko = yes; then
20200
20201cat >>confdefs.h <<\_ACEOF
20202#define HAVE_FSEEKO 1
20203_ACEOF
20204
20205fi
20206
5b674b9d
DE
20207 if test "$ac_cv_sys_largefile_source" != no; then
20208 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20209 fi
20210 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20211fi
20212
20213echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20214echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20215if test "${ac_cv_c_bigendian+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218 ac_cv_c_bigendian=unknown
20219# See if sys/param.h defines the BYTE_ORDER macro.
20220cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h. */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h. */
20226#include <sys/types.h>
20227#include <sys/param.h>
20228int
20229main ()
20230{
20231
20232#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20233 bogus endian macros
20234#endif
20235 ;
20236 return 0;
20237}
20238_ACEOF
20239rm -f conftest.$ac_objext
20240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20241 (eval $ac_compile) 2>conftest.er1
a848cd7e 20242 ac_status=$?
ac1cb8d3
VS
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
a848cd7e
SC
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
6ebeb4c7 20248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 # It does; now see whether it defined to BIG_ENDIAN or not.
20261cat >conftest.$ac_ext <<_ACEOF
20262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267#include <sys/types.h>
20268#include <sys/param.h>
20269int
20270main ()
20271{
20272
20273#if BYTE_ORDER != BIG_ENDIAN
20274 not big endian
20275#endif
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280rm -f conftest.$ac_objext
20281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20282 (eval $ac_compile) 2>conftest.er1
a848cd7e 20283 ac_status=$?
ac1cb8d3
VS
20284 grep -v '^ *+' conftest.er1 >conftest.err
20285 rm -f conftest.er1
20286 cat conftest.err >&5
a848cd7e
SC
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
6ebeb4c7 20289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; } &&
20295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_cv_c_bigendian=yes
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306ac_cv_c_bigendian=no
20307fi
ac1cb8d3 20308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20309else
20310 echo "$as_me: failed program was:" >&5
20311sed 's/^/| /' conftest.$ac_ext >&5
20312
20313fi
ac1cb8d3 20314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20315if test $ac_cv_c_bigendian = unknown; then
20316if test "$cross_compiling" = yes; then
20317 ac_cv_c_bigendian=unknown
20318else
20319 cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h. */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h. */
20325main () {
20326 /* Are we little or big endian? From Harbison&Steele. */
20327 union
20328 {
20329 long l;
20330 char c[sizeof (long)];
20331 } u;
20332 u.l = 1;
20333 exit (u.c[sizeof (long) - 1] == 1);
20334}
20335_ACEOF
20336rm -f conftest$ac_exeext
20337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20338 (eval $ac_link) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_c_bigendian=no
20348else
20349 echo "$as_me: program exited with status $ac_status" >&5
20350echo "$as_me: failed program was:" >&5
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
20353( exit $ac_status )
20354ac_cv_c_bigendian=yes
20355fi
ac1cb8d3 20356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20357fi
20358fi
20359fi
20360echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20361echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20362if test $ac_cv_c_bigendian = unknown; then
20363 { 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
20364echo "$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;}
20365fi
20366if test $ac_cv_c_bigendian = yes; then
20367 cat >>confdefs.h <<\_ACEOF
20368#define WORDS_BIGENDIAN 1
20369_ACEOF
20370
20371fi
20372
20373
20374ac_ext=cc
20375ac_cpp='$CXXCPP $CPPFLAGS'
20376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20379echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20380echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20381if test -z "$CXXCPP"; then
20382 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384else
20385 # Double quotes because CXXCPP needs to be expanded
20386 for CXXCPP in "$CXX -E" "/lib/cpp"
20387 do
20388 ac_preproc_ok=false
20389for ac_cxx_preproc_warn_flag in '' yes
20390do
20391 # Use a header file that comes with gcc, so configuring glibc
20392 # with a fresh cross-compiler works.
20393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20394 # <limits.h> exists even on freestanding compilers.
20395 # On the NeXT, cc -E runs the code through the compiler's parser,
20396 # not just through cpp. "Syntax error" is here to catch this case.
20397 cat >conftest.$ac_ext <<_ACEOF
20398/* confdefs.h. */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h. */
20403#ifdef __STDC__
20404# include <limits.h>
20405#else
20406# include <assert.h>
20407#endif
ac1cb8d3 20408 Syntax error
a848cd7e
SC
20409_ACEOF
20410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } >/dev/null; then
20418 if test -s conftest.err; then
20419 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20420 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20421 else
20422 ac_cpp_err=
20423 fi
20424else
20425 ac_cpp_err=yes
20426fi
20427if test -z "$ac_cpp_err"; then
20428 :
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 # Broken: fails on valid input.
20434continue
20435fi
20436rm -f conftest.err conftest.$ac_ext
20437
20438 # OK, works on sane cases. Now check whether non-existent headers
20439 # can be detected and how.
20440 cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446#include <ac_nonexistent.h>
20447_ACEOF
20448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } >/dev/null; then
20456 if test -s conftest.err; then
20457 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20458 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20459 else
20460 ac_cpp_err=
20461 fi
20462else
20463 ac_cpp_err=yes
20464fi
20465if test -z "$ac_cpp_err"; then
20466 # Broken: success on invalid input.
20467continue
20468else
20469 echo "$as_me: failed program was:" >&5
20470sed 's/^/| /' conftest.$ac_ext >&5
20471
20472 # Passes both tests.
20473ac_preproc_ok=:
20474break
20475fi
20476rm -f conftest.err conftest.$ac_ext
20477
20478done
20479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20480rm -f conftest.err conftest.$ac_ext
20481if $ac_preproc_ok; then
20482 break
20483fi
20484
20485 done
20486 ac_cv_prog_CXXCPP=$CXXCPP
20487
20488fi
20489 CXXCPP=$ac_cv_prog_CXXCPP
20490else
20491 ac_cv_prog_CXXCPP=$CXXCPP
20492fi
20493echo "$as_me:$LINENO: result: $CXXCPP" >&5
20494echo "${ECHO_T}$CXXCPP" >&6
20495ac_preproc_ok=false
20496for ac_cxx_preproc_warn_flag in '' yes
20497do
20498 # Use a header file that comes with gcc, so configuring glibc
20499 # with a fresh cross-compiler works.
20500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20501 # <limits.h> exists even on freestanding compilers.
20502 # On the NeXT, cc -E runs the code through the compiler's parser,
20503 # not just through cpp. "Syntax error" is here to catch this case.
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510#ifdef __STDC__
20511# include <limits.h>
20512#else
20513# include <assert.h>
20514#endif
ac1cb8d3 20515 Syntax error
a848cd7e
SC
20516_ACEOF
20517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } >/dev/null; then
20525 if test -s conftest.err; then
20526 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20528 else
20529 ac_cpp_err=
20530 fi
20531else
20532 ac_cpp_err=yes
20533fi
20534if test -z "$ac_cpp_err"; then
20535 :
20536else
20537 echo "$as_me: failed program was:" >&5
20538sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 # Broken: fails on valid input.
20541continue
20542fi
20543rm -f conftest.err conftest.$ac_ext
20544
20545 # OK, works on sane cases. Now check whether non-existent headers
20546 # can be detected and how.
20547 cat >conftest.$ac_ext <<_ACEOF
20548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
20553#include <ac_nonexistent.h>
20554_ACEOF
20555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } >/dev/null; then
20563 if test -s conftest.err; then
20564 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20566 else
20567 ac_cpp_err=
20568 fi
20569else
20570 ac_cpp_err=yes
20571fi
20572if test -z "$ac_cpp_err"; then
20573 # Broken: success on invalid input.
20574continue
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 # Passes both tests.
20580ac_preproc_ok=:
20581break
20582fi
20583rm -f conftest.err conftest.$ac_ext
20584
20585done
20586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20587rm -f conftest.err conftest.$ac_ext
20588if $ac_preproc_ok; then
20589 :
20590else
20591 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20592See \`config.log' for more details." >&5
20593echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20594See \`config.log' for more details." >&2;}
20595 { (exit 1); exit 1; }; }
20596fi
20597
20598ac_ext=cc
20599ac_cpp='$CXXCPP $CPPFLAGS'
20600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604
20605
20606
20607
20608 ac_ext=cc
20609ac_cpp='$CXXCPP $CPPFLAGS'
20610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613
20614
20615
20616for ac_header in iostream
20617do
20618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20619if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620 echo "$as_me:$LINENO: checking for $ac_header" >&5
20621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20622if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624fi
20625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20627else
20628 # Is the header compilable?
20629echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20631cat >conftest.$ac_ext <<_ACEOF
20632/* confdefs.h. */
20633_ACEOF
20634cat confdefs.h >>conftest.$ac_ext
20635cat >>conftest.$ac_ext <<_ACEOF
20636/* end confdefs.h. */
20637$ac_includes_default
20638#include <$ac_header>
20639_ACEOF
20640rm -f conftest.$ac_objext
20641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20642 (eval $ac_compile) 2>conftest.er1
a848cd7e 20643 ac_status=$?
ac1cb8d3
VS
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
a848cd7e
SC
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } &&
6ebeb4c7 20649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_header_compiler=yes
20662else
20663 echo "$as_me: failed program was:" >&5
20664sed 's/^/| /' conftest.$ac_ext >&5
20665
20666ac_header_compiler=no
20667fi
ac1cb8d3 20668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20670echo "${ECHO_T}$ac_header_compiler" >&6
20671
20672# Is the header present?
20673echo "$as_me:$LINENO: checking $ac_header presence" >&5
20674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20675cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
20681#include <$ac_header>
20682_ACEOF
20683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } >/dev/null; then
20691 if test -s conftest.err; then
20692 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20694 else
20695 ac_cpp_err=
20696 fi
20697else
20698 ac_cpp_err=yes
20699fi
20700if test -z "$ac_cpp_err"; then
20701 ac_header_preproc=yes
20702else
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 ac_header_preproc=no
20707fi
20708rm -f conftest.err conftest.$ac_ext
20709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20710echo "${ECHO_T}$ac_header_preproc" >&6
20711
20712# So? What about this header?
ac1cb8d3
VS
20713case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20714 yes:no: )
a848cd7e
SC
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20719 ac_header_preproc=yes
a848cd7e 20720 ;;
ac1cb8d3 20721 no:yes:* )
a848cd7e
SC
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20734 (
20735 cat <<\_ASBOX
ac1cb8d3
VS
20736## ----------------------------------------- ##
20737## Report this to wx-dev@lists.wxwidgets.org ##
20738## ----------------------------------------- ##
a848cd7e
SC
20739_ASBOX
20740 ) |
20741 sed "s/^/$as_me: WARNING: /" >&2
20742 ;;
20743esac
20744echo "$as_me:$LINENO: checking for $ac_header" >&5
20745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20746if eval "test \"\${$as_ac_Header+set}\" = set"; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748else
ac1cb8d3 20749 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20750fi
20751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20753
20754fi
20755if test `eval echo '${'$as_ac_Header'}'` = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20758_ACEOF
20759
20760fi
20761
20762done
20763
20764
20765 if test "$ac_cv_header_iostream" = "yes" ; then
20766 :
20767 else
20768 cat >>confdefs.h <<\_ACEOF
20769#define wxUSE_IOSTREAMH 1
20770_ACEOF
20771
20772 fi
20773
20774 ac_ext=c
20775ac_cpp='$CPP $CPPFLAGS'
20776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780
20781
20782
20783 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20784echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20785if test "${wx_cv_cpp_bool+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787else
20788
20789
20790
20791 ac_ext=cc
20792ac_cpp='$CXXCPP $CPPFLAGS'
20793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797
20798 cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h. */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h. */
20804
20805
20806int
20807main ()
20808{
20809
20810 bool b = true;
20811
20812 return 0;
20813
20814 ;
20815 return 0;
20816}
20817_ACEOF
20818rm -f conftest.$ac_objext
20819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20820 (eval $ac_compile) 2>conftest.er1
a848cd7e 20821 ac_status=$?
ac1cb8d3
VS
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
a848cd7e
SC
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } &&
6ebeb4c7 20827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839
20840 wx_cv_cpp_bool=yes
20841
20842else
20843 echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
20845
20846
20847 wx_cv_cpp_bool=no
20848
20849
20850fi
ac1cb8d3 20851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20852
20853 ac_ext=c
20854ac_cpp='$CPP $CPPFLAGS'
20855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858
20859
20860fi
20861echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20862echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20863
20864 if test "$wx_cv_cpp_bool" = "yes"; then
20865 cat >>confdefs.h <<\_ACEOF
20866#define HAVE_BOOL 1
20867_ACEOF
20868
20869 fi
20870
20871
20872
20873 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20874echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20875if test "${wx_cv_explicit+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877else
20878
20879
20880
20881 ac_ext=cc
20882ac_cpp='$CXXCPP $CPPFLAGS'
20883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20886
20887
20888 cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h. */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h. */
20894
20895 class Foo { public: explicit Foo(int) {} };
20896
20897int
20898main ()
20899{
20900
20901 return 0;
20902
20903 ;
20904 return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
20908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20909 (eval $ac_compile) 2>conftest.er1
a848cd7e 20910 ac_status=$?
ac1cb8d3
VS
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
a848cd7e
SC
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
6ebeb4c7 20916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928
20929 cat >conftest.$ac_ext <<_ACEOF
20930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
20934/* end confdefs.h. */
20935
20936 class Foo { public: explicit Foo(int) {} };
20937 static void TakeFoo(const Foo& foo) { }
20938
20939int
20940main ()
20941{
20942
20943 TakeFoo(17);
20944 return 0;
20945
20946 ;
20947 return 0;
20948}
20949_ACEOF
20950rm -f conftest.$ac_objext
20951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20952 (eval $ac_compile) 2>conftest.er1
a848cd7e 20953 ac_status=$?
ac1cb8d3
VS
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
a848cd7e
SC
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
6ebeb4c7 20959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20968 ac_status=$?
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 wx_cv_explicit=no
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976wx_cv_explicit=yes
20977
20978fi
ac1cb8d3 20979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20980
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985wx_cv_explicit=no
20986
20987fi
ac1cb8d3 20988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20989
20990 ac_ext=c
20991ac_cpp='$CPP $CPPFLAGS'
20992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995
20996
20997fi
20998echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20999echo "${ECHO_T}$wx_cv_explicit" >&6
21000
21001 if test "$wx_cv_explicit" = "yes"; then
21002 cat >>confdefs.h <<\_ACEOF
21003#define HAVE_EXPLICIT 1
21004_ACEOF
21005
21006 fi
21007
21008
21009echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21010echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21011if test "${ac_cv_cxx_const_cast+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013else
21014
21015
21016 ac_ext=cc
21017ac_cpp='$CXXCPP $CPPFLAGS'
21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
21022 cat >conftest.$ac_ext <<_ACEOF
21023/* confdefs.h. */
21024_ACEOF
21025cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF
21027/* end confdefs.h. */
21028
21029int
21030main ()
21031{
21032int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21033 ;
21034 return 0;
21035}
21036_ACEOF
21037rm -f conftest.$ac_objext
21038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21039 (eval $ac_compile) 2>conftest.er1
a848cd7e 21040 ac_status=$?
ac1cb8d3
VS
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
a848cd7e
SC
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
6ebeb4c7 21046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_cxx_const_cast=yes
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063ac_cv_cxx_const_cast=no
21064fi
ac1cb8d3 21065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21066 ac_ext=c
21067ac_cpp='$CPP $CPPFLAGS'
21068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_c_compiler_gnu
21071
21072
21073fi
21074echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21075echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21076if test "$ac_cv_cxx_const_cast" = yes; then
21077
21078cat >>confdefs.h <<\_ACEOF
21079#define HAVE_CONST_CAST
21080_ACEOF
21081
21082fi
21083
7714864e
RL
21084echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21085echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21086if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21088else
21089
21090
21091 ac_ext=cc
21092ac_cpp='$CXXCPP $CPPFLAGS'
21093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21096
21097 cat >conftest.$ac_ext <<_ACEOF
21098/* confdefs.h. */
21099_ACEOF
21100cat confdefs.h >>conftest.$ac_ext
21101cat >>conftest.$ac_ext <<_ACEOF
21102/* end confdefs.h. */
21103#include <typeinfo>
21104class Base { public : Base () {} virtual void f () = 0;};
21105class Derived : public Base { public : Derived () {} virtual void f () {} };
21106class Unrelated { public : Unrelated () {} };
21107int g (Unrelated&) { return 0; }
21108int
21109main ()
21110{
21111
21112Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21113 ;
21114 return 0;
21115}
21116_ACEOF
21117rm -f conftest.$ac_objext
21118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21119 (eval $ac_compile) 2>conftest.er1
21120 ac_status=$?
21121 grep -v '^ *+' conftest.er1 >conftest.err
21122 rm -f conftest.er1
21123 cat conftest.err >&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } &&
6ebeb4c7 21126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; } &&
21132 { ac_try='test -s conftest.$ac_objext'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_cxx_reinterpret_cast=yes
21139else
21140 echo "$as_me: failed program was:" >&5
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
21143ac_cv_cxx_reinterpret_cast=no
21144fi
21145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21146 ac_ext=c
21147ac_cpp='$CPP $CPPFLAGS'
21148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_c_compiler_gnu
21151
21152
21153fi
21154echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21155echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21156if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21157
21158cat >>confdefs.h <<\_ACEOF
21159#define HAVE_REINTERPRET_CAST
21160_ACEOF
21161
21162fi
21163
a848cd7e
SC
21164echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21165echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21166if test "${ac_cv_cxx_static_cast+set}" = set; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21168else
21169
21170
21171 ac_ext=cc
21172ac_cpp='$CXXCPP $CPPFLAGS'
21173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21176
21177 cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183#include <typeinfo>
21184class Base { public : Base () {} virtual void f () = 0; };
21185class Derived : public Base { public : Derived () {} virtual void f () {} };
21186int g (Derived&) { return 0; }
21187int
21188main ()
21189{
21190
21191Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext
21197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21198 (eval $ac_compile) 2>conftest.er1
a848cd7e 21199 ac_status=$?
ac1cb8d3
VS
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
a848cd7e
SC
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
6ebeb4c7 21205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_cv_cxx_static_cast=yes
21218else
21219 echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222ac_cv_cxx_static_cast=no
21223fi
ac1cb8d3 21224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21225 ac_ext=c
21226ac_cpp='$CPP $CPPFLAGS'
21227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229ac_compiler_gnu=$ac_cv_c_compiler_gnu
21230
21231
21232fi
21233echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21234echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21235if test "$ac_cv_cxx_static_cast" = yes; then
21236
21237cat >>confdefs.h <<\_ACEOF
21238#define HAVE_STATIC_CAST
21239_ACEOF
21240
21241fi
21242
21243
f56c22b4 21244if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21245 ac_ext=cc
21246ac_cpp='$CXXCPP $CPPFLAGS'
21247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21250
21251
f56c22b4
MW
21252 if test "$wxUSE_UNICODE" = "yes"; then
21253 std_string="std::wstring"
21254 char_type="wchar_t"
21255 else
21256 std_string="std::string"
21257 char_type="char"
21258 fi
21259
21260 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21261echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21262 cat >conftest.$ac_ext <<_ACEOF
21263/* confdefs.h. */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h. */
21268#include <string>
a848cd7e
SC
21269int
21270main ()
21271{
f56c22b4 21272$std_string foo;
a848cd7e
SC
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext
21278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21279 (eval $ac_compile) 2>conftest.er1
a848cd7e 21280 ac_status=$?
ac1cb8d3
VS
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
a848cd7e
SC
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
6ebeb4c7 21286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 echo "$as_me:$LINENO: result: yes" >&5
21299echo "${ECHO_T}yes" >&6
0a08f02a
MB
21300 cat >>confdefs.h <<\_ACEOF
21301#define HAVE_STD_WSTRING 1
21302_ACEOF
21303
a848cd7e
SC
21304else
21305 echo "$as_me: failed program was:" >&5
21306sed 's/^/| /' conftest.$ac_ext >&5
21307
21308echo "$as_me:$LINENO: result: no" >&5
21309echo "${ECHO_T}no" >&6
f56c22b4
MW
21310 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21311echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21312 cat >conftest.$ac_ext <<_ACEOF
21313/* confdefs.h. */
21314_ACEOF
21315cat confdefs.h >>conftest.$ac_ext
21316cat >>conftest.$ac_ext <<_ACEOF
21317/* end confdefs.h. */
21318
21319 #ifdef HAVE_WCHAR_H
21320 # ifdef __CYGWIN__
21321 # include <stddef.h>
21322 # endif
21323 # include <wchar.h>
21324 #endif
21325 #ifdef HAVE_STDLIB_H
21326 # include <stdlib.h>
21327 #endif
21328 #include <stdio.h>
21329 #include <string>
21330
21331int
21332main ()
21333{
f56c22b4
MW
21334std::basic_string<$char_type> foo;
21335 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext
21341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21342 (eval $ac_compile) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
6ebeb4c7 21349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; } &&
21355 { ac_try='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 echo "$as_me:$LINENO: result: yes" >&5
21362echo "${ECHO_T}yes" >&6
21363else
21364 echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367echo "$as_me:$LINENO: result: no" >&5
21368echo "${ECHO_T}no" >&6
f56c22b4 21369 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21370 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21371echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21372 { (exit 1); exit 1; }; }
21373 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21374 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21375echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21376 { (exit 1); exit 1; }; }
f56c22b4
MW
21377 else
21378 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21379echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21380 wxUSE_STD_STRING=no
21381 fi
21382
0a08f02a 21383
a848cd7e 21384fi
ac1cb8d3 21385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21386
0a08f02a
MB
21387fi
21388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21389
21390 ac_ext=c
21391ac_cpp='$CPP $CPPFLAGS'
21392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21394ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395
21396fi
21397
21398if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21399 ac_ext=cc
21400ac_cpp='$CXXCPP $CPPFLAGS'
21401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21404
21405
21406 echo "$as_me:$LINENO: checking for std::istream" >&5
21407echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21408if test "${ac_cv_type_std__istream+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21410else
21411 cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h. */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h. */
21417#include <iostream>
21418
21419int
21420main ()
21421{
21422if ((std::istream *) 0)
21423 return 0;
21424if (sizeof (std::istream))
21425 return 0;
21426 ;
21427 return 0;
21428}
21429_ACEOF
21430rm -f conftest.$ac_objext
21431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21432 (eval $ac_compile) 2>conftest.er1
21433 ac_status=$?
21434 grep -v '^ *+' conftest.er1 >conftest.err
21435 rm -f conftest.er1
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } &&
6ebeb4c7 21439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest.$ac_objext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_cv_type_std__istream=yes
21452else
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456ac_cv_type_std__istream=no
21457fi
21458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21459fi
21460echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21461echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21462if test $ac_cv_type_std__istream = yes; then
21463
21464cat >>confdefs.h <<_ACEOF
21465#define HAVE_STD__ISTREAM 1
21466_ACEOF
21467
21468
21469else
21470 wxUSE_STD_IOSTREAM=no
21471fi
21472echo "$as_me:$LINENO: checking for std::ostream" >&5
21473echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21474if test "${ac_cv_type_std__ostream+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476else
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#include <iostream>
21484
21485int
21486main ()
21487{
21488if ((std::ostream *) 0)
21489 return 0;
21490if (sizeof (std::ostream))
21491 return 0;
21492 ;
21493 return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext
21497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498 (eval $ac_compile) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
6ebeb4c7 21505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest.$ac_objext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 ac_cv_type_std__ostream=yes
21518else
21519 echo "$as_me: failed program was:" >&5
21520sed 's/^/| /' conftest.$ac_ext >&5
21521
21522ac_cv_type_std__ostream=no
21523fi
21524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21525fi
21526echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21527echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21528if test $ac_cv_type_std__ostream = yes; then
21529
21530cat >>confdefs.h <<_ACEOF
21531#define HAVE_STD__OSTREAM 1
21532_ACEOF
21533
21534
21535else
21536 wxUSE_STD_IOSTREAM=no
21537fi
21538
21539
21540 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21541 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21542 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21543echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21544 { (exit 1); exit 1; }; }
21545 else
21546 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21547echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21548 fi
f56c22b4
MW
21549 fi
21550
21551 ac_ext=c
21552ac_cpp='$CPP $CPPFLAGS'
21553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21555ac_compiler_gnu=$ac_cv_c_compiler_gnu
21556
21557fi
21558
21559if test "$wxUSE_STL" = "yes"; then
21560 ac_ext=cc
21561ac_cpp='$CXXCPP $CPPFLAGS'
21562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21565
21566
21567 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21568echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21569 cat >conftest.$ac_ext <<_ACEOF
21570/* confdefs.h. */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h. */
21575#include <string>
0a08f02a
MB
21576 #include <functional>
21577 #include <algorithm>
21578 #include <vector>
21579 #include <list>
a848cd7e
SC
21580int
21581main ()
21582{
0a08f02a
MB
21583std::vector<int> moo;
21584 std::list<int> foo;
21585 std::vector<int>::iterator it =
21586 std::find_if(moo.begin(), moo.end(),
21587 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592rm -f conftest.$ac_objext
21593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21594 (eval $ac_compile) 2>conftest.er1
a848cd7e 21595 ac_status=$?
ac1cb8d3
VS
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
a848cd7e
SC
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
6ebeb4c7 21601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 echo "$as_me:$LINENO: result: yes" >&5
21614echo "${ECHO_T}yes" >&6
a848cd7e
SC
21615else
21616 echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619echo "$as_me:$LINENO: result: no" >&5
21620echo "${ECHO_T}no" >&6
0a08f02a
MB
21621 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21622echo "$as_me: error: Basic STL functionality missing" >&2;}
21623 { (exit 1); exit 1; }; }
a848cd7e 21624fi
ac1cb8d3 21625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21626
21627 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21628echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21629 cat >conftest.$ac_ext <<_ACEOF
21630/* confdefs.h. */
21631_ACEOF
21632cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h. */
21635#include <string>
21636int
21637main ()
21638{
21639std::string foo, bar;
21640 foo.compare(bar);
21641 foo.compare(1, 1, bar);
21642 foo.compare(1, 1, bar, 1, 1);
21643 foo.compare("");
21644 foo.compare(1, 1, "");
21645 foo.compare(1, 1, "", 2);
21646 ;
21647 return 0;
21648}
21649_ACEOF
21650rm -f conftest.$ac_objext
21651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21652 (eval $ac_compile) 2>conftest.er1
a848cd7e 21653 ac_status=$?
ac1cb8d3
VS
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
a848cd7e
SC
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
6ebeb4c7 21659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; } &&
21665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }; then
21671 echo "$as_me:$LINENO: result: yes" >&5
21672echo "${ECHO_T}yes" >&6
21673 cat >>confdefs.h <<\_ACEOF
21674#define HAVE_STD_STRING_COMPARE 1
21675_ACEOF
21676
21677else
21678 echo "$as_me: failed program was:" >&5
21679sed 's/^/| /' conftest.$ac_ext >&5
21680
21681echo "$as_me:$LINENO: result: no" >&5
21682echo "${ECHO_T}no" >&6
21683fi
ac1cb8d3 21684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21685
21686 if test "${ac_cv_header_hash_map+set}" = set; then
21687 echo "$as_me:$LINENO: checking for hash_map" >&5
21688echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21689if test "${ac_cv_header_hash_map+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691fi
21692echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21693echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21694else
21695 # Is the header compilable?
21696echo "$as_me:$LINENO: checking hash_map usability" >&5
21697echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21698cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
21704$ac_includes_default
21705#include <hash_map>
21706_ACEOF
21707rm -f conftest.$ac_objext
21708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21709 (eval $ac_compile) 2>conftest.er1
bdcade0a 21710 ac_status=$?
ac1cb8d3
VS
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
bdcade0a
MB
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
6ebeb4c7 21716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_header_compiler=yes
21729else
21730 echo "$as_me: failed program was:" >&5
21731sed 's/^/| /' conftest.$ac_ext >&5
21732
21733ac_header_compiler=no
21734fi
ac1cb8d3 21735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21737echo "${ECHO_T}$ac_header_compiler" >&6
21738
21739# Is the header present?
21740echo "$as_me:$LINENO: checking hash_map presence" >&5
21741echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21742cat >conftest.$ac_ext <<_ACEOF
21743/* confdefs.h. */
21744_ACEOF
21745cat confdefs.h >>conftest.$ac_ext
21746cat >>conftest.$ac_ext <<_ACEOF
21747/* end confdefs.h. */
21748#include <hash_map>
21749_ACEOF
21750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } >/dev/null; then
21758 if test -s conftest.err; then
21759 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21761 else
21762 ac_cpp_err=
21763 fi
21764else
21765 ac_cpp_err=yes
21766fi
21767if test -z "$ac_cpp_err"; then
21768 ac_header_preproc=yes
21769else
21770 echo "$as_me: failed program was:" >&5
21771sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ac_header_preproc=no
21774fi
21775rm -f conftest.err conftest.$ac_ext
21776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21777echo "${ECHO_T}$ac_header_preproc" >&6
21778
21779# So? What about this header?
ac1cb8d3
VS
21780case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21781 yes:no: )
bdcade0a
MB
21782 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21783echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21784 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21785echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21786 ac_header_preproc=yes
bdcade0a 21787 ;;
ac1cb8d3 21788 no:yes:* )
bdcade0a
MB
21789 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21790echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21791 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21792echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21794echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21796echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21797 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21798echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21799 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21800echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21801 (
21802 cat <<\_ASBOX
ac1cb8d3
VS
21803## ----------------------------------------- ##
21804## Report this to wx-dev@lists.wxwidgets.org ##
21805## ----------------------------------------- ##
bdcade0a
MB
21806_ASBOX
21807 ) |
21808 sed "s/^/$as_me: WARNING: /" >&2
21809 ;;
21810esac
21811echo "$as_me:$LINENO: checking for hash_map" >&5
21812echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21813if test "${ac_cv_header_hash_map+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816 ac_cv_header_hash_map=$ac_header_preproc
21817fi
21818echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21819echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21820
21821fi
21822if test $ac_cv_header_hash_map = yes; then
21823 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21824echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
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 <hash_map>
21832 #include <hash_set>
21833int
21834main ()
21835{
21836std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21837 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21838 ;
21839 return 0;
21840}
21841_ACEOF
21842rm -f conftest.$ac_objext
21843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21844 (eval $ac_compile) 2>conftest.er1
bdcade0a 21845 ac_status=$?
ac1cb8d3
VS
21846 grep -v '^ *+' conftest.er1 >conftest.err
21847 rm -f conftest.er1
21848 cat conftest.err >&5
bdcade0a
MB
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } &&
6ebeb4c7 21851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; } &&
21857 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 echo "$as_me:$LINENO: result: yes" >&5
21864echo "${ECHO_T}yes" >&6
21865 cat >>confdefs.h <<\_ACEOF
21866#define HAVE_HASH_MAP 1
21867_ACEOF
21868
21869 cat >>confdefs.h <<\_ACEOF
21870#define HAVE_STD_HASH_MAP 1
21871_ACEOF
21872
21873else
21874 echo "$as_me: failed program was:" >&5
21875sed 's/^/| /' conftest.$ac_ext >&5
21876
21877echo "$as_me:$LINENO: result: no" >&5
21878echo "${ECHO_T}no" >&6
21879fi
ac1cb8d3 21880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21881
21882fi
21883
21884
21885
21886 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21887 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21888echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21889if test "${ac_cv_header_ext_hash_map+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891fi
21892echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21893echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21894else
21895 # Is the header compilable?
21896echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21897echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21898cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904$ac_includes_default
21905#include <ext/hash_map>
21906_ACEOF
21907rm -f conftest.$ac_objext
21908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21909 (eval $ac_compile) 2>conftest.er1
bdcade0a 21910 ac_status=$?
ac1cb8d3
VS
21911 grep -v '^ *+' conftest.er1 >conftest.err
21912 rm -f conftest.er1
21913 cat conftest.err >&5
bdcade0a
MB
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
6ebeb4c7 21916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ac_header_compiler=yes
21929else
21930 echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933ac_header_compiler=no
21934fi
ac1cb8d3 21935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21937echo "${ECHO_T}$ac_header_compiler" >&6
21938
21939# Is the header present?
21940echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21941echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21942cat >conftest.$ac_ext <<_ACEOF
21943/* confdefs.h. */
21944_ACEOF
21945cat confdefs.h >>conftest.$ac_ext
21946cat >>conftest.$ac_ext <<_ACEOF
21947/* end confdefs.h. */
21948#include <ext/hash_map>
21949_ACEOF
21950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21952 ac_status=$?
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } >/dev/null; then
21958 if test -s conftest.err; then
21959 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21960 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21961 else
21962 ac_cpp_err=
21963 fi
21964else
21965 ac_cpp_err=yes
21966fi
21967if test -z "$ac_cpp_err"; then
21968 ac_header_preproc=yes
21969else
21970 echo "$as_me: failed program was:" >&5
21971sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_header_preproc=no
21974fi
21975rm -f conftest.err conftest.$ac_ext
21976echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21977echo "${ECHO_T}$ac_header_preproc" >&6
21978
21979# So? What about this header?
ac1cb8d3
VS
21980case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21981 yes:no: )
bdcade0a
MB
21982 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21983echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21984 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21985echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21986 ac_header_preproc=yes
bdcade0a 21987 ;;
ac1cb8d3 21988 no:yes:* )
bdcade0a
MB
21989 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21990echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21991 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21992echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21993 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21994echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21996echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21997 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21998echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21999 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22000echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22001 (
22002 cat <<\_ASBOX
ac1cb8d3
VS
22003## ----------------------------------------- ##
22004## Report this to wx-dev@lists.wxwidgets.org ##
22005## ----------------------------------------- ##
bdcade0a
MB
22006_ASBOX
22007 ) |
22008 sed "s/^/$as_me: WARNING: /" >&2
22009 ;;
22010esac
22011echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22012echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22013if test "${ac_cv_header_ext_hash_map+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22015else
22016 ac_cv_header_ext_hash_map=$ac_header_preproc
22017fi
22018echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22019echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22020
22021fi
22022if test $ac_cv_header_ext_hash_map = yes; then
22023 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22024echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22025 cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h. */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h. */
22031#include <ext/hash_map>
22032 #include <ext/hash_set>
22033int
22034main ()
22035{
22036__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22037 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext
22043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22044 (eval $ac_compile) 2>conftest.er1
bdcade0a 22045 ac_status=$?
ac1cb8d3
VS
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
bdcade0a
MB
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
6ebeb4c7 22051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 echo "$as_me:$LINENO: result: yes" >&5
22064echo "${ECHO_T}yes" >&6
22065 cat >>confdefs.h <<\_ACEOF
22066#define HAVE_EXT_HASH_MAP 1
22067_ACEOF
22068
22069 cat >>confdefs.h <<\_ACEOF
22070#define HAVE_GNU_CXX_HASH_MAP 1
22071_ACEOF
22072
22073else
22074 echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
22077echo "$as_me:$LINENO: result: no" >&5
22078echo "${ECHO_T}no" >&6
22079fi
ac1cb8d3 22080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22081
22082fi
22083
22084
a848cd7e
SC
22085
22086 ac_ext=c
22087ac_cpp='$CPP $CPPFLAGS'
22088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091
22092fi
22093
22094
22095SEARCH_INCLUDE="\
22096 /usr/local/include \
22097 \
22098 /usr/Motif-2.1/include \
22099 /usr/Motif-1.2/include \
22100 /usr/include/Motif1.2 \
22101 /opt/xpm/include/X11 \
22102 /opt/GBxpm/include/ \
22103 /opt/GBxpm/X11/include/ \
22104 \
22105 /usr/dt/include \
22106 /usr/openwin/include \
22107 \
22108 /usr/include/Xm \
22109 \
22110 /usr/X11R6/include \
22111 /usr/X11R6.4/include \
22112 /usr/X11R5/include \
22113 /usr/X11R4/include \
22114 \
22115 /usr/include/X11R6 \
22116 /usr/include/X11R5 \
22117 /usr/include/X11R4 \
22118 \
22119 /usr/local/X11R6/include \
22120 /usr/local/X11R5/include \
22121 /usr/local/X11R4/include \
22122 \
22123 /usr/local/include/X11R6 \
22124 /usr/local/include/X11R5 \
22125 /usr/local/include/X11R4 \
22126 \
22127 /usr/X11/include \
22128 /usr/include/X11 \
22129 /usr/local/X11/include \
22130 /usr/local/include/X11 \
22131 \
22132 /usr/X386/include \
22133 /usr/x386/include \
22134 /usr/XFree86/include/X11 \
22135 \
22136 X:/XFree86/include \
22137 X:/XFree86/include/X11 \
22138 \
22139 /usr/include/gtk \
22140 /usr/local/include/gtk \
22141 /usr/include/glib \
22142 /usr/local/include/glib \
22143 \
22144 /usr/include/qt \
22145 /usr/local/include/qt \
22146 \
22147 /usr/local/arm/3.3.2/include \
22148 \
22149 /usr/include/windows \
22150 /usr/include/wine \
22151 /usr/local/include/wine \
22152 \
22153 /usr/unsupported/include \
22154 /usr/athena/include \
22155 /usr/local/x11r5/include \
22156 /usr/lpp/Xamples/include \
22157 \
22158 /usr/openwin/share/include"
22159
07158944 22160SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22161
3eca31dc
MW
22162if test "$build" != "$host" -a "$GCC" = yes; then
22163 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22164 cross_root=`dirname $cross_root`
22165 cross_root=`dirname $cross_root`
22166
22167 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22168 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22169
22170 if test -z "$PKG_CONFIG_PATH"; then
22171 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22172 export PKG_CONFIG_PATH
22173 fi
22174
22175 if test -z "$x_includes" -o "$x_includes" = NONE; then
22176
22177ac_find_includes=
22178for ac_dir in $SEARCH_INCLUDE /usr/include;
22179 do
22180 if test -f "$ac_dir/X11/Intrinsic.h"; then
22181 ac_find_includes=$ac_dir
22182 break
22183 fi
22184 done
22185
22186 x_includes=$ac_find_includes
22187 fi
22188 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22189
22190ac_find_libraries=
22191for ac_dir in $SEARCH_LIB /usr/lib;
22192 do
22193 for ac_extension in a so sl dylib dll.a; do
22194 if test -f "$ac_dir/libXt.$ac_extension"; then
22195 ac_find_libraries=$ac_dir
22196 break 2
22197 fi
22198 done
22199 done
22200
22201 x_libraries=$ac_find_libraries
22202 fi
22203 fi
22204fi
22205
a848cd7e
SC
22206
22207cat >confcache <<\_ACEOF
22208# This file is a shell script that caches the results of configure
22209# tests run on this system so they can be shared between configure
22210# scripts and configure runs, see configure's option --config-cache.
22211# It is not useful on other systems. If it contains results you don't
22212# want to keep, you may remove or edit it.
22213#
22214# config.status only pays attention to the cache file if you give it
22215# the --recheck option to rerun configure.
22216#
22217# `ac_cv_env_foo' variables (set or unset) will be overridden when
22218# loading this file, other *unset* `ac_cv_foo' will be assigned the
22219# following values.
22220
22221_ACEOF
22222
22223# The following way of writing the cache mishandles newlines in values,
22224# but we know of no workaround that is simple, portable, and efficient.
22225# So, don't put newlines in cache variables' values.
22226# Ultrix sh set writes to stderr and can't be redirected directly,
22227# and sets the high bit in the cache file unless we assign to the vars.
22228{
22229 (set) 2>&1 |
22230 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22231 *ac_space=\ *)
22232 # `set' does not quote correctly, so add quotes (double-quote
22233 # substitution turns \\\\ into \\, and sed turns \\ into \).
22234 sed -n \
ac1cb8d3
VS
22235 "s/'/'\\\\''/g;
22236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22237 ;;
22238 *)
22239 # `set' quotes correctly as required by POSIX, so do not add quotes.
22240 sed -n \
ac1cb8d3 22241 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22242 ;;
22243 esac;
22244} |
22245 sed '
22246 t clear
22247 : clear
22248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22249 t end
22250 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22251 : end' >>confcache
22252if diff $cache_file confcache >/dev/null 2>&1; then :; else
22253 if test -w $cache_file; then
22254 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22255 cat confcache >$cache_file
22256 else
22257 echo "not updating unwritable cache $cache_file"
22258 fi
22259fi
22260rm -f confcache
22261
22262if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22263 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22264echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22265if test "${wx_cv_lib_glibc21+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267else
22268
22269 cat >conftest.$ac_ext <<_ACEOF
22270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
22275#include <features.h>
22276int
22277main ()
22278{
22279
22280 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22281 #error not glibc2.1
22282 #endif
22283
22284 ;
22285 return 0;
22286}
22287_ACEOF
22288rm -f conftest.$ac_objext
22289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22290 (eval $ac_compile) 2>conftest.er1
a848cd7e 22291 ac_status=$?
ac1cb8d3
VS
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
a848cd7e
SC
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
6ebeb4c7 22297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309
22310 wx_cv_lib_glibc21=yes
22311
22312else
22313 echo "$as_me: failed program was:" >&5
22314sed 's/^/| /' conftest.$ac_ext >&5
22315
22316
22317 wx_cv_lib_glibc21=no
22318
22319
22320fi
ac1cb8d3 22321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22322
22323fi
22324echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22325echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22326 if test "$wx_cv_lib_glibc21" = "yes"; then
22327 cat >>confdefs.h <<\_ACEOF
22328#define wxHAVE_GLIBC2 1
22329_ACEOF
22330
22331 fi
22332fi
22333
22334if test "x$wx_cv_lib_glibc21" = "xyes"; then
22335 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22336 cat >>confdefs.h <<\_ACEOF
22337#define _GNU_SOURCE 1
22338_ACEOF
22339
22340 fi
22341fi
22342
22343
22344
22345if test "$wxUSE_REGEX" != "no"; then
22346 cat >>confdefs.h <<\_ACEOF
22347#define wxUSE_REGEX 1
22348_ACEOF
22349
22350
22351 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22352 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22353echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22354 wxUSE_REGEX=builtin
22355 fi
22356
22357 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22358 if test "${ac_cv_header_regex_h+set}" = set; then
22359 echo "$as_me:$LINENO: checking for regex.h" >&5
22360echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22361if test "${ac_cv_header_regex_h+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363fi
22364echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22365echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22366else
22367 # Is the header compilable?
22368echo "$as_me:$LINENO: checking regex.h usability" >&5
22369echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22370cat >conftest.$ac_ext <<_ACEOF
22371/* confdefs.h. */
22372_ACEOF
22373cat confdefs.h >>conftest.$ac_ext
22374cat >>conftest.$ac_ext <<_ACEOF
22375/* end confdefs.h. */
22376$ac_includes_default
22377#include <regex.h>
22378_ACEOF
22379rm -f conftest.$ac_objext
22380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22381 (eval $ac_compile) 2>conftest.er1
a848cd7e 22382 ac_status=$?
ac1cb8d3
VS
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
a848cd7e
SC
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } &&
6ebeb4c7 22388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; } &&
22394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ac_header_compiler=yes
22401else
22402 echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405ac_header_compiler=no
22406fi
ac1cb8d3 22407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22409echo "${ECHO_T}$ac_header_compiler" >&6
22410
22411# Is the header present?
22412echo "$as_me:$LINENO: checking regex.h presence" >&5
22413echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22414cat >conftest.$ac_ext <<_ACEOF
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420#include <regex.h>
22421_ACEOF
22422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } >/dev/null; then
22430 if test -s conftest.err; then
22431 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22433 else
22434 ac_cpp_err=
22435 fi
22436else
22437 ac_cpp_err=yes
22438fi
22439if test -z "$ac_cpp_err"; then
22440 ac_header_preproc=yes
22441else
22442 echo "$as_me: failed program was:" >&5
22443sed 's/^/| /' conftest.$ac_ext >&5
22444
22445 ac_header_preproc=no
22446fi
22447rm -f conftest.err conftest.$ac_ext
22448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22449echo "${ECHO_T}$ac_header_preproc" >&6
22450
22451# So? What about this header?
ac1cb8d3
VS
22452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22453 yes:no: )
a848cd7e
SC
22454 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22455echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22456 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22457echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22458 ac_header_preproc=yes
a848cd7e 22459 ;;
ac1cb8d3 22460 no:yes:* )
a848cd7e
SC
22461 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22462echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22463 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22464echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22466echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22468echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22469 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22470echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22471 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22472echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22473 (
22474 cat <<\_ASBOX
ac1cb8d3
VS
22475## ----------------------------------------- ##
22476## Report this to wx-dev@lists.wxwidgets.org ##
22477## ----------------------------------------- ##
a848cd7e
SC
22478_ASBOX
22479 ) |
22480 sed "s/^/$as_me: WARNING: /" >&2
22481 ;;
22482esac
22483echo "$as_me:$LINENO: checking for regex.h" >&5
22484echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22485if test "${ac_cv_header_regex_h+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488 ac_cv_header_regex_h=$ac_header_preproc
22489fi
22490echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22491echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22492
22493fi
22494if test $ac_cv_header_regex_h = yes; then
22495
22496for ac_func in regcomp
22497do
22498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22499echo "$as_me:$LINENO: checking for $ac_func" >&5
22500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22501if eval "test \"\${$as_ac_var+set}\" = set"; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503else
22504 cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
ac1cb8d3
VS
22510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22512#define $ac_func innocuous_$ac_func
22513
a848cd7e
SC
22514/* System header to define __stub macros and hopefully few prototypes,
22515 which can conflict with char $ac_func (); below.
22516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22518
a848cd7e
SC
22519#ifdef __STDC__
22520# include <limits.h>
22521#else
22522# include <assert.h>
22523#endif
ac1cb8d3
VS
22524
22525#undef $ac_func
22526
a848cd7e
SC
22527/* Override any gcc2 internal prototype to avoid an error. */
22528#ifdef __cplusplus
22529extern "C"
22530{
22531#endif
22532/* We use char because int might match the return type of a gcc2
22533 builtin and then its argument prototype would still apply. */
22534char $ac_func ();
22535/* The GNU C library defines this for functions which it implements
22536 to always fail with ENOSYS. Some functions are actually named
22537 something starting with __ and the normal name is an alias. */
22538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22539choke me
22540#else
22541char (*f) () = $ac_func;
22542#endif
22543#ifdef __cplusplus
22544}
22545#endif
22546
22547int
22548main ()
22549{
22550return f != $ac_func;
22551 ;
22552 return 0;
22553}
22554_ACEOF
22555rm -f conftest.$ac_objext conftest$ac_exeext
22556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22557 (eval $ac_link) 2>conftest.er1
a848cd7e 22558 ac_status=$?
ac1cb8d3
VS
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
a848cd7e
SC
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
6ebeb4c7 22564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 eval "$as_ac_var=yes"
22577else
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581eval "$as_ac_var=no"
22582fi
ac1cb8d3
VS
22583rm -f conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22585fi
22586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22588if test `eval echo '${'$as_ac_var'}'` = yes; then
22589 cat >>confdefs.h <<_ACEOF
22590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22591_ACEOF
22592
22593fi
22594done
22595
22596fi
22597
22598
22599
22600 if test "x$ac_cv_func_regcomp" != "xyes"; then
22601 if test "$wxUSE_REGEX" = "sys" ; then
22602 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22603echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22604 { (exit 1); exit 1; }; }
22605 else
22606 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22607echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22608 wxUSE_REGEX=builtin
22609 fi
22610 else
22611 wxUSE_REGEX=sys
22612 cat >>confdefs.h <<\_ACEOF
22613#define WX_NO_REGEX_ADVANCED 1
22614_ACEOF
22615
22616 fi
22617 fi
22618fi
22619
22620
22621ZLIB_LINK=
22622if test "$wxUSE_ZLIB" != "no" ; then
22623 cat >>confdefs.h <<\_ACEOF
22624#define wxUSE_ZLIB 1
22625_ACEOF
22626
22627
22628 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22629 if test "$USE_DARWIN" = 1; then
22630 system_zlib_h_ok="yes"
22631 else
22632 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22633echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22634if test "${ac_cv_header_zlib_h+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636else
22637 if test "$cross_compiling" = yes; then
22638 unset ac_cv_header_zlib_h
22639
22640else
22641 cat >conftest.$ac_ext <<_ACEOF
22642/* confdefs.h. */
22643_ACEOF
22644cat confdefs.h >>conftest.$ac_ext
22645cat >>conftest.$ac_ext <<_ACEOF
22646/* end confdefs.h. */
22647
22648 #include <zlib.h>
22649 #include <stdio.h>
22650
22651 int main()
22652 {
22653 FILE *f=fopen("conftestval", "w");
22654 if (!f) exit(1);
22655 fprintf(f, "%s",
22656 ZLIB_VERSION[0] == '1' &&
22657 (ZLIB_VERSION[2] > '1' ||
22658 (ZLIB_VERSION[2] == '1' &&
22659 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22660 exit(0);
22661 }
22662
22663_ACEOF
22664rm -f conftest$ac_exeext
22665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22666 (eval $ac_link) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; }; then
22675 ac_cv_header_zlib_h=`cat conftestval`
22676else
22677 echo "$as_me: program exited with status $ac_status" >&5
22678echo "$as_me: failed program was:" >&5
22679sed 's/^/| /' conftest.$ac_ext >&5
22680
22681( exit $ac_status )
22682ac_cv_header_zlib_h=no
22683fi
ac1cb8d3 22684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22685fi
22686
22687fi
22688echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22689echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22690 if test "${ac_cv_header_zlib_h+set}" = set; then
22691 echo "$as_me:$LINENO: checking for zlib.h" >&5
22692echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22693if test "${ac_cv_header_zlib_h+set}" = set; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22695fi
22696echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22697echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22698else
22699 # Is the header compilable?
22700echo "$as_me:$LINENO: checking zlib.h usability" >&5
22701echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22702cat >conftest.$ac_ext <<_ACEOF
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708$ac_includes_default
22709#include <zlib.h>
22710_ACEOF
22711rm -f conftest.$ac_objext
22712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22713 (eval $ac_compile) 2>conftest.er1
a848cd7e 22714 ac_status=$?
ac1cb8d3
VS
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
a848cd7e
SC
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } &&
6ebeb4c7 22720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; } &&
22726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; }; then
22732 ac_header_compiler=yes
22733else
22734 echo "$as_me: failed program was:" >&5
22735sed 's/^/| /' conftest.$ac_ext >&5
22736
22737ac_header_compiler=no
22738fi
ac1cb8d3 22739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22741echo "${ECHO_T}$ac_header_compiler" >&6
22742
22743# Is the header present?
22744echo "$as_me:$LINENO: checking zlib.h presence" >&5
22745echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22746cat >conftest.$ac_ext <<_ACEOF
22747/* confdefs.h. */
22748_ACEOF
22749cat confdefs.h >>conftest.$ac_ext
22750cat >>conftest.$ac_ext <<_ACEOF
22751/* end confdefs.h. */
22752#include <zlib.h>
22753_ACEOF
22754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22756 ac_status=$?
22757 grep -v '^ *+' conftest.er1 >conftest.err
22758 rm -f conftest.er1
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } >/dev/null; then
22762 if test -s conftest.err; then
22763 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22765 else
22766 ac_cpp_err=
22767 fi
22768else
22769 ac_cpp_err=yes
22770fi
22771if test -z "$ac_cpp_err"; then
22772 ac_header_preproc=yes
22773else
22774 echo "$as_me: failed program was:" >&5
22775sed 's/^/| /' conftest.$ac_ext >&5
22776
22777 ac_header_preproc=no
22778fi
22779rm -f conftest.err conftest.$ac_ext
22780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22781echo "${ECHO_T}$ac_header_preproc" >&6
22782
22783# So? What about this header?
ac1cb8d3
VS
22784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22785 yes:no: )
a848cd7e
SC
22786 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22787echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22788 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22789echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22790 ac_header_preproc=yes
a848cd7e 22791 ;;
ac1cb8d3 22792 no:yes:* )
a848cd7e
SC
22793 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22794echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22795 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22796echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22797 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22798echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22799 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22800echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22801 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22802echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22803 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22804echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22805 (
22806 cat <<\_ASBOX
ac1cb8d3
VS
22807## ----------------------------------------- ##
22808## Report this to wx-dev@lists.wxwidgets.org ##
22809## ----------------------------------------- ##
a848cd7e
SC
22810_ASBOX
22811 ) |
22812 sed "s/^/$as_me: WARNING: /" >&2
22813 ;;
22814esac
22815echo "$as_me:$LINENO: checking for zlib.h" >&5
22816echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22817if test "${ac_cv_header_zlib_h+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819else
22820 ac_cv_header_zlib_h=$ac_header_preproc
22821fi
22822echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22823echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22824
22825fi
22826
22827
22828
22829 system_zlib_h_ok=$ac_cv_header_zlib_h
22830 fi
22831
22832 if test "$system_zlib_h_ok" = "yes"; then
22833 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22834echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22835if test "${ac_cv_lib_z_deflate+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22837else
22838 ac_check_lib_save_LIBS=$LIBS
22839LIBS="-lz $LIBS"
22840cat >conftest.$ac_ext <<_ACEOF
22841/* confdefs.h. */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h. */
22846
22847/* Override any gcc2 internal prototype to avoid an error. */
22848#ifdef __cplusplus
22849extern "C"
22850#endif
22851/* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22853char deflate ();
22854int
22855main ()
22856{
22857deflate ();
22858 ;
22859 return 0;
22860}
22861_ACEOF
22862rm -f conftest.$ac_objext conftest$ac_exeext
22863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22864 (eval $ac_link) 2>conftest.er1
a848cd7e 22865 ac_status=$?
ac1cb8d3
VS
22866 grep -v '^ *+' conftest.er1 >conftest.err
22867 rm -f conftest.er1
22868 cat conftest.err >&5
a848cd7e
SC
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } &&
6ebeb4c7 22871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_lib_z_deflate=yes
22884else
22885 echo "$as_me: failed program was:" >&5
22886sed 's/^/| /' conftest.$ac_ext >&5
22887
22888ac_cv_lib_z_deflate=no
22889fi
ac1cb8d3
VS
22890rm -f conftest.err conftest.$ac_objext \
22891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22892LIBS=$ac_check_lib_save_LIBS
22893fi
22894echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22895echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22896if test $ac_cv_lib_z_deflate = yes; then
22897 ZLIB_LINK=" -lz"
22898fi
22899
22900 fi
22901
22902 if test "x$ZLIB_LINK" = "x" ; then
22903 if test "$wxUSE_ZLIB" = "sys" ; then
22904 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22905echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22906 { (exit 1); exit 1; }; }
22907 else
22908 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22909echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22910 wxUSE_ZLIB=builtin
22911 fi
22912 else
22913 wxUSE_ZLIB=sys
22914 fi
22915 fi
22916fi
22917
22918
22919PNG_LINK=
22920if test "$wxUSE_LIBPNG" != "no" ; then
22921 cat >>confdefs.h <<\_ACEOF
22922#define wxUSE_LIBPNG 1
22923_ACEOF
22924
22925
22926 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22927 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22928echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22929 wxUSE_LIBPNG=sys
22930 fi
22931
22932 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22933 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22934echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22935 wxUSE_LIBPNG=builtin
22936 fi
22937
22938 if test "$wxUSE_MGL" != 1 ; then
22939 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22940 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22941echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22942if test "${ac_cv_header_png_h+set}" = set; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22944else
22945 if test "$cross_compiling" = yes; then
22946 unset ac_cv_header_png_h
22947
22948else
22949 cat >conftest.$ac_ext <<_ACEOF
22950/* confdefs.h. */
22951_ACEOF
22952cat confdefs.h >>conftest.$ac_ext
22953cat >>conftest.$ac_ext <<_ACEOF
22954/* end confdefs.h. */
22955
22956 #include <png.h>
22957 #include <stdio.h>
22958
22959 int main()
22960 {
22961 FILE *f=fopen("conftestval", "w");
22962 if (!f) exit(1);
22963 fprintf(f, "%s",
22964 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22965 exit(0);
22966 }
22967
22968_ACEOF
22969rm -f conftest$ac_exeext
22970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971 (eval $ac_link) 2>&5
22972 ac_status=$?
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 ac_cv_header_png_h=`cat conftestval`
22981else
22982 echo "$as_me: program exited with status $ac_status" >&5
22983echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986( exit $ac_status )
22987ac_cv_header_png_h=no
22988fi
ac1cb8d3 22989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22990fi
22991
22992fi
22993echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22994echo "${ECHO_T}$ac_cv_header_png_h" >&6
22995 if test "${ac_cv_header_png_h+set}" = set; then
22996 echo "$as_me:$LINENO: checking for png.h" >&5
22997echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22998if test "${ac_cv_header_png_h+set}" = set; then
22999 echo $ECHO_N "(cached) $ECHO_C" >&6
23000fi
23001echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23002echo "${ECHO_T}$ac_cv_header_png_h" >&6
23003else
23004 # Is the header compilable?
23005echo "$as_me:$LINENO: checking png.h usability" >&5
23006echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23007cat >conftest.$ac_ext <<_ACEOF
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013$ac_includes_default
23014#include <png.h>
23015_ACEOF
23016rm -f conftest.$ac_objext
23017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23018 (eval $ac_compile) 2>conftest.er1
a848cd7e 23019 ac_status=$?
ac1cb8d3
VS
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
a848cd7e
SC
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
6ebeb4c7 23025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; } &&
23031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 ac_header_compiler=yes
23038else
23039 echo "$as_me: failed program was:" >&5
23040sed 's/^/| /' conftest.$ac_ext >&5
23041
23042ac_header_compiler=no
23043fi
ac1cb8d3 23044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23046echo "${ECHO_T}$ac_header_compiler" >&6
23047
23048# Is the header present?
23049echo "$as_me:$LINENO: checking png.h presence" >&5
23050echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23051cat >conftest.$ac_ext <<_ACEOF
23052/* confdefs.h. */
23053_ACEOF
23054cat confdefs.h >>conftest.$ac_ext
23055cat >>conftest.$ac_ext <<_ACEOF
23056/* end confdefs.h. */
23057#include <png.h>
23058_ACEOF
23059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23061 ac_status=$?
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } >/dev/null; then
23067 if test -s conftest.err; then
23068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23070 else
23071 ac_cpp_err=
23072 fi
23073else
23074 ac_cpp_err=yes
23075fi
23076if test -z "$ac_cpp_err"; then
23077 ac_header_preproc=yes
23078else
23079 echo "$as_me: failed program was:" >&5
23080sed 's/^/| /' conftest.$ac_ext >&5
23081
23082 ac_header_preproc=no
23083fi
23084rm -f conftest.err conftest.$ac_ext
23085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23086echo "${ECHO_T}$ac_header_preproc" >&6
23087
23088# So? What about this header?
ac1cb8d3
VS
23089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23090 yes:no: )
a848cd7e
SC
23091 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23092echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23093 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23094echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23095 ac_header_preproc=yes
a848cd7e 23096 ;;
ac1cb8d3 23097 no:yes:* )
a848cd7e
SC
23098 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23099echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23100 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23101echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23103echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23105echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23106 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23107echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23108 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23109echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23110 (
23111 cat <<\_ASBOX
ac1cb8d3
VS
23112## ----------------------------------------- ##
23113## Report this to wx-dev@lists.wxwidgets.org ##
23114## ----------------------------------------- ##
a848cd7e
SC
23115_ASBOX
23116 ) |
23117 sed "s/^/$as_me: WARNING: /" >&2
23118 ;;
23119esac
23120echo "$as_me:$LINENO: checking for png.h" >&5
23121echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23122if test "${ac_cv_header_png_h+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124else
23125 ac_cv_header_png_h=$ac_header_preproc
23126fi
23127echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23128echo "${ECHO_T}$ac_cv_header_png_h" >&6
23129
23130fi
23131
23132
23133
23134 if test "$ac_cv_header_png_h" = "yes"; then
23135 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23136echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23137if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139else
23140 ac_check_lib_save_LIBS=$LIBS
23141LIBS="-lpng -lz -lm $LIBS"
23142cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148
23149/* Override any gcc2 internal prototype to avoid an error. */
23150#ifdef __cplusplus
23151extern "C"
23152#endif
23153/* We use char because int might match the return type of a gcc2
23154 builtin and then its argument prototype would still apply. */
23155char png_check_sig ();
23156int
23157main ()
23158{
23159png_check_sig ();
23160 ;
23161 return 0;
23162}
23163_ACEOF
23164rm -f conftest.$ac_objext conftest$ac_exeext
23165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23166 (eval $ac_link) 2>conftest.er1
a848cd7e 23167 ac_status=$?
ac1cb8d3
VS
23168 grep -v '^ *+' conftest.er1 >conftest.err
23169 rm -f conftest.er1
23170 cat conftest.err >&5
a848cd7e
SC
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } &&
6ebeb4c7 23173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; } &&
23179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; }; then
23185 ac_cv_lib_png_png_check_sig=yes
23186else
23187 echo "$as_me: failed program was:" >&5
23188sed 's/^/| /' conftest.$ac_ext >&5
23189
23190ac_cv_lib_png_png_check_sig=no
23191fi
ac1cb8d3
VS
23192rm -f conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23194LIBS=$ac_check_lib_save_LIBS
23195fi
23196echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23197echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23198if test $ac_cv_lib_png_png_check_sig = yes; then
23199 PNG_LINK=" -lpng -lz"
23200fi
23201
23202 fi
23203
23204 if test "x$PNG_LINK" = "x" ; then
23205 if test "$wxUSE_LIBPNG" = "sys" ; then
23206 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23207echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23208 { (exit 1); exit 1; }; }
23209 else
23210 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23211echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23212 wxUSE_LIBPNG=builtin
23213 fi
23214 else
23215 wxUSE_LIBPNG=sys
23216 fi
23217 fi
23218 fi
23219
23220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23221fi
23222
23223
23224JPEG_LINK=
23225if test "$wxUSE_LIBJPEG" != "no" ; then
23226 cat >>confdefs.h <<\_ACEOF
23227#define wxUSE_LIBJPEG 1
23228_ACEOF
23229
23230
23231 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23232 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23233echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23234 wxUSE_LIBJPEG=sys
23235 fi
23236
23237 if test "$wxUSE_MGL" != 1 ; then
23238 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23239 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23240echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23241 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243else
23244 cat >conftest.$ac_ext <<_ACEOF
23245/* confdefs.h. */
23246_ACEOF
23247cat confdefs.h >>conftest.$ac_ext
23248cat >>conftest.$ac_ext <<_ACEOF
23249/* end confdefs.h. */
23250
23251 #undef HAVE_STDLIB_H
23252 #include <stdio.h>
23253 #include <jpeglib.h>
23254
23255int
23256main ()
23257{
23258
23259
23260 ;
23261 return 0;
23262}
23263_ACEOF
23264rm -f conftest.$ac_objext
23265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23266 (eval $ac_compile) 2>conftest.er1
a848cd7e 23267 ac_status=$?
ac1cb8d3
VS
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
a848cd7e
SC
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
6ebeb4c7 23273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 ac_cv_header_jpeglib_h=yes
23286else
23287 echo "$as_me: failed program was:" >&5
23288sed 's/^/| /' conftest.$ac_ext >&5
23289
23290ac_cv_header_jpeglib_h=no
23291
23292fi
ac1cb8d3 23293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23294
23295fi
23296
23297 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23298echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23299
23300 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23301 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23302echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23303if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 ac_check_lib_save_LIBS=$LIBS
23307LIBS="-ljpeg $LIBS"
23308cat >conftest.$ac_ext <<_ACEOF
23309/* confdefs.h. */
23310_ACEOF
23311cat confdefs.h >>conftest.$ac_ext
23312cat >>conftest.$ac_ext <<_ACEOF
23313/* end confdefs.h. */
23314
23315/* Override any gcc2 internal prototype to avoid an error. */
23316#ifdef __cplusplus
23317extern "C"
23318#endif
23319/* We use char because int might match the return type of a gcc2
23320 builtin and then its argument prototype would still apply. */
23321char jpeg_read_header ();
23322int
23323main ()
23324{
23325jpeg_read_header ();
23326 ;
23327 return 0;
23328}
23329_ACEOF
23330rm -f conftest.$ac_objext conftest$ac_exeext
23331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23332 (eval $ac_link) 2>conftest.er1
a848cd7e 23333 ac_status=$?
ac1cb8d3
VS
23334 grep -v '^ *+' conftest.er1 >conftest.err
23335 rm -f conftest.er1
23336 cat conftest.err >&5
a848cd7e
SC
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
6ebeb4c7 23339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23351 ac_cv_lib_jpeg_jpeg_read_header=yes
23352else
23353 echo "$as_me: failed program was:" >&5
23354sed 's/^/| /' conftest.$ac_ext >&5
23355
23356ac_cv_lib_jpeg_jpeg_read_header=no
23357fi
ac1cb8d3
VS
23358rm -f conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23360LIBS=$ac_check_lib_save_LIBS
23361fi
23362echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23363echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23364if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23365 JPEG_LINK=" -ljpeg"
23366fi
23367
23368 fi
23369
23370 if test "x$JPEG_LINK" = "x" ; then
23371 if test "$wxUSE_LIBJPEG" = "sys" ; then
23372 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23373echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23374 { (exit 1); exit 1; }; }
23375 else
23376 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23377echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23378 wxUSE_LIBJPEG=builtin
23379 fi
23380 else
23381 wxUSE_LIBJPEG=sys
23382 fi
23383 fi
23384 fi
23385fi
23386
23387
23388TIFF_LINK=
23389TIFF_PREREQ_LINKS=-lm
23390if test "$wxUSE_LIBTIFF" != "no" ; then
23391 cat >>confdefs.h <<\_ACEOF
23392#define wxUSE_LIBTIFF 1
23393_ACEOF
23394
23395
23396 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23397 if test "$wxUSE_LIBJPEG" = "sys"; then
23398 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23399 fi
23400 if test "$wxUSE_ZLIB" = "sys"; then
23401 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23402 fi
23403 if test "${ac_cv_header_tiffio_h+set}" = set; then
23404 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23405echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23406if test "${ac_cv_header_tiffio_h+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23408fi
23409echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23410echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23411else
23412 # Is the header compilable?
23413echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23414echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23415cat >conftest.$ac_ext <<_ACEOF
23416/* confdefs.h. */
23417_ACEOF
23418cat confdefs.h >>conftest.$ac_ext
23419cat >>conftest.$ac_ext <<_ACEOF
23420/* end confdefs.h. */
23421$ac_includes_default
23422#include <tiffio.h>
23423_ACEOF
23424rm -f conftest.$ac_objext
23425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23426 (eval $ac_compile) 2>conftest.er1
a848cd7e 23427 ac_status=$?
ac1cb8d3
VS
23428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
a848cd7e
SC
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
6ebeb4c7 23433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; } &&
23439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445 ac_header_compiler=yes
23446else
23447 echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450ac_header_compiler=no
23451fi
ac1cb8d3 23452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23453echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23454echo "${ECHO_T}$ac_header_compiler" >&6
23455
23456# Is the header present?
23457echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23458echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23459cat >conftest.$ac_ext <<_ACEOF
23460/* confdefs.h. */
23461_ACEOF
23462cat confdefs.h >>conftest.$ac_ext
23463cat >>conftest.$ac_ext <<_ACEOF
23464/* end confdefs.h. */
23465#include <tiffio.h>
23466_ACEOF
23467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } >/dev/null; then
23475 if test -s conftest.err; then
23476 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23478 else
23479 ac_cpp_err=
23480 fi
23481else
23482 ac_cpp_err=yes
23483fi
23484if test -z "$ac_cpp_err"; then
23485 ac_header_preproc=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ac_header_preproc=no
23491fi
23492rm -f conftest.err conftest.$ac_ext
23493echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23494echo "${ECHO_T}$ac_header_preproc" >&6
23495
23496# So? What about this header?
ac1cb8d3
VS
23497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23498 yes:no: )
a848cd7e
SC
23499 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23500echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23501 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23502echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23503 ac_header_preproc=yes
a848cd7e 23504 ;;
ac1cb8d3 23505 no:yes:* )
a848cd7e
SC
23506 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23507echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23508 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23509echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23510 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23511echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23512 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23513echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23514 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23515echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23516 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23517echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23518 (
23519 cat <<\_ASBOX
ac1cb8d3
VS
23520## ----------------------------------------- ##
23521## Report this to wx-dev@lists.wxwidgets.org ##
23522## ----------------------------------------- ##
a848cd7e
SC
23523_ASBOX
23524 ) |
23525 sed "s/^/$as_me: WARNING: /" >&2
23526 ;;
23527esac
23528echo "$as_me:$LINENO: checking for tiffio.h" >&5
23529echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23530if test "${ac_cv_header_tiffio_h+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532else
23533 ac_cv_header_tiffio_h=$ac_header_preproc
23534fi
23535echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23536echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23537
23538fi
23539if test $ac_cv_header_tiffio_h = yes; then
23540
23541 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23542echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23543if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23545else
23546 ac_check_lib_save_LIBS=$LIBS
23547LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23548cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
23554
23555/* Override any gcc2 internal prototype to avoid an error. */
23556#ifdef __cplusplus
23557extern "C"
23558#endif
23559/* We use char because int might match the return type of a gcc2
23560 builtin and then its argument prototype would still apply. */
23561char TIFFError ();
23562int
23563main ()
23564{
23565TIFFError ();
23566 ;
23567 return 0;
23568}
23569_ACEOF
23570rm -f conftest.$ac_objext conftest$ac_exeext
23571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23572 (eval $ac_link) 2>conftest.er1
a848cd7e 23573 ac_status=$?
ac1cb8d3
VS
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
a848cd7e
SC
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
6ebeb4c7 23579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; } &&
23585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; }; then
23591 ac_cv_lib_tiff_TIFFError=yes
23592else
23593 echo "$as_me: failed program was:" >&5
23594sed 's/^/| /' conftest.$ac_ext >&5
23595
23596ac_cv_lib_tiff_TIFFError=no
23597fi
ac1cb8d3
VS
23598rm -f conftest.err conftest.$ac_objext \
23599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23600LIBS=$ac_check_lib_save_LIBS
23601fi
23602echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23603echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23604if test $ac_cv_lib_tiff_TIFFError = yes; then
23605 TIFF_LINK=" -ltiff"
23606fi
23607
23608
23609
23610fi
23611
23612
23613
23614 if test "x$TIFF_LINK" = "x" ; then
23615 if test "$wxUSE_LIBTIFF" = "sys" ; then
23616 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23617echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23618 { (exit 1); exit 1; }; }
23619 else
23620 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23621echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23622 wxUSE_LIBTIFF=builtin
23623 fi
23624 else
23625 wxUSE_LIBTIFF=sys
23626 fi
23627 fi
23628fi
23629
23630
47a7e797
MW
23631if test "$wxUSE_WCHAR_T" != "yes"; then
23632 if test "$wxUSE_EXPAT" != "no"; then
23633 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23634echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23635 wxUSE_EXPAT=no
23636 fi
23637 if test "$wxUSE_XML" != "no"; then
23638 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23639echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23640 wxUSE_XML=no
23641 fi
23642fi
23643
a848cd7e
SC
23644if test "$wxUSE_EXPAT" != "no"; then
23645 wxUSE_XML=yes
23646 cat >>confdefs.h <<\_ACEOF
23647#define wxUSE_EXPAT 1
23648_ACEOF
23649
23650 cat >>confdefs.h <<\_ACEOF
23651#define wxUSE_XML 1
23652_ACEOF
23653
23654
23655 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23656 if test "${ac_cv_header_expat_h+set}" = set; then
23657 echo "$as_me:$LINENO: checking for expat.h" >&5
23658echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23659if test "${ac_cv_header_expat_h+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23661fi
23662echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23663echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23664else
23665 # Is the header compilable?
23666echo "$as_me:$LINENO: checking expat.h usability" >&5
23667echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23668cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h. */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h. */
23674$ac_includes_default
23675#include <expat.h>
23676_ACEOF
23677rm -f conftest.$ac_objext
23678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23679 (eval $ac_compile) 2>conftest.er1
a848cd7e 23680 ac_status=$?
ac1cb8d3
VS
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
a848cd7e
SC
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
6ebeb4c7 23686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23689 ac_status=$?
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; } &&
23692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 ac_header_compiler=yes
23699else
23700 echo "$as_me: failed program was:" >&5
23701sed 's/^/| /' conftest.$ac_ext >&5
23702
23703ac_header_compiler=no
23704fi
ac1cb8d3 23705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23707echo "${ECHO_T}$ac_header_compiler" >&6
23708
23709# Is the header present?
23710echo "$as_me:$LINENO: checking expat.h presence" >&5
23711echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23712cat >conftest.$ac_ext <<_ACEOF
23713/* confdefs.h. */
23714_ACEOF
23715cat confdefs.h >>conftest.$ac_ext
23716cat >>conftest.$ac_ext <<_ACEOF
23717/* end confdefs.h. */
23718#include <expat.h>
23719_ACEOF
23720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } >/dev/null; then
23728 if test -s conftest.err; then
23729 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23731 else
23732 ac_cpp_err=
23733 fi
23734else
23735 ac_cpp_err=yes
23736fi
23737if test -z "$ac_cpp_err"; then
23738 ac_header_preproc=yes
23739else
23740 echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 ac_header_preproc=no
23744fi
23745rm -f conftest.err conftest.$ac_ext
23746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23747echo "${ECHO_T}$ac_header_preproc" >&6
23748
23749# So? What about this header?
ac1cb8d3
VS
23750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23751 yes:no: )
a848cd7e
SC
23752 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23753echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23754 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23755echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23756 ac_header_preproc=yes
a848cd7e 23757 ;;
ac1cb8d3 23758 no:yes:* )
a848cd7e
SC
23759 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23760echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23761 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23762echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23763 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23764echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23765 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23766echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23767 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23768echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23769 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23770echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23771 (
23772 cat <<\_ASBOX
ac1cb8d3
VS
23773## ----------------------------------------- ##
23774## Report this to wx-dev@lists.wxwidgets.org ##
23775## ----------------------------------------- ##
a848cd7e
SC
23776_ASBOX
23777 ) |
23778 sed "s/^/$as_me: WARNING: /" >&2
23779 ;;
23780esac
23781echo "$as_me:$LINENO: checking for expat.h" >&5
23782echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23783if test "${ac_cv_header_expat_h+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785else
23786 ac_cv_header_expat_h=$ac_header_preproc
23787fi
23788echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23789echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23790
23791fi
23792if test $ac_cv_header_expat_h = yes; then
23793 found_expat_h=1
23794fi
23795
23796
23797 if test "x$found_expat_h" = "x1"; then
23798 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23799echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23800if test "${wx_cv_expat_is_not_broken+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23802else
23803
23804
23805
23806 ac_ext=cc
23807ac_cpp='$CXXCPP $CPPFLAGS'
23808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23811
23812 cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h. */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h. */
23818#include <expat.h>
23819int
23820main ()
23821{
23822
23823 ;
23824 return 0;
23825}
23826_ACEOF
23827rm -f conftest.$ac_objext
23828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23829 (eval $ac_compile) 2>conftest.er1
a848cd7e 23830 ac_status=$?
ac1cb8d3
VS
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
a848cd7e
SC
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } &&
6ebeb4c7 23836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; } &&
23842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23845 ac_status=$?
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; }; then
23848 wx_cv_expat_is_not_broken=yes
23849else
23850 echo "$as_me: failed program was:" >&5
23851sed 's/^/| /' conftest.$ac_ext >&5
23852
23853wx_cv_expat_is_not_broken=no
23854
23855fi
ac1cb8d3 23856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23857 ac_ext=c
23858ac_cpp='$CPP $CPPFLAGS'
23859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23861ac_compiler_gnu=$ac_cv_c_compiler_gnu
23862
23863
23864
23865fi
23866echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23867echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23868 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23869 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23870echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23871if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873else
23874 ac_check_lib_save_LIBS=$LIBS
23875LIBS="-lexpat $LIBS"
23876cat >conftest.$ac_ext <<_ACEOF
23877/* confdefs.h. */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h. */
23882
23883/* Override any gcc2 internal prototype to avoid an error. */
23884#ifdef __cplusplus
23885extern "C"
23886#endif
23887/* We use char because int might match the return type of a gcc2
23888 builtin and then its argument prototype would still apply. */
23889char XML_ParserCreate ();
23890int
23891main ()
23892{
23893XML_ParserCreate ();
23894 ;
23895 return 0;
23896}
23897_ACEOF
23898rm -f conftest.$ac_objext conftest$ac_exeext
23899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23900 (eval $ac_link) 2>conftest.er1
a848cd7e 23901 ac_status=$?
ac1cb8d3
VS
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
a848cd7e
SC
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } &&
6ebeb4c7 23907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_lib_expat_XML_ParserCreate=yes
23920else
23921 echo "$as_me: failed program was:" >&5
23922sed 's/^/| /' conftest.$ac_ext >&5
23923
23924ac_cv_lib_expat_XML_ParserCreate=no
23925fi
ac1cb8d3
VS
23926rm -f conftest.err conftest.$ac_objext \
23927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23928LIBS=$ac_check_lib_save_LIBS
23929fi
23930echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23931echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23932if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23933 EXPAT_LINK=" -lexpat"
23934fi
23935
23936 fi
23937 fi
23938 if test "x$EXPAT_LINK" = "x" ; then
23939 if test "$wxUSE_EXPAT" = "sys" ; then
23940 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23941echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23942 { (exit 1); exit 1; }; }
23943 else
23944 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23945echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23946 wxUSE_EXPAT=builtin
23947 fi
23948 else
23949 wxUSE_EXPAT=sys
23950 fi
23951 fi
23952 if test "$wxUSE_EXPAT" = "builtin" ; then
23953
23954
23955subdirs="$subdirs src/expat"
23956
23957 fi
23958fi
23959
23960
23961
23962if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23963 if test "${ac_cv_header_mspack_h+set}" = set; then
23964 echo "$as_me:$LINENO: checking for mspack.h" >&5
23965echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23966if test "${ac_cv_header_mspack_h+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968fi
23969echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23970echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23971else
23972 # Is the header compilable?
23973echo "$as_me:$LINENO: checking mspack.h usability" >&5
23974echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23975cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981$ac_includes_default
23982#include <mspack.h>
23983_ACEOF
23984rm -f conftest.$ac_objext
23985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23986 (eval $ac_compile) 2>conftest.er1
a848cd7e 23987 ac_status=$?
ac1cb8d3
VS
23988 grep -v '^ *+' conftest.er1 >conftest.err
23989 rm -f conftest.er1
23990 cat conftest.err >&5
a848cd7e
SC
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } &&
6ebeb4c7 23993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995 (eval $ac_try) 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); }; } &&
23999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24002 ac_status=$?
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 ac_header_compiler=yes
24006else
24007 echo "$as_me: failed program was:" >&5
24008sed 's/^/| /' conftest.$ac_ext >&5
24009
24010ac_header_compiler=no
24011fi
ac1cb8d3 24012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24014echo "${ECHO_T}$ac_header_compiler" >&6
24015
24016# Is the header present?
24017echo "$as_me:$LINENO: checking mspack.h presence" >&5
24018echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24019cat >conftest.$ac_ext <<_ACEOF
24020/* confdefs.h. */
24021_ACEOF
24022cat confdefs.h >>conftest.$ac_ext
24023cat >>conftest.$ac_ext <<_ACEOF
24024/* end confdefs.h. */
24025#include <mspack.h>
24026_ACEOF
24027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24029 ac_status=$?
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } >/dev/null; then
24035 if test -s conftest.err; then
24036 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24038 else
24039 ac_cpp_err=
24040 fi
24041else
24042 ac_cpp_err=yes
24043fi
24044if test -z "$ac_cpp_err"; then
24045 ac_header_preproc=yes
24046else
24047 echo "$as_me: failed program was:" >&5
24048sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ac_header_preproc=no
24051fi
24052rm -f conftest.err conftest.$ac_ext
24053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24054echo "${ECHO_T}$ac_header_preproc" >&6
24055
24056# So? What about this header?
ac1cb8d3
VS
24057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24058 yes:no: )
a848cd7e
SC
24059 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24060echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24061 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24062echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24063 ac_header_preproc=yes
a848cd7e 24064 ;;
ac1cb8d3 24065 no:yes:* )
a848cd7e
SC
24066 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24067echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24068 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24069echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24070 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24071echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24072 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24073echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24074 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24075echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24076 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24077echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24078 (
24079 cat <<\_ASBOX
ac1cb8d3
VS
24080## ----------------------------------------- ##
24081## Report this to wx-dev@lists.wxwidgets.org ##
24082## ----------------------------------------- ##
a848cd7e
SC
24083_ASBOX
24084 ) |
24085 sed "s/^/$as_me: WARNING: /" >&2
24086 ;;
24087esac
24088echo "$as_me:$LINENO: checking for mspack.h" >&5
24089echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24090if test "${ac_cv_header_mspack_h+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24092else
24093 ac_cv_header_mspack_h=$ac_header_preproc
24094fi
24095echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24096echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24097
24098fi
24099if test $ac_cv_header_mspack_h = yes; then
24100 found_mspack_h=1
24101fi
24102
24103
24104 if test "x$found_mspack_h" = "x1"; then
24105 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24106echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24107if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110 ac_check_lib_save_LIBS=$LIBS
24111LIBS="-lmspack $LIBS"
24112cat >conftest.$ac_ext <<_ACEOF
24113/* confdefs.h. */
24114_ACEOF
24115cat confdefs.h >>conftest.$ac_ext
24116cat >>conftest.$ac_ext <<_ACEOF
24117/* end confdefs.h. */
24118
24119/* Override any gcc2 internal prototype to avoid an error. */
24120#ifdef __cplusplus
24121extern "C"
24122#endif
24123/* We use char because int might match the return type of a gcc2
24124 builtin and then its argument prototype would still apply. */
24125char mspack_create_chm_decompressor ();
24126int
24127main ()
24128{
24129mspack_create_chm_decompressor ();
24130 ;
24131 return 0;
24132}
24133_ACEOF
24134rm -f conftest.$ac_objext conftest$ac_exeext
24135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24136 (eval $ac_link) 2>conftest.er1
a848cd7e 24137 ac_status=$?
ac1cb8d3
VS
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
a848cd7e
SC
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
6ebeb4c7 24143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145 (eval $ac_try) 2>&5
24146 ac_status=$?
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; } &&
24149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151 (eval $ac_try) 2>&5
24152 ac_status=$?
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; }; then
24155 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24156else
24157 echo "$as_me: failed program was:" >&5
24158sed 's/^/| /' conftest.$ac_ext >&5
24159
24160ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24161fi
ac1cb8d3
VS
24162rm -f conftest.err conftest.$ac_objext \
24163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24164LIBS=$ac_check_lib_save_LIBS
24165fi
24166echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24167echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24168if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24169 MSPACK_LINK=" -lmspack"
24170fi
24171
24172 fi
24173 if test "x$MSPACK_LINK" = "x" ; then
24174 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24175 fi
24176fi
24177
24178if test "$wxUSE_LIBMSPACK" != "no"; then
24179 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24180#define wxUSE_LIBMSPACK 1
24181_ACEOF
24182
a848cd7e
SC
24183fi
24184
24185
24186
24187AFMINSTALL=
24188WIN32INSTALL=
24189
24190TOOLKIT=
24191TOOLKIT_INCLUDE=
24192WIDGET_SET=
24193
24194if test "$USE_WIN32" = 1 ; then
24195
24196for ac_header in w32api.h
24197do
24198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24199if eval "test \"\${$as_ac_Header+set}\" = set"; then
24200 echo "$as_me:$LINENO: checking for $ac_header" >&5
24201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24202if eval "test \"\${$as_ac_Header+set}\" = set"; then
24203 echo $ECHO_N "(cached) $ECHO_C" >&6
24204fi
24205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24207else
24208 # Is the header compilable?
24209echo "$as_me:$LINENO: checking $ac_header usability" >&5
24210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24211cat >conftest.$ac_ext <<_ACEOF
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217$ac_includes_default
24218#include <$ac_header>
24219_ACEOF
24220rm -f conftest.$ac_objext
24221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24222 (eval $ac_compile) 2>conftest.er1
a848cd7e 24223 ac_status=$?
ac1cb8d3
VS
24224 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1
24226 cat conftest.err >&5
a848cd7e
SC
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } &&
6ebeb4c7 24229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; } &&
24235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); }; }; then
24241 ac_header_compiler=yes
24242else
24243 echo "$as_me: failed program was:" >&5
24244sed 's/^/| /' conftest.$ac_ext >&5
24245
24246ac_header_compiler=no
24247fi
ac1cb8d3 24248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24250echo "${ECHO_T}$ac_header_compiler" >&6
24251
24252# Is the header present?
24253echo "$as_me:$LINENO: checking $ac_header presence" >&5
24254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24255cat >conftest.$ac_ext <<_ACEOF
24256/* confdefs.h. */
24257_ACEOF
24258cat confdefs.h >>conftest.$ac_ext
24259cat >>conftest.$ac_ext <<_ACEOF
24260/* end confdefs.h. */
24261#include <$ac_header>
24262_ACEOF
24263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } >/dev/null; then
24271 if test -s conftest.err; then
24272 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24274 else
24275 ac_cpp_err=
24276 fi
24277else
24278 ac_cpp_err=yes
24279fi
24280if test -z "$ac_cpp_err"; then
24281 ac_header_preproc=yes
24282else
24283 echo "$as_me: failed program was:" >&5
24284sed 's/^/| /' conftest.$ac_ext >&5
24285
24286 ac_header_preproc=no
24287fi
24288rm -f conftest.err conftest.$ac_ext
24289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24290echo "${ECHO_T}$ac_header_preproc" >&6
24291
24292# So? What about this header?
ac1cb8d3
VS
24293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24294 yes:no: )
a848cd7e
SC
24295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24299 ac_header_preproc=yes
a848cd7e 24300 ;;
ac1cb8d3 24301 no:yes:* )
a848cd7e
SC
24302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24314 (
24315 cat <<\_ASBOX
ac1cb8d3
VS
24316## ----------------------------------------- ##
24317## Report this to wx-dev@lists.wxwidgets.org ##
24318## ----------------------------------------- ##
a848cd7e
SC
24319_ASBOX
24320 ) |
24321 sed "s/^/$as_me: WARNING: /" >&2
24322 ;;
24323esac
24324echo "$as_me:$LINENO: checking for $ac_header" >&5
24325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24326if eval "test \"\${$as_ac_Header+set}\" = set"; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24328else
ac1cb8d3 24329 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24330fi
24331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24333
24334fi
24335if test `eval echo '${'$as_ac_Header'}'` = yes; then
24336 cat >>confdefs.h <<_ACEOF
24337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24338_ACEOF
24339
24340fi
24341
24342done
24343
24344 if test "${ac_cv_header_windows_h+set}" = set; then
24345 echo "$as_me:$LINENO: checking for windows.h" >&5
24346echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24347if test "${ac_cv_header_windows_h+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24349fi
24350echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24351echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24352else
24353 # Is the header compilable?
24354echo "$as_me:$LINENO: checking windows.h usability" >&5
24355echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24356cat >conftest.$ac_ext <<_ACEOF
24357/* confdefs.h. */
24358_ACEOF
24359cat confdefs.h >>conftest.$ac_ext
24360cat >>conftest.$ac_ext <<_ACEOF
24361/* end confdefs.h. */
24362$ac_includes_default
24363#include <windows.h>
24364_ACEOF
24365rm -f conftest.$ac_objext
24366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24367 (eval $ac_compile) 2>conftest.er1
a848cd7e 24368 ac_status=$?
ac1cb8d3
VS
24369 grep -v '^ *+' conftest.er1 >conftest.err
24370 rm -f conftest.er1
24371 cat conftest.err >&5
a848cd7e
SC
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } &&
6ebeb4c7 24374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); }; } &&
24380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382 (eval $ac_try) 2>&5
24383 ac_status=$?
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; }; then
24386 ac_header_compiler=yes
24387else
24388 echo "$as_me: failed program was:" >&5
24389sed 's/^/| /' conftest.$ac_ext >&5
24390
24391ac_header_compiler=no
24392fi
ac1cb8d3 24393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24395echo "${ECHO_T}$ac_header_compiler" >&6
24396
24397# Is the header present?
24398echo "$as_me:$LINENO: checking windows.h presence" >&5
24399echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24400cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h. */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h. */
24406#include <windows.h>
24407_ACEOF
24408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24410 ac_status=$?
24411 grep -v '^ *+' conftest.er1 >conftest.err
24412 rm -f conftest.er1
24413 cat conftest.err >&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } >/dev/null; then
24416 if test -s conftest.err; then
24417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24419 else
24420 ac_cpp_err=
24421 fi
24422else
24423 ac_cpp_err=yes
24424fi
24425if test -z "$ac_cpp_err"; then
24426 ac_header_preproc=yes
24427else
24428 echo "$as_me: failed program was:" >&5
24429sed 's/^/| /' conftest.$ac_ext >&5
24430
24431 ac_header_preproc=no
24432fi
24433rm -f conftest.err conftest.$ac_ext
24434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435echo "${ECHO_T}$ac_header_preproc" >&6
24436
24437# So? What about this header?
ac1cb8d3
VS
24438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439 yes:no: )
a848cd7e
SC
24440 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24441echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24442 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24443echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24444 ac_header_preproc=yes
a848cd7e 24445 ;;
ac1cb8d3 24446 no:yes:* )
a848cd7e
SC
24447 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24448echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24449 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24450echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24451 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24452echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24454echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24455 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24456echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24457 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24458echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24459 (
24460 cat <<\_ASBOX
ac1cb8d3
VS
24461## ----------------------------------------- ##
24462## Report this to wx-dev@lists.wxwidgets.org ##
24463## ----------------------------------------- ##
a848cd7e
SC
24464_ASBOX
24465 ) |
24466 sed "s/^/$as_me: WARNING: /" >&2
24467 ;;
24468esac
24469echo "$as_me:$LINENO: checking for windows.h" >&5
24470echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24471if test "${ac_cv_header_windows_h+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 ac_cv_header_windows_h=$ac_header_preproc
24475fi
24476echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24477echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24478
24479fi
24480if test $ac_cv_header_windows_h = yes; then
24481 :
24482else
24483
24484 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24485echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24486 { (exit 1); exit 1; }; }
24487
24488fi
24489
24490
24491
24492 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24493
24494 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24495 LIBS="$LIBS -loleacc"
24496 fi
24497
24498 case "${host}" in
24499 *-*-cygwin* )
24500 LIBS="$LIBS -lkernel32 -luser32"
24501 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24502 esac
24503
24504 if test "$wxUSE_ODBC" = "sys" ; then
24505 wxUSE_ODBC = "yes"
24506 fi
24507 if test "$wxUSE_ODBC" = "yes" ; then
24508 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24509 cat >>confdefs.h <<\_ACEOF
24510#define wxUSE_ODBC 1
24511_ACEOF
24512
24513 fi
24514
24515 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24516 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24517
24518 WIN32INSTALL=win32install
24519fi
24520
24521if test "$wxUSE_GUI" = "yes"; then
24522 USE_GUI=1
24523
24524 GUI_TK_LIBRARY=
24525
24526 WXGTK12=
24527 WXGTK127=
24528 WXGTK20=
24529 WXGPE=
24530
207bc66c
RN
24531 if test "$wxUSE_COCOA" = 1 ; then
24532 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24533 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24534echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24535 wxUSE_PRINTING_ARCHITECTURE=no
24536 fi
24537 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24538 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24539echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24540 wxUSE_DRAG_AND_DROP=no
24541 fi
24542 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24543 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24544echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24545 wxUSE_DRAGIMAGE=no
24546 fi
24547 fi
24548
a848cd7e
SC
24549 if test "$wxUSE_MSW" = 1 ; then
24550 TOOLKIT=MSW
24551 GUIDIST=MSW_DIST
24552
ceec2216 24553 case "${host}" in
a848cd7e
SC
24554 *-*-mingw32* )
24555 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24556 esac
24557 fi
24558
24559 if test "$wxUSE_GTK" = 1; then
24560 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24561echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24562
24563 gtk_version_cached=1
24564 if test "${wx_cv_lib_gtk+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567
24568 gtk_version_cached=0
24569 echo "$as_me:$LINENO: result: " >&5
24570echo "${ECHO_T}" >&6
24571
24572 GTK_MODULES=
24573 if test "$wxUSE_THREADS" = "yes"; then
24574 GTK_MODULES=gthread
24575 fi
24576
f597b41c 24577 wx_cv_lib_gtk=
f34ca037 24578 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24579 # Check whether --enable-gtktest or --disable-gtktest was given.
24580if test "${enable_gtktest+set}" = set; then
24581 enableval="$enable_gtktest"
24582
24583else
24584 enable_gtktest=yes
24585fi;
24586
24587 pkg_config_args=gtk+-2.0
24588 for module in . $GTK_MODULES
24589 do
24590 case "$module" in
24591 gthread)
24592 pkg_config_args="$pkg_config_args gthread-2.0"
24593 ;;
24594 esac
24595 done
24596
24597 no_gtk=""
24598
24599 # Extract the first word of "pkg-config", so it can be a program name with args.
24600set dummy pkg-config; ac_word=$2
24601echo "$as_me:$LINENO: checking for $ac_word" >&5
24602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24603if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24605else
24606 case $PKG_CONFIG in
24607 [\\/]* | ?:[\\/]*)
24608 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24609 ;;
24610 *)
24611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24612for as_dir in $PATH
24613do
24614 IFS=$as_save_IFS
24615 test -z "$as_dir" && as_dir=.
24616 for ac_exec_ext in '' $ac_executable_extensions; do
24617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24618 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24620 break 2
24621 fi
24622done
24623done
24624
24625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24626 ;;
24627esac
24628fi
24629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24630
24631if test -n "$PKG_CONFIG"; then
24632 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24633echo "${ECHO_T}$PKG_CONFIG" >&6
24634else
24635 echo "$as_me:$LINENO: result: no" >&5
24636echo "${ECHO_T}no" >&6
24637fi
24638
24639
24640 if test x$PKG_CONFIG != xno ; then
24641 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24642 :
24643 else
c2218763 24644 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24645 no_gtk=yes
24646 PKG_CONFIG=no
24647 fi
24648 else
24649 no_gtk=yes
24650 fi
24651
24652 min_gtk_version=2.0.0
24653 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24654echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24655
24656 if test x$PKG_CONFIG != xno ; then
24657 ## don't try to run the test against uninstalled libtool libs
24658 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24659 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24660 enable_gtktest=no
24661 fi
24662
24663 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24664 :
24665 else
24666 no_gtk=yes
24667 fi
24668 fi
24669
24670 if test x"$no_gtk" = x ; then
24671 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24672 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24673 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24674 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24675 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24677 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24679 if test "x$enable_gtktest" = "xyes" ; then
24680 ac_save_CFLAGS="$CFLAGS"
24681 ac_save_LIBS="$LIBS"
24682 CFLAGS="$CFLAGS $GTK_CFLAGS"
24683 LIBS="$GTK_LIBS $LIBS"
24684 rm -f conf.gtktest
24685 if test "$cross_compiling" = yes; then
24686 echo $ac_n "cross compiling; assumed OK... $ac_c"
24687else
24688 cat >conftest.$ac_ext <<_ACEOF
24689/* confdefs.h. */
24690_ACEOF
24691cat confdefs.h >>conftest.$ac_ext
24692cat >>conftest.$ac_ext <<_ACEOF
24693/* end confdefs.h. */
24694
24695#include <gtk/gtk.h>
24696#include <stdio.h>
24697#include <stdlib.h>
24698
24699int
24700main ()
24701{
24702 int major, minor, micro;
24703 char *tmp_version;
24704
24705 system ("touch conf.gtktest");
24706
24707 /* HP/UX 9 (%@#!) writes to sscanf strings */
24708 tmp_version = g_strdup("$min_gtk_version");
24709 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24710 printf("%s, bad version string\n", "$min_gtk_version");
24711 exit(1);
24712 }
24713
24714 if ((gtk_major_version != $gtk_config_major_version) ||
24715 (gtk_minor_version != $gtk_config_minor_version) ||
24716 (gtk_micro_version != $gtk_config_micro_version))
24717 {
24718 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24719 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24720 gtk_major_version, gtk_minor_version, gtk_micro_version);
24721 printf ("*** was found! If pkg-config was correct, then it is best\n");
24722 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24723 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24724 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24725 printf("*** required on your system.\n");
24726 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24727 printf("*** to point to the correct configuration files\n");
24728 }
24729 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24730 (gtk_minor_version != GTK_MINOR_VERSION) ||
24731 (gtk_micro_version != GTK_MICRO_VERSION))
24732 {
24733 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24734 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24735 printf("*** library (version %d.%d.%d)\n",
24736 gtk_major_version, gtk_minor_version, gtk_micro_version);
24737 }
24738 else
24739 {
24740 if ((gtk_major_version > major) ||
24741 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24742 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24743 {
24744 return 0;
24745 }
24746 else
24747 {
24748 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24749 gtk_major_version, gtk_minor_version, gtk_micro_version);
24750 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24751 major, minor, micro);
24752 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24753 printf("***\n");
24754 printf("*** If you have already installed a sufficiently new version, this error\n");
24755 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24756 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24757 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24758 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24759 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24760 printf("*** so that the correct libraries are found at run-time))\n");
24761 }
24762 }
24763 return 1;
24764}
24765
24766_ACEOF
24767rm -f conftest$ac_exeext
24768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24769 (eval $ac_link) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24778 :
24779else
24780 echo "$as_me: program exited with status $ac_status" >&5
24781echo "$as_me: failed program was:" >&5
24782sed 's/^/| /' conftest.$ac_ext >&5
24783
24784( exit $ac_status )
24785no_gtk=yes
24786fi
ac1cb8d3 24787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24788fi
24789 CFLAGS="$ac_save_CFLAGS"
24790 LIBS="$ac_save_LIBS"
24791 fi
24792 fi
24793 if test "x$no_gtk" = x ; then
24794 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24795echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24796 wx_cv_lib_gtk=2.0
24797 else
24798 echo "$as_me:$LINENO: result: no" >&5
24799echo "${ECHO_T}no" >&6
24800 if test "$PKG_CONFIG" = "no" ; then
24801 echo "*** A new enough version of pkg-config was not found."
24802 echo "*** See http://pkgconfig.sourceforge.net"
24803 else
24804 if test -f conf.gtktest ; then
24805 :
24806 else
24807 echo "*** Could not run GTK+ test program, checking why..."
24808 ac_save_CFLAGS="$CFLAGS"
24809 ac_save_LIBS="$LIBS"
24810 CFLAGS="$CFLAGS $GTK_CFLAGS"
24811 LIBS="$LIBS $GTK_LIBS"
24812 cat >conftest.$ac_ext <<_ACEOF
24813/* confdefs.h. */
24814_ACEOF
24815cat confdefs.h >>conftest.$ac_ext
24816cat >>conftest.$ac_ext <<_ACEOF
24817/* end confdefs.h. */
24818
24819#include <gtk/gtk.h>
24820#include <stdio.h>
24821
24822int
24823main ()
24824{
24825 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24826 ;
24827 return 0;
24828}
24829_ACEOF
24830rm -f conftest.$ac_objext conftest$ac_exeext
24831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24832 (eval $ac_link) 2>conftest.er1
a848cd7e 24833 ac_status=$?
ac1cb8d3
VS
24834 grep -v '^ *+' conftest.er1 >conftest.err
24835 rm -f conftest.er1
24836 cat conftest.err >&5
a848cd7e
SC
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } &&
6ebeb4c7 24839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; } &&
24845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; }; then
24851 echo "*** The test program compiled, but did not run. This usually means"
24852 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24853 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24854 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24855 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24856 echo "*** is required on your system"
24857 echo "***"
24858 echo "*** If you have an old version installed, it is best to remove it, although"
24859 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24860else
24861 echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
24863
24864 echo "*** The test program failed to compile or link. See the file config.log for the"
24865 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24866fi
ac1cb8d3
VS
24867rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24869 CFLAGS="$ac_save_CFLAGS"
24870 LIBS="$ac_save_LIBS"
24871 fi
24872 fi
24873 GTK_CFLAGS=""
24874 GTK_LIBS=""
24875 :
24876 fi
24877
24878
24879 rm -f conf.gtktest
24880
f597b41c
MW
24881 fi
24882
f34ca037
MW
24883 if test -z "$wx_cv_lib_gtk"; then
24884 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24885
24886# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24887if test "${with_gtk_prefix+set}" = set; then
24888 withval="$with_gtk_prefix"
24889 gtk_config_prefix="$withval"
24890else
24891 gtk_config_prefix=""
24892fi;
24893
24894# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24895if test "${with_gtk_exec_prefix+set}" = set; then
24896 withval="$with_gtk_exec_prefix"
24897 gtk_config_exec_prefix="$withval"
24898else
24899 gtk_config_exec_prefix=""
24900fi;
24901# Check whether --enable-gtktest or --disable-gtktest was given.
24902if test "${enable_gtktest+set}" = set; then
24903 enableval="$enable_gtktest"
24904
24905else
24906 enable_gtktest=yes
24907fi;
24908
24909 for module in . $GTK_MODULES
24910 do
24911 case "$module" in
24912 gthread)
24913 gtk_config_args="$gtk_config_args gthread"
24914 ;;
24915 esac
24916 done
24917
24918 if test x$gtk_config_exec_prefix != x ; then
24919 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24920 if test x${GTK_CONFIG+set} != xset ; then
24921 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24922 fi
24923 fi
24924 if test x$gtk_config_prefix != x ; then
24925 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24926 if test x${GTK_CONFIG+set} != xset ; then
24927 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24928 fi
24929 fi
24930
24931 # Extract the first word of "gtk-config", so it can be a program name with args.
24932set dummy gtk-config; ac_word=$2
24933echo "$as_me:$LINENO: checking for $ac_word" >&5
24934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24935if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937else
24938 case $GTK_CONFIG in
24939 [\\/]* | ?:[\\/]*)
24940 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24941 ;;
24942 *)
24943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24944for as_dir in $PATH
24945do
24946 IFS=$as_save_IFS
24947 test -z "$as_dir" && as_dir=.
24948 for ac_exec_ext in '' $ac_executable_extensions; do
24949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24950 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24952 break 2
24953 fi
24954done
24955done
24956
24957 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24958 ;;
24959esac
24960fi
24961GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24962
24963if test -n "$GTK_CONFIG"; then
24964 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24965echo "${ECHO_T}$GTK_CONFIG" >&6
24966else
24967 echo "$as_me:$LINENO: result: no" >&5
24968echo "${ECHO_T}no" >&6
24969fi
24970
24971 min_gtk_version=1.2.7
24972 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24973echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24974 no_gtk=""
24975 if test "$GTK_CONFIG" = "no" ; then
24976 no_gtk=yes
24977 else
24978 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24979 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24980 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24982 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24984 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24985 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24986 if test "x$enable_gtktest" = "xyes" ; then
24987 ac_save_CFLAGS="$CFLAGS"
24988 ac_save_LIBS="$LIBS"
24989 CFLAGS="$CFLAGS $GTK_CFLAGS"
24990 LIBS="$GTK_LIBS $LIBS"
24991 rm -f conf.gtktest
24992 if test "$cross_compiling" = yes; then
24993 echo $ac_n "cross compiling; assumed OK... $ac_c"
24994else
24995 cat >conftest.$ac_ext <<_ACEOF
24996/* confdefs.h. */
24997_ACEOF
24998cat confdefs.h >>conftest.$ac_ext
24999cat >>conftest.$ac_ext <<_ACEOF
25000/* end confdefs.h. */
25001
25002#include <gtk/gtk.h>
25003#include <stdio.h>
25004#include <stdlib.h>
25005
25006int
25007main ()
25008{
25009 int major, minor, micro;
25010 char *tmp_version;
25011
25012 system ("touch conf.gtktest");
25013
25014 /* HP/UX 9 (%@#!) writes to sscanf strings */
25015 tmp_version = g_strdup("$min_gtk_version");
25016 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25017 printf("%s, bad version string\n", "$min_gtk_version");
25018 exit(1);
25019 }
25020
25021 if ((gtk_major_version != $gtk_config_major_version) ||
25022 (gtk_minor_version != $gtk_config_minor_version) ||
25023 (gtk_micro_version != $gtk_config_micro_version))
25024 {
25025 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25026 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25027 gtk_major_version, gtk_minor_version, gtk_micro_version);
25028 printf ("*** was found! If gtk-config was correct, then it is best\n");
25029 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25030 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25031 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25032 printf("*** required on your system.\n");
25033 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25034 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25035 printf("*** before re-running configure\n");
25036 }
25037#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25038 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25039 (gtk_minor_version != GTK_MINOR_VERSION) ||
25040 (gtk_micro_version != GTK_MICRO_VERSION))
25041 {
25042 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25043 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25044 printf("*** library (version %d.%d.%d)\n",
25045 gtk_major_version, gtk_minor_version, gtk_micro_version);
25046 }
25047#endif /* defined (GTK_MAJOR_VERSION) ... */
25048 else
25049 {
25050 if ((gtk_major_version > major) ||
25051 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25052 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25053 {
25054 return 0;
25055 }
25056 else
25057 {
25058 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25059 gtk_major_version, gtk_minor_version, gtk_micro_version);
25060 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25061 major, minor, micro);
25062 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25063 printf("***\n");
25064 printf("*** If you have already installed a sufficiently new version, this error\n");
25065 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25066 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25067 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25068 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25069 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25070 printf("*** so that the correct libraries are found at run-time))\n");
25071 }
25072 }
25073 return 1;
25074}
25075
25076_ACEOF
25077rm -f conftest$ac_exeext
25078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25079 (eval $ac_link) 2>&5
25080 ac_status=$?
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25085 ac_status=$?
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; }; then
25088 :
25089else
25090 echo "$as_me: program exited with status $ac_status" >&5
25091echo "$as_me: failed program was:" >&5
25092sed 's/^/| /' conftest.$ac_ext >&5
25093
25094( exit $ac_status )
25095no_gtk=yes
25096fi
ac1cb8d3 25097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25098fi
25099 CFLAGS="$ac_save_CFLAGS"
25100 LIBS="$ac_save_LIBS"
25101 fi
25102 fi
25103 if test "x$no_gtk" = x ; then
25104 echo "$as_me:$LINENO: result: yes" >&5
25105echo "${ECHO_T}yes" >&6
25106 wx_cv_lib_gtk=1.2.7
25107 else
25108 echo "$as_me:$LINENO: result: no" >&5
25109echo "${ECHO_T}no" >&6
25110 if test "$GTK_CONFIG" = "no" ; then
25111 echo "*** The gtk-config script installed by GTK could not be found"
25112 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25113 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25114 echo "*** full path to gtk-config."
25115 else
25116 if test -f conf.gtktest ; then
25117 :
25118 else
25119 echo "*** Could not run GTK test program, checking why..."
25120 CFLAGS="$CFLAGS $GTK_CFLAGS"
25121 LIBS="$LIBS $GTK_LIBS"
25122 cat >conftest.$ac_ext <<_ACEOF
25123/* confdefs.h. */
25124_ACEOF
25125cat confdefs.h >>conftest.$ac_ext
25126cat >>conftest.$ac_ext <<_ACEOF
25127/* end confdefs.h. */
25128
25129#include <gtk/gtk.h>
25130#include <stdio.h>
25131
25132int
25133main ()
25134{
25135 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25136 ;
25137 return 0;
25138}
25139_ACEOF
25140rm -f conftest.$ac_objext conftest$ac_exeext
25141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25142 (eval $ac_link) 2>conftest.er1
a848cd7e 25143 ac_status=$?
ac1cb8d3
VS
25144 grep -v '^ *+' conftest.er1 >conftest.err
25145 rm -f conftest.er1
25146 cat conftest.err >&5
a848cd7e
SC
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } &&
6ebeb4c7 25149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; } &&
25155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; }; then
25161 echo "*** The test program compiled, but did not run. This usually means"
25162 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25163 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25164 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25165 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25166 echo "*** is required on your system"
25167 echo "***"
25168 echo "*** If you have an old version installed, it is best to remove it, although"
25169 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25170 echo "***"
25171 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25172 echo "*** came with the system with the command"
25173 echo "***"
25174 echo "*** rpm --erase --nodeps gtk gtk-devel"
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179 echo "*** The test program failed to compile or link. See the file config.log for the"
25180 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25181 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25182 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25183fi
ac1cb8d3
VS
25184rm -f conftest.err conftest.$ac_objext \
25185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25186 CFLAGS="$ac_save_CFLAGS"
25187 LIBS="$ac_save_LIBS"
25188 fi
25189 fi
25190 GTK_CFLAGS=""
25191 GTK_LIBS=""
25192 :
25193 fi
25194
25195
25196 rm -f conf.gtktest
25197
25198
f34ca037 25199 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25200
25201# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25202if test "${with_gtk_prefix+set}" = set; then
25203 withval="$with_gtk_prefix"
25204 gtk_config_prefix="$withval"
25205else
25206 gtk_config_prefix=""
25207fi;
25208
25209# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25210if test "${with_gtk_exec_prefix+set}" = set; then
25211 withval="$with_gtk_exec_prefix"
25212 gtk_config_exec_prefix="$withval"
25213else
25214 gtk_config_exec_prefix=""
25215fi;
25216# Check whether --enable-gtktest or --disable-gtktest was given.
25217if test "${enable_gtktest+set}" = set; then
25218 enableval="$enable_gtktest"
25219
25220else
25221 enable_gtktest=yes
25222fi;
25223
25224 for module in . $GTK_MODULES
25225 do
25226 case "$module" in
25227 gthread)
25228 gtk_config_args="$gtk_config_args gthread"
25229 ;;
25230 esac
25231 done
25232
25233 if test x$gtk_config_exec_prefix != x ; then
25234 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25235 if test x${GTK_CONFIG+set} != xset ; then
25236 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25237 fi
25238 fi
25239 if test x$gtk_config_prefix != x ; then
25240 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25241 if test x${GTK_CONFIG+set} != xset ; then
25242 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25243 fi
25244 fi
25245
25246 # Extract the first word of "gtk-config", so it can be a program name with args.
25247set dummy gtk-config; ac_word=$2
25248echo "$as_me:$LINENO: checking for $ac_word" >&5
25249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25250if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25252else
25253 case $GTK_CONFIG in
25254 [\\/]* | ?:[\\/]*)
25255 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25256 ;;
25257 *)
25258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25259for as_dir in $PATH
25260do
25261 IFS=$as_save_IFS
25262 test -z "$as_dir" && as_dir=.
25263 for ac_exec_ext in '' $ac_executable_extensions; do
25264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25265 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25267 break 2
25268 fi
25269done
25270done
25271
25272 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25273 ;;
25274esac
25275fi
25276GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25277
25278if test -n "$GTK_CONFIG"; then
25279 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25280echo "${ECHO_T}$GTK_CONFIG" >&6
25281else
25282 echo "$as_me:$LINENO: result: no" >&5
25283echo "${ECHO_T}no" >&6
25284fi
25285
25286 min_gtk_version=1.2.3
25287 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25288echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25289 no_gtk=""
25290 if test "$GTK_CONFIG" = "no" ; then
25291 no_gtk=yes
25292 else
25293 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25294 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25295 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25297 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25299 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25301 if test "x$enable_gtktest" = "xyes" ; then
25302 ac_save_CFLAGS="$CFLAGS"
25303 ac_save_LIBS="$LIBS"
25304 CFLAGS="$CFLAGS $GTK_CFLAGS"
25305 LIBS="$GTK_LIBS $LIBS"
25306 rm -f conf.gtktest
25307 if test "$cross_compiling" = yes; then
25308 echo $ac_n "cross compiling; assumed OK... $ac_c"
25309else
25310 cat >conftest.$ac_ext <<_ACEOF
25311/* confdefs.h. */
25312_ACEOF
25313cat confdefs.h >>conftest.$ac_ext
25314cat >>conftest.$ac_ext <<_ACEOF
25315/* end confdefs.h. */
25316
25317#include <gtk/gtk.h>
25318#include <stdio.h>
25319#include <stdlib.h>
25320
25321int
25322main ()
25323{
25324 int major, minor, micro;
25325 char *tmp_version;
25326
25327 system ("touch conf.gtktest");
25328
25329 /* HP/UX 9 (%@#!) writes to sscanf strings */
25330 tmp_version = g_strdup("$min_gtk_version");
25331 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25332 printf("%s, bad version string\n", "$min_gtk_version");
25333 exit(1);
25334 }
25335
25336 if ((gtk_major_version != $gtk_config_major_version) ||
25337 (gtk_minor_version != $gtk_config_minor_version) ||
25338 (gtk_micro_version != $gtk_config_micro_version))
25339 {
25340 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25341 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25342 gtk_major_version, gtk_minor_version, gtk_micro_version);
25343 printf ("*** was found! If gtk-config was correct, then it is best\n");
25344 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25345 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25346 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25347 printf("*** required on your system.\n");
25348 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25349 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25350 printf("*** before re-running configure\n");
25351 }
25352#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25353 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25354 (gtk_minor_version != GTK_MINOR_VERSION) ||
25355 (gtk_micro_version != GTK_MICRO_VERSION))
25356 {
25357 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25358 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25359 printf("*** library (version %d.%d.%d)\n",
25360 gtk_major_version, gtk_minor_version, gtk_micro_version);
25361 }
25362#endif /* defined (GTK_MAJOR_VERSION) ... */
25363 else
25364 {
25365 if ((gtk_major_version > major) ||
25366 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25367 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25368 {
25369 return 0;
25370 }
25371 else
25372 {
25373 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25374 gtk_major_version, gtk_minor_version, gtk_micro_version);
25375 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25376 major, minor, micro);
25377 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25378 printf("***\n");
25379 printf("*** If you have already installed a sufficiently new version, this error\n");
25380 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25381 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25382 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25383 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25384 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25385 printf("*** so that the correct libraries are found at run-time))\n");
25386 }
25387 }
25388 return 1;
25389}
25390
25391_ACEOF
25392rm -f conftest$ac_exeext
25393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25394 (eval $ac_link) 2>&5
25395 ac_status=$?
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403 :
25404else
25405 echo "$as_me: program exited with status $ac_status" >&5
25406echo "$as_me: failed program was:" >&5
25407sed 's/^/| /' conftest.$ac_ext >&5
25408
25409( exit $ac_status )
25410no_gtk=yes
25411fi
ac1cb8d3 25412rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25413fi
25414 CFLAGS="$ac_save_CFLAGS"
25415 LIBS="$ac_save_LIBS"
25416 fi
25417 fi
25418 if test "x$no_gtk" = x ; then
25419 echo "$as_me:$LINENO: result: yes" >&5
25420echo "${ECHO_T}yes" >&6
25421 wx_cv_lib_gtk=1.2.3
25422 else
25423 echo "$as_me:$LINENO: result: no" >&5
25424echo "${ECHO_T}no" >&6
25425 if test "$GTK_CONFIG" = "no" ; then
25426 echo "*** The gtk-config script installed by GTK could not be found"
25427 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25428 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25429 echo "*** full path to gtk-config."
25430 else
25431 if test -f conf.gtktest ; then
25432 :
25433 else
25434 echo "*** Could not run GTK test program, checking why..."
25435 CFLAGS="$CFLAGS $GTK_CFLAGS"
25436 LIBS="$LIBS $GTK_LIBS"
25437 cat >conftest.$ac_ext <<_ACEOF
25438/* confdefs.h. */
25439_ACEOF
25440cat confdefs.h >>conftest.$ac_ext
25441cat >>conftest.$ac_ext <<_ACEOF
25442/* end confdefs.h. */
25443
25444#include <gtk/gtk.h>
25445#include <stdio.h>
25446
25447int
25448main ()
25449{
25450 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25451 ;
25452 return 0;
25453}
25454_ACEOF
25455rm -f conftest.$ac_objext conftest$ac_exeext
25456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25457 (eval $ac_link) 2>conftest.er1
a848cd7e 25458 ac_status=$?
ac1cb8d3
VS
25459 grep -v '^ *+' conftest.er1 >conftest.err
25460 rm -f conftest.er1
25461 cat conftest.err >&5
a848cd7e
SC
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } &&
6ebeb4c7 25464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 echo "*** The test program compiled, but did not run. This usually means"
25477 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25478 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25479 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25480 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25481 echo "*** is required on your system"
25482 echo "***"
25483 echo "*** If you have an old version installed, it is best to remove it, although"
25484 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25485 echo "***"
25486 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25487 echo "*** came with the system with the command"
25488 echo "***"
25489 echo "*** rpm --erase --nodeps gtk gtk-devel"
25490else
25491 echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
25493
25494 echo "*** The test program failed to compile or link. See the file config.log for the"
25495 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25496 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25497 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25498fi
ac1cb8d3
VS
25499rm -f conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25501 CFLAGS="$ac_save_CFLAGS"
25502 LIBS="$ac_save_LIBS"
25503 fi
25504 fi
25505 GTK_CFLAGS=""
25506 GTK_LIBS=""
25507 :
25508 fi
25509
25510
25511 rm -f conf.gtktest
25512
f34ca037 25513 fi
a848cd7e
SC
25514 fi
25515 fi
25516
25517 if test -z "$wx_cv_lib_gtk"; then
25518 wx_cv_lib_gtk=none
25519 else
25520 wx_cv_cflags_gtk=$GTK_CFLAGS
25521 wx_cv_libs_gtk=$GTK_LIBS
25522 fi
25523
25524
25525fi
25526
25527
25528 if test "$gtk_version_cached" = 1; then
25529 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25530echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25531 fi
25532
25533 case "$wx_cv_lib_gtk" in
25534 2.0) WXGTK20=1
25535 TOOLKIT_VERSION=2
25536 ;;
25537 1.2.7) WXGTK127=1
25538 WXGTK12=1
25539 ;;
25540 1.2.3) WXGTK12=1
25541 ;;
25542 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25543The development files for GTK+ were not found. For GTK+ 2, please
25544ensure that pkg-config is in the path and that gtk+-2.0.pc is
25545installed. For GTK+ 1.2 please check that gtk-config is in the path,
25546and that the version is 1.2.3 or above. Also check that the
25547libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25548--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25549 " >&5
25550echo "$as_me: error:
f597b41c
MW
25551The development files for GTK+ were not found. For GTK+ 2, please
25552ensure that pkg-config is in the path and that gtk+-2.0.pc is
25553installed. For GTK+ 1.2 please check that gtk-config is in the path,
25554and that the version is 1.2.3 or above. Also check that the
25555libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25556--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25557 " >&2;}
25558 { (exit 1); exit 1; }; }
25559 ;;
25560 esac
25561
25562 if test "$WXGTK20" = 1; then
304205f1
VS
25563 save_CFLAGS="$CFLAGS"
25564 save_LIBS="$LIBS"
9d271838 25565 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25566 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25567
9755e73b 25568
304205f1
VS
25569for ac_func in pango_font_family_is_monospace
25570do
25571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25572echo "$as_me:$LINENO: checking for $ac_func" >&5
25573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25574if eval "test \"\${$as_ac_var+set}\" = set"; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576else
25577 cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25585#define $ac_func innocuous_$ac_func
25586
25587/* System header to define __stub macros and hopefully few prototypes,
25588 which can conflict with char $ac_func (); below.
25589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25590 <limits.h> exists even on freestanding compilers. */
25591
25592#ifdef __STDC__
25593# include <limits.h>
25594#else
25595# include <assert.h>
25596#endif
25597
25598#undef $ac_func
25599
25600/* Override any gcc2 internal prototype to avoid an error. */
25601#ifdef __cplusplus
25602extern "C"
25603{
25604#endif
25605/* We use char because int might match the return type of a gcc2
25606 builtin and then its argument prototype would still apply. */
25607char $ac_func ();
25608/* The GNU C library defines this for functions which it implements
25609 to always fail with ENOSYS. Some functions are actually named
25610 something starting with __ and the normal name is an alias. */
25611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25612choke me
25613#else
25614char (*f) () = $ac_func;
25615#endif
25616#ifdef __cplusplus
25617}
25618#endif
25619
25620int
25621main ()
25622{
25623return f != $ac_func;
25624 ;
25625 return 0;
25626}
25627_ACEOF
25628rm -f conftest.$ac_objext conftest$ac_exeext
25629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25630 (eval $ac_link) 2>conftest.er1
25631 ac_status=$?
25632 grep -v '^ *+' conftest.er1 >conftest.err
25633 rm -f conftest.er1
25634 cat conftest.err >&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); } &&
6ebeb4c7 25637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); }; } &&
25643 { ac_try='test -s conftest$ac_exeext'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 eval "$as_ac_var=yes"
25650else
25651 echo "$as_me: failed program was:" >&5
25652sed 's/^/| /' conftest.$ac_ext >&5
25653
25654eval "$as_ac_var=no"
25655fi
25656rm -f conftest.err conftest.$ac_objext \
25657 conftest$ac_exeext conftest.$ac_ext
25658fi
25659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25661if test `eval echo '${'$as_ac_var'}'` = yes; then
25662 cat >>confdefs.h <<_ACEOF
25663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25664_ACEOF
25665
25666fi
25667done
25668
9755e73b 25669
abc736fd
MW
25670 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25671echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25673/* confdefs.h. */
25674_ACEOF
25675cat confdefs.h >>conftest.$ac_ext
25676cat >>conftest.$ac_ext <<_ACEOF
25677/* end confdefs.h. */
25678
25679 #include <gtk/gtk.h>
25680
25681int
25682main ()
25683{
25684
25685 void *f = gtk_icon_size_lookup;
25686
25687 ;
25688 return 0;
25689}
25690_ACEOF
25691rm -f conftest.$ac_objext
25692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25693 (eval $ac_compile) 2>conftest.er1
25694 ac_status=$?
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } &&
6ebeb4c7 25700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest.$ac_objext'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712
25713 echo "$as_me:$LINENO: result: no" >&5
25714echo "${ECHO_T}no" >&6
25715
25716else
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720
25721 cat >>confdefs.h <<\_ACEOF
25722#define NEED_GTK_ICON_SIZE_LOOKUP 1
25723_ACEOF
25724
25725 echo "$as_me:$LINENO: result: yes" >&5
25726echo "${ECHO_T}yes" >&6
25727
25728fi
25729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25730
9755e73b
VS
25731 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25732echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25733 cat >conftest.$ac_ext <<_ACEOF
25734/* confdefs.h. */
25735_ACEOF
25736cat confdefs.h >>conftest.$ac_ext
25737cat >>conftest.$ac_ext <<_ACEOF
25738/* end confdefs.h. */
25739
25740 #include <gtk/gtk.h>
25741
25742int
25743main ()
25744{
25745
25746 #if !GTK_CHECK_VERSION(2,4,0)
25747 #error "Not GTK+ 2.4"
25748 #endif
25749
25750 ;
25751 return 0;
25752}
25753_ACEOF
25754rm -f conftest.$ac_objext
25755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756 (eval $ac_compile) 2>conftest.er1
25757 ac_status=$?
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } &&
6ebeb4c7 25763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; } &&
25769 { ac_try='test -s conftest.$ac_objext'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
25775
25776 cat >>confdefs.h <<\_ACEOF
25777#define __WXGTK24__ 1
25778_ACEOF
25779
25780 echo "$as_me:$LINENO: result: yes" >&5
25781echo "${ECHO_T}yes" >&6
25782
25783else
25784 echo "$as_me: failed program was:" >&5
25785sed 's/^/| /' conftest.$ac_ext >&5
25786
25787
25788 echo "$as_me:$LINENO: result: no" >&5
25789echo "${ECHO_T}no" >&6
25790
25791fi
25792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25793
304205f1
VS
25794 CFLAGS="$save_CFLAGS"
25795 LIBS="$save_LIBS"
a848cd7e
SC
25796 else
25797 if test "$wxUSE_UNICODE" = "yes"; then
25798 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25799echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25800 wxUSE_UNICODE=no
25801 fi
25802 fi
25803
25804 if test "$USE_DARWIN" != 1; then
25805
25806for ac_func in poll
25807do
25808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25809echo "$as_me:$LINENO: checking for $ac_func" >&5
25810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25811if eval "test \"\${$as_ac_var+set}\" = set"; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25813else
25814 cat >conftest.$ac_ext <<_ACEOF
25815/* confdefs.h. */
25816_ACEOF
25817cat confdefs.h >>conftest.$ac_ext
25818cat >>conftest.$ac_ext <<_ACEOF
25819/* end confdefs.h. */
ac1cb8d3
VS
25820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25822#define $ac_func innocuous_$ac_func
25823
a848cd7e
SC
25824/* System header to define __stub macros and hopefully few prototypes,
25825 which can conflict with char $ac_func (); below.
25826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25827 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25828
a848cd7e
SC
25829#ifdef __STDC__
25830# include <limits.h>
25831#else
25832# include <assert.h>
25833#endif
ac1cb8d3
VS
25834
25835#undef $ac_func
25836
a848cd7e
SC
25837/* Override any gcc2 internal prototype to avoid an error. */
25838#ifdef __cplusplus
25839extern "C"
25840{
25841#endif
25842/* We use char because int might match the return type of a gcc2
25843 builtin and then its argument prototype would still apply. */
25844char $ac_func ();
25845/* The GNU C library defines this for functions which it implements
25846 to always fail with ENOSYS. Some functions are actually named
25847 something starting with __ and the normal name is an alias. */
25848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25849choke me
25850#else
25851char (*f) () = $ac_func;
25852#endif
25853#ifdef __cplusplus
25854}
25855#endif
25856
25857int
25858main ()
25859{
25860return f != $ac_func;
25861 ;
25862 return 0;
25863}
25864_ACEOF
25865rm -f conftest.$ac_objext conftest$ac_exeext
25866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25867 (eval $ac_link) 2>conftest.er1
a848cd7e 25868 ac_status=$?
ac1cb8d3
VS
25869 grep -v '^ *+' conftest.er1 >conftest.err
25870 rm -f conftest.er1
25871 cat conftest.err >&5
a848cd7e
SC
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
6ebeb4c7 25874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; } &&
25880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; }; then
25886 eval "$as_ac_var=yes"
25887else
25888 echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891eval "$as_ac_var=no"
25892fi
ac1cb8d3
VS
25893rm -f conftest.err conftest.$ac_objext \
25894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25895fi
25896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25898if test `eval echo '${'$as_ac_var'}'` = yes; then
25899 cat >>confdefs.h <<_ACEOF
25900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25901_ACEOF
25902
25903fi
25904done
25905
25906 fi
25907
25908 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25909 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25910
25911 AFMINSTALL=afminstall
25912 TOOLKIT=GTK
25913 GUIDIST=GTK_DIST
25914
25915 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25916echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25917if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25919else
25920 ac_check_lib_save_LIBS=$LIBS
25921LIBS="-lgdk $LIBS"
25922cat >conftest.$ac_ext <<_ACEOF
25923/* confdefs.h. */
25924_ACEOF
25925cat confdefs.h >>conftest.$ac_ext
25926cat >>conftest.$ac_ext <<_ACEOF
25927/* end confdefs.h. */
25928
25929/* Override any gcc2 internal prototype to avoid an error. */
25930#ifdef __cplusplus
25931extern "C"
25932#endif
25933/* We use char because int might match the return type of a gcc2
25934 builtin and then its argument prototype would still apply. */
25935char gdk_im_open ();
25936int
25937main ()
25938{
25939gdk_im_open ();
25940 ;
25941 return 0;
25942}
25943_ACEOF
25944rm -f conftest.$ac_objext conftest$ac_exeext
25945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25946 (eval $ac_link) 2>conftest.er1
a848cd7e 25947 ac_status=$?
ac1cb8d3
VS
25948 grep -v '^ *+' conftest.er1 >conftest.err
25949 rm -f conftest.er1
25950 cat conftest.err >&5
a848cd7e
SC
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } &&
6ebeb4c7 25953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); }; } &&
25959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961 (eval $ac_try) 2>&5
25962 ac_status=$?
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_lib_gdk_gdk_im_open=yes
25966else
25967 echo "$as_me: failed program was:" >&5
25968sed 's/^/| /' conftest.$ac_ext >&5
25969
25970ac_cv_lib_gdk_gdk_im_open=no
25971fi
ac1cb8d3
VS
25972rm -f conftest.err conftest.$ac_objext \
25973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25974LIBS=$ac_check_lib_save_LIBS
25975fi
25976echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25977echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25978if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25979 cat >>confdefs.h <<\_ACEOF
25980#define HAVE_XIM 1
25981_ACEOF
25982
25983fi
25984
25985
25986
25987 if test "$wxUSE_GPE" = "yes"; then
25988 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25989echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25990
25991ac_find_libraries=
25992for ac_dir in $SEARCH_LIB /usr/lib;
25993 do
3eca31dc 25994 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
25995 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25996 ac_find_libraries=$ac_dir
25997 break 2
25998 fi
25999 done
26000 done
26001
26002 if test "$ac_find_libraries" != "" ; then
26003
26004 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26005 result=$?
26006 if test $result = 0; then
26007 ac_path_to_link=""
26008 else
26009 ac_path_to_link=" -L$ac_find_libraries"
26010 fi
26011
26012 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26013 WXGPE=1
26014 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26015echo "${ECHO_T}found at $ac_find_libraries" >&6
26016 else
26017 echo "$as_me:$LINENO: result: not found" >&5
26018echo "${ECHO_T}not found" >&6
26019 fi
26020
26021 fi
26022 fi
26023
26024 if test "$wxUSE_MGL" = 1; then
26025 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26026echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26027 if test "x$MGL_ROOT" = x ; then
26028 echo "$as_me:$LINENO: result: not found" >&5
26029echo "${ECHO_T}not found" >&6
26030 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26031echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26032 { (exit 1); exit 1; }; }
26033 else
26034 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26035echo "${ECHO_T}$MGL_ROOT" >&6
26036 fi
26037
26038 echo "$as_me:$LINENO: checking for libmgl location" >&5
26039echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26040 case "${host}" in
26041 *-*-linux* )
26042 if test "x$wxUSE_SHARED" = xyes ; then
26043 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26044 else
26045 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26046 fi
26047 ;;
26048 *-pc-msdosdjgpp )
26049 mgl_os_candidates="dos32/dj2"
26050 ;;
26051 *)
26052 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26053echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26054 { (exit 1); exit 1; }; }
26055 esac
26056
26057 mgl_lib_type=""
26058 mgl_os=""
26059
26060 for mgl_os_i in $mgl_os_candidates ; do
26061 if test "x$mgl_os" = x ; then
26062 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26063 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26064 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26065 mgl_lib_type=debug
26066 mgl_os=$mgl_os_i
26067 fi
26068 fi
26069 if test "x$mgl_lib_type" = x ; then
26070 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26071 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26072 mgl_lib_type=release
26073 mgl_os=$mgl_os_i
26074 fi
26075 fi
26076 fi
26077 done
26078
26079 if test "x$mgl_os" = x ; then
26080 echo "$as_me:$LINENO: result: not found" >&5
26081echo "${ECHO_T}not found" >&6
26082 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26083echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26084 { (exit 1); exit 1; }; }
26085 fi
26086 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26087echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26088
26089 wxUSE_UNIVERSAL="yes"
26090
26091 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26092 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26093
26094 AFMINSTALL=afminstall
26095 TOOLKIT=MGL
26096 GUIDIST=MGL_DIST
26097 fi
26098
26099 if test "$wxUSE_MICROWIN" = 1; then
26100 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26101echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26102 if test "x$MICROWINDOWS" = x ; then
26103 echo "$as_me:$LINENO: result: not found" >&5
26104echo "${ECHO_T}not found" >&6
26105 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26106echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26107 { (exit 1); exit 1; }; }
26108 else
26109 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26110echo "${ECHO_T}$MICROWINDOWS" >&6
26111 fi
26112
26113 if test -f $MICROWINDOWS/lib/libmwin.a; then
26114 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26115echo "${ECHO_T}MicroWindows' libraries found." >&6
26116 else
26117 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26118echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26119 { (exit 1); exit 1; }; }
26120 fi
26121
26122 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26123 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26124
26125 wxUSE_UNIVERSAL="yes"
26126
26127 AFMINSTALL=afminstall
26128 TOOLKIT=MICROWIN
26129 GUIDIST=MICROWIN_DIST
26130
26131 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26132 fi
26133
74b84332 26134 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26135
26136if test "x$ac_path_x_has_been_run" != xyes; then
26137 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26138echo $ECHO_N "checking for X... $ECHO_C" >&6
26139
6ebeb4c7 26140ac_path_x_has_been_run=yes
a848cd7e
SC
26141
26142# Check whether --with-x or --without-x was given.
26143if test "${with_x+set}" = set; then
26144 withval="$with_x"
26145
26146fi;
26147# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26148if test "x$with_x" = xno; then
26149 # The user explicitly disabled X.
26150 have_x=disabled
26151else
26152 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26153 # Both variables are already set.
26154 have_x=yes
26155 else
26156 if test "${ac_cv_have_x+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159 # One or both of the vars are not set, and there is no cached value.
26160ac_x_includes=no ac_x_libraries=no
26161rm -fr conftest.dir
26162if mkdir conftest.dir; then
26163 cd conftest.dir
26164 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26165 cat >Imakefile <<'_ACEOF'
26166acfindx:
26167 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26168_ACEOF
26169 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26171 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26172 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26173 for ac_extension in a so sl; do
26174 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26175 test -f $ac_im_libdir/libX11.$ac_extension; then
26176 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26177 fi
26178 done
26179 # Screen out bogus values from the imake configuration. They are
26180 # bogus both because they are the default anyway, and because
26181 # using them would break gcc on systems where it needs fixed includes.
26182 case $ac_im_incroot in
26183 /usr/include) ;;
26184 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26185 esac
26186 case $ac_im_usrlibdir in
26187 /usr/lib | /lib) ;;
26188 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26189 esac
26190 fi
26191 cd ..
26192 rm -fr conftest.dir
26193fi
26194
26195# Standard set of common directories for X headers.
26196# Check X11 before X11Rn because it is often a symlink to the current release.
26197ac_x_header_dirs='
26198/usr/X11/include
26199/usr/X11R6/include
26200/usr/X11R5/include
26201/usr/X11R4/include
26202
26203/usr/include/X11
26204/usr/include/X11R6
26205/usr/include/X11R5
26206/usr/include/X11R4
26207
26208/usr/local/X11/include
26209/usr/local/X11R6/include
26210/usr/local/X11R5/include
26211/usr/local/X11R4/include
26212
26213/usr/local/include/X11
26214/usr/local/include/X11R6
26215/usr/local/include/X11R5
26216/usr/local/include/X11R4
26217
26218/usr/X386/include
26219/usr/x386/include
26220/usr/XFree86/include/X11
26221
26222/usr/include
26223/usr/local/include
26224/usr/unsupported/include
26225/usr/athena/include
26226/usr/local/x11r5/include
26227/usr/lpp/Xamples/include
26228
26229/usr/openwin/include
26230/usr/openwin/share/include'
26231
26232if test "$ac_x_includes" = no; then
6ebeb4c7 26233 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26234 # First, try using that file with no special directory specified.
26235 cat >conftest.$ac_ext <<_ACEOF
26236/* confdefs.h. */
26237_ACEOF
26238cat confdefs.h >>conftest.$ac_ext
26239cat >>conftest.$ac_ext <<_ACEOF
26240/* end confdefs.h. */
26241#include <X11/Intrinsic.h>
26242_ACEOF
26243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26245 ac_status=$?
26246 grep -v '^ *+' conftest.er1 >conftest.err
26247 rm -f conftest.er1
26248 cat conftest.err >&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } >/dev/null; then
26251 if test -s conftest.err; then
26252 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26254 else
26255 ac_cpp_err=
26256 fi
26257else
26258 ac_cpp_err=yes
26259fi
26260if test -z "$ac_cpp_err"; then
26261 # We can compile using X headers with no special include directory.
26262ac_x_includes=
26263else
26264 echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267 for ac_dir in $ac_x_header_dirs; do
26268 if test -r "$ac_dir/X11/Intrinsic.h"; then
26269 ac_x_includes=$ac_dir
26270 break
26271 fi
26272done
26273fi
26274rm -f conftest.err conftest.$ac_ext
26275fi # $ac_x_includes = no
26276
26277if test "$ac_x_libraries" = no; then
26278 # Check for the libraries.
26279 # See if we find them without any special options.
26280 # Don't add to $LIBS permanently.
26281 ac_save_LIBS=$LIBS
26282 LIBS="-lXt $LIBS"
26283 cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h. */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h. */
26289#include <X11/Intrinsic.h>
26290int
26291main ()
26292{
26293XtMalloc (0)
26294 ;
26295 return 0;
26296}
26297_ACEOF
26298rm -f conftest.$ac_objext conftest$ac_exeext
26299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26300 (eval $ac_link) 2>conftest.er1
a848cd7e 26301 ac_status=$?
ac1cb8d3
VS
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
a848cd7e
SC
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } &&
6ebeb4c7 26307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; } &&
26313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; }; then
26319 LIBS=$ac_save_LIBS
26320# We can link X programs with no special library path.
26321ac_x_libraries=
26322else
26323 echo "$as_me: failed program was:" >&5
26324sed 's/^/| /' conftest.$ac_ext >&5
26325
26326LIBS=$ac_save_LIBS
26327for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26328do
26329 # Don't even attempt the hair of trying to link an X program!
26330 for ac_extension in a so sl; do
26331 if test -r $ac_dir/libXt.$ac_extension; then
26332 ac_x_libraries=$ac_dir
26333 break 2
26334 fi
26335 done
26336done
26337fi
ac1cb8d3
VS
26338rm -f conftest.err conftest.$ac_objext \
26339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26340fi # $ac_x_libraries = no
26341
26342if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26343 # Didn't find X anywhere. Cache the known absence of X.
26344 ac_cv_have_x="have_x=no"
26345else
26346 # Record where we found X for the cache.
26347 ac_cv_have_x="have_x=yes \
ac1cb8d3 26348 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26349fi
26350fi
26351
26352 fi
26353 eval "$ac_cv_have_x"
26354fi # $with_x != no
26355
26356if test "$have_x" != yes; then
26357 echo "$as_me:$LINENO: result: $have_x" >&5
26358echo "${ECHO_T}$have_x" >&6
26359 no_x=yes
26360else
26361 # If each of the values was on the command line, it overrides each guess.
26362 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26363 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26364 # Update the cache value to reflect the command line values.
26365 ac_cv_have_x="have_x=yes \
26366 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26367 # It might be that x_includes is empty (headers are found in the
26368 # standard search path. Then output the corresponding message
26369 ac_out_x_includes=$x_includes
26370 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26371 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26372echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26373fi
26374
6ebeb4c7 26375fi
a848cd7e
SC
26376if test "$no_x" = yes; then
26377 # Not all programs may use this symbol, but it does not hurt to define it.
26378
26379cat >>confdefs.h <<\_ACEOF
26380#define X_DISPLAY_MISSING 1
26381_ACEOF
26382
26383 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26384else
26385 if test -n "$x_includes"; then
26386 X_CFLAGS="$X_CFLAGS -I$x_includes"
26387 fi
26388
26389 # It would also be nice to do this for all -L options, not just this one.
26390 if test -n "$x_libraries"; then
26391 X_LIBS="$X_LIBS -L$x_libraries"
26392 # For Solaris; some versions of Sun CC require a space after -R and
26393 # others require no space. Words are not sufficient . . . .
26394 case `(uname -sr) 2>/dev/null` in
26395 "SunOS 5"*)
26396 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26397echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26398 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26399 cat >conftest.$ac_ext <<_ACEOF
26400/* confdefs.h. */
26401_ACEOF
26402cat confdefs.h >>conftest.$ac_ext
26403cat >>conftest.$ac_ext <<_ACEOF
26404/* end confdefs.h. */
26405
26406int
26407main ()
26408{
26409
26410 ;
26411 return 0;
26412}
26413_ACEOF
26414rm -f conftest.$ac_objext conftest$ac_exeext
26415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26416 (eval $ac_link) 2>conftest.er1
a848cd7e 26417 ac_status=$?
ac1cb8d3
VS
26418 grep -v '^ *+' conftest.er1 >conftest.err
26419 rm -f conftest.er1
26420 cat conftest.err >&5
a848cd7e
SC
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } &&
6ebeb4c7 26423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; } &&
26429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 ac_R_nospace=yes
26436else
26437 echo "$as_me: failed program was:" >&5
26438sed 's/^/| /' conftest.$ac_ext >&5
26439
26440ac_R_nospace=no
26441fi
ac1cb8d3
VS
26442rm -f conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26444 if test $ac_R_nospace = yes; then
26445 echo "$as_me:$LINENO: result: no" >&5
26446echo "${ECHO_T}no" >&6
26447 X_LIBS="$X_LIBS -R$x_libraries"
26448 else
26449 LIBS="$ac_xsave_LIBS -R $x_libraries"
26450 cat >conftest.$ac_ext <<_ACEOF
26451/* confdefs.h. */
26452_ACEOF
26453cat confdefs.h >>conftest.$ac_ext
26454cat >>conftest.$ac_ext <<_ACEOF
26455/* end confdefs.h. */
26456
26457int
26458main ()
26459{
26460
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext conftest$ac_exeext
26466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26467 (eval $ac_link) 2>conftest.er1
a848cd7e 26468 ac_status=$?
ac1cb8d3
VS
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
a848cd7e
SC
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } &&
6ebeb4c7 26474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; } &&
26480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; }; then
26486 ac_R_space=yes
26487else
26488 echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491ac_R_space=no
26492fi
ac1cb8d3
VS
26493rm -f conftest.err conftest.$ac_objext \
26494 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26495 if test $ac_R_space = yes; then
26496 echo "$as_me:$LINENO: result: yes" >&5
26497echo "${ECHO_T}yes" >&6
26498 X_LIBS="$X_LIBS -R $x_libraries"
26499 else
26500 echo "$as_me:$LINENO: result: neither works" >&5
26501echo "${ECHO_T}neither works" >&6
26502 fi
26503 fi
26504 LIBS=$ac_xsave_LIBS
26505 esac
26506 fi
26507
26508 # Check for system-dependent libraries X programs must link with.
26509 # Do this before checking for the system-independent R6 libraries
26510 # (-lICE), since we may need -lsocket or whatever for X linking.
26511
26512 if test "$ISC" = yes; then
26513 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26514 else
26515 # Martyn Johnson says this is needed for Ultrix, if the X
26516 # libraries were built with DECnet support. And Karl Berry says
26517 # the Alpha needs dnet_stub (dnet does not exist).
26518 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26519 cat >conftest.$ac_ext <<_ACEOF
26520/* confdefs.h. */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h. */
26525
26526/* Override any gcc2 internal prototype to avoid an error. */
26527#ifdef __cplusplus
26528extern "C"
26529#endif
26530/* We use char because int might match the return type of a gcc2
26531 builtin and then its argument prototype would still apply. */
26532char XOpenDisplay ();
26533int
26534main ()
26535{
26536XOpenDisplay ();
26537 ;
26538 return 0;
26539}
26540_ACEOF
26541rm -f conftest.$ac_objext conftest$ac_exeext
26542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26543 (eval $ac_link) 2>conftest.er1
a848cd7e 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
a848cd7e
SC
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
6ebeb4c7 26550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 :
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26568echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26569if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26571else
26572 ac_check_lib_save_LIBS=$LIBS
26573LIBS="-ldnet $LIBS"
26574cat >conftest.$ac_ext <<_ACEOF
26575/* confdefs.h. */
26576_ACEOF
26577cat confdefs.h >>conftest.$ac_ext
26578cat >>conftest.$ac_ext <<_ACEOF
26579/* end confdefs.h. */
26580
26581/* Override any gcc2 internal prototype to avoid an error. */
26582#ifdef __cplusplus
26583extern "C"
26584#endif
26585/* We use char because int might match the return type of a gcc2
26586 builtin and then its argument prototype would still apply. */
26587char dnet_ntoa ();
26588int
26589main ()
26590{
26591dnet_ntoa ();
26592 ;
26593 return 0;
26594}
26595_ACEOF
26596rm -f conftest.$ac_objext conftest$ac_exeext
26597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26598 (eval $ac_link) 2>conftest.er1
a848cd7e 26599 ac_status=$?
ac1cb8d3
VS
26600 grep -v '^ *+' conftest.er1 >conftest.err
26601 rm -f conftest.er1
26602 cat conftest.err >&5
a848cd7e
SC
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } &&
6ebeb4c7 26605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; } &&
26611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); }; }; then
26617 ac_cv_lib_dnet_dnet_ntoa=yes
26618else
26619 echo "$as_me: failed program was:" >&5
26620sed 's/^/| /' conftest.$ac_ext >&5
26621
26622ac_cv_lib_dnet_dnet_ntoa=no
26623fi
ac1cb8d3
VS
26624rm -f conftest.err conftest.$ac_objext \
26625 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26626LIBS=$ac_check_lib_save_LIBS
26627fi
26628echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26629echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26630if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26631 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26632fi
26633
26634 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26635 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26636echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26637if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26638 echo $ECHO_N "(cached) $ECHO_C" >&6
26639else
26640 ac_check_lib_save_LIBS=$LIBS
26641LIBS="-ldnet_stub $LIBS"
26642cat >conftest.$ac_ext <<_ACEOF
26643/* confdefs.h. */
26644_ACEOF
26645cat confdefs.h >>conftest.$ac_ext
26646cat >>conftest.$ac_ext <<_ACEOF
26647/* end confdefs.h. */
26648
26649/* Override any gcc2 internal prototype to avoid an error. */
26650#ifdef __cplusplus
26651extern "C"
26652#endif
26653/* We use char because int might match the return type of a gcc2
26654 builtin and then its argument prototype would still apply. */
26655char dnet_ntoa ();
26656int
26657main ()
26658{
26659dnet_ntoa ();
26660 ;
26661 return 0;
26662}
26663_ACEOF
26664rm -f conftest.$ac_objext conftest$ac_exeext
26665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26666 (eval $ac_link) 2>conftest.er1
a848cd7e 26667 ac_status=$?
ac1cb8d3
VS
26668 grep -v '^ *+' conftest.er1 >conftest.err
26669 rm -f conftest.er1
26670 cat conftest.err >&5
a848cd7e
SC
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } &&
6ebeb4c7 26673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; } &&
26679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; }; then
26685 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26686else
26687 echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690ac_cv_lib_dnet_stub_dnet_ntoa=no
26691fi
ac1cb8d3
VS
26692rm -f conftest.err conftest.$ac_objext \
26693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26694LIBS=$ac_check_lib_save_LIBS
26695fi
26696echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26697echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26698if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26699 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26700fi
26701
26702 fi
26703fi
ac1cb8d3
VS
26704rm -f conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26706 LIBS="$ac_xsave_LIBS"
26707
26708 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26709 # to get the SysV transport functions.
26710 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26711 # needs -lnsl.
26712 # The nsl library prevents programs from opening the X display
26713 # on Irix 5.2, according to T.E. Dickey.
26714 # The functions gethostbyname, getservbyname, and inet_addr are
26715 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26716 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26717echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26718if test "${ac_cv_func_gethostbyname+set}" = set; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26720else
26721 cat >conftest.$ac_ext <<_ACEOF
26722/* confdefs.h. */
26723_ACEOF
26724cat confdefs.h >>conftest.$ac_ext
26725cat >>conftest.$ac_ext <<_ACEOF
26726/* end confdefs.h. */
ac1cb8d3
VS
26727/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26729#define gethostbyname innocuous_gethostbyname
26730
a848cd7e
SC
26731/* System header to define __stub macros and hopefully few prototypes,
26732 which can conflict with char gethostbyname (); below.
26733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26734 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26735
a848cd7e
SC
26736#ifdef __STDC__
26737# include <limits.h>
26738#else
26739# include <assert.h>
26740#endif
ac1cb8d3
VS
26741
26742#undef gethostbyname
26743
a848cd7e
SC
26744/* Override any gcc2 internal prototype to avoid an error. */
26745#ifdef __cplusplus
26746extern "C"
26747{
26748#endif
26749/* We use char because int might match the return type of a gcc2
26750 builtin and then its argument prototype would still apply. */
26751char gethostbyname ();
26752/* The GNU C library defines this for functions which it implements
26753 to always fail with ENOSYS. Some functions are actually named
26754 something starting with __ and the normal name is an alias. */
26755#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26756choke me
26757#else
26758char (*f) () = gethostbyname;
26759#endif
26760#ifdef __cplusplus
26761}
26762#endif
26763
26764int
26765main ()
26766{
26767return f != gethostbyname;
26768 ;
26769 return 0;
26770}
26771_ACEOF
26772rm -f conftest.$ac_objext conftest$ac_exeext
26773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26774 (eval $ac_link) 2>conftest.er1
a848cd7e 26775 ac_status=$?
ac1cb8d3
VS
26776 grep -v '^ *+' conftest.er1 >conftest.err
26777 rm -f conftest.er1
26778 cat conftest.err >&5
a848cd7e
SC
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } &&
6ebeb4c7 26781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; } &&
26787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; }; then
26793 ac_cv_func_gethostbyname=yes
26794else
26795 echo "$as_me: failed program was:" >&5
26796sed 's/^/| /' conftest.$ac_ext >&5
26797
26798ac_cv_func_gethostbyname=no
26799fi
ac1cb8d3
VS
26800rm -f conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26802fi
26803echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26804echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26805
26806 if test $ac_cv_func_gethostbyname = no; then
26807 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26808echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26809if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26811else
26812 ac_check_lib_save_LIBS=$LIBS
26813LIBS="-lnsl $LIBS"
26814cat >conftest.$ac_ext <<_ACEOF
26815/* confdefs.h. */
26816_ACEOF
26817cat confdefs.h >>conftest.$ac_ext
26818cat >>conftest.$ac_ext <<_ACEOF
26819/* end confdefs.h. */
26820
26821/* Override any gcc2 internal prototype to avoid an error. */
26822#ifdef __cplusplus
26823extern "C"
26824#endif
26825/* We use char because int might match the return type of a gcc2
26826 builtin and then its argument prototype would still apply. */
26827char gethostbyname ();
26828int
26829main ()
26830{
26831gethostbyname ();
26832 ;
26833 return 0;
26834}
26835_ACEOF
26836rm -f conftest.$ac_objext conftest$ac_exeext
26837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26838 (eval $ac_link) 2>conftest.er1
26839 ac_status=$?
26840 grep -v '^ *+' conftest.er1 >conftest.err
26841 rm -f conftest.er1
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } &&
6ebeb4c7 26845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest$ac_exeext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_lib_nsl_gethostbyname=yes
26858else
26859 echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
26862ac_cv_lib_nsl_gethostbyname=no
26863fi
26864rm -f conftest.err conftest.$ac_objext \
26865 conftest$ac_exeext conftest.$ac_ext
26866LIBS=$ac_check_lib_save_LIBS
26867fi
26868echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26869echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26870if test $ac_cv_lib_nsl_gethostbyname = yes; then
26871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26872fi
26873
26874 if test $ac_cv_lib_nsl_gethostbyname = no; then
26875 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26876echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26877if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880 ac_check_lib_save_LIBS=$LIBS
26881LIBS="-lbsd $LIBS"
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888
26889/* Override any gcc2 internal prototype to avoid an error. */
26890#ifdef __cplusplus
26891extern "C"
26892#endif
26893/* We use char because int might match the return type of a gcc2
26894 builtin and then its argument prototype would still apply. */
26895char gethostbyname ();
26896int
26897main ()
26898{
26899gethostbyname ();
26900 ;
26901 return 0;
26902}
26903_ACEOF
26904rm -f conftest.$ac_objext conftest$ac_exeext
26905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26906 (eval $ac_link) 2>conftest.er1
a848cd7e 26907 ac_status=$?
ac1cb8d3
VS
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
a848cd7e
SC
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
6ebeb4c7 26913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_cv_lib_bsd_gethostbyname=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930ac_cv_lib_bsd_gethostbyname=no
26931fi
ac1cb8d3
VS
26932rm -f conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26934LIBS=$ac_check_lib_save_LIBS
26935fi
26936echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26937echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26938if test $ac_cv_lib_bsd_gethostbyname = yes; then
26939 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26940fi
26941
26942 fi
26943 fi
26944
26945 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26946 # socket/setsockopt and other routines are undefined under SCO ODT
26947 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26948 # on later versions), says Simon Leinen: it contains gethostby*
26949 # variants that don't use the name server (or something). -lsocket
26950 # must be given before -lnsl if both are needed. We assume that
26951 # if connect needs -lnsl, so does gethostbyname.
26952 echo "$as_me:$LINENO: checking for connect" >&5
26953echo $ECHO_N "checking for connect... $ECHO_C" >&6
26954if test "${ac_cv_func_connect+set}" = set; then
26955 echo $ECHO_N "(cached) $ECHO_C" >&6
26956else
26957 cat >conftest.$ac_ext <<_ACEOF
26958/* confdefs.h. */
26959_ACEOF
26960cat confdefs.h >>conftest.$ac_ext
26961cat >>conftest.$ac_ext <<_ACEOF
26962/* end confdefs.h. */
ac1cb8d3
VS
26963/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26965#define connect innocuous_connect
26966
a848cd7e
SC
26967/* System header to define __stub macros and hopefully few prototypes,
26968 which can conflict with char connect (); below.
26969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26970 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26971
a848cd7e
SC
26972#ifdef __STDC__
26973# include <limits.h>
26974#else
26975# include <assert.h>
26976#endif
ac1cb8d3
VS
26977
26978#undef connect
26979
a848cd7e
SC
26980/* Override any gcc2 internal prototype to avoid an error. */
26981#ifdef __cplusplus
26982extern "C"
26983{
26984#endif
26985/* We use char because int might match the return type of a gcc2
26986 builtin and then its argument prototype would still apply. */
26987char connect ();
26988/* The GNU C library defines this for functions which it implements
26989 to always fail with ENOSYS. Some functions are actually named
26990 something starting with __ and the normal name is an alias. */
26991#if defined (__stub_connect) || defined (__stub___connect)
26992choke me
26993#else
26994char (*f) () = connect;
26995#endif
26996#ifdef __cplusplus
26997}
26998#endif
26999
27000int
27001main ()
27002{
27003return f != connect;
27004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
27009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27010 (eval $ac_link) 2>conftest.er1
a848cd7e 27011 ac_status=$?
ac1cb8d3
VS
27012 grep -v '^ *+' conftest.er1 >conftest.err
27013 rm -f conftest.er1
27014 cat conftest.err >&5
a848cd7e
SC
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } &&
6ebeb4c7 27017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; } &&
27023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; }; then
27029 ac_cv_func_connect=yes
27030else
27031 echo "$as_me: failed program was:" >&5
27032sed 's/^/| /' conftest.$ac_ext >&5
27033
27034ac_cv_func_connect=no
27035fi
ac1cb8d3
VS
27036rm -f conftest.err conftest.$ac_objext \
27037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27038fi
27039echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27040echo "${ECHO_T}$ac_cv_func_connect" >&6
27041
27042 if test $ac_cv_func_connect = no; then
27043 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27044echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27045if test "${ac_cv_lib_socket_connect+set}" = set; then
27046 echo $ECHO_N "(cached) $ECHO_C" >&6
27047else
27048 ac_check_lib_save_LIBS=$LIBS
27049LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27050cat >conftest.$ac_ext <<_ACEOF
27051/* confdefs.h. */
27052_ACEOF
27053cat confdefs.h >>conftest.$ac_ext
27054cat >>conftest.$ac_ext <<_ACEOF
27055/* end confdefs.h. */
27056
27057/* Override any gcc2 internal prototype to avoid an error. */
27058#ifdef __cplusplus
27059extern "C"
27060#endif
27061/* We use char because int might match the return type of a gcc2
27062 builtin and then its argument prototype would still apply. */
27063char connect ();
27064int
27065main ()
27066{
27067connect ();
27068 ;
27069 return 0;
27070}
27071_ACEOF
27072rm -f conftest.$ac_objext conftest$ac_exeext
27073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27074 (eval $ac_link) 2>conftest.er1
a848cd7e 27075 ac_status=$?
ac1cb8d3
VS
27076 grep -v '^ *+' conftest.er1 >conftest.err
27077 rm -f conftest.er1
27078 cat conftest.err >&5
a848cd7e
SC
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } &&
6ebeb4c7 27081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; } &&
27087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27090 ac_status=$?
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; }; then
27093 ac_cv_lib_socket_connect=yes
27094else
27095 echo "$as_me: failed program was:" >&5
27096sed 's/^/| /' conftest.$ac_ext >&5
27097
27098ac_cv_lib_socket_connect=no
27099fi
ac1cb8d3
VS
27100rm -f conftest.err conftest.$ac_objext \
27101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27102LIBS=$ac_check_lib_save_LIBS
27103fi
27104echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27105echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27106if test $ac_cv_lib_socket_connect = yes; then
27107 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27108fi
27109
27110 fi
27111
27112 # Guillermo Gomez says -lposix is necessary on A/UX.
27113 echo "$as_me:$LINENO: checking for remove" >&5
27114echo $ECHO_N "checking for remove... $ECHO_C" >&6
27115if test "${ac_cv_func_remove+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 cat >conftest.$ac_ext <<_ACEOF
27119/* confdefs.h. */
27120_ACEOF
27121cat confdefs.h >>conftest.$ac_ext
27122cat >>conftest.$ac_ext <<_ACEOF
27123/* end confdefs.h. */
ac1cb8d3
VS
27124/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27126#define remove innocuous_remove
27127
a848cd7e
SC
27128/* System header to define __stub macros and hopefully few prototypes,
27129 which can conflict with char remove (); below.
27130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27131 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27132
a848cd7e
SC
27133#ifdef __STDC__
27134# include <limits.h>
27135#else
27136# include <assert.h>
27137#endif
ac1cb8d3
VS
27138
27139#undef remove
27140
a848cd7e
SC
27141/* Override any gcc2 internal prototype to avoid an error. */
27142#ifdef __cplusplus
27143extern "C"
27144{
27145#endif
27146/* We use char because int might match the return type of a gcc2
27147 builtin and then its argument prototype would still apply. */
27148char remove ();
27149/* The GNU C library defines this for functions which it implements
27150 to always fail with ENOSYS. Some functions are actually named
27151 something starting with __ and the normal name is an alias. */
27152#if defined (__stub_remove) || defined (__stub___remove)
27153choke me
27154#else
27155char (*f) () = remove;
27156#endif
27157#ifdef __cplusplus
27158}
27159#endif
27160
27161int
27162main ()
27163{
27164return f != remove;
27165 ;
27166 return 0;
27167}
27168_ACEOF
27169rm -f conftest.$ac_objext conftest$ac_exeext
27170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27171 (eval $ac_link) 2>conftest.er1
a848cd7e 27172 ac_status=$?
ac1cb8d3
VS
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
a848cd7e
SC
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
6ebeb4c7 27178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; } &&
27184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
27190 ac_cv_func_remove=yes
27191else
27192 echo "$as_me: failed program was:" >&5
27193sed 's/^/| /' conftest.$ac_ext >&5
27194
27195ac_cv_func_remove=no
27196fi
ac1cb8d3
VS
27197rm -f conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27199fi
27200echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27201echo "${ECHO_T}$ac_cv_func_remove" >&6
27202
27203 if test $ac_cv_func_remove = no; then
27204 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27205echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27206if test "${ac_cv_lib_posix_remove+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208else
27209 ac_check_lib_save_LIBS=$LIBS
27210LIBS="-lposix $LIBS"
27211cat >conftest.$ac_ext <<_ACEOF
27212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
27217
27218/* Override any gcc2 internal prototype to avoid an error. */
27219#ifdef __cplusplus
27220extern "C"
27221#endif
27222/* We use char because int might match the return type of a gcc2
27223 builtin and then its argument prototype would still apply. */
27224char remove ();
27225int
27226main ()
27227{
27228remove ();
27229 ;
27230 return 0;
27231}
27232_ACEOF
27233rm -f conftest.$ac_objext conftest$ac_exeext
27234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27235 (eval $ac_link) 2>conftest.er1
a848cd7e 27236 ac_status=$?
ac1cb8d3
VS
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
a848cd7e
SC
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } &&
6ebeb4c7 27242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250 (eval $ac_try) 2>&5
27251 ac_status=$?
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); }; }; then
27254 ac_cv_lib_posix_remove=yes
27255else
27256 echo "$as_me: failed program was:" >&5
27257sed 's/^/| /' conftest.$ac_ext >&5
27258
27259ac_cv_lib_posix_remove=no
27260fi
ac1cb8d3
VS
27261rm -f conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27263LIBS=$ac_check_lib_save_LIBS
27264fi
27265echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27266echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27267if test $ac_cv_lib_posix_remove = yes; then
27268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27269fi
27270
27271 fi
27272
27273 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27274 echo "$as_me:$LINENO: checking for shmat" >&5
27275echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27276if test "${ac_cv_func_shmat+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27278else
27279 cat >conftest.$ac_ext <<_ACEOF
27280/* confdefs.h. */
27281_ACEOF
27282cat confdefs.h >>conftest.$ac_ext
27283cat >>conftest.$ac_ext <<_ACEOF
27284/* end confdefs.h. */
ac1cb8d3
VS
27285/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27287#define shmat innocuous_shmat
27288
a848cd7e
SC
27289/* System header to define __stub macros and hopefully few prototypes,
27290 which can conflict with char shmat (); below.
27291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27293
a848cd7e
SC
27294#ifdef __STDC__
27295# include <limits.h>
27296#else
27297# include <assert.h>
27298#endif
ac1cb8d3
VS
27299
27300#undef shmat
27301
a848cd7e
SC
27302/* Override any gcc2 internal prototype to avoid an error. */
27303#ifdef __cplusplus
27304extern "C"
27305{
27306#endif
27307/* We use char because int might match the return type of a gcc2
27308 builtin and then its argument prototype would still apply. */
27309char shmat ();
27310/* The GNU C library defines this for functions which it implements
27311 to always fail with ENOSYS. Some functions are actually named
27312 something starting with __ and the normal name is an alias. */
27313#if defined (__stub_shmat) || defined (__stub___shmat)
27314choke me
27315#else
27316char (*f) () = shmat;
27317#endif
27318#ifdef __cplusplus
27319}
27320#endif
27321
27322int
27323main ()
27324{
27325return f != shmat;
27326 ;
27327 return 0;
27328}
27329_ACEOF
27330rm -f conftest.$ac_objext conftest$ac_exeext
27331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27332 (eval $ac_link) 2>conftest.er1
a848cd7e 27333 ac_status=$?
ac1cb8d3
VS
27334 grep -v '^ *+' conftest.er1 >conftest.err
27335 rm -f conftest.er1
27336 cat conftest.err >&5
a848cd7e
SC
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); } &&
6ebeb4c7 27339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341 (eval $ac_try) 2>&5
27342 ac_status=$?
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; } &&
27345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; }; then
27351 ac_cv_func_shmat=yes
27352else
27353 echo "$as_me: failed program was:" >&5
27354sed 's/^/| /' conftest.$ac_ext >&5
27355
27356ac_cv_func_shmat=no
27357fi
ac1cb8d3
VS
27358rm -f conftest.err conftest.$ac_objext \
27359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27360fi
27361echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27362echo "${ECHO_T}$ac_cv_func_shmat" >&6
27363
27364 if test $ac_cv_func_shmat = no; then
27365 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27366echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27367if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369else
27370 ac_check_lib_save_LIBS=$LIBS
27371LIBS="-lipc $LIBS"
27372cat >conftest.$ac_ext <<_ACEOF
27373/* confdefs.h. */
27374_ACEOF
27375cat confdefs.h >>conftest.$ac_ext
27376cat >>conftest.$ac_ext <<_ACEOF
27377/* end confdefs.h. */
27378
27379/* Override any gcc2 internal prototype to avoid an error. */
27380#ifdef __cplusplus
27381extern "C"
27382#endif
27383/* We use char because int might match the return type of a gcc2
27384 builtin and then its argument prototype would still apply. */
27385char shmat ();
27386int
27387main ()
27388{
27389shmat ();
27390 ;
27391 return 0;
27392}
27393_ACEOF
27394rm -f conftest.$ac_objext conftest$ac_exeext
27395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27396 (eval $ac_link) 2>conftest.er1
a848cd7e 27397 ac_status=$?
ac1cb8d3
VS
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
a848cd7e
SC
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
6ebeb4c7 27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 ac_cv_lib_ipc_shmat=yes
27416else
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
27420ac_cv_lib_ipc_shmat=no
27421fi
ac1cb8d3
VS
27422rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27424LIBS=$ac_check_lib_save_LIBS
27425fi
27426echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27427echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27428if test $ac_cv_lib_ipc_shmat = yes; then
27429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27430fi
27431
27432 fi
27433 fi
27434
27435 # Check for libraries that X11R6 Xt/Xaw programs need.
27436 ac_save_LDFLAGS=$LDFLAGS
27437 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27438 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27439 # check for ICE first), but we must link in the order -lSM -lICE or
27440 # we get undefined symbols. So assume we have SM if we have ICE.
27441 # These have to be linked with before -lX11, unlike the other
27442 # libraries we check for below, so use a different variable.
27443 # John Interrante, Karl Berry
27444 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27445echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27446if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448else
27449 ac_check_lib_save_LIBS=$LIBS
27450LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27451cat >conftest.$ac_ext <<_ACEOF
27452/* confdefs.h. */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h. */
27457
27458/* Override any gcc2 internal prototype to avoid an error. */
27459#ifdef __cplusplus
27460extern "C"
27461#endif
27462/* We use char because int might match the return type of a gcc2
27463 builtin and then its argument prototype would still apply. */
27464char IceConnectionNumber ();
27465int
27466main ()
27467{
27468IceConnectionNumber ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext conftest$ac_exeext
27474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27475 (eval $ac_link) 2>conftest.er1
a848cd7e 27476 ac_status=$?
ac1cb8d3
VS
27477 grep -v '^ *+' conftest.er1 >conftest.err
27478 rm -f conftest.er1
27479 cat conftest.err >&5
a848cd7e
SC
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
6ebeb4c7 27482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484 (eval $ac_try) 2>&5
27485 ac_status=$?
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490 (eval $ac_try) 2>&5
27491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; }; then
27494 ac_cv_lib_ICE_IceConnectionNumber=yes
27495else
27496 echo "$as_me: failed program was:" >&5
27497sed 's/^/| /' conftest.$ac_ext >&5
27498
27499ac_cv_lib_ICE_IceConnectionNumber=no
27500fi
ac1cb8d3
VS
27501rm -f conftest.err conftest.$ac_objext \
27502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27503LIBS=$ac_check_lib_save_LIBS
27504fi
27505echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27506echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27507if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27508 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27509fi
27510
27511 LDFLAGS=$ac_save_LDFLAGS
27512
27513fi
27514
27515
27516 if test "$no_x" = "yes"; then
27517 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27518echo "$as_me: error: X11 not found" >&2;}
27519 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27520 fi
27521
74b84332
VS
27522 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27523 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27524 AFMINSTALL=afminstall
27525 COMPILED_X_PROGRAM=0
27526
74b84332
VS
27527 fi
27528
27529 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27530 if test "$wxUSE_NANOX" = "yes"; then
27531 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27532echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27533 if test "x$MICROWIN" = x ; then
27534 echo "$as_me:$LINENO: result: not found" >&5
27535echo "${ECHO_T}not found" >&6
27536 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27537echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27538 { (exit 1); exit 1; }; }
27539 else
27540 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27541echo "${ECHO_T}$MICROWIN" >&6
27542 cat >>confdefs.h <<\_ACEOF
27543#define wxUSE_NANOX 1
27544_ACEOF
27545
27546 fi
27547 fi
27548
27549 if test "$wxUSE_UNICODE" = "yes"; then
27550
27551 succeeded=no
27552
27553 if test -z "$PKG_CONFIG"; then
27554 # Extract the first word of "pkg-config", so it can be a program name with args.
27555set dummy pkg-config; ac_word=$2
27556echo "$as_me:$LINENO: checking for $ac_word" >&5
27557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27558if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27559 echo $ECHO_N "(cached) $ECHO_C" >&6
27560else
27561 case $PKG_CONFIG in
27562 [\\/]* | ?:[\\/]*)
27563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27564 ;;
27565 *)
27566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27567for as_dir in $PATH
27568do
27569 IFS=$as_save_IFS
27570 test -z "$as_dir" && as_dir=.
27571 for ac_exec_ext in '' $ac_executable_extensions; do
27572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27575 break 2
27576 fi
27577done
27578done
27579
27580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27581 ;;
27582esac
27583fi
27584PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27585
27586if test -n "$PKG_CONFIG"; then
27587 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27588echo "${ECHO_T}$PKG_CONFIG" >&6
27589else
27590 echo "$as_me:$LINENO: result: no" >&5
27591echo "${ECHO_T}no" >&6
27592fi
27593
27594 fi
27595
27596 if test "$PKG_CONFIG" = "no" ; then
27597 echo "*** The pkg-config script could not be found. Make sure it is"
27598 echo "*** in your path, or set the PKG_CONFIG environment variable"
27599 echo "*** to the full path to pkg-config."
27600 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27601 else
27602 PKG_CONFIG_MIN_VERSION=0.9.0
27603 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27604 echo "$as_me:$LINENO: checking for pangox" >&5
27605echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27606
27607 if $PKG_CONFIG --exists "pangox" ; then
27608 echo "$as_me:$LINENO: result: yes" >&5
27609echo "${ECHO_T}yes" >&6
27610 succeeded=yes
27611
27612 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27613echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27614 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27615 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27616echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27617
27618 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27619echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27620 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27621 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27622echo "${ECHO_T}$PANGOX_LIBS" >&6
27623 else
27624 PANGOX_CFLAGS=""
27625 PANGOX_LIBS=""
27626 ## If we have a custom action on failure, don't print errors, but
27627 ## do set a variable so people can do so.
27628 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27629
27630 fi
27631
27632
27633
27634 else
27635 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27636 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27637 fi
27638 fi
27639
27640 if test $succeeded = yes; then
27641
27642 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27643 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27644
27645 else
27646
27647 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27648echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27649 { (exit 1); exit 1; }; }
27650
27651
27652 fi
27653
27654
27655 succeeded=no
27656
27657 if test -z "$PKG_CONFIG"; then
27658 # Extract the first word of "pkg-config", so it can be a program name with args.
27659set dummy pkg-config; ac_word=$2
27660echo "$as_me:$LINENO: checking for $ac_word" >&5
27661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27662if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27663 echo $ECHO_N "(cached) $ECHO_C" >&6
27664else
27665 case $PKG_CONFIG in
27666 [\\/]* | ?:[\\/]*)
27667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27668 ;;
27669 *)
27670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27671for as_dir in $PATH
27672do
27673 IFS=$as_save_IFS
27674 test -z "$as_dir" && as_dir=.
27675 for ac_exec_ext in '' $ac_executable_extensions; do
27676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27679 break 2
27680 fi
27681done
27682done
27683
27684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27685 ;;
27686esac
27687fi
27688PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27689
27690if test -n "$PKG_CONFIG"; then
27691 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27692echo "${ECHO_T}$PKG_CONFIG" >&6
27693else
27694 echo "$as_me:$LINENO: result: no" >&5
27695echo "${ECHO_T}no" >&6
27696fi
27697
27698 fi
27699
27700 if test "$PKG_CONFIG" = "no" ; then
27701 echo "*** The pkg-config script could not be found. Make sure it is"
27702 echo "*** in your path, or set the PKG_CONFIG environment variable"
27703 echo "*** to the full path to pkg-config."
27704 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27705 else
27706 PKG_CONFIG_MIN_VERSION=0.9.0
27707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27708 echo "$as_me:$LINENO: checking for pangoft2" >&5
27709echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27710
27711 if $PKG_CONFIG --exists "pangoft2" ; then
27712 echo "$as_me:$LINENO: result: yes" >&5
27713echo "${ECHO_T}yes" >&6
27714 succeeded=yes
27715
27716 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27717echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27718 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27719 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27720echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27721
27722 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27723echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27724 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27725 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27726echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27727 else
27728 PANGOFT2_CFLAGS=""
27729 PANGOFT2_LIBS=""
27730 ## If we have a custom action on failure, don't print errors, but
27731 ## do set a variable so people can do so.
27732 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27733
27734 fi
27735
27736
27737
27738 else
27739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27741 fi
27742 fi
27743
27744 if test $succeeded = yes; then
27745
27746 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27747 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27748
27749 else
27750
27751 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27752echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27753 wxUSE_PRINTING_ARCHITECTURE="no"
27754
27755
27756 fi
27757
27758
27759 succeeded=no
27760
27761 if test -z "$PKG_CONFIG"; then
27762 # Extract the first word of "pkg-config", so it can be a program name with args.
27763set dummy pkg-config; ac_word=$2
27764echo "$as_me:$LINENO: checking for $ac_word" >&5
27765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27766if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27768else
27769 case $PKG_CONFIG in
27770 [\\/]* | ?:[\\/]*)
27771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27772 ;;
27773 *)
27774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27775for as_dir in $PATH
27776do
27777 IFS=$as_save_IFS
27778 test -z "$as_dir" && as_dir=.
27779 for ac_exec_ext in '' $ac_executable_extensions; do
27780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27783 break 2
27784 fi
27785done
27786done
27787
27788 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27789 ;;
27790esac
27791fi
27792PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27793
27794if test -n "$PKG_CONFIG"; then
27795 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27796echo "${ECHO_T}$PKG_CONFIG" >&6
27797else
27798 echo "$as_me:$LINENO: result: no" >&5
27799echo "${ECHO_T}no" >&6
27800fi
27801
27802 fi
27803
27804 if test "$PKG_CONFIG" = "no" ; then
27805 echo "*** The pkg-config script could not be found. Make sure it is"
27806 echo "*** in your path, or set the PKG_CONFIG environment variable"
27807 echo "*** to the full path to pkg-config."
27808 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27809 else
27810 PKG_CONFIG_MIN_VERSION=0.9.0
27811 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27812 echo "$as_me:$LINENO: checking for pangoxft" >&5
27813echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27814
27815 if $PKG_CONFIG --exists "pangoxft" ; then
27816 echo "$as_me:$LINENO: result: yes" >&5
27817echo "${ECHO_T}yes" >&6
27818 succeeded=yes
27819
27820 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27821echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27822 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27823 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27824echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27825
27826 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27827echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27828 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27829 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27830echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27831 else
27832 PANGOXFT_CFLAGS=""
27833 PANGOXFT_LIBS=""
27834 ## If we have a custom action on failure, don't print errors, but
27835 ## do set a variable so people can do so.
27836 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27837
27838 fi
27839
27840
27841
27842 else
27843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27845 fi
27846 fi
27847
27848 if test $succeeded = yes; then
27849
4ae1af05
MB
27850 cat >>confdefs.h <<\_ACEOF
27851#define HAVE_PANGO_XFT 1
27852_ACEOF
27853
a848cd7e
SC
27854 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27855 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27856
27857 else
27858
27859 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27860echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27861
27862
27863 fi
27864
304205f1
VS
27865 save_CFLAGS="$CFLAGS"
27866 save_LIBS="$LIBS"
27867 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27868 LIBS="$LIBS $PANGOX_LIBS"
27869
27870for ac_func in pango_font_family_is_monospace
27871do
27872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27873echo "$as_me:$LINENO: checking for $ac_func" >&5
27874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27875if eval "test \"\${$as_ac_var+set}\" = set"; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877else
27878 cat >conftest.$ac_ext <<_ACEOF
27879/* confdefs.h. */
27880_ACEOF
27881cat confdefs.h >>conftest.$ac_ext
27882cat >>conftest.$ac_ext <<_ACEOF
27883/* end confdefs.h. */
27884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27886#define $ac_func innocuous_$ac_func
27887
27888/* System header to define __stub macros and hopefully few prototypes,
27889 which can conflict with char $ac_func (); below.
27890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27891 <limits.h> exists even on freestanding compilers. */
27892
27893#ifdef __STDC__
27894# include <limits.h>
27895#else
27896# include <assert.h>
27897#endif
27898
27899#undef $ac_func
27900
27901/* Override any gcc2 internal prototype to avoid an error. */
27902#ifdef __cplusplus
27903extern "C"
27904{
27905#endif
27906/* We use char because int might match the return type of a gcc2
27907 builtin and then its argument prototype would still apply. */
27908char $ac_func ();
27909/* The GNU C library defines this for functions which it implements
27910 to always fail with ENOSYS. Some functions are actually named
27911 something starting with __ and the normal name is an alias. */
27912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27913choke me
27914#else
27915char (*f) () = $ac_func;
27916#endif
27917#ifdef __cplusplus
27918}
27919#endif
27920
27921int
27922main ()
27923{
27924return f != $ac_func;
27925 ;
27926 return 0;
27927}
27928_ACEOF
27929rm -f conftest.$ac_objext conftest$ac_exeext
27930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931 (eval $ac_link) 2>conftest.er1
27932 ac_status=$?
27933 grep -v '^ *+' conftest.er1 >conftest.err
27934 rm -f conftest.er1
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } &&
6ebeb4c7 27938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27940 (eval $ac_try) 2>&5
27941 ac_status=$?
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); }; } &&
27944 { ac_try='test -s conftest$ac_exeext'
27945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; }; then
27950 eval "$as_ac_var=yes"
27951else
27952 echo "$as_me: failed program was:" >&5
27953sed 's/^/| /' conftest.$ac_ext >&5
27954
27955eval "$as_ac_var=no"
27956fi
27957rm -f conftest.err conftest.$ac_objext \
27958 conftest$ac_exeext conftest.$ac_ext
27959fi
27960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27962if test `eval echo '${'$as_ac_var'}'` = yes; then
27963 cat >>confdefs.h <<_ACEOF
27964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27965_ACEOF
27966
27967fi
27968done
27969
27970 CFLAGS="$save_CFLAGS"
27971 LIBS="$save_LIBS"
a848cd7e
SC
27972 fi
27973
27974 wxUSE_UNIVERSAL="yes"
27975
27976 if test "$wxUSE_NANOX" = "yes"; then
27977 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27978 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"
27979 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27980 else
27981 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27982 fi
27983
a848cd7e
SC
27984 TOOLKIT=X11
27985 GUIDIST=X11_DIST
27986 fi
27987
27988 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27989 if test "$wxUSE_UNICODE" = "yes"; then
27990 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27991echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27992 { (exit 1); exit 1; }; }
27993 fi
27994
74b84332
VS
27995 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27996echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27997
74b84332
VS
27998ac_find_includes=
27999for ac_dir in $SEARCH_INCLUDE /usr/include;
28000 do
28001 if test -f "$ac_dir/Xm/Xm.h"; then
28002 ac_find_includes=$ac_dir
28003 break
28004 fi
28005 done
a848cd7e 28006
74b84332
VS
28007 if test "$ac_find_includes" != "" ; then
28008 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28009echo "${ECHO_T}found in $ac_find_includes" >&6
28010
28011 if test "x$ac_find_includes" = "x/usr/include"; then
28012 ac_path_to_include=""
28013 else
28014 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28015 result=$?
28016 if test $result = 0; then
28017 ac_path_to_include=""
28018 else
28019 ac_path_to_include=" -I$ac_find_includes"
28020 fi
a848cd7e
SC
28021 fi
28022
74b84332
VS
28023 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28024 else
28025 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28026/* confdefs.h. */
28027_ACEOF
28028cat confdefs.h >>conftest.$ac_ext
28029cat >>conftest.$ac_ext <<_ACEOF
28030/* end confdefs.h. */
28031
74b84332
VS
28032 #include <Xm/Xm.h>
28033
a848cd7e
SC
28034int
28035main ()
28036{
28037
74b84332
VS
28038 int version;
28039 version = xmUseVersion;
28040
a848cd7e
SC
28041 ;
28042 return 0;
28043}
28044_ACEOF
74b84332
VS
28045rm -f conftest.$ac_objext
28046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28047 (eval $ac_compile) 2>conftest.er1
a848cd7e 28048 ac_status=$?
ac1cb8d3
VS
28049 grep -v '^ *+' conftest.er1 >conftest.err
28050 rm -f conftest.er1
28051 cat conftest.err >&5
a848cd7e
SC
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); } &&
6ebeb4c7 28054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; } &&
74b84332 28060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
74b84332
VS
28066
28067 echo "$as_me:$LINENO: result: found in default search path" >&5
28068echo "${ECHO_T}found in default search path" >&6
28069 COMPILED_X_PROGRAM=1
28070
a848cd7e
SC
28071else
28072 echo "$as_me: failed program was:" >&5
28073sed 's/^/| /' conftest.$ac_ext >&5
28074
a848cd7e 28075
74b84332
VS
28076 echo "$as_me:$LINENO: result: no" >&5
28077echo "${ECHO_T}no" >&6
28078 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28079echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28080 { (exit 1); exit 1; }; }
a848cd7e 28081
a848cd7e 28082
a848cd7e 28083fi
74b84332
VS
28084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28085 fi
28086
28087 if test "$COMPILED_X_PROGRAM" = 0; then
28088 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28089echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28090
28091ac_find_libraries=
28092for ac_dir in $SEARCH_LIB /usr/lib;
28093 do
3eca31dc 28094 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28095 if test -f "$ac_dir/libXm.$ac_extension"; then
28096 ac_find_libraries=$ac_dir
28097 break 2
a848cd7e 28098 fi
74b84332
VS
28099 done
28100 done
a848cd7e 28101
74b84332
VS
28102 if test "$ac_find_libraries" != "" ; then
28103 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28104echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28105
74b84332
VS
28106
28107 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28108 result=$?
28109 if test $result = 0; then
28110 ac_path_to_link=""
a848cd7e 28111 else
74b84332
VS
28112 ac_path_to_link=" -L$ac_find_libraries"
28113 fi
28114
28115 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28116 else
28117 save_CFLAGS=$CFLAGS
28118 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28119
28120 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28121/* confdefs.h. */
28122_ACEOF
28123cat confdefs.h >>conftest.$ac_ext
28124cat >>conftest.$ac_ext <<_ACEOF
28125/* end confdefs.h. */
28126
74b84332
VS
28127 #include <Xm/Xm.h>
28128
a848cd7e
SC
28129int
28130main ()
28131{
74b84332
VS
28132
28133 int version;
28134 version = xmUseVersion;
28135
a848cd7e
SC
28136 ;
28137 return 0;
28138}
28139_ACEOF
74b84332
VS
28140rm -f conftest.$ac_objext
28141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28142 (eval $ac_compile) 2>conftest.er1
a848cd7e 28143 ac_status=$?
ac1cb8d3
VS
28144 grep -v '^ *+' conftest.er1 >conftest.err
28145 rm -f conftest.er1
28146 cat conftest.err >&5
a848cd7e
SC
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } &&
6ebeb4c7 28149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; } &&
74b84332 28155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
74b84332
VS
28161
28162 echo "$as_me:$LINENO: result: found in default search path" >&5
28163echo "${ECHO_T}found in default search path" >&6
28164 COMPILED_X_PROGRAM=1
28165
a848cd7e
SC
28166else
28167 echo "$as_me: failed program was:" >&5
28168sed 's/^/| /' conftest.$ac_ext >&5
28169
74b84332
VS
28170
28171 echo "$as_me:$LINENO: result: no" >&5
28172echo "${ECHO_T}no" >&6
28173 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28174echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28175 { (exit 1); exit 1; }; }
28176
28177
28178fi
28179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28180
28181 CFLAGS=$save_CFLAGS
28182 fi
28183 fi
28184
28185 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28186echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28187 libp_link=""
28188 libsm_ice_link=""
28189 libs_found=0
28190 for libp in "" " -lXp"; do
28191 if test "$libs_found" = "0"; then
28192 for libsm_ice in "" " -lSM -lICE"; do
28193 if test "$libs_found" = "0"; then
28194 save_LIBS="$LIBS"
28195 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28196 save_CFLAGS=$CFLAGS
28197 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28198
28199 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28200/* confdefs.h. */
28201_ACEOF
28202cat confdefs.h >>conftest.$ac_ext
28203cat >>conftest.$ac_ext <<_ACEOF
28204/* end confdefs.h. */
28205
74b84332
VS
28206 #include <Xm/Xm.h>
28207 #include <Xm/List.h>
28208
a848cd7e
SC
28209int
28210main ()
28211{
74b84332
VS
28212
28213 XmString string = NULL;
28214 Widget w = NULL;
28215 int position = 0;
28216 XmListAddItem(w, string, position);
28217
a848cd7e
SC
28218 ;
28219 return 0;
28220}
28221_ACEOF
28222rm -f conftest.$ac_objext conftest$ac_exeext
28223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28224 (eval $ac_link) 2>conftest.er1
a848cd7e 28225 ac_status=$?
ac1cb8d3
VS
28226 grep -v '^ *+' conftest.er1 >conftest.err
28227 rm -f conftest.er1
28228 cat conftest.err >&5
a848cd7e
SC
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
6ebeb4c7 28231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233 (eval $ac_try) 2>&5
28234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; } &&
28237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; }; then
28243
28244 libp_link="$libp"
28245 libsm_ice_link="$libsm_ice"
28246 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28247echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28248 libs_found=1
28249
28250else
28251 echo "$as_me: failed program was:" >&5
28252sed 's/^/| /' conftest.$ac_ext >&5
28253
28254
28255
28256fi
ac1cb8d3
VS
28257rm -f conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28259
28260 LIBS="$save_LIBS"
28261 CFLAGS=$save_CFLAGS
28262 fi
28263 done
28264 fi
28265 done
28266
28267 if test "$libs_found" = "0"; then
28268 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28269echo "${ECHO_T}can't find the right libraries" >&6
28270 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28271echo "$as_me: error: can't link a simple motif program" >&2;}
28272 { (exit 1); exit 1; }; }
28273 fi
28274
28275 save_CFLAGS=$CFLAGS
28276 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28277 echo "$as_me:$LINENO: checking for Motif 2" >&5
28278echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28279 cat >conftest.$ac_ext <<_ACEOF
28280/* confdefs.h. */
28281_ACEOF
28282cat confdefs.h >>conftest.$ac_ext
28283cat >>conftest.$ac_ext <<_ACEOF
28284/* end confdefs.h. */
28285
28286 #include <Xm/Xm.h>
28287
28288int
28289main ()
28290{
28291
28292 #if XmVersion < 2000
28293 #error "Not Motif 2"
28294 #endif
28295
28296 ;
28297 return 0;
28298}
28299_ACEOF
28300rm -f conftest.$ac_objext
28301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28302 (eval $ac_compile) 2>conftest.er1
a848cd7e 28303 ac_status=$?
ac1cb8d3
VS
28304 grep -v '^ *+' conftest.er1 >conftest.err
28305 rm -f conftest.er1
28306 cat conftest.err >&5
a848cd7e
SC
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); } &&
6ebeb4c7 28309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; } &&
28315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28321
28322 cat >>confdefs.h <<\_ACEOF
28323#define __WXMOTIF20__ 1
28324_ACEOF
28325
28326 echo "$as_me:$LINENO: result: found" >&5
28327echo "${ECHO_T}found" >&6
28328
28329else
28330 echo "$as_me: failed program was:" >&5
28331sed 's/^/| /' conftest.$ac_ext >&5
28332
28333
28334 cat >>confdefs.h <<\_ACEOF
28335#define __WXMOTIF20__ 0
28336_ACEOF
28337
28338 echo "$as_me:$LINENO: result: not found" >&5
28339echo "${ECHO_T}not found" >&6
28340
2113bc77
MW
28341fi
28342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28343
28344 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28345echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28346 cat >conftest.$ac_ext <<_ACEOF
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
28352
28353 #include <Xm/Xm.h>
28354
28355int
28356main ()
28357{
28358
28359 #if !defined(LesstifVersion) || LesstifVersion <= 0
28360 #error "Not Lesstif"
28361 #endif
28362
28363 ;
28364 return 0;
28365}
28366_ACEOF
28367rm -f conftest.$ac_objext
28368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28369 (eval $ac_compile) 2>conftest.er1
28370 ac_status=$?
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } &&
6ebeb4c7 28376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest.$ac_objext'
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388
28389 cat >>confdefs.h <<\_ACEOF
28390#define __WXLESSTIF__ 1
28391_ACEOF
28392
28393 echo "$as_me:$LINENO: result: yes" >&5
28394echo "${ECHO_T}yes" >&6
28395
28396else
28397 echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400
28401 cat >>confdefs.h <<\_ACEOF
28402#define __WXLESSTIF__ 0
28403_ACEOF
28404
28405 echo "$as_me:$LINENO: result: no" >&5
28406echo "${ECHO_T}no" >&6
28407
a848cd7e 28408fi
ac1cb8d3 28409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28410 CFLAGS=$save_CFLAGS
28411
28412 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28413 TOOLKIT=MOTIF
28414 GUIDIST=MOTIF_DIST
28415 fi
28416
74b84332 28417 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28418 if test "$wxUSE_LIBXPM" = "sys"; then
28419 echo "$as_me:$LINENO: checking for Xpm library" >&5
28420echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28421
28422ac_find_libraries=
28423for ac_dir in $SEARCH_LIB /usr/lib;
28424 do
3eca31dc 28425 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28426 if test -f "$ac_dir/libXpm.$ac_extension"; then
28427 ac_find_libraries=$ac_dir
28428 break 2
28429 fi
28430 done
28431 done
28432
28433 if test "$ac_find_libraries" != "" ; then
28434
28435 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28436 result=$?
28437 if test $result = 0; then
28438 ac_path_to_link=""
28439 else
28440 ac_path_to_link=" -L$ac_find_libraries"
28441 fi
28442
28443 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28444 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28445echo "${ECHO_T}found at $ac_find_libraries" >&6
28446
28447 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28448echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28449if test "${wx_cv_x11_xpm_h+set}" = set; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28451else
28452
28453 save_CFLAGS=$CFLAGS
28454 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28455
28456 cat >conftest.$ac_ext <<_ACEOF
28457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
28462
28463 #include <X11/xpm.h>
28464
28465int
28466main ()
28467{
28468
28469 int version;
28470 version = XpmLibraryVersion();
28471
28472 ;
28473 return 0;
28474}
28475_ACEOF
28476rm -f conftest.$ac_objext
28477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28478 (eval $ac_compile) 2>conftest.er1
a848cd7e 28479 ac_status=$?
ac1cb8d3
VS
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
a848cd7e
SC
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
6ebeb4c7 28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28488 ac_status=$?
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; } &&
28491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; }; then
28497 wx_cv_x11_xpm_h=yes
28498else
28499 echo "$as_me: failed program was:" >&5
28500sed 's/^/| /' conftest.$ac_ext >&5
28501
28502wx_cv_x11_xpm_h=no
28503
28504fi
ac1cb8d3 28505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28506
28507 CFLAGS=$save_CFLAGS
28508
28509
28510fi
28511echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28512echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28513
28514 if test $wx_cv_x11_xpm_h = "yes"; then
28515 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28516 cat >>confdefs.h <<\_ACEOF
28517#define wxHAVE_LIB_XPM 1
28518_ACEOF
28519
28520 else
28521 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28522echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28523 fi
28524 fi
28525
28526 fi
28527
28528 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28529echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28530if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28532else
28533 ac_check_lib_save_LIBS=$LIBS
28534LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28535cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h. */
28541
28542/* Override any gcc2 internal prototype to avoid an error. */
28543#ifdef __cplusplus
28544extern "C"
28545#endif
28546/* We use char because int might match the return type of a gcc2
28547 builtin and then its argument prototype would still apply. */
28548char XShapeQueryExtension ();
28549int
28550main ()
28551{
28552XShapeQueryExtension ();
28553 ;
28554 return 0;
28555}
28556_ACEOF
28557rm -f conftest.$ac_objext conftest$ac_exeext
28558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28559 (eval $ac_link) 2>conftest.er1
a848cd7e 28560 ac_status=$?
ac1cb8d3
VS
28561 grep -v '^ *+' conftest.er1 >conftest.err
28562 rm -f conftest.er1
28563 cat conftest.err >&5
a848cd7e
SC
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
6ebeb4c7 28566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28574 (eval $ac_try) 2>&5
28575 ac_status=$?
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); }; }; then
28578 ac_cv_lib_Xext_XShapeQueryExtension=yes
28579else
28580 echo "$as_me: failed program was:" >&5
28581sed 's/^/| /' conftest.$ac_ext >&5
28582
28583ac_cv_lib_Xext_XShapeQueryExtension=no
28584fi
ac1cb8d3
VS
28585rm -f conftest.err conftest.$ac_objext \
28586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28587LIBS=$ac_check_lib_save_LIBS
28588fi
28589echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28590echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28591if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28592
28593 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28594 wxHAVE_XEXT_LIB=1
28595
28596fi
28597
28598
28599 if test "$wxHAVE_XEXT_LIB" = 1; then
28600 save_CFLAGS="$CFLAGS"
28601 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28602
28603 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28604echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28605 cat >conftest.$ac_ext <<_ACEOF
28606/* confdefs.h. */
28607_ACEOF
28608cat confdefs.h >>conftest.$ac_ext
28609cat >>conftest.$ac_ext <<_ACEOF
28610/* end confdefs.h. */
28611
28612 #include <X11/Xlib.h>
28613 #include <X11/extensions/shape.h>
28614
28615int
28616main ()
28617{
28618
28619 int dummy1, dummy2;
28620 XShapeQueryExtension((Display*)NULL,
28621 (int*)NULL, (int*)NULL);
28622
28623 ;
28624 return 0;
28625}
28626_ACEOF
28627rm -f conftest.$ac_objext
28628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28629 (eval $ac_compile) 2>conftest.er1
a848cd7e 28630 ac_status=$?
ac1cb8d3
VS
28631 grep -v '^ *+' conftest.er1 >conftest.err
28632 rm -f conftest.er1
28633 cat conftest.err >&5
a848cd7e
SC
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } &&
6ebeb4c7 28636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648
28649 cat >>confdefs.h <<\_ACEOF
28650#define HAVE_XSHAPE 1
28651_ACEOF
28652
28653 echo "$as_me:$LINENO: result: found" >&5
28654echo "${ECHO_T}found" >&6
28655
28656else
28657 echo "$as_me: failed program was:" >&5
28658sed 's/^/| /' conftest.$ac_ext >&5
28659
28660
28661 echo "$as_me:$LINENO: result: not found" >&5
28662echo "${ECHO_T}not found" >&6
28663
28664fi
ac1cb8d3 28665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28666 CFLAGS="$save_CFLAGS"
28667
28668 fi
28669 fi
28670
28671 if test "$wxUSE_MAC" = 1; then
28672 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28673echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28674 if test "$GCC" = yes; then
28675 echo "$as_me:$LINENO: result: gcc" >&5
28676echo "${ECHO_T}gcc" >&6
28677 CPPFLAGS_PASCAL="-fpascal-strings"
28678 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28679 echo "$as_me:$LINENO: result: xlc" >&5
28680echo "${ECHO_T}xlc" >&6
28681 CPPFLAGS_PASCAL="-qmacpstr"
28682 else
28683 echo "$as_me:$LINENO: result: none" >&5
28684echo "${ECHO_T}none" >&6
28685 fi
28686
1e9e8aba
DE
28687 if test "x$wxUSE_UNIX" = "xyes"; then
28688 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28689 else
28690 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28691 fi
a848cd7e 28692
a848cd7e
SC
28693 TOOLKIT=MAC
28694 GUIDIST=MACX_DIST
dd21ced8 28695 WXBASEPORT="_carbon"
a848cd7e
SC
28696 fi
28697
28698 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28699 TOOLKIT=COCOA
28700 GUIDIST=COCOA_DIST
28701 fi
28702
28703 if test "$wxUSE_PM" = 1; then
28704 TOOLKIT=PM
de59c161
RD
28705 GUIDIST=PM_DIST
28706 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28707echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28708if test "${wx_cv_spbcdata+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28710else
28711
28712 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
28718
28719 #define INCL_PM
28720 #include <os2.h>
28721
28722int
28723main ()
28724{
28725
28726 SPBCDATA test;
28727
28728 ;
28729 return 0;
28730}
28731_ACEOF
28732rm -f conftest.$ac_objext
28733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28734 (eval $ac_compile) 2>conftest.er1
de59c161 28735 ac_status=$?
ac1cb8d3
VS
28736 grep -v '^ *+' conftest.er1 >conftest.err
28737 rm -f conftest.er1
28738 cat conftest.err >&5
de59c161
RD
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
6ebeb4c7 28741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; } &&
28747 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28750 ac_status=$?
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; }; then
28753 wx_cv_spbcdata=yes
28754else
28755 echo "$as_me: failed program was:" >&5
28756sed 's/^/| /' conftest.$ac_ext >&5
28757
28758wx_cv_spbcdata=no
28759
28760fi
ac1cb8d3 28761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28762
28763
28764fi
28765echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28766echo "${ECHO_T}$wx_cv_spbcdata" >&6
28767
28768 if test $wx_cv_spbcdata = "yes"; then
28769 cat >>confdefs.h <<\_ACEOF
28770#define HAVE_SPBCDATA 1
28771_ACEOF
28772
28773 fi
a848cd7e
SC
28774 fi
28775
28776 if test "$TOOLKIT" = "PM" ; then
28777 TOOLKIT_DIR="os2"
28778 else
28779 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28780 fi
28781
a848cd7e 28782 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28783 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28784 WIDGET_SET=univ
a848cd7e
SC
28785 fi
28786
28787 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28788 DISTDIR="wx\$(TOOLKIT)"
28789else
28790 USE_GUI=0
28791
28792 TOOLKIT_DIR="base"
28793
28794 if test "$USE_WIN32" = 1 ; then
a848cd7e 28795 TOOLKIT="MSW"
a848cd7e
SC
28796 fi
28797
a848cd7e
SC
28798 GUIDIST="BASE_DIST"
28799 DISTDIR="wxBase"
28800fi
28801
28802
28803
28804
28805IODBC_C_SRC=""
28806
28807
28808if test "$TOOLKIT" != "MSW" ; then
28809
28810 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28811
28812 if test "${ac_cv_header_sql_h+set}" = set; then
28813 echo "$as_me:$LINENO: checking for sql.h" >&5
28814echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28815if test "${ac_cv_header_sql_h+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817fi
28818echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28819echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28820else
28821 # Is the header compilable?
28822echo "$as_me:$LINENO: checking sql.h usability" >&5
28823echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28824cat >conftest.$ac_ext <<_ACEOF
28825/* confdefs.h. */
28826_ACEOF
28827cat confdefs.h >>conftest.$ac_ext
28828cat >>conftest.$ac_ext <<_ACEOF
28829/* end confdefs.h. */
28830$ac_includes_default
28831#include <sql.h>
28832_ACEOF
28833rm -f conftest.$ac_objext
28834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28835 (eval $ac_compile) 2>conftest.er1
a848cd7e 28836 ac_status=$?
ac1cb8d3
VS
28837 grep -v '^ *+' conftest.er1 >conftest.err
28838 rm -f conftest.er1
28839 cat conftest.err >&5
a848cd7e
SC
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } &&
6ebeb4c7 28842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; } &&
28848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850 (eval $ac_try) 2>&5
28851 ac_status=$?
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; }; then
28854 ac_header_compiler=yes
28855else
28856 echo "$as_me: failed program was:" >&5
28857sed 's/^/| /' conftest.$ac_ext >&5
28858
28859ac_header_compiler=no
28860fi
ac1cb8d3 28861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28863echo "${ECHO_T}$ac_header_compiler" >&6
28864
28865# Is the header present?
28866echo "$as_me:$LINENO: checking sql.h presence" >&5
28867echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28868cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h. */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h. */
28874#include <sql.h>
28875_ACEOF
28876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28878 ac_status=$?
28879 grep -v '^ *+' conftest.er1 >conftest.err
28880 rm -f conftest.er1
28881 cat conftest.err >&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); } >/dev/null; then
28884 if test -s conftest.err; then
28885 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28887 else
28888 ac_cpp_err=
28889 fi
28890else
28891 ac_cpp_err=yes
28892fi
28893if test -z "$ac_cpp_err"; then
28894 ac_header_preproc=yes
28895else
28896 echo "$as_me: failed program was:" >&5
28897sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 ac_header_preproc=no
28900fi
28901rm -f conftest.err conftest.$ac_ext
28902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28903echo "${ECHO_T}$ac_header_preproc" >&6
28904
28905# So? What about this header?
ac1cb8d3
VS
28906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28907 yes:no: )
a848cd7e
SC
28908 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28909echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28910 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28911echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28912 ac_header_preproc=yes
a848cd7e 28913 ;;
ac1cb8d3 28914 no:yes:* )
a848cd7e
SC
28915 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28916echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28917 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28918echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28919 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28920echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28921 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28922echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28923 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28924echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28925 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28926echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28927 (
28928 cat <<\_ASBOX
ac1cb8d3
VS
28929## ----------------------------------------- ##
28930## Report this to wx-dev@lists.wxwidgets.org ##
28931## ----------------------------------------- ##
a848cd7e
SC
28932_ASBOX
28933 ) |
28934 sed "s/^/$as_me: WARNING: /" >&2
28935 ;;
28936esac
28937echo "$as_me:$LINENO: checking for sql.h" >&5
28938echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28939if test "${ac_cv_header_sql_h+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941else
28942 ac_cv_header_sql_h=$ac_header_preproc
28943fi
28944echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28945echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28946
28947fi
28948if test $ac_cv_header_sql_h = yes; then
28949 found_sql_h=1
28950fi
28951
28952
28953 if test "x$found_sql_h" = "x1" ; then
28954 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28955echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28956if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958else
28959 ac_check_lib_save_LIBS=$LIBS
28960LIBS="-liodbc $LIBS"
28961cat >conftest.$ac_ext <<_ACEOF
28962/* confdefs.h. */
28963_ACEOF
28964cat confdefs.h >>conftest.$ac_ext
28965cat >>conftest.$ac_ext <<_ACEOF
28966/* end confdefs.h. */
28967
28968/* Override any gcc2 internal prototype to avoid an error. */
28969#ifdef __cplusplus
28970extern "C"
28971#endif
28972/* We use char because int might match the return type of a gcc2
28973 builtin and then its argument prototype would still apply. */
28974char SQLAllocEnv ();
28975int
28976main ()
28977{
28978SQLAllocEnv ();
28979 ;
28980 return 0;
28981}
28982_ACEOF
28983rm -f conftest.$ac_objext conftest$ac_exeext
28984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28985 (eval $ac_link) 2>conftest.er1
a848cd7e 28986 ac_status=$?
ac1cb8d3
VS
28987 grep -v '^ *+' conftest.er1 >conftest.err
28988 rm -f conftest.er1
28989 cat conftest.err >&5
a848cd7e
SC
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } &&
6ebeb4c7 28992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994 (eval $ac_try) 2>&5
28995 ac_status=$?
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; } &&
28998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29001 ac_status=$?
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; }; then
29004 ac_cv_lib_iodbc_SQLAllocEnv=yes
29005else
29006 echo "$as_me: failed program was:" >&5
29007sed 's/^/| /' conftest.$ac_ext >&5
29008
29009ac_cv_lib_iodbc_SQLAllocEnv=no
29010fi
ac1cb8d3
VS
29011rm -f conftest.err conftest.$ac_objext \
29012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29013LIBS=$ac_check_lib_save_LIBS
29014fi
29015echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29016echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29017if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29018 ODBC_LINK=" -liodbc"
29019else
29020
29021 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29022echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29023if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29024 echo $ECHO_N "(cached) $ECHO_C" >&6
29025else
29026 ac_check_lib_save_LIBS=$LIBS
29027LIBS="-lunixodbc $LIBS"
29028cat >conftest.$ac_ext <<_ACEOF
29029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
29034
29035/* Override any gcc2 internal prototype to avoid an error. */
29036#ifdef __cplusplus
29037extern "C"
29038#endif
29039/* We use char because int might match the return type of a gcc2
29040 builtin and then its argument prototype would still apply. */
29041char SQLAllocEnv ();
29042int
29043main ()
29044{
29045SQLAllocEnv ();
29046 ;
29047 return 0;
29048}
29049_ACEOF
29050rm -f conftest.$ac_objext conftest$ac_exeext
29051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29052 (eval $ac_link) 2>conftest.er1
a848cd7e 29053 ac_status=$?
ac1cb8d3
VS
29054 grep -v '^ *+' conftest.er1 >conftest.err
29055 rm -f conftest.er1
29056 cat conftest.err >&5
a848cd7e
SC
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
6ebeb4c7 29059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; } &&
29065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076ac_cv_lib_unixodbc_SQLAllocEnv=no
29077fi
ac1cb8d3
VS
29078rm -f conftest.err conftest.$ac_objext \
29079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29080LIBS=$ac_check_lib_save_LIBS
29081fi
29082echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29083echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29084if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29085 ODBC_LINK=" -lunixodbc"
29086else
29087
29088 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29089echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29090if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092else
29093 ac_check_lib_save_LIBS=$LIBS
29094LIBS="-lodbc $LIBS"
29095cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
29101
29102/* Override any gcc2 internal prototype to avoid an error. */
29103#ifdef __cplusplus
29104extern "C"
29105#endif
29106/* We use char because int might match the return type of a gcc2
29107 builtin and then its argument prototype would still apply. */
29108char SQLAllocEnv ();
29109int
29110main ()
29111{
29112SQLAllocEnv ();
29113 ;
29114 return 0;
29115}
29116_ACEOF
29117rm -f conftest.$ac_objext conftest$ac_exeext
29118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29119 (eval $ac_link) 2>conftest.er1
a848cd7e 29120 ac_status=$?
ac1cb8d3
VS
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
a848cd7e
SC
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
6ebeb4c7 29126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 ac_cv_lib_odbc_SQLAllocEnv=yes
29139else
29140 echo "$as_me: failed program was:" >&5
29141sed 's/^/| /' conftest.$ac_ext >&5
29142
29143ac_cv_lib_odbc_SQLAllocEnv=no
29144fi
ac1cb8d3
VS
29145rm -f conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29147LIBS=$ac_check_lib_save_LIBS
29148fi
29149echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29150echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29151if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29152 ODBC_LINK=" -lodbc"
29153fi
29154
29155
29156fi
29157
29158
29159fi
29160
29161 fi
29162 if test "x$ODBC_LINK" = "x" ; then
29163 if test "$wxUSE_ODBC" = "sys" ; then
29164 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29165echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29166 { (exit 1); exit 1; }; }
29167 else
29168 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29169echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29170 wxUSE_ODBC=builtin
29171 fi
29172 else
29173 wxUSE_ODBC=sys
29174 fi
29175 fi
a848cd7e 29176
2da0c077
RD
29177 if test "$wxUSE_ODBC" = "builtin" ; then
29178 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29179#define wxUSE_BUILTIN_IODBC 1
29180_ACEOF
29181
a848cd7e
SC
29182 fi
29183fi
29184
2da0c077
RD
29185if test "$wxUSE_ODBC" != "no" ; then
29186 cat >>confdefs.h <<\_ACEOF
29187#define wxUSE_ODBC 1
29188_ACEOF
29189
29190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29191
29192 WXODBCFLAG="-D_IODBC_"
29193fi
a848cd7e 29194
01cb68df 29195
a848cd7e 29196if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29197 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29198 echo "$as_me:$LINENO: checking for Xinerama" >&5
29199echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29200
29201ac_find_libraries=
29202for ac_dir in $SEARCH_LIB /usr/lib;
29203 do
3eca31dc 29204 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29205 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29206 ac_find_libraries=$ac_dir
29207 break 2
29208 fi
29209 done
29210 done
29211
29212 if test "$ac_find_libraries" != "" ; then
29213
29214 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29215 result=$?
29216 if test $result = 0; then
29217 ac_path_to_link=""
29218 else
29219 ac_path_to_link=" -L$ac_find_libraries"
29220 fi
29221
29222 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29223 LDFLAGS="$LDFLAGS $ac_path_to_link"
29224 fi
29225 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29226 echo "$as_me:$LINENO: result: yes" >&5
29227echo "${ECHO_T}yes" >&6
29228
29229 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29230echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29231
29232ac_find_libraries=
29233for ac_dir in $SEARCH_LIB /usr/lib;
29234 do
3eca31dc 29235 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29236 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29237 ac_find_libraries=$ac_dir
29238 break 2
29239 fi
29240 done
29241 done
29242
29243 if test "$ac_find_libraries" != "" ; then
29244 echo "$as_me:$LINENO: result: yes" >&5
29245echo "${ECHO_T}yes" >&6
29246
29247for ac_header in X11/extensions/xf86vmode.h
29248do
29249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29250echo "$as_me:$LINENO: checking for $ac_header" >&5
29251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29252if eval "test \"\${$as_ac_Header+set}\" = set"; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29254else
29255 cat >conftest.$ac_ext <<_ACEOF
29256/* confdefs.h. */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h. */
29261
29262 #if HAVE_X11_XLIB_H
29263 #include <X11/Xlib.h>
29264 #endif
29265
29266
29267#include <$ac_header>
29268_ACEOF
29269rm -f conftest.$ac_objext
29270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29271 (eval $ac_compile) 2>conftest.er1
a848cd7e 29272 ac_status=$?
ac1cb8d3
VS
29273 grep -v '^ *+' conftest.er1 >conftest.err
29274 rm -f conftest.er1
29275 cat conftest.err >&5
a848cd7e
SC
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); } &&
6ebeb4c7 29278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; } &&
29284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; }; then
29290 eval "$as_ac_Header=yes"
29291else
29292 echo "$as_me: failed program was:" >&5
29293sed 's/^/| /' conftest.$ac_ext >&5
29294
29295eval "$as_ac_Header=no"
29296fi
ac1cb8d3 29297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29298fi
29299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29301if test `eval echo '${'$as_ac_Header'}'` = yes; then
29302 cat >>confdefs.h <<_ACEOF
29303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29304_ACEOF
29305
29306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29307
29308fi
29309
29310done
29311
29312 else
29313 echo "$as_me:$LINENO: result: no" >&5
29314echo "${ECHO_T}no" >&6
29315 fi
29316
29317 else
29318 echo "$as_me:$LINENO: result: no" >&5
29319echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29320 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29321echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29322 wxUSE_DISPLAY="no"
29323 fi
01cb68df
RG
29324 elif test "$wxUSE_MSW" = 1; then
29325
29326
29327for ac_header in multimon.h ddraw.h
29328do
29329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29330echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29332if eval "test \"\${$as_ac_Header+set}\" = set"; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29334else
5294a27e 29335 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29336/* confdefs.h. */
29337_ACEOF
29338cat confdefs.h >>conftest.$ac_ext
29339cat >>conftest.$ac_ext <<_ACEOF
29340/* end confdefs.h. */
5294a27e
VZ
29341#include <windows.h>
29342
01cb68df
RG
29343#include <$ac_header>
29344_ACEOF
29345rm -f conftest.$ac_objext
29346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29347 (eval $ac_compile) 2>conftest.er1
01cb68df 29348 ac_status=$?
ac1cb8d3
VS
29349 grep -v '^ *+' conftest.er1 >conftest.err
29350 rm -f conftest.er1
29351 cat conftest.err >&5
01cb68df
RG
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); } &&
6ebeb4c7 29354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29357 ac_status=$?
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; } &&
29360 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362 (eval $ac_try) 2>&5
29363 ac_status=$?
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; }; then
5294a27e 29366 eval "$as_ac_Header=yes"
01cb68df
RG
29367else
29368 echo "$as_me: failed program was:" >&5
29369sed 's/^/| /' conftest.$ac_ext >&5
29370
5294a27e 29371eval "$as_ac_Header=no"
01cb68df 29372fi
ac1cb8d3 29373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29374fi
29375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29377if test `eval echo '${'$as_ac_Header'}'` = yes; then
29378 cat >>confdefs.h <<_ACEOF
29379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29380_ACEOF
29381
29382else
29383
5294a27e
VZ
29384 wxUSE_DISPLAY="no"
29385 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29386echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29387
29388fi
29389
29390done
29391
a848cd7e
SC
29392 fi
29393fi
29394
29395
29396USE_OPENGL=0
29397if test "$wxUSE_OPENGL" = "yes"; then
29398 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29399 OPENGL_LIBS="-framework OpenGL -framework AGL"
29400 elif test "$wxUSE_MSW" = 1; then
29401 OPENGL_LIBS="-lopengl32 -lglu32"
29402 else
29403
29404
29405ac_find_includes=
29406for ac_dir in $SEARCH_INCLUDE /usr/include;
29407 do
29408 if test -f "$ac_dir/GL/gl.h"; then
29409 ac_find_includes=$ac_dir
29410 break
29411 fi
29412 done
29413
29414 if test "$ac_find_includes" != "" ; then
29415 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29416echo "${ECHO_T}found in $ac_find_includes" >&6
29417
29418 if test "x$ac_find_includes" = "x/usr/include"; then
29419 ac_path_to_include=""
29420 else
29421 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29422 result=$?
29423 if test $result = 0; then
29424 ac_path_to_include=""
29425 else
29426 ac_path_to_include=" -I$ac_find_includes"
29427 fi
29428 fi
29429
29430 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29431 fi
29432
29433 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29434 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29435echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29436if test "${ac_cv_header_GL_gl_h+set}" = set; then
29437 echo $ECHO_N "(cached) $ECHO_C" >&6
29438fi
29439echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29440echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29441else
29442 # Is the header compilable?
29443echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29444echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29445cat >conftest.$ac_ext <<_ACEOF
29446/* confdefs.h. */
29447_ACEOF
29448cat confdefs.h >>conftest.$ac_ext
29449cat >>conftest.$ac_ext <<_ACEOF
29450/* end confdefs.h. */
29451$ac_includes_default
29452#include <GL/gl.h>
29453_ACEOF
29454rm -f conftest.$ac_objext
29455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29456 (eval $ac_compile) 2>conftest.er1
a848cd7e 29457 ac_status=$?
ac1cb8d3
VS
29458 grep -v '^ *+' conftest.er1 >conftest.err
29459 rm -f conftest.er1
29460 cat conftest.err >&5
a848cd7e
SC
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } &&
6ebeb4c7 29463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471 (eval $ac_try) 2>&5
29472 ac_status=$?
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; }; then
29475 ac_header_compiler=yes
29476else
29477 echo "$as_me: failed program was:" >&5
29478sed 's/^/| /' conftest.$ac_ext >&5
29479
29480ac_header_compiler=no
29481fi
ac1cb8d3 29482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29484echo "${ECHO_T}$ac_header_compiler" >&6
29485
29486# Is the header present?
29487echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29488echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29489cat >conftest.$ac_ext <<_ACEOF
29490/* confdefs.h. */
29491_ACEOF
29492cat confdefs.h >>conftest.$ac_ext
29493cat >>conftest.$ac_ext <<_ACEOF
29494/* end confdefs.h. */
29495#include <GL/gl.h>
29496_ACEOF
29497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29499 ac_status=$?
29500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } >/dev/null; then
29505 if test -s conftest.err; then
29506 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29508 else
29509 ac_cpp_err=
29510 fi
29511else
29512 ac_cpp_err=yes
29513fi
29514if test -z "$ac_cpp_err"; then
29515 ac_header_preproc=yes
29516else
29517 echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520 ac_header_preproc=no
29521fi
29522rm -f conftest.err conftest.$ac_ext
29523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29524echo "${ECHO_T}$ac_header_preproc" >&6
29525
29526# So? What about this header?
ac1cb8d3
VS
29527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29528 yes:no: )
a848cd7e
SC
29529 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29530echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29531 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29532echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29533 ac_header_preproc=yes
a848cd7e 29534 ;;
ac1cb8d3 29535 no:yes:* )
a848cd7e
SC
29536 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29537echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29538 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29539echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29540 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29541echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29543echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29544 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29545echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29546 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29547echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29548 (
29549 cat <<\_ASBOX
ac1cb8d3
VS
29550## ----------------------------------------- ##
29551## Report this to wx-dev@lists.wxwidgets.org ##
29552## ----------------------------------------- ##
a848cd7e
SC
29553_ASBOX
29554 ) |
29555 sed "s/^/$as_me: WARNING: /" >&2
29556 ;;
29557esac
29558echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29559echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29560if test "${ac_cv_header_GL_gl_h+set}" = set; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29562else
29563 ac_cv_header_GL_gl_h=$ac_header_preproc
29564fi
29565echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29566echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29567
29568fi
29569if test $ac_cv_header_GL_gl_h = yes; then
29570
29571 found_gl=0
29572
29573 echo "$as_me:$LINENO: checking for -lGL" >&5
29574echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29575
29576ac_find_libraries=
29577for ac_dir in $SEARCH_LIB /usr/lib;
29578 do
3eca31dc 29579 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29580 if test -f "$ac_dir/libGL.$ac_extension"; then
29581 ac_find_libraries=$ac_dir
29582 break 2
29583 fi
29584 done
29585 done
29586
29587 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29588 echo "$as_me:$LINENO: result: yes" >&5
29589echo "${ECHO_T}yes" >&6
29590
a848cd7e
SC
29591
29592 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29593 result=$?
29594 if test $result = 0; then
29595 ac_path_to_link=""
29596 else
29597 ac_path_to_link=" -L$ac_find_libraries"
29598 fi
29599
29600 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29601 LDFLAGS_GL="$ac_path_to_link"
29602 fi
29603
69120ee4
VZ
29604 echo "$as_me:$LINENO: checking for -lGLU" >&5
29605echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29606
29607ac_find_libraries=
29608for ac_dir in $SEARCH_LIB /usr/lib;
29609 do
3eca31dc 29610 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29611 if test -f "$ac_dir/libGLU.$ac_extension"; then
29612 ac_find_libraries=$ac_dir
29613 break 2
29614 fi
29615 done
29616 done
29617
29618 if test "$ac_find_libraries" != "" ; then
29619
29620 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29621 result=$?
29622 if test $result = 0; then
29623 ac_path_to_link=""
29624 else
29625 ac_path_to_link=" -L$ac_find_libraries"
29626 fi
29627
29628 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29629 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29630 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29631 fi
29632
29633 found_gl=1
29634 OPENGL_LIBS="-lGL -lGLU"
29635 echo "$as_me:$LINENO: result: yes" >&5
29636echo "${ECHO_T}yes" >&6
69120ee4
VZ
29637 else
29638 echo "$as_me:$LINENO: result: no" >&5
29639echo "${ECHO_T}no" >&6
a848cd7e 29640 fi
69120ee4
VZ
29641 else
29642 echo "$as_me:$LINENO: result: no" >&5
29643echo "${ECHO_T}no" >&6
a848cd7e
SC
29644 fi
29645
29646 if test "$found_gl" != 1; then
a848cd7e
SC
29647 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29648echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29649
29650ac_find_libraries=
29651for ac_dir in $SEARCH_LIB /usr/lib;
29652 do
3eca31dc 29653 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29654 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29655 ac_find_libraries=$ac_dir
29656 break 2
29657 fi
29658 done
29659 done
29660
29661 if test "$ac_find_libraries" != "" ; then
29662
29663 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29664 result=$?
29665 if test $result = 0; then
29666 ac_path_to_link=""
29667 else
29668 ac_path_to_link=" -L$ac_find_libraries"
29669 fi
29670
29671 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29672 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29673 echo "$as_me:$LINENO: result: yes" >&5
29674echo "${ECHO_T}yes" >&6
29675 else
29676 echo "$as_me:$LINENO: result: no" >&5
29677echo "${ECHO_T}no" >&6
29678 fi
29679 fi
29680
29681fi
29682
29683
29684
29685 if test "x$OPENGL_LIBS" = "x"; then
29686 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29687echo "$as_me: error: OpenGL libraries not available" >&2;}
29688 { (exit 1); exit 1; }; }
29689 fi
29690 fi
29691
29692 if test "$wxUSE_OPENGL" = "yes"; then
29693 USE_OPENGL=1
29694 cat >>confdefs.h <<\_ACEOF
29695#define wxUSE_OPENGL 1
29696_ACEOF
29697
29698 cat >>confdefs.h <<\_ACEOF
29699#define wxUSE_GLCANVAS 1
29700_ACEOF
29701
29702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29703 fi
29704fi
29705
a848cd7e
SC
29706
29707if test -n "$TOOLKIT" ; then
29708 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29709fi
29710
a848cd7e
SC
29711
29712
29713if test "$wxUSE_SHARED" = "yes"; then
29714 case "${host}" in
29715 *-pc-msdosdjgpp )
29716 wxUSE_SHARED=no
29717 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29718echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29719 ;;
29720 esac
29721fi
29722
a848cd7e 29723if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29724
29725
29726 found_versioning=no
29727
29728
29729 if test $found_versioning = no ; then
29730 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29731echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29732if test "${wx_cv_version_script+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29734else
29735
29736 echo "VER_1 { *; };" >conftest.sym
29737 echo "int main() { return 0; }" >conftest.cpp
29738
29739 if { ac_try='
29740 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29741 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; } ; then
29747 if test -s conftest.stderr ; then
29748 wx_cv_version_script=no
29749 else
29750 wx_cv_version_script=yes
29751 fi
29752 else
29753 wx_cv_version_script=no
29754 fi
e5d4b470
MW
29755
29756 if test $wx_cv_version_script = yes
29757 then
29758 echo "struct B { virtual ~B() { } }; \
29759 struct D : public B { }; \
29760 void F() { D d; }" > conftest.cpp
29761
29762 if { ac_try='
29763 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29764 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='
29771 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29772 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; }
29778 then
29779 if { ac_try='
29780 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29781 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }
29787 then
29788 wx_cv_version_script=yes
29789 else
29790 wx_cv_version_script=no
29791 fi
29792 fi
29793 fi
29794
a848cd7e 29795 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29796 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29797
29798fi
29799echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29800echo "${ECHO_T}$wx_cv_version_script" >&6
29801 if test $wx_cv_version_script = yes ; then
29802 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29803 fi
29804 fi
29805
29806
29807 case "${host}" in
29808 *-*-linux* | *-*-gnu* )
29809 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29810 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29811 ;;
a848cd7e
SC
29812
29813 *-*-solaris2* )
29814 if test "$GCC" = yes ; then
29815 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29816
29817 saveLdflags="$LDFLAGS"
29818 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29819 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29820echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29821 cat >conftest.$ac_ext <<_ACEOF
29822/* confdefs.h. */
29823_ACEOF
29824cat confdefs.h >>conftest.$ac_ext
29825cat >>conftest.$ac_ext <<_ACEOF
29826/* end confdefs.h. */
29827
29828int
29829main ()
29830{
29831
29832 ;
29833 return 0;
29834}
29835_ACEOF
29836rm -f conftest.$ac_objext conftest$ac_exeext
29837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29838 (eval $ac_link) 2>conftest.er1
a848cd7e 29839 ac_status=$?
ac1cb8d3
VS
29840 grep -v '^ *+' conftest.er1 >conftest.err
29841 rm -f conftest.er1
29842 cat conftest.err >&5
a848cd7e
SC
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
6ebeb4c7 29845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; } &&
29851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; }; then
29857
29858 echo "$as_me:$LINENO: result: yes" >&5
29859echo "${ECHO_T}yes" >&6
29860 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29861 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29862
29863else
29864 echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867
29868 echo "$as_me:$LINENO: result: no" >&5
29869echo "${ECHO_T}no" >&6
29870 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29871echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29872 LDFLAGS="$saveLdflags -Wl,-R,/"
29873 cat >conftest.$ac_ext <<_ACEOF
29874/* confdefs.h. */
29875_ACEOF
29876cat confdefs.h >>conftest.$ac_ext
29877cat >>conftest.$ac_ext <<_ACEOF
29878/* end confdefs.h. */
29879
29880int
29881main ()
29882{
29883
29884 ;
29885 return 0;
29886}
29887_ACEOF
29888rm -f conftest.$ac_objext conftest$ac_exeext
29889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29890 (eval $ac_link) 2>conftest.er1
a848cd7e 29891 ac_status=$?
ac1cb8d3
VS
29892 grep -v '^ *+' conftest.er1 >conftest.err
29893 rm -f conftest.er1
29894 cat conftest.err >&5
a848cd7e
SC
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } &&
6ebeb4c7 29897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 (eval $ac_try) 2>&5
29900 ac_status=$?
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; } &&
29903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909
ffa0583f 29910 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29911echo "${ECHO_T}yes" >&6
ffa0583f
RL
29912 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29913 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29914
a848cd7e
SC
29915else
29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919
29920 echo "$as_me:$LINENO: result: no" >&5
29921echo "${ECHO_T}no" >&6
29922
29923fi
ac1cb8d3
VS
29924rm -f conftest.err conftest.$ac_objext \
29925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29926
29927fi
ac1cb8d3
VS
29928rm -f conftest.err conftest.$ac_objext \
29929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29930 LDFLAGS="$saveLdflags"
29931 else
a848cd7e 29932 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29933 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29934 fi
29935 ;;
29936
29937 powerpc-*-darwin* )
0caebc27
MW
29938 install_name_tool=`which install_name_tool`
29939 if test "$install_name_tool" -a -x "$install_name_tool"; then
29940 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29941 cat <<EOF >change-install-names
a848cd7e
SC
29942#!/bin/sh
29943libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29944inst_cmd="install_name_tool "
29945for i in \${libnames} ; do
29946 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29947done
29948\${inst_cmd} \${3}
29949EOF
0caebc27
MW
29950 chmod +x change-install-names
29951 fi
a848cd7e
SC
29952 ;;
29953
29954 *-*-cygwin* | *-*-mingw32* )
29955 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29956 ;;
29957
81f90336
MW
29958 *-*-hpux* )
29959 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29960 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29961 ;;
29962
a848cd7e 29963 esac
ceec2216 29964
ffa0583f
RL
29965 if test $wxUSE_RPATH = "no"; then
29966 SAMPLES_RPATH_FLAG=''
29967 SAMPLES_RPATH_POSTLINK=''
29968 WXCONFIG_RPATH=''
29969 fi
29970
29971 SHARED=1
29972
29973else
29974
ceec2216
RL
29975 config_linkage_component="-static"
29976 SHARED=0
ffa0583f 29977
ceec2216 29978fi
a848cd7e 29979
a848cd7e 29980
ceec2216
RL
29981UNICODE=0
29982lib_unicode_suffix=
29983WX_CHARTYPE="ansi"
29984if test "$wxUSE_UNICODE" = "yes"; then
29985 lib_unicode_suffix=u
29986 WX_CHARTYPE="unicode"
29987 UNICODE=1
a848cd7e
SC
29988fi
29989
ceec2216
RL
29990lib_debug_suffix=
29991WX_DEBUGTYPE="release"
29992DEBUG_FLAG=0
29993if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29994 lib_debug_suffix=d
29995 WX_DEBUGTYPE="debug"
29996 DEBUG_FLAG=1
29997fi
a848cd7e 29998
ceec2216
RL
29999WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30000WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30001
ceec2216
RL
30002DEBUG_INFO=0
30003if test "$wxUSE_DEBUG_INFO" = "yes"; then
30004 DEBUG_INFO=1
30005fi
a848cd7e 30006
ceec2216 30007WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30008
ceec2216 30009TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30010
ceec2216 30011TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30012
ceec2216
RL
30013if test "$cross_compiling" = "yes"; then
30014 HOST_SUFFIX="-$host_alias"
30015 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30016 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30017fi
30018
dd21ced8 30019WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30020if test "${TOOLKIT_DIR}" = "os2"; then
30021 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30022else
30023 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30024fi
ceec2216
RL
30025
30026
30027
1d1af5ea
DE
30028if test "$wxUSE_COCOA" = 1; then
30029
30030
30031 ac_ext=c
30032ac_cpp='$CPP $CPPFLAGS'
30033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30035ac_compiler_gnu=$ac_cv_c_compiler_gnu
30036
30037ac_ext=m
30038
30039 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30040echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30041 cat >conftest.$ac_ext <<_ACEOF
30042/* confdefs.h. */
30043_ACEOF
30044cat confdefs.h >>conftest.$ac_ext
30045cat >>conftest.$ac_ext <<_ACEOF
30046/* end confdefs.h. */
30047#include <AppKit/NSEvent.h>
30048#include <CoreFoundation/CoreFoundation.h>
30049
30050int
30051main ()
30052{
30053
30054 ;
30055 return 0;
30056}
30057_ACEOF
30058rm -f conftest.$ac_objext
30059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30060 (eval $ac_compile) 2>conftest.er1
30061 ac_status=$?
30062 grep -v '^ *+' conftest.er1 >conftest.err
30063 rm -f conftest.er1
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } &&
6ebeb4c7 30067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; } &&
30073 { ac_try='test -s conftest.$ac_objext'
30074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30076 ac_status=$?
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 echo "$as_me:$LINENO: result: no" >&5
30080echo "${ECHO_T}no" >&6
30081else
30082 echo "$as_me: failed program was:" >&5
30083sed 's/^/| /' conftest.$ac_ext >&5
30084
30085echo "$as_me:$LINENO: result: yes" >&5
30086echo "${ECHO_T}yes" >&6
30087 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30088echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30089 cat >conftest.$ac_ext <<_ACEOF
30090/* confdefs.h. */
30091_ACEOF
30092cat confdefs.h >>conftest.$ac_ext
30093cat >>conftest.$ac_ext <<_ACEOF
30094/* end confdefs.h. */
30095#define __Point__ 1
30096#include <AppKit/NSEvent.h>
30097#include <CoreFoundation/CoreFoundation.h>
30098
30099int
30100main ()
30101{
30102
30103 ;
30104 return 0;
30105}
30106_ACEOF
30107rm -f conftest.$ac_objext
30108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30109 (eval $ac_compile) 2>conftest.er1
30110 ac_status=$?
30111 grep -v '^ *+' conftest.er1 >conftest.err
30112 rm -f conftest.er1
30113 cat conftest.err >&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); } &&
6ebeb4c7 30116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest.$ac_objext'
30123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30124 (eval $ac_try) 2>&5
30125 ac_status=$?
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
30128 echo "$as_me:$LINENO: result: yes" >&5
30129echo "${ECHO_T}yes" >&6
30130 cat >>confdefs.h <<\_ACEOF
30131#define __Point__ 1
30132_ACEOF
30133
30134
30135else
30136 echo "$as_me: failed program was:" >&5
30137sed 's/^/| /' conftest.$ac_ext >&5
30138
30139{ { echo "$as_me:$LINENO: error: no
30140See \`config.log' for more details." >&5
30141echo "$as_me: error: no
30142See \`config.log' for more details." >&2;}
30143 { (exit 1); exit 1; }; }
30144
30145fi
30146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30147
30148fi
30149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30150 ac_ext=c
30151ac_cpp='$CPP $CPPFLAGS'
30152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30154ac_compiler_gnu=$ac_cv_c_compiler_gnu
30155
30156fi
30157
a848cd7e 30158if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30159 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30160 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30161
a848cd7e 30162 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30163
30164 # Extract the first word of "Rez", so it can be a program name with args.
30165set dummy Rez; ac_word=$2
30166echo "$as_me:$LINENO: checking for $ac_word" >&5
30167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30168if test "${ac_cv_prog_RESCOMP+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171 if test -n "$RESCOMP"; then
30172 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30173else
30174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175for as_dir in $PATH
30176do
30177 IFS=$as_save_IFS
30178 test -z "$as_dir" && as_dir=.
30179 for ac_exec_ext in '' $ac_executable_extensions; do
30180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30181 ac_cv_prog_RESCOMP="Rez"
30182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30183 break 2
30184 fi
30185done
30186done
30187
30188 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30189fi
30190fi
30191RESCOMP=$ac_cv_prog_RESCOMP
30192if test -n "$RESCOMP"; then
30193 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30194echo "${ECHO_T}$RESCOMP" >&6
30195else
30196 echo "$as_me:$LINENO: result: no" >&5
30197echo "${ECHO_T}no" >&6
30198fi
30199
30200 # Extract the first word of "DeRez", so it can be a program name with args.
30201set dummy DeRez; ac_word=$2
30202echo "$as_me:$LINENO: checking for $ac_word" >&5
30203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30204if test "${ac_cv_prog_DEREZ+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30206else
30207 if test -n "$DEREZ"; then
30208 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30209else
30210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211for as_dir in $PATH
30212do
30213 IFS=$as_save_IFS
30214 test -z "$as_dir" && as_dir=.
30215 for ac_exec_ext in '' $ac_executable_extensions; do
30216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30217 ac_cv_prog_DEREZ="DeRez"
30218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30219 break 2
30220 fi
30221done
30222done
30223
30224 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30225fi
30226fi
30227DEREZ=$ac_cv_prog_DEREZ
30228if test -n "$DEREZ"; then
30229 echo "$as_me:$LINENO: result: $DEREZ" >&5
30230echo "${ECHO_T}$DEREZ" >&6
30231else
30232 echo "$as_me:$LINENO: result: no" >&5
30233echo "${ECHO_T}no" >&6
30234fi
30235
30236 # Extract the first word of "SetFile", so it can be a program name with args.
30237set dummy SetFile; ac_word=$2
30238echo "$as_me:$LINENO: checking for $ac_word" >&5
30239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30240if test "${ac_cv_prog_SETFILE+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 if test -n "$SETFILE"; then
30244 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30245else
30246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30247for as_dir in $PATH
30248do
30249 IFS=$as_save_IFS
30250 test -z "$as_dir" && as_dir=.
30251 for ac_exec_ext in '' $ac_executable_extensions; do
30252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30253 ac_cv_prog_SETFILE="SetFile"
30254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30255 break 2
30256 fi
30257done
30258done
30259
30260 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30261fi
30262fi
30263SETFILE=$ac_cv_prog_SETFILE
30264if test -n "$SETFILE"; then
30265 echo "$as_me:$LINENO: result: $SETFILE" >&5
30266echo "${ECHO_T}$SETFILE" >&6
30267else
30268 echo "$as_me:$LINENO: result: no" >&5
30269echo "${ECHO_T}no" >&6
30270fi
30271
30272
30273 MACSETFILE="\$(SETFILE)"
30274
30275 if test "$wxUSE_MAC" = 1; then
1a79f136 30276 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30277
1a79f136 30278 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30279 else
30280 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30281 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30282 fi
30283else
ffa0583f
RL
30284 MACSETFILE="@true"
30285 MACRESWXCONFIG="@true"
a848cd7e
SC
30286
30287 if test "$wxUSE_PM" = 1; then
30288 MACRESCOMP="emxbind -ep"
30289 else
ffa0583f 30290 MACRESCOMP="@true"
a848cd7e
SC
30291 fi
30292fi
30293
30294
30295
30296echo "$as_me:$LINENO: checking for mode_t" >&5
30297echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30298if test "${ac_cv_type_mode_t+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300else
30301 cat >conftest.$ac_ext <<_ACEOF
30302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
30307$ac_includes_default
30308int
30309main ()
30310{
30311if ((mode_t *) 0)
30312 return 0;
30313if (sizeof (mode_t))
30314 return 0;
30315 ;
30316 return 0;
30317}
30318_ACEOF
30319rm -f conftest.$ac_objext
30320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30321 (eval $ac_compile) 2>conftest.er1
a848cd7e 30322 ac_status=$?
ac1cb8d3
VS
30323 grep -v '^ *+' conftest.er1 >conftest.err
30324 rm -f conftest.er1
30325 cat conftest.err >&5
a848cd7e
SC
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } &&
6ebeb4c7 30328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30330 (eval $ac_try) 2>&5
30331 ac_status=$?
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); }; } &&
30334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30337 ac_status=$?
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; }; then
30340 ac_cv_type_mode_t=yes
30341else
30342 echo "$as_me: failed program was:" >&5
30343sed 's/^/| /' conftest.$ac_ext >&5
30344
30345ac_cv_type_mode_t=no
30346fi
ac1cb8d3 30347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30348fi
30349echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30350echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30351if test $ac_cv_type_mode_t = yes; then
30352 :
30353else
30354
30355cat >>confdefs.h <<_ACEOF
30356#define mode_t int
30357_ACEOF
30358
30359fi
30360
30361echo "$as_me:$LINENO: checking for off_t" >&5
30362echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30363if test "${ac_cv_type_off_t+set}" = set; then
30364 echo $ECHO_N "(cached) $ECHO_C" >&6
30365else
30366 cat >conftest.$ac_ext <<_ACEOF
30367/* confdefs.h. */
30368_ACEOF
30369cat confdefs.h >>conftest.$ac_ext
30370cat >>conftest.$ac_ext <<_ACEOF
30371/* end confdefs.h. */
30372$ac_includes_default
30373int
30374main ()
30375{
30376if ((off_t *) 0)
30377 return 0;
30378if (sizeof (off_t))
30379 return 0;
30380 ;
30381 return 0;
30382}
30383_ACEOF
30384rm -f conftest.$ac_objext
30385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30386 (eval $ac_compile) 2>conftest.er1
a848cd7e 30387 ac_status=$?
ac1cb8d3
VS
30388 grep -v '^ *+' conftest.er1 >conftest.err
30389 rm -f conftest.er1
30390 cat conftest.err >&5
a848cd7e
SC
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); } &&
6ebeb4c7 30393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; } &&
30399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 ac_cv_type_off_t=yes
30406else
30407 echo "$as_me: failed program was:" >&5
30408sed 's/^/| /' conftest.$ac_ext >&5
30409
30410ac_cv_type_off_t=no
30411fi
ac1cb8d3 30412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30413fi
30414echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30415echo "${ECHO_T}$ac_cv_type_off_t" >&6
30416if test $ac_cv_type_off_t = yes; then
30417 :
30418else
30419
30420cat >>confdefs.h <<_ACEOF
30421#define off_t long
30422_ACEOF
30423
30424fi
30425
30426echo "$as_me:$LINENO: checking for pid_t" >&5
30427echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30428if test "${ac_cv_type_pid_t+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30430else
30431 cat >conftest.$ac_ext <<_ACEOF
30432/* confdefs.h. */
30433_ACEOF
30434cat confdefs.h >>conftest.$ac_ext
30435cat >>conftest.$ac_ext <<_ACEOF
30436/* end confdefs.h. */
30437$ac_includes_default
30438int
30439main ()
30440{
30441if ((pid_t *) 0)
30442 return 0;
30443if (sizeof (pid_t))
30444 return 0;
30445 ;
30446 return 0;
30447}
30448_ACEOF
30449rm -f conftest.$ac_objext
30450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30451 (eval $ac_compile) 2>conftest.er1
a848cd7e 30452 ac_status=$?
ac1cb8d3
VS
30453 grep -v '^ *+' conftest.er1 >conftest.err
30454 rm -f conftest.er1
30455 cat conftest.err >&5
a848cd7e
SC
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); } &&
6ebeb4c7 30458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460 (eval $ac_try) 2>&5
30461 ac_status=$?
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; } &&
30464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30466 (eval $ac_try) 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; }; then
30470 ac_cv_type_pid_t=yes
30471else
30472 echo "$as_me: failed program was:" >&5
30473sed 's/^/| /' conftest.$ac_ext >&5
30474
30475ac_cv_type_pid_t=no
30476fi
ac1cb8d3 30477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30478fi
30479echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30480echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30481if test $ac_cv_type_pid_t = yes; then
30482 :
30483else
30484
30485cat >>confdefs.h <<_ACEOF
30486#define pid_t int
30487_ACEOF
30488
30489fi
30490
30491echo "$as_me:$LINENO: checking for size_t" >&5
30492echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30493if test "${ac_cv_type_size_t+set}" = set; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495else
30496 cat >conftest.$ac_ext <<_ACEOF
30497/* confdefs.h. */
30498_ACEOF
30499cat confdefs.h >>conftest.$ac_ext
30500cat >>conftest.$ac_ext <<_ACEOF
30501/* end confdefs.h. */
30502$ac_includes_default
30503int
30504main ()
30505{
30506if ((size_t *) 0)
30507 return 0;
30508if (sizeof (size_t))
30509 return 0;
30510 ;
30511 return 0;
30512}
30513_ACEOF
30514rm -f conftest.$ac_objext
30515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30516 (eval $ac_compile) 2>conftest.er1
a848cd7e 30517 ac_status=$?
ac1cb8d3
VS
30518 grep -v '^ *+' conftest.er1 >conftest.err
30519 rm -f conftest.er1
30520 cat conftest.err >&5
a848cd7e
SC
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } &&
6ebeb4c7 30523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30532 ac_status=$?
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; }; then
30535 ac_cv_type_size_t=yes
30536else
30537 echo "$as_me: failed program was:" >&5
30538sed 's/^/| /' conftest.$ac_ext >&5
30539
30540ac_cv_type_size_t=no
30541fi
ac1cb8d3 30542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30543fi
30544echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30545echo "${ECHO_T}$ac_cv_type_size_t" >&6
30546if test $ac_cv_type_size_t = yes; then
30547 :
30548else
30549
30550cat >>confdefs.h <<_ACEOF
30551#define size_t unsigned
30552_ACEOF
30553
30554fi
30555
30556echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30557echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30558if test "${ac_cv_type_uid_t+set}" = set; then
30559 echo $ECHO_N "(cached) $ECHO_C" >&6
30560else
30561 cat >conftest.$ac_ext <<_ACEOF
30562/* confdefs.h. */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h. */
30567#include <sys/types.h>
30568
30569_ACEOF
30570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30571 $EGREP "uid_t" >/dev/null 2>&1; then
30572 ac_cv_type_uid_t=yes
30573else
30574 ac_cv_type_uid_t=no
30575fi
30576rm -f conftest*
30577
30578fi
30579echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30580echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30581if test $ac_cv_type_uid_t = no; then
30582
30583cat >>confdefs.h <<\_ACEOF
30584#define uid_t int
30585_ACEOF
30586
30587
30588cat >>confdefs.h <<\_ACEOF
30589#define gid_t int
30590_ACEOF
30591
30592fi
30593
30594
d51253e8
RL
30595echo "$as_me:$LINENO: checking for ssize_t" >&5
30596echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30597if test "${ac_cv_type_ssize_t+set}" = set; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30599else
30600 cat >conftest.$ac_ext <<_ACEOF
30601/* confdefs.h. */
30602_ACEOF
30603cat confdefs.h >>conftest.$ac_ext
30604cat >>conftest.$ac_ext <<_ACEOF
30605/* end confdefs.h. */
30606$ac_includes_default
30607int
30608main ()
30609{
30610if ((ssize_t *) 0)
30611 return 0;
30612if (sizeof (ssize_t))
30613 return 0;
30614 ;
30615 return 0;
30616}
30617_ACEOF
30618rm -f conftest.$ac_objext
30619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30620 (eval $ac_compile) 2>conftest.er1
30621 ac_status=$?
30622 grep -v '^ *+' conftest.er1 >conftest.err
30623 rm -f conftest.er1
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
6ebeb4c7 30627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; } &&
30633 { ac_try='test -s conftest.$ac_objext'
30634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639 ac_cv_type_ssize_t=yes
30640else
30641 echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644ac_cv_type_ssize_t=no
30645fi
30646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30647fi
30648echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30649echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30650if test $ac_cv_type_ssize_t = yes; then
30651
30652cat >>confdefs.h <<_ACEOF
30653#define HAVE_SSIZE_T 1
30654_ACEOF
30655
30656
30657fi
30658
30659
a848cd7e
SC
30660
30661
30662ac_ext=cc
30663ac_cpp='$CXXCPP $CPPFLAGS'
30664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30667
30668echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30669echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30670if test "${wx_cv_size_t_is_uint+set}" = set; then
30671 echo $ECHO_N "(cached) $ECHO_C" >&6
30672else
30673
30674 cat >conftest.$ac_ext <<_ACEOF
30675/* confdefs.h. */
30676_ACEOF
30677cat confdefs.h >>conftest.$ac_ext
30678cat >>conftest.$ac_ext <<_ACEOF
30679/* end confdefs.h. */
30680#include <stddef.h>
30681int
30682main ()
30683{
30684
30685 return 0; }
30686
30687 struct Foo { void foo(size_t); void foo(unsigned int); };
30688
30689 int bar() {
30690
30691 ;
30692 return 0;
30693}
30694_ACEOF
30695rm -f conftest.$ac_objext
30696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30697 (eval $ac_compile) 2>conftest.er1
a848cd7e 30698 ac_status=$?
ac1cb8d3
VS
30699 grep -v '^ *+' conftest.er1 >conftest.err
30700 rm -f conftest.er1
30701 cat conftest.err >&5
a848cd7e
SC
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
6ebeb4c7 30704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712 (eval $ac_try) 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 wx_cv_size_t_is_uint=no
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721wx_cv_size_t_is_uint=yes
30722
30723fi
ac1cb8d3 30724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30725
30726
30727fi
30728echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30729echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30730
30731if test "$wx_cv_size_t_is_uint" = "yes"; then
30732 cat >>confdefs.h <<\_ACEOF
30733#define wxSIZE_T_IS_UINT 1
30734_ACEOF
30735
30736else
30737 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30738echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30739if test "${wx_cv_size_t_is_ulong+set}" = set; then
30740 echo $ECHO_N "(cached) $ECHO_C" >&6
30741else
30742 cat >conftest.$ac_ext <<_ACEOF
30743/* confdefs.h. */
30744_ACEOF
30745cat confdefs.h >>conftest.$ac_ext
30746cat >>conftest.$ac_ext <<_ACEOF
30747/* end confdefs.h. */
30748#include <stddef.h>
30749int
30750main ()
30751{
30752
30753 return 0; }
30754
30755 struct Foo { void foo(size_t); void foo(unsigned long); };
30756
30757 int bar() {
30758
30759 ;
30760 return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext
30764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30765 (eval $ac_compile) 2>conftest.er1
a848cd7e 30766 ac_status=$?
ac1cb8d3
VS
30767 grep -v '^ *+' conftest.er1 >conftest.err
30768 rm -f conftest.er1
30769 cat conftest.err >&5
a848cd7e
SC
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } &&
6ebeb4c7 30772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; } &&
30778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; }; then
30784 wx_cv_size_t_is_ulong=no
30785else
30786 echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789wx_cv_size_t_is_ulong=yes
30790
30791fi
ac1cb8d3 30792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30793
30794fi
30795echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30796echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30797
30798 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30799 cat >>confdefs.h <<\_ACEOF
30800#define wxSIZE_T_IS_ULONG 1
30801_ACEOF
30802
30803 fi
30804fi
30805
30806ac_ext=c
30807ac_cpp='$CPP $CPPFLAGS'
30808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30810ac_compiler_gnu=$ac_cv_c_compiler_gnu
30811
30812
30813
30814echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30815echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30816if test "${wx_cv_struct_pw_gecos+set}" = set; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819
30820 cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h. */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h. */
30826#include <pwd.h>
30827int
30828main ()
30829{
30830
30831 char *p;
30832 struct passwd *pw;
30833 p = pw->pw_gecos;
30834
30835 ;
30836 return 0;
30837}
30838_ACEOF
30839rm -f conftest.$ac_objext
30840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30841 (eval $ac_compile) 2>conftest.er1
a848cd7e 30842 ac_status=$?
ac1cb8d3
VS
30843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
a848cd7e
SC
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
6ebeb4c7 30848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; } &&
30854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30856 (eval $ac_try) 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; }; then
30860
30861 wx_cv_struct_pw_gecos=yes
30862
30863else
30864 echo "$as_me: failed program was:" >&5
30865sed 's/^/| /' conftest.$ac_ext >&5
30866
30867
30868 wx_cv_struct_pw_gecos=no
30869
30870
30871fi
ac1cb8d3 30872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30873
30874
30875fi
30876echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30877echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30878
30879if test "$wx_cv_struct_pw_gecos" = "yes"; then
30880 cat >>confdefs.h <<\_ACEOF
30881#define HAVE_PW_GECOS 1
30882_ACEOF
30883
30884fi
30885
30886
47a7e797 30887if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30888 cat >>confdefs.h <<\_ACEOF
30889#define wxUSE_WCHAR_T 1
30890_ACEOF
30891
30892
30893 WCSLEN_FOUND=0
30894 WCHAR_LINK=
30895
30896for ac_func in wcslen
30897do
30898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899echo "$as_me:$LINENO: checking for $ac_func" >&5
30900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30901if eval "test \"\${$as_ac_var+set}\" = set"; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30903else
30904 cat >conftest.$ac_ext <<_ACEOF
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
ac1cb8d3
VS
30910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30912#define $ac_func innocuous_$ac_func
30913
a848cd7e
SC
30914/* System header to define __stub macros and hopefully few prototypes,
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30918
a848cd7e
SC
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
ac1cb8d3
VS
30924
30925#undef $ac_func
30926
a848cd7e
SC
30927/* Override any gcc2 internal prototype to avoid an error. */
30928#ifdef __cplusplus
30929extern "C"
30930{
30931#endif
30932/* We use char because int might match the return type of a gcc2
30933 builtin and then its argument prototype would still apply. */
30934char $ac_func ();
30935/* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
30938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30939choke me
30940#else
30941char (*f) () = $ac_func;
30942#endif
30943#ifdef __cplusplus
30944}
30945#endif
30946
30947int
30948main ()
30949{
30950return f != $ac_func;
30951 ;
30952 return 0;
30953}
30954_ACEOF
30955rm -f conftest.$ac_objext conftest$ac_exeext
30956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30957 (eval $ac_link) 2>conftest.er1
a848cd7e 30958 ac_status=$?
ac1cb8d3
VS
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
a848cd7e
SC
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
6ebeb4c7 30964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966 (eval $ac_try) 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; } &&
30970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972 (eval $ac_try) 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; }; then
30976 eval "$as_ac_var=yes"
30977else
30978 echo "$as_me: failed program was:" >&5
30979sed 's/^/| /' conftest.$ac_ext >&5
30980
30981eval "$as_ac_var=no"
30982fi
ac1cb8d3
VS
30983rm -f conftest.err conftest.$ac_objext \
30984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30985fi
30986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30988if test `eval echo '${'$as_ac_var'}'` = yes; then
30989 cat >>confdefs.h <<_ACEOF
30990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30991_ACEOF
30992 WCSLEN_FOUND=1
30993fi
30994done
30995
30996
30997 if test "$WCSLEN_FOUND" = 0; then
30998 if test "$TOOLKIT" = "MSW"; then
30999 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31000echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31001if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31003else
31004 ac_check_lib_save_LIBS=$LIBS
31005LIBS="-lmsvcrt $LIBS"
31006cat >conftest.$ac_ext <<_ACEOF
31007/* confdefs.h. */
31008_ACEOF
31009cat confdefs.h >>conftest.$ac_ext
31010cat >>conftest.$ac_ext <<_ACEOF
31011/* end confdefs.h. */
31012
31013/* Override any gcc2 internal prototype to avoid an error. */
31014#ifdef __cplusplus
31015extern "C"
31016#endif
31017/* We use char because int might match the return type of a gcc2
31018 builtin and then its argument prototype would still apply. */
31019char wcslen ();
31020int
31021main ()
31022{
31023wcslen ();
31024 ;
31025 return 0;
31026}
31027_ACEOF
31028rm -f conftest.$ac_objext conftest$ac_exeext
31029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31030 (eval $ac_link) 2>conftest.er1
a848cd7e 31031 ac_status=$?
ac1cb8d3
VS
31032 grep -v '^ *+' conftest.er1 >conftest.err
31033 rm -f conftest.er1
31034 cat conftest.err >&5
a848cd7e
SC
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); } &&
6ebeb4c7 31037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; } &&
31043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; }; then
31049 ac_cv_lib_msvcrt_wcslen=yes
31050else
31051 echo "$as_me: failed program was:" >&5
31052sed 's/^/| /' conftest.$ac_ext >&5
31053
31054ac_cv_lib_msvcrt_wcslen=no
31055fi
ac1cb8d3
VS
31056rm -f conftest.err conftest.$ac_objext \
31057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31058LIBS=$ac_check_lib_save_LIBS
31059fi
31060echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31061echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31062if test $ac_cv_lib_msvcrt_wcslen = yes; then
31063 WCHAR_OK=1
31064fi
31065
31066 else
31067 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31068echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31069if test "${ac_cv_lib_w_wcslen+set}" = set; then
31070 echo $ECHO_N "(cached) $ECHO_C" >&6
31071else
31072 ac_check_lib_save_LIBS=$LIBS
31073LIBS="-lw $LIBS"
31074cat >conftest.$ac_ext <<_ACEOF
31075/* confdefs.h. */
31076_ACEOF
31077cat confdefs.h >>conftest.$ac_ext
31078cat >>conftest.$ac_ext <<_ACEOF
31079/* end confdefs.h. */
31080
31081/* Override any gcc2 internal prototype to avoid an error. */
31082#ifdef __cplusplus
31083extern "C"
31084#endif
31085/* We use char because int might match the return type of a gcc2
31086 builtin and then its argument prototype would still apply. */
31087char wcslen ();
31088int
31089main ()
31090{
31091wcslen ();
31092 ;
31093 return 0;
31094}
31095_ACEOF
31096rm -f conftest.$ac_objext conftest$ac_exeext
31097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31098 (eval $ac_link) 2>conftest.er1
a848cd7e 31099 ac_status=$?
ac1cb8d3
VS
31100 grep -v '^ *+' conftest.er1 >conftest.err
31101 rm -f conftest.er1
31102 cat conftest.err >&5
a848cd7e
SC
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); } &&
6ebeb4c7 31105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31107 (eval $ac_try) 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; } &&
31111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31113 (eval $ac_try) 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; }; then
31117 ac_cv_lib_w_wcslen=yes
31118else
31119 echo "$as_me: failed program was:" >&5
31120sed 's/^/| /' conftest.$ac_ext >&5
31121
31122ac_cv_lib_w_wcslen=no
31123fi
ac1cb8d3
VS
31124rm -f conftest.err conftest.$ac_objext \
31125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31126LIBS=$ac_check_lib_save_LIBS
31127fi
31128echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31129echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31130if test $ac_cv_lib_w_wcslen = yes; then
31131
31132 WCHAR_LINK=" -lw"
31133 WCSLEN_FOUND=1
31134
31135fi
31136
31137 fi
31138 fi
31139
31140 if test "$WCSLEN_FOUND" = 1; then
31141 cat >>confdefs.h <<\_ACEOF
31142#define HAVE_WCSLEN 1
31143_ACEOF
31144
31145 fi
31146
81f90336 31147 if test "$USE_HPUX" = 1; then
473276a9
VS
31148 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31149 fi
31150
a848cd7e
SC
31151
31152for ac_func in wcsrtombs
31153do
31154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31155echo "$as_me:$LINENO: checking for $ac_func" >&5
31156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31157if eval "test \"\${$as_ac_var+set}\" = set"; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31159else
31160 cat >conftest.$ac_ext <<_ACEOF
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
ac1cb8d3
VS
31166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31168#define $ac_func innocuous_$ac_func
31169
a848cd7e
SC
31170/* System header to define __stub macros and hopefully few prototypes,
31171 which can conflict with char $ac_func (); below.
31172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31174
a848cd7e
SC
31175#ifdef __STDC__
31176# include <limits.h>
31177#else
31178# include <assert.h>
31179#endif
ac1cb8d3
VS
31180
31181#undef $ac_func
31182
a848cd7e
SC
31183/* Override any gcc2 internal prototype to avoid an error. */
31184#ifdef __cplusplus
31185extern "C"
31186{
31187#endif
31188/* We use char because int might match the return type of a gcc2
31189 builtin and then its argument prototype would still apply. */
31190char $ac_func ();
31191/* The GNU C library defines this for functions which it implements
31192 to always fail with ENOSYS. Some functions are actually named
31193 something starting with __ and the normal name is an alias. */
31194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31195choke me
31196#else
31197char (*f) () = $ac_func;
31198#endif
31199#ifdef __cplusplus
31200}
31201#endif
31202
31203int
31204main ()
31205{
31206return f != $ac_func;
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211rm -f conftest.$ac_objext conftest$ac_exeext
31212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31213 (eval $ac_link) 2>conftest.er1
a848cd7e 31214 ac_status=$?
ac1cb8d3
VS
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
a848cd7e
SC
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
6ebeb4c7 31220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222 (eval $ac_try) 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; } &&
31226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228 (eval $ac_try) 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 eval "$as_ac_var=yes"
31233else
31234 echo "$as_me: failed program was:" >&5
31235sed 's/^/| /' conftest.$ac_ext >&5
31236
31237eval "$as_ac_var=no"
31238fi
ac1cb8d3
VS
31239rm -f conftest.err conftest.$ac_objext \
31240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31241fi
31242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31244if test `eval echo '${'$as_ac_var'}'` = yes; then
31245 cat >>confdefs.h <<_ACEOF
31246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31247_ACEOF
31248
31249fi
31250done
31251
31252else
31253 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31254echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31255fi
31256
31257
31258
31259ac_ext=cc
31260ac_cpp='$CXXCPP $CPPFLAGS'
31261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31264
31265
31266
31267for ac_func in vsnprintf
31268do
31269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31270echo "$as_me:$LINENO: checking for $ac_func" >&5
31271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31272if eval "test \"\${$as_ac_var+set}\" = set"; then
31273 echo $ECHO_N "(cached) $ECHO_C" >&6
31274else
31275 cat >conftest.$ac_ext <<_ACEOF
31276/* confdefs.h. */
31277_ACEOF
31278cat confdefs.h >>conftest.$ac_ext
31279cat >>conftest.$ac_ext <<_ACEOF
31280/* end confdefs.h. */
ac1cb8d3
VS
31281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31283#define $ac_func innocuous_$ac_func
31284
a848cd7e
SC
31285/* System header to define __stub macros and hopefully few prototypes,
31286 which can conflict with char $ac_func (); below.
31287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31288 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31289
a848cd7e
SC
31290#ifdef __STDC__
31291# include <limits.h>
31292#else
31293# include <assert.h>
31294#endif
ac1cb8d3
VS
31295
31296#undef $ac_func
31297
a848cd7e
SC
31298/* Override any gcc2 internal prototype to avoid an error. */
31299#ifdef __cplusplus
31300extern "C"
31301{
31302#endif
31303/* We use char because int might match the return type of a gcc2
31304 builtin and then its argument prototype would still apply. */
31305char $ac_func ();
31306/* The GNU C library defines this for functions which it implements
31307 to always fail with ENOSYS. Some functions are actually named
31308 something starting with __ and the normal name is an alias. */
31309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31310choke me
31311#else
31312char (*f) () = $ac_func;
31313#endif
31314#ifdef __cplusplus
31315}
31316#endif
31317
31318int
31319main ()
31320{
31321return f != $ac_func;
31322 ;
31323 return 0;
31324}
31325_ACEOF
31326rm -f conftest.$ac_objext conftest$ac_exeext
31327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31328 (eval $ac_link) 2>conftest.er1
a848cd7e 31329 ac_status=$?
ac1cb8d3
VS
31330 grep -v '^ *+' conftest.er1 >conftest.err
31331 rm -f conftest.er1
31332 cat conftest.err >&5
a848cd7e
SC
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
6ebeb4c7 31335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31337 (eval $ac_try) 2>&5
31338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; }; then
31347 eval "$as_ac_var=yes"
31348else
31349 echo "$as_me: failed program was:" >&5
31350sed 's/^/| /' conftest.$ac_ext >&5
31351
31352eval "$as_ac_var=no"
31353fi
ac1cb8d3
VS
31354rm -f conftest.err conftest.$ac_objext \
31355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31356fi
31357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31359if test `eval echo '${'$as_ac_var'}'` = yes; then
31360 cat >>confdefs.h <<_ACEOF
31361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31362_ACEOF
31363
31364fi
31365done
31366
31367
31368if test "$ac_cv_func_vsnprintf" = "yes"; then
31369 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31370echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31371if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31372 echo $ECHO_N "(cached) $ECHO_C" >&6
31373else
31374
31375 cat >conftest.$ac_ext <<_ACEOF
31376/* confdefs.h. */
31377_ACEOF
31378cat confdefs.h >>conftest.$ac_ext
31379cat >>conftest.$ac_ext <<_ACEOF
31380/* end confdefs.h. */
31381
31382 #include <stdio.h>
31383 #include <stdarg.h>
31384
31385int
31386main ()
31387{
31388
31389 char *buf;
31390 va_list ap;
31391 vsnprintf(buf, 10u, "%s", ap);
31392
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext
31398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31399 (eval $ac_compile) 2>conftest.er1
a848cd7e 31400 ac_status=$?
ac1cb8d3
VS
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
a848cd7e
SC
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
6ebeb4c7 31406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414 (eval $ac_try) 2>&5
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); }; }; then
31418 wx_cv_func_vsnprintf_decl=yes
31419else
31420 echo "$as_me: failed program was:" >&5
31421sed 's/^/| /' conftest.$ac_ext >&5
31422
c122b164
DE
31423
31424 cat >conftest.$ac_ext <<_ACEOF
31425/* confdefs.h. */
31426_ACEOF
31427cat confdefs.h >>conftest.$ac_ext
31428cat >>conftest.$ac_ext <<_ACEOF
31429/* end confdefs.h. */
31430
31431 #include <stdio.h>
31432 #include <stdarg.h>
31433 using namespace std;
31434
31435int
31436main ()
31437{
31438
31439 char *buf;
31440 va_list ap;
31441 vsnprintf(buf, 10u, "%s", ap);
31442
31443 ;
31444 return 0;
31445}
31446_ACEOF
31447rm -f conftest.$ac_objext
31448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31449 (eval $ac_compile) 2>conftest.er1
31450 ac_status=$?
31451 grep -v '^ *+' conftest.er1 >conftest.err
31452 rm -f conftest.er1
31453 cat conftest.err >&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); } &&
6ebeb4c7 31456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458 (eval $ac_try) 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; } &&
31462 { ac_try='test -s conftest.$ac_objext'
31463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31464 (eval $ac_try) 2>&5
31465 ac_status=$?
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); }; }; then
31468 wx_cv_func_vsnprintf_decl=yes
31469else
31470 echo "$as_me: failed program was:" >&5
31471sed 's/^/| /' conftest.$ac_ext >&5
31472
a848cd7e
SC
31473wx_cv_func_vsnprintf_decl=no
31474
31475fi
ac1cb8d3 31476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31477
31478
c122b164
DE
31479fi
31480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31481
31482
a848cd7e
SC
31483fi
31484echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31485echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31486
31487 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31488 cat >>confdefs.h <<\_ACEOF
31489#define HAVE_VSNPRINTF_DECL 1
31490_ACEOF
31491
31492 fi
31493fi
31494
31495if test "$wxUSE_UNICODE" = yes; then
31496
31497
31498
fbe47c7b
VS
31499
31500
31501
31502for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31503do
31504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505echo "$as_me:$LINENO: checking for $ac_func" >&5
31506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31507if eval "test \"\${$as_ac_var+set}\" = set"; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31509else
31510 cat >conftest.$ac_ext <<_ACEOF
31511/* confdefs.h. */
31512_ACEOF
31513cat confdefs.h >>conftest.$ac_ext
31514cat >>conftest.$ac_ext <<_ACEOF
31515/* end confdefs.h. */
ac1cb8d3
VS
31516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31518#define $ac_func innocuous_$ac_func
31519
a848cd7e
SC
31520/* System header to define __stub macros and hopefully few prototypes,
31521 which can conflict with char $ac_func (); below.
31522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31524
a848cd7e
SC
31525#ifdef __STDC__
31526# include <limits.h>
31527#else
31528# include <assert.h>
31529#endif
ac1cb8d3
VS
31530
31531#undef $ac_func
31532
a848cd7e
SC
31533/* Override any gcc2 internal prototype to avoid an error. */
31534#ifdef __cplusplus
31535extern "C"
31536{
31537#endif
31538/* We use char because int might match the return type of a gcc2
31539 builtin and then its argument prototype would still apply. */
31540char $ac_func ();
31541/* The GNU C library defines this for functions which it implements
31542 to always fail with ENOSYS. Some functions are actually named
31543 something starting with __ and the normal name is an alias. */
31544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31545choke me
31546#else
31547char (*f) () = $ac_func;
31548#endif
31549#ifdef __cplusplus
31550}
31551#endif
31552
31553int
31554main ()
31555{
31556return f != $ac_func;
31557 ;
31558 return 0;
31559}
31560_ACEOF
31561rm -f conftest.$ac_objext conftest$ac_exeext
31562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31563 (eval $ac_link) 2>conftest.er1
a848cd7e 31564 ac_status=$?
ac1cb8d3
VS
31565 grep -v '^ *+' conftest.er1 >conftest.err
31566 rm -f conftest.er1
31567 cat conftest.err >&5
a848cd7e
SC
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
6ebeb4c7 31570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578 (eval $ac_try) 2>&5
31579 ac_status=$?
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); }; }; then
31582 eval "$as_ac_var=yes"
31583else
31584 echo "$as_me: failed program was:" >&5
31585sed 's/^/| /' conftest.$ac_ext >&5
31586
31587eval "$as_ac_var=no"
31588fi
ac1cb8d3
VS
31589rm -f conftest.err conftest.$ac_objext \
31590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31591fi
31592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31594if test `eval echo '${'$as_ac_var'}'` = yes; then
31595 cat >>confdefs.h <<_ACEOF
31596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31597_ACEOF
31598
31599fi
31600done
31601
31602
31603 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31604echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31605 cat >conftest.$ac_ext <<_ACEOF
31606/* confdefs.h. */
31607_ACEOF
31608cat confdefs.h >>conftest.$ac_ext
31609cat >>conftest.$ac_ext <<_ACEOF
31610/* end confdefs.h. */
31611#include <wchar.h>
31612int
31613main ()
31614{
31615&_vsnwprintf;
31616 ;
31617 return 0;
31618}
31619_ACEOF
31620rm -f conftest.$ac_objext
31621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31622 (eval $ac_compile) 2>conftest.er1
a848cd7e 31623 ac_status=$?
ac1cb8d3
VS
31624 grep -v '^ *+' conftest.er1 >conftest.err
31625 rm -f conftest.er1
31626 cat conftest.err >&5
a848cd7e
SC
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } &&
6ebeb4c7 31629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; } &&
31635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 echo "$as_me:$LINENO: result: yes" >&5
31642echo "${ECHO_T}yes" >&6
31643 cat >>confdefs.h <<\_ACEOF
31644#define HAVE__VSNWPRINTF 1
31645_ACEOF
31646
31647else
31648 echo "$as_me: failed program was:" >&5
31649sed 's/^/| /' conftest.$ac_ext >&5
31650
31651echo "$as_me:$LINENO: result: no" >&5
31652echo "${ECHO_T}no" >&6
31653fi
ac1cb8d3 31654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31655fi
31656
31657ac_ext=c
31658ac_cpp='$CPP $CPPFLAGS'
31659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31661ac_compiler_gnu=$ac_cv_c_compiler_gnu
31662
31663
6ebeb4c7
VZ
31664if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31665
31666for ac_func in fnmatch
31667do
31668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31669echo "$as_me:$LINENO: checking for $ac_func" >&5
31670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31671if eval "test \"\${$as_ac_var+set}\" = set"; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674 cat >conftest.$ac_ext <<_ACEOF
31675/* confdefs.h. */
31676_ACEOF
31677cat confdefs.h >>conftest.$ac_ext
31678cat >>conftest.$ac_ext <<_ACEOF
31679/* end confdefs.h. */
31680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31682#define $ac_func innocuous_$ac_func
31683
31684/* System header to define __stub macros and hopefully few prototypes,
31685 which can conflict with char $ac_func (); below.
31686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687 <limits.h> exists even on freestanding compilers. */
31688
31689#ifdef __STDC__
31690# include <limits.h>
31691#else
31692# include <assert.h>
31693#endif
31694
31695#undef $ac_func
31696
31697/* Override any gcc2 internal prototype to avoid an error. */
31698#ifdef __cplusplus
31699extern "C"
31700{
31701#endif
31702/* We use char because int might match the return type of a gcc2
31703 builtin and then its argument prototype would still apply. */
31704char $ac_func ();
31705/* The GNU C library defines this for functions which it implements
31706 to always fail with ENOSYS. Some functions are actually named
31707 something starting with __ and the normal name is an alias. */
31708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31709choke me
31710#else
31711char (*f) () = $ac_func;
31712#endif
31713#ifdef __cplusplus
31714}
31715#endif
31716
31717int
31718main ()
31719{
31720return f != $ac_func;
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725rm -f conftest.$ac_objext conftest$ac_exeext
31726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31727 (eval $ac_link) 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; } &&
31740 { ac_try='test -s conftest$ac_exeext'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; }; then
31746 eval "$as_ac_var=yes"
31747else
31748 echo "$as_me: failed program was:" >&5
31749sed 's/^/| /' conftest.$ac_ext >&5
31750
31751eval "$as_ac_var=no"
31752fi
31753rm -f conftest.err conftest.$ac_objext \
31754 conftest$ac_exeext conftest.$ac_ext
31755fi
31756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31757echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31758if test `eval echo '${'$as_ac_var'}'` = yes; then
31759 cat >>confdefs.h <<_ACEOF
31760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31761_ACEOF
31762
31763fi
31764done
31765
31766fi
31767
31768if test "$wxUSE_FILE" = "yes"; then
31769
31770for ac_func in fsync
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. */
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
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. */
31792
31793#ifdef __STDC__
31794# include <limits.h>
31795#else
31796# include <assert.h>
31797#endif
31798
31799#undef $ac_func
31800
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
31831 (eval $ac_link) 2>conftest.er1
31832 ac_status=$?
31833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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'
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
31857rm -f conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
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
31867fi
31868done
31869
31870fi
a848cd7e
SC
31871
31872
31873if test "$TOOLKIT" != "MSW"; then
31874
31875
31876
31877
31878ac_ext=cc
31879ac_cpp='$CXXCPP $CPPFLAGS'
31880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31883
31884
31885
31886
31887# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31888if test "${with_libiconv_prefix+set}" = set; then
31889 withval="$with_libiconv_prefix"
31890
31891 for dir in `echo "$withval" | tr : ' '`; do
31892 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31893 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31894 done
31895
31896fi;
31897
31898 echo "$as_me:$LINENO: checking for iconv" >&5
31899echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31900if test "${am_cv_func_iconv+set}" = set; then
31901 echo $ECHO_N "(cached) $ECHO_C" >&6
31902else
31903
31904 am_cv_func_iconv="no, consider installing GNU libiconv"
31905 am_cv_lib_iconv=no
31906 cat >conftest.$ac_ext <<_ACEOF
31907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
31912#include <stdlib.h>
31913#include <iconv.h>
31914int
31915main ()
31916{
31917iconv_t cd = iconv_open("","");
31918 iconv(cd,NULL,NULL,NULL,NULL);
31919 iconv_close(cd);
31920 ;
31921 return 0;
31922}
31923_ACEOF
31924rm -f conftest.$ac_objext conftest$ac_exeext
31925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31926 (eval $ac_link) 2>conftest.er1
a848cd7e 31927 ac_status=$?
ac1cb8d3
VS
31928 grep -v '^ *+' conftest.er1 >conftest.err
31929 rm -f conftest.er1
31930 cat conftest.err >&5
a848cd7e
SC
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
6ebeb4c7 31933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; } &&
31939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31941 (eval $ac_try) 2>&5
31942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; }; then
31945 am_cv_func_iconv=yes
31946else
31947 echo "$as_me: failed program was:" >&5
31948sed 's/^/| /' conftest.$ac_ext >&5
31949
31950fi
ac1cb8d3
VS
31951rm -f conftest.err conftest.$ac_objext \
31952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31953 if test "$am_cv_func_iconv" != yes; then
31954 am_save_LIBS="$LIBS"
31955 LIBS="$LIBS -liconv"
31956 cat >conftest.$ac_ext <<_ACEOF
31957/* confdefs.h. */
31958_ACEOF
31959cat confdefs.h >>conftest.$ac_ext
31960cat >>conftest.$ac_ext <<_ACEOF
31961/* end confdefs.h. */
31962#include <stdlib.h>
31963#include <iconv.h>
31964int
31965main ()
31966{
31967iconv_t cd = iconv_open("","");
31968 iconv(cd,NULL,NULL,NULL,NULL);
31969 iconv_close(cd);
31970 ;
31971 return 0;
31972}
31973_ACEOF
31974rm -f conftest.$ac_objext conftest$ac_exeext
31975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31976 (eval $ac_link) 2>conftest.er1
a848cd7e 31977 ac_status=$?
ac1cb8d3
VS
31978 grep -v '^ *+' conftest.er1 >conftest.err
31979 rm -f conftest.er1
31980 cat conftest.err >&5
a848cd7e
SC
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); } &&
6ebeb4c7 31983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31985 (eval $ac_try) 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; } &&
31989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; }; then
31995 am_cv_lib_iconv=yes
31996 am_cv_func_iconv=yes
31997else
31998 echo "$as_me: failed program was:" >&5
31999sed 's/^/| /' conftest.$ac_ext >&5
32000
32001fi
ac1cb8d3
VS
32002rm -f conftest.err conftest.$ac_objext \
32003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32004 LIBS="$am_save_LIBS"
32005 fi
32006
32007fi
32008echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32009echo "${ECHO_T}$am_cv_func_iconv" >&6
32010 if test "$am_cv_func_iconv" = yes; then
32011
32012cat >>confdefs.h <<\_ACEOF
32013#define HAVE_ICONV 1
32014_ACEOF
32015
32016 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32017echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32018if test "${wx_cv_func_iconv_const+set}" = set; then
32019 echo $ECHO_N "(cached) $ECHO_C" >&6
32020else
32021 cat >conftest.$ac_ext <<_ACEOF
32022/* confdefs.h. */
32023_ACEOF
32024cat confdefs.h >>conftest.$ac_ext
32025cat >>conftest.$ac_ext <<_ACEOF
32026/* end confdefs.h. */
32027
32028#include <stdlib.h>
32029#include <iconv.h>
32030extern
32031#ifdef __cplusplus
32032"C"
32033#endif
32034#if defined(__STDC__) || defined(__cplusplus)
32035size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32036#else
32037size_t iconv();
32038#endif
32039
32040int
32041main ()
32042{
32043
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext
32049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32050 (eval $ac_compile) 2>conftest.er1
a848cd7e 32051 ac_status=$?
ac1cb8d3
VS
32052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
a848cd7e
SC
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
6ebeb4c7 32057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32059 (eval $ac_try) 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; } &&
32063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 wx_cv_func_iconv_const="no"
32070else
32071 echo "$as_me: failed program was:" >&5
32072sed 's/^/| /' conftest.$ac_ext >&5
32073
32074wx_cv_func_iconv_const="yes"
32075
32076fi
ac1cb8d3 32077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32078
32079fi
32080echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32081echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32082
32083 iconv_const=
32084 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32085 iconv_const="const"
32086 fi
32087
32088
32089cat >>confdefs.h <<_ACEOF
32090#define ICONV_CONST $iconv_const
32091_ACEOF
32092
32093 fi
32094 LIBICONV=
32095 if test "$am_cv_lib_iconv" = yes; then
32096 LIBICONV="-liconv"
32097 fi
32098
32099
32100LIBS="$LIBICONV $LIBS"
32101ac_ext=c
32102ac_cpp='$CPP $CPPFLAGS'
32103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32105ac_compiler_gnu=$ac_cv_c_compiler_gnu
32106
32107
32108if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32109
32110for ac_func in sigaction
32111do
32112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32113echo "$as_me:$LINENO: checking for $ac_func" >&5
32114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32115if eval "test \"\${$as_ac_var+set}\" = set"; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32117else
32118 cat >conftest.$ac_ext <<_ACEOF
32119/* confdefs.h. */
32120_ACEOF
32121cat confdefs.h >>conftest.$ac_ext
32122cat >>conftest.$ac_ext <<_ACEOF
32123/* end confdefs.h. */
ac1cb8d3
VS
32124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32126#define $ac_func innocuous_$ac_func
32127
a848cd7e
SC
32128/* System header to define __stub macros and hopefully few prototypes,
32129 which can conflict with char $ac_func (); below.
32130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32131 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32132
a848cd7e
SC
32133#ifdef __STDC__
32134# include <limits.h>
32135#else
32136# include <assert.h>
32137#endif
ac1cb8d3
VS
32138
32139#undef $ac_func
32140
a848cd7e
SC
32141/* Override any gcc2 internal prototype to avoid an error. */
32142#ifdef __cplusplus
32143extern "C"
32144{
32145#endif
32146/* We use char because int might match the return type of a gcc2
32147 builtin and then its argument prototype would still apply. */
32148char $ac_func ();
32149/* The GNU C library defines this for functions which it implements
32150 to always fail with ENOSYS. Some functions are actually named
32151 something starting with __ and the normal name is an alias. */
32152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32153choke me
32154#else
32155char (*f) () = $ac_func;
32156#endif
32157#ifdef __cplusplus
32158}
32159#endif
32160
32161int
32162main ()
32163{
32164return f != $ac_func;
32165 ;
32166 return 0;
32167}
32168_ACEOF
32169rm -f conftest.$ac_objext conftest$ac_exeext
32170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32171 (eval $ac_link) 2>conftest.er1
a848cd7e 32172 ac_status=$?
ac1cb8d3
VS
32173 grep -v '^ *+' conftest.er1 >conftest.err
32174 rm -f conftest.er1
32175 cat conftest.err >&5
a848cd7e
SC
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } &&
6ebeb4c7 32178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32190 eval "$as_ac_var=yes"
32191else
32192 echo "$as_me: failed program was:" >&5
32193sed 's/^/| /' conftest.$ac_ext >&5
32194
32195eval "$as_ac_var=no"
32196fi
ac1cb8d3
VS
32197rm -f conftest.err conftest.$ac_objext \
32198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32199fi
32200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32202if test `eval echo '${'$as_ac_var'}'` = yes; then
32203 cat >>confdefs.h <<_ACEOF
32204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32205_ACEOF
32206
32207fi
32208done
32209
32210
32211 if test "$ac_cv_func_sigaction" = "no"; then
32212 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32213echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32214 wxUSE_ON_FATAL_EXCEPTION=no
32215 fi
32216
32217 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32218
32219
32220 ac_ext=cc
32221ac_cpp='$CXXCPP $CPPFLAGS'
32222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32225
32226
32227 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32228echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32229if test "${wx_cv_type_sa_handler+set}" = set; then
32230 echo $ECHO_N "(cached) $ECHO_C" >&6
32231else
32232
32233 cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h. */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h. */
32239#include <signal.h>
32240int
32241main ()
32242{
32243
32244 extern void testSigHandler(int);
32245
32246 struct sigaction sa;
32247 sa.sa_handler = testSigHandler;
32248
32249 ;
32250 return 0;
32251}
32252_ACEOF
32253rm -f conftest.$ac_objext
32254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32255 (eval $ac_compile) 2>conftest.er1
a848cd7e 32256 ac_status=$?
ac1cb8d3
VS
32257 grep -v '^ *+' conftest.er1 >conftest.err
32258 rm -f conftest.er1
32259 cat conftest.err >&5
a848cd7e
SC
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } &&
6ebeb4c7 32262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264 (eval $ac_try) 2>&5
32265 ac_status=$?
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; } &&
32268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32270 (eval $ac_try) 2>&5
32271 ac_status=$?
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); }; }; then
32274
32275 wx_cv_type_sa_handler=int
32276
32277else
32278 echo "$as_me: failed program was:" >&5
32279sed 's/^/| /' conftest.$ac_ext >&5
32280
32281
32282 wx_cv_type_sa_handler=void
32283
32284fi
ac1cb8d3 32285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32286
32287fi
32288echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32289echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32290
32291 ac_ext=c
32292ac_cpp='$CPP $CPPFLAGS'
32293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32295ac_compiler_gnu=$ac_cv_c_compiler_gnu
32296
32297
32298 cat >>confdefs.h <<_ACEOF
32299#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32300_ACEOF
32301
32302 fi
32303fi
32304
eaff0f0d
VZ
32305if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32306
32307
32308 ac_ext=cc
32309ac_cpp='$CXXCPP $CPPFLAGS'
32310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32313
32314
32315 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32316echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32317if test "${wx_cv_func_backtrace+set}" = set; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32319else
32320
32321 cat >conftest.$ac_ext <<_ACEOF
32322/* confdefs.h. */
32323_ACEOF
32324cat confdefs.h >>conftest.$ac_ext
32325cat >>conftest.$ac_ext <<_ACEOF
32326/* end confdefs.h. */
32327#include <execinfo.h>
32328int
32329main ()
32330{
32331
32332 void *trace[1];
32333 char **messages;
32334
32335 backtrace(trace, 1);
32336 messages = backtrace_symbols(trace, 1);
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'
eaff0f0d
VZ
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_backtrace=yes
32364else
32365 echo "$as_me: failed program was:" >&5
32366sed 's/^/| /' conftest.$ac_ext >&5
32367
32368wx_cv_func_backtrace=no
32369
32370fi
32371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32372
32373
32374fi
32375echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32376echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32377
32378
32379 if test "$wx_cv_func_backtrace" = "no"; then
32380 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32381echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32382 wxUSE_STACKWALKER=no
32383 else
32384 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32385echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32386if test "${wx_cv_func_cxa_demangle+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#include <cxxabi.h>
32397int
32398main ()
32399{
32400
32401 int rc;
32402 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32403
32404 ;
32405 return 0;
32406}
32407_ACEOF
dfe0c803
JS
32408rm -f conftest.$ac_objext conftest$ac_exeext
32409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32410 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32411 ac_status=$?
32412 grep -v '^ *+' conftest.er1 >conftest.err
32413 rm -f conftest.er1
32414 cat conftest.err >&5
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } &&
6ebeb4c7 32417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; } &&
dfe0c803 32423 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 wx_cv_func_cxa_demangle=yes
32430else
32431 echo "$as_me: failed program was:" >&5
32432sed 's/^/| /' conftest.$ac_ext >&5
32433
32434wx_cv_func_cxa_demangle=no
32435
32436fi
dfe0c803
JS
32437rm -f conftest.err conftest.$ac_objext \
32438 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32439
32440
32441fi
32442echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32443echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32444
32445 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32446 cat >>confdefs.h <<\_ACEOF
32447#define HAVE_CXA_DEMANGLE 1
32448_ACEOF
32449
32450 fi
32451 fi
32452
32453 ac_ext=c
32454ac_cpp='$CPP $CPPFLAGS'
32455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32457ac_compiler_gnu=$ac_cv_c_compiler_gnu
32458
32459fi
32460
898beab1
DE
32461if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32462 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32463echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32464 wxUSE_STACKWALKER=no
32465fi
32466
32467
a848cd7e
SC
32468
32469
32470for ac_func in mkstemp mktemp
32471do
32472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32473echo "$as_me:$LINENO: checking for $ac_func" >&5
32474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32475if eval "test \"\${$as_ac_var+set}\" = set"; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477else
32478 cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h. */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h. */
ac1cb8d3
VS
32484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32486#define $ac_func innocuous_$ac_func
32487
a848cd7e
SC
32488/* System header to define __stub macros and hopefully few prototypes,
32489 which can conflict with char $ac_func (); below.
32490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32491 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32492
a848cd7e
SC
32493#ifdef __STDC__
32494# include <limits.h>
32495#else
32496# include <assert.h>
32497#endif
ac1cb8d3
VS
32498
32499#undef $ac_func
32500
a848cd7e
SC
32501/* Override any gcc2 internal prototype to avoid an error. */
32502#ifdef __cplusplus
32503extern "C"
32504{
32505#endif
32506/* We use char because int might match the return type of a gcc2
32507 builtin and then its argument prototype would still apply. */
32508char $ac_func ();
32509/* The GNU C library defines this for functions which it implements
32510 to always fail with ENOSYS. Some functions are actually named
32511 something starting with __ and the normal name is an alias. */
32512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32513choke me
32514#else
32515char (*f) () = $ac_func;
32516#endif
32517#ifdef __cplusplus
32518}
32519#endif
32520
32521int
32522main ()
32523{
32524return f != $ac_func;
32525 ;
32526 return 0;
32527}
32528_ACEOF
32529rm -f conftest.$ac_objext conftest$ac_exeext
32530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32531 (eval $ac_link) 2>conftest.er1
a848cd7e 32532 ac_status=$?
ac1cb8d3
VS
32533 grep -v '^ *+' conftest.er1 >conftest.err
32534 rm -f conftest.er1
32535 cat conftest.err >&5
a848cd7e
SC
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } &&
6ebeb4c7 32538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32550 eval "$as_ac_var=yes"
32551else
32552 echo "$as_me: failed program was:" >&5
32553sed 's/^/| /' conftest.$ac_ext >&5
32554
32555eval "$as_ac_var=no"
32556fi
ac1cb8d3
VS
32557rm -f conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32559fi
32560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32562if test `eval echo '${'$as_ac_var'}'` = yes; then
32563 cat >>confdefs.h <<_ACEOF
32564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32565_ACEOF
32566 break
32567fi
32568done
32569
32570
32571echo "$as_me:$LINENO: checking for statfs" >&5
32572echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32573if test "${wx_cv_func_statfs+set}" = set; then
32574 echo $ECHO_N "(cached) $ECHO_C" >&6
32575else
32576 cat >conftest.$ac_ext <<_ACEOF
32577/* confdefs.h. */
32578_ACEOF
32579cat confdefs.h >>conftest.$ac_ext
32580cat >>conftest.$ac_ext <<_ACEOF
32581/* end confdefs.h. */
32582
32583 #if defined(__BSD__)
32584 #include <sys/param.h>
32585 #include <sys/mount.h>
32586 #else
32587 #include <sys/vfs.h>
32588 #endif
32589
32590int
32591main ()
32592{
32593
32594 long l;
32595 struct statfs fs;
32596 statfs("/", &fs);
32597 l = fs.f_bsize;
32598 l += fs.f_blocks;
32599 l += fs.f_bavail;
32600
32601 ;
32602 return 0;
32603}
32604_ACEOF
32605rm -f conftest.$ac_objext
32606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32607 (eval $ac_compile) 2>conftest.er1
a848cd7e 32608 ac_status=$?
ac1cb8d3
VS
32609 grep -v '^ *+' conftest.er1 >conftest.err
32610 rm -f conftest.er1
32611 cat conftest.err >&5
a848cd7e
SC
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } &&
6ebeb4c7 32614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; } &&
32620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
32626
32627 wx_cv_func_statfs=yes
32628
32629else
32630 echo "$as_me: failed program was:" >&5
32631sed 's/^/| /' conftest.$ac_ext >&5
32632
32633
32634 wx_cv_func_statfs=no
32635
32636
32637fi
ac1cb8d3 32638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32639
32640fi
32641echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32642echo "${ECHO_T}$wx_cv_func_statfs" >&6
32643
32644if test "$wx_cv_func_statfs" = "yes"; then
32645 wx_cv_type_statvfs_t="struct statfs"
32646 cat >>confdefs.h <<\_ACEOF
32647#define HAVE_STATFS 1
32648_ACEOF
32649
32650else
32651 echo "$as_me:$LINENO: checking for statvfs" >&5
32652echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32653if test "${wx_cv_func_statvfs+set}" = set; then
32654 echo $ECHO_N "(cached) $ECHO_C" >&6
32655else
32656 cat >conftest.$ac_ext <<_ACEOF
32657/* confdefs.h. */
32658_ACEOF
32659cat confdefs.h >>conftest.$ac_ext
32660cat >>conftest.$ac_ext <<_ACEOF
32661/* end confdefs.h. */
32662
32663 #include <stddef.h>
32664 #include <sys/statvfs.h>
32665
32666int
32667main ()
32668{
32669
32670 statvfs("/", NULL);
32671
32672 ;
32673 return 0;
32674}
32675_ACEOF
32676rm -f conftest.$ac_objext
32677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32678 (eval $ac_compile) 2>conftest.er1
a848cd7e 32679 ac_status=$?
ac1cb8d3
VS
32680 grep -v '^ *+' conftest.er1 >conftest.err
32681 rm -f conftest.er1
32682 cat conftest.err >&5
a848cd7e
SC
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } &&
6ebeb4c7 32685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32687 (eval $ac_try) 2>&5
32688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; } &&
32691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32693 (eval $ac_try) 2>&5
32694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); }; }; then
32697 wx_cv_func_statvfs=yes
32698else
32699 echo "$as_me: failed program was:" >&5
32700sed 's/^/| /' conftest.$ac_ext >&5
32701
32702wx_cv_func_statvfs=no
32703
32704fi
ac1cb8d3 32705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32706
32707fi
32708echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32709echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32710
32711 if test "$wx_cv_func_statvfs" = "yes"; then
32712
32713
32714 ac_ext=cc
32715ac_cpp='$CXXCPP $CPPFLAGS'
32716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32719
32720
32721 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32722echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32723if test "${wx_cv_type_statvfs_t+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
32726 cat >conftest.$ac_ext <<_ACEOF
32727/* confdefs.h. */
32728_ACEOF
32729cat confdefs.h >>conftest.$ac_ext
32730cat >>conftest.$ac_ext <<_ACEOF
32731/* end confdefs.h. */
32732
32733 #include <sys/statvfs.h>
32734
32735int
32736main ()
32737{
32738
32739 long l;
32740 statvfs_t fs;
32741 statvfs("/", &fs);
32742 l = fs.f_bsize;
32743 l += fs.f_blocks;
32744 l += fs.f_bavail;
32745
32746 ;
32747 return 0;
32748}
32749_ACEOF
32750rm -f conftest.$ac_objext
32751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32752 (eval $ac_compile) 2>conftest.er1
a848cd7e 32753 ac_status=$?
ac1cb8d3
VS
32754 grep -v '^ *+' conftest.er1 >conftest.err
32755 rm -f conftest.er1
32756 cat conftest.err >&5
a848cd7e
SC
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); } &&
6ebeb4c7 32759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32767 (eval $ac_try) 2>&5
32768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; }; then
32771 wx_cv_type_statvfs_t=statvfs_t
32772else
32773 echo "$as_me: failed program was:" >&5
32774sed 's/^/| /' conftest.$ac_ext >&5
32775
32776
32777 cat >conftest.$ac_ext <<_ACEOF
32778/* confdefs.h. */
32779_ACEOF
32780cat confdefs.h >>conftest.$ac_ext
32781cat >>conftest.$ac_ext <<_ACEOF
32782/* end confdefs.h. */
32783
32784 #include <sys/statvfs.h>
32785
32786int
32787main ()
32788{
32789
32790 long l;
32791 struct statvfs fs;
32792 statvfs("/", &fs);
32793 l = fs.f_bsize;
32794 l += fs.f_blocks;
32795 l += fs.f_bavail;
32796
32797 ;
32798 return 0;
32799}
32800_ACEOF
32801rm -f conftest.$ac_objext
32802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32803 (eval $ac_compile) 2>conftest.er1
a848cd7e 32804 ac_status=$?
ac1cb8d3
VS
32805 grep -v '^ *+' conftest.er1 >conftest.err
32806 rm -f conftest.er1
32807 cat conftest.err >&5
a848cd7e
SC
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } &&
6ebeb4c7 32810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; } &&
32816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818 (eval $ac_try) 2>&5
32819 ac_status=$?
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); }; }; then
32822 wx_cv_type_statvfs_t="struct statvfs"
32823else
32824 echo "$as_me: failed program was:" >&5
32825sed 's/^/| /' conftest.$ac_ext >&5
32826
32827wx_cv_type_statvfs_t="unknown"
32828
32829fi
ac1cb8d3 32830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32831
32832
32833fi
ac1cb8d3 32834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32835
32836fi
32837echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32838echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32839
32840 ac_ext=c
32841ac_cpp='$CPP $CPPFLAGS'
32842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32844ac_compiler_gnu=$ac_cv_c_compiler_gnu
32845
32846
32847 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32848 cat >>confdefs.h <<\_ACEOF
32849#define HAVE_STATVFS 1
32850_ACEOF
32851
32852 fi
32853 else
32854 wx_cv_type_statvfs_t="unknown"
32855 fi
32856fi
32857
32858if test "$wx_cv_type_statvfs_t" != "unknown"; then
32859 cat >>confdefs.h <<_ACEOF
32860#define WX_STATFS_T $wx_cv_type_statvfs_t
32861_ACEOF
32862
32863else
32864 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32865echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32866fi
32867
32868if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32869
32870
32871for ac_func in fcntl flock
32872do
32873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32874echo "$as_me:$LINENO: checking for $ac_func" >&5
32875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32876if eval "test \"\${$as_ac_var+set}\" = set"; then
32877 echo $ECHO_N "(cached) $ECHO_C" >&6
32878else
32879 cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
ac1cb8d3
VS
32885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32887#define $ac_func innocuous_$ac_func
32888
a848cd7e
SC
32889/* System header to define __stub macros and hopefully few prototypes,
32890 which can conflict with char $ac_func (); below.
32891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32893
a848cd7e
SC
32894#ifdef __STDC__
32895# include <limits.h>
32896#else
32897# include <assert.h>
32898#endif
ac1cb8d3
VS
32899
32900#undef $ac_func
32901
a848cd7e
SC
32902/* Override any gcc2 internal prototype to avoid an error. */
32903#ifdef __cplusplus
32904extern "C"
32905{
32906#endif
32907/* We use char because int might match the return type of a gcc2
32908 builtin and then its argument prototype would still apply. */
32909char $ac_func ();
32910/* The GNU C library defines this for functions which it implements
32911 to always fail with ENOSYS. Some functions are actually named
32912 something starting with __ and the normal name is an alias. */
32913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32914choke me
32915#else
32916char (*f) () = $ac_func;
32917#endif
32918#ifdef __cplusplus
32919}
32920#endif
32921
32922int
32923main ()
32924{
32925return f != $ac_func;
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext conftest$ac_exeext
32931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32932 (eval $ac_link) 2>conftest.er1
a848cd7e 32933 ac_status=$?
ac1cb8d3
VS
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
a848cd7e
SC
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
6ebeb4c7 32939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941 (eval $ac_try) 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 eval "$as_ac_var=yes"
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956eval "$as_ac_var=no"
32957fi
ac1cb8d3
VS
32958rm -f conftest.err conftest.$ac_objext \
32959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32960fi
32961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32963if test `eval echo '${'$as_ac_var'}'` = yes; then
32964 cat >>confdefs.h <<_ACEOF
32965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32966_ACEOF
32967 break
32968fi
32969done
32970
32971
32972 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32973 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32974echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32975 wxUSE_SNGLINST_CHECKER=no
32976 fi
32977fi
32978
32979
32980for ac_func in timegm
32981do
32982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32983echo "$as_me:$LINENO: checking for $ac_func" >&5
32984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32985if eval "test \"\${$as_ac_var+set}\" = set"; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32987else
32988 cat >conftest.$ac_ext <<_ACEOF
32989/* confdefs.h. */
32990_ACEOF
32991cat confdefs.h >>conftest.$ac_ext
32992cat >>conftest.$ac_ext <<_ACEOF
32993/* end confdefs.h. */
ac1cb8d3
VS
32994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32996#define $ac_func innocuous_$ac_func
32997
a848cd7e
SC
32998/* System header to define __stub macros and hopefully few prototypes,
32999 which can conflict with char $ac_func (); below.
33000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33002
a848cd7e
SC
33003#ifdef __STDC__
33004# include <limits.h>
33005#else
33006# include <assert.h>
33007#endif
ac1cb8d3
VS
33008
33009#undef $ac_func
33010
a848cd7e
SC
33011/* Override any gcc2 internal prototype to avoid an error. */
33012#ifdef __cplusplus
33013extern "C"
33014{
33015#endif
33016/* We use char because int might match the return type of a gcc2
33017 builtin and then its argument prototype would still apply. */
33018char $ac_func ();
33019/* The GNU C library defines this for functions which it implements
33020 to always fail with ENOSYS. Some functions are actually named
33021 something starting with __ and the normal name is an alias. */
33022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33023choke me
33024#else
33025char (*f) () = $ac_func;
33026#endif
33027#ifdef __cplusplus
33028}
33029#endif
33030
33031int
33032main ()
33033{
33034return f != $ac_func;
33035 ;
33036 return 0;
33037}
33038_ACEOF
33039rm -f conftest.$ac_objext conftest$ac_exeext
33040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33041 (eval $ac_link) 2>conftest.er1
a848cd7e 33042 ac_status=$?
ac1cb8d3
VS
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
a848cd7e
SC
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
6ebeb4c7 33048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 eval "$as_ac_var=yes"
33061else
33062 echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065eval "$as_ac_var=no"
33066fi
ac1cb8d3
VS
33067rm -f conftest.err conftest.$ac_objext \
33068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33069fi
33070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33072if test `eval echo '${'$as_ac_var'}'` = yes; then
33073 cat >>confdefs.h <<_ACEOF
33074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33075_ACEOF
33076
33077fi
33078done
33079
33080
33081
33082
33083for ac_func in putenv setenv
33084do
33085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33086echo "$as_me:$LINENO: checking for $ac_func" >&5
33087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33088if eval "test \"\${$as_ac_var+set}\" = set"; then
33089 echo $ECHO_N "(cached) $ECHO_C" >&6
33090else
33091 cat >conftest.$ac_ext <<_ACEOF
33092/* confdefs.h. */
33093_ACEOF
33094cat confdefs.h >>conftest.$ac_ext
33095cat >>conftest.$ac_ext <<_ACEOF
33096/* end confdefs.h. */
ac1cb8d3
VS
33097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33099#define $ac_func innocuous_$ac_func
33100
a848cd7e
SC
33101/* System header to define __stub macros and hopefully few prototypes,
33102 which can conflict with char $ac_func (); below.
33103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33105
a848cd7e
SC
33106#ifdef __STDC__
33107# include <limits.h>
33108#else
33109# include <assert.h>
33110#endif
ac1cb8d3
VS
33111
33112#undef $ac_func
33113
a848cd7e
SC
33114/* Override any gcc2 internal prototype to avoid an error. */
33115#ifdef __cplusplus
33116extern "C"
33117{
33118#endif
33119/* We use char because int might match the return type of a gcc2
33120 builtin and then its argument prototype would still apply. */
33121char $ac_func ();
33122/* The GNU C library defines this for functions which it implements
33123 to always fail with ENOSYS. Some functions are actually named
33124 something starting with __ and the normal name is an alias. */
33125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33126choke me
33127#else
33128char (*f) () = $ac_func;
33129#endif
33130#ifdef __cplusplus
33131}
33132#endif
33133
33134int
33135main ()
33136{
33137return f != $ac_func;
33138 ;
33139 return 0;
33140}
33141_ACEOF
33142rm -f conftest.$ac_objext conftest$ac_exeext
33143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33144 (eval $ac_link) 2>conftest.er1
a848cd7e 33145 ac_status=$?
ac1cb8d3
VS
33146 grep -v '^ *+' conftest.er1 >conftest.err
33147 rm -f conftest.er1
33148 cat conftest.err >&5
a848cd7e
SC
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
6ebeb4c7 33151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; } &&
33157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
33163 eval "$as_ac_var=yes"
33164else
33165 echo "$as_me: failed program was:" >&5
33166sed 's/^/| /' conftest.$ac_ext >&5
33167
33168eval "$as_ac_var=no"
33169fi
ac1cb8d3
VS
33170rm -f conftest.err conftest.$ac_objext \
33171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33172fi
33173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33175if test `eval echo '${'$as_ac_var'}'` = yes; then
33176 cat >>confdefs.h <<_ACEOF
33177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33178_ACEOF
33179 break
33180fi
33181done
33182
33183
33184HAVE_SOME_SLEEP_FUNC=0
33185if test "$USE_BEOS" = 1; then
33186 cat >>confdefs.h <<\_ACEOF
33187#define HAVE_SLEEP 1
33188_ACEOF
33189
33190 HAVE_SOME_SLEEP_FUNC=1
33191fi
33192
33193if test "$USE_DARWIN" = 1; then
33194 cat >>confdefs.h <<\_ACEOF
33195#define HAVE_USLEEP 1
33196_ACEOF
33197
33198 HAVE_SOME_SLEEP_FUNC=1
33199fi
33200
33201if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33202 POSIX4_LINK=
33203
33204for ac_func in nanosleep
33205do
33206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33207echo "$as_me:$LINENO: checking for $ac_func" >&5
33208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33209if eval "test \"\${$as_ac_var+set}\" = set"; then
33210 echo $ECHO_N "(cached) $ECHO_C" >&6
33211else
33212 cat >conftest.$ac_ext <<_ACEOF
33213/* confdefs.h. */
33214_ACEOF
33215cat confdefs.h >>conftest.$ac_ext
33216cat >>conftest.$ac_ext <<_ACEOF
33217/* end confdefs.h. */
ac1cb8d3
VS
33218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33220#define $ac_func innocuous_$ac_func
33221
a848cd7e
SC
33222/* System header to define __stub macros and hopefully few prototypes,
33223 which can conflict with char $ac_func (); below.
33224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33225 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33226
a848cd7e
SC
33227#ifdef __STDC__
33228# include <limits.h>
33229#else
33230# include <assert.h>
33231#endif
ac1cb8d3
VS
33232
33233#undef $ac_func
33234
a848cd7e
SC
33235/* Override any gcc2 internal prototype to avoid an error. */
33236#ifdef __cplusplus
33237extern "C"
33238{
33239#endif
33240/* We use char because int might match the return type of a gcc2
33241 builtin and then its argument prototype would still apply. */
33242char $ac_func ();
33243/* The GNU C library defines this for functions which it implements
33244 to always fail with ENOSYS. Some functions are actually named
33245 something starting with __ and the normal name is an alias. */
33246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33247choke me
33248#else
33249char (*f) () = $ac_func;
33250#endif
33251#ifdef __cplusplus
33252}
33253#endif
33254
33255int
33256main ()
33257{
33258return f != $ac_func;
33259 ;
33260 return 0;
33261}
33262_ACEOF
33263rm -f conftest.$ac_objext conftest$ac_exeext
33264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33265 (eval $ac_link) 2>conftest.er1
a848cd7e 33266 ac_status=$?
ac1cb8d3
VS
33267 grep -v '^ *+' conftest.er1 >conftest.err
33268 rm -f conftest.er1
33269 cat conftest.err >&5
a848cd7e
SC
33270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271 (exit $ac_status); } &&
6ebeb4c7 33272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33274 (eval $ac_try) 2>&5
33275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; } &&
33278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
33284 eval "$as_ac_var=yes"
33285else
33286 echo "$as_me: failed program was:" >&5
33287sed 's/^/| /' conftest.$ac_ext >&5
33288
33289eval "$as_ac_var=no"
33290fi
ac1cb8d3
VS
33291rm -f conftest.err conftest.$ac_objext \
33292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33293fi
33294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33296if test `eval echo '${'$as_ac_var'}'` = yes; then
33297 cat >>confdefs.h <<_ACEOF
33298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33299_ACEOF
33300 cat >>confdefs.h <<\_ACEOF
33301#define HAVE_NANOSLEEP 1
33302_ACEOF
33303
33304else
33305
33306 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33307echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33308if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33310else
33311 ac_check_lib_save_LIBS=$LIBS
33312LIBS="-lposix4 $LIBS"
33313cat >conftest.$ac_ext <<_ACEOF
33314/* confdefs.h. */
33315_ACEOF
33316cat confdefs.h >>conftest.$ac_ext
33317cat >>conftest.$ac_ext <<_ACEOF
33318/* end confdefs.h. */
33319
33320/* Override any gcc2 internal prototype to avoid an error. */
33321#ifdef __cplusplus
33322extern "C"
33323#endif
33324/* We use char because int might match the return type of a gcc2
33325 builtin and then its argument prototype would still apply. */
33326char nanosleep ();
33327int
33328main ()
33329{
33330nanosleep ();
33331 ;
33332 return 0;
33333}
33334_ACEOF
33335rm -f conftest.$ac_objext conftest$ac_exeext
33336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33337 (eval $ac_link) 2>conftest.er1
a848cd7e 33338 ac_status=$?
ac1cb8d3
VS
33339 grep -v '^ *+' conftest.er1 >conftest.err
33340 rm -f conftest.er1
33341 cat conftest.err >&5
a848cd7e
SC
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } &&
6ebeb4c7 33344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33347 ac_status=$?
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; } &&
33350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33352 (eval $ac_try) 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; }; then
33356 ac_cv_lib_posix4_nanosleep=yes
33357else
33358 echo "$as_me: failed program was:" >&5
33359sed 's/^/| /' conftest.$ac_ext >&5
33360
33361ac_cv_lib_posix4_nanosleep=no
33362fi
ac1cb8d3
VS
33363rm -f conftest.err conftest.$ac_objext \
33364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33365LIBS=$ac_check_lib_save_LIBS
33366fi
33367echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33368echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33369if test $ac_cv_lib_posix4_nanosleep = yes; then
33370
33371 cat >>confdefs.h <<\_ACEOF
33372#define HAVE_NANOSLEEP 1
33373_ACEOF
33374
33375 POSIX4_LINK=" -lposix4"
33376
33377else
33378
33379
33380for ac_func in usleep
33381do
33382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33383echo "$as_me:$LINENO: checking for $ac_func" >&5
33384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33385if eval "test \"\${$as_ac_var+set}\" = set"; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33387else
33388 cat >conftest.$ac_ext <<_ACEOF
33389/* confdefs.h. */
33390_ACEOF
33391cat confdefs.h >>conftest.$ac_ext
33392cat >>conftest.$ac_ext <<_ACEOF
33393/* end confdefs.h. */
ac1cb8d3
VS
33394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33396#define $ac_func innocuous_$ac_func
33397
a848cd7e
SC
33398/* System header to define __stub macros and hopefully few prototypes,
33399 which can conflict with char $ac_func (); below.
33400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33401 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33402
a848cd7e
SC
33403#ifdef __STDC__
33404# include <limits.h>
33405#else
33406# include <assert.h>
33407#endif
ac1cb8d3
VS
33408
33409#undef $ac_func
33410
a848cd7e
SC
33411/* Override any gcc2 internal prototype to avoid an error. */
33412#ifdef __cplusplus
33413extern "C"
33414{
33415#endif
33416/* We use char because int might match the return type of a gcc2
33417 builtin and then its argument prototype would still apply. */
33418char $ac_func ();
33419/* The GNU C library defines this for functions which it implements
33420 to always fail with ENOSYS. Some functions are actually named
33421 something starting with __ and the normal name is an alias. */
33422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33423choke me
33424#else
33425char (*f) () = $ac_func;
33426#endif
33427#ifdef __cplusplus
33428}
33429#endif
33430
33431int
33432main ()
33433{
33434return f != $ac_func;
33435 ;
33436 return 0;
33437}
33438_ACEOF
33439rm -f conftest.$ac_objext conftest$ac_exeext
33440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33441 (eval $ac_link) 2>conftest.er1
a848cd7e 33442 ac_status=$?
ac1cb8d3
VS
33443 grep -v '^ *+' conftest.er1 >conftest.err
33444 rm -f conftest.er1
33445 cat conftest.err >&5
a848cd7e
SC
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } &&
6ebeb4c7 33448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 (eval $ac_try) 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; } &&
33454 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 eval "$as_ac_var=yes"
33461else
33462 echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
33465eval "$as_ac_var=no"
33466fi
ac1cb8d3
VS
33467rm -f conftest.err conftest.$ac_objext \
33468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33469fi
33470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33472if test `eval echo '${'$as_ac_var'}'` = yes; then
33473 cat >>confdefs.h <<_ACEOF
33474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33475_ACEOF
33476 cat >>confdefs.h <<\_ACEOF
33477#define HAVE_USLEEP 1
33478_ACEOF
33479
33480else
33481 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33482echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33483
33484fi
33485done
33486
33487
33488
33489fi
33490
33491
33492
33493fi
33494done
33495
33496fi
33497
33498
33499
33500for ac_func in uname gethostname
33501do
33502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33503echo "$as_me:$LINENO: checking for $ac_func" >&5
33504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33505if eval "test \"\${$as_ac_var+set}\" = set"; then
33506 echo $ECHO_N "(cached) $ECHO_C" >&6
33507else
33508 cat >conftest.$ac_ext <<_ACEOF
33509/* confdefs.h. */
33510_ACEOF
33511cat confdefs.h >>conftest.$ac_ext
33512cat >>conftest.$ac_ext <<_ACEOF
33513/* end confdefs.h. */
ac1cb8d3
VS
33514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33516#define $ac_func innocuous_$ac_func
33517
a848cd7e
SC
33518/* System header to define __stub macros and hopefully few prototypes,
33519 which can conflict with char $ac_func (); below.
33520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33522
a848cd7e
SC
33523#ifdef __STDC__
33524# include <limits.h>
33525#else
33526# include <assert.h>
33527#endif
ac1cb8d3
VS
33528
33529#undef $ac_func
33530
a848cd7e
SC
33531/* Override any gcc2 internal prototype to avoid an error. */
33532#ifdef __cplusplus
33533extern "C"
33534{
33535#endif
33536/* We use char because int might match the return type of a gcc2
33537 builtin and then its argument prototype would still apply. */
33538char $ac_func ();
33539/* The GNU C library defines this for functions which it implements
33540 to always fail with ENOSYS. Some functions are actually named
33541 something starting with __ and the normal name is an alias. */
33542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33543choke me
33544#else
33545char (*f) () = $ac_func;
33546#endif
33547#ifdef __cplusplus
33548}
33549#endif
33550
33551int
33552main ()
33553{
33554return f != $ac_func;
33555 ;
33556 return 0;
33557}
33558_ACEOF
33559rm -f conftest.$ac_objext conftest$ac_exeext
33560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33561 (eval $ac_link) 2>conftest.er1
a848cd7e 33562 ac_status=$?
ac1cb8d3
VS
33563 grep -v '^ *+' conftest.er1 >conftest.err
33564 rm -f conftest.er1
33565 cat conftest.err >&5
a848cd7e
SC
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } &&
6ebeb4c7 33568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33570 (eval $ac_try) 2>&5
33571 ac_status=$?
33572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573 (exit $ac_status); }; } &&
33574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33576 (eval $ac_try) 2>&5
33577 ac_status=$?
33578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579 (exit $ac_status); }; }; then
33580 eval "$as_ac_var=yes"
33581else
33582 echo "$as_me: failed program was:" >&5
33583sed 's/^/| /' conftest.$ac_ext >&5
33584
33585eval "$as_ac_var=no"
33586fi
ac1cb8d3
VS
33587rm -f conftest.err conftest.$ac_objext \
33588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33589fi
33590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33592if test `eval echo '${'$as_ac_var'}'` = yes; then
33593 cat >>confdefs.h <<_ACEOF
33594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33595_ACEOF
33596 break
33597fi
33598done
33599
33600
33601
33602
33603ac_ext=cc
33604ac_cpp='$CXXCPP $CPPFLAGS'
33605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33608
33609
33610
33611for ac_func in strtok_r
33612do
33613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33614echo "$as_me:$LINENO: checking for $ac_func" >&5
33615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33616if eval "test \"\${$as_ac_var+set}\" = set"; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33618else
33619 cat >conftest.$ac_ext <<_ACEOF
33620/* confdefs.h. */
33621_ACEOF
33622cat confdefs.h >>conftest.$ac_ext
33623cat >>conftest.$ac_ext <<_ACEOF
33624/* end confdefs.h. */
ac1cb8d3
VS
33625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33627#define $ac_func innocuous_$ac_func
33628
a848cd7e
SC
33629/* System header to define __stub macros and hopefully few prototypes,
33630 which can conflict with char $ac_func (); below.
33631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33632 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33633
a848cd7e
SC
33634#ifdef __STDC__
33635# include <limits.h>
33636#else
33637# include <assert.h>
33638#endif
ac1cb8d3
VS
33639
33640#undef $ac_func
33641
a848cd7e
SC
33642/* Override any gcc2 internal prototype to avoid an error. */
33643#ifdef __cplusplus
33644extern "C"
33645{
33646#endif
33647/* We use char because int might match the return type of a gcc2
33648 builtin and then its argument prototype would still apply. */
33649char $ac_func ();
33650/* The GNU C library defines this for functions which it implements
33651 to always fail with ENOSYS. Some functions are actually named
33652 something starting with __ and the normal name is an alias. */
33653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33654choke me
33655#else
33656char (*f) () = $ac_func;
33657#endif
33658#ifdef __cplusplus
33659}
33660#endif
33661
33662int
33663main ()
33664{
33665return f != $ac_func;
33666 ;
33667 return 0;
33668}
33669_ACEOF
33670rm -f conftest.$ac_objext conftest$ac_exeext
33671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33672 (eval $ac_link) 2>conftest.er1
a848cd7e 33673 ac_status=$?
ac1cb8d3
VS
33674 grep -v '^ *+' conftest.er1 >conftest.err
33675 rm -f conftest.er1
33676 cat conftest.err >&5
a848cd7e
SC
33677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678 (exit $ac_status); } &&
6ebeb4c7 33679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33681 (eval $ac_try) 2>&5
33682 ac_status=$?
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; } &&
33685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687 (eval $ac_try) 2>&5
33688 ac_status=$?
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; }; then
33691 eval "$as_ac_var=yes"
33692else
33693 echo "$as_me: failed program was:" >&5
33694sed 's/^/| /' conftest.$ac_ext >&5
33695
33696eval "$as_ac_var=no"
33697fi
ac1cb8d3
VS
33698rm -f conftest.err conftest.$ac_objext \
33699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33700fi
33701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33703if test `eval echo '${'$as_ac_var'}'` = yes; then
33704 cat >>confdefs.h <<_ACEOF
33705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33706_ACEOF
33707
33708fi
33709done
33710
33711
33712ac_ext=c
33713ac_cpp='$CPP $CPPFLAGS'
33714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33716ac_compiler_gnu=$ac_cv_c_compiler_gnu
33717
33718
33719INET_LINK=
33720
33721for ac_func in inet_addr
33722do
33723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33724echo "$as_me:$LINENO: checking for $ac_func" >&5
33725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33726if eval "test \"\${$as_ac_var+set}\" = set"; then
33727 echo $ECHO_N "(cached) $ECHO_C" >&6
33728else
33729 cat >conftest.$ac_ext <<_ACEOF
33730/* confdefs.h. */
33731_ACEOF
33732cat confdefs.h >>conftest.$ac_ext
33733cat >>conftest.$ac_ext <<_ACEOF
33734/* end confdefs.h. */
ac1cb8d3
VS
33735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33737#define $ac_func innocuous_$ac_func
33738
a848cd7e
SC
33739/* System header to define __stub macros and hopefully few prototypes,
33740 which can conflict with char $ac_func (); below.
33741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33742 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33743
a848cd7e
SC
33744#ifdef __STDC__
33745# include <limits.h>
33746#else
33747# include <assert.h>
33748#endif
ac1cb8d3
VS
33749
33750#undef $ac_func
33751
a848cd7e
SC
33752/* Override any gcc2 internal prototype to avoid an error. */
33753#ifdef __cplusplus
33754extern "C"
33755{
33756#endif
33757/* We use char because int might match the return type of a gcc2
33758 builtin and then its argument prototype would still apply. */
33759char $ac_func ();
33760/* The GNU C library defines this for functions which it implements
33761 to always fail with ENOSYS. Some functions are actually named
33762 something starting with __ and the normal name is an alias. */
33763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33764choke me
33765#else
33766char (*f) () = $ac_func;
33767#endif
33768#ifdef __cplusplus
33769}
33770#endif
33771
33772int
33773main ()
33774{
33775return f != $ac_func;
33776 ;
33777 return 0;
33778}
33779_ACEOF
33780rm -f conftest.$ac_objext conftest$ac_exeext
33781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33782 (eval $ac_link) 2>conftest.er1
a848cd7e 33783 ac_status=$?
ac1cb8d3
VS
33784 grep -v '^ *+' conftest.er1 >conftest.err
33785 rm -f conftest.er1
33786 cat conftest.err >&5
a848cd7e
SC
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } &&
6ebeb4c7 33789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; } &&
33795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 eval "$as_ac_var=yes"
33802else
33803 echo "$as_me: failed program was:" >&5
33804sed 's/^/| /' conftest.$ac_ext >&5
33805
33806eval "$as_ac_var=no"
33807fi
ac1cb8d3
VS
33808rm -f conftest.err conftest.$ac_objext \
33809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33810fi
33811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33813if test `eval echo '${'$as_ac_var'}'` = yes; then
33814 cat >>confdefs.h <<_ACEOF
33815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33816_ACEOF
33817 cat >>confdefs.h <<\_ACEOF
33818#define HAVE_INET_ADDR 1
33819_ACEOF
33820
33821else
33822
33823 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33824echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33825if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33826 echo $ECHO_N "(cached) $ECHO_C" >&6
33827else
33828 ac_check_lib_save_LIBS=$LIBS
33829LIBS="-lnsl $LIBS"
33830cat >conftest.$ac_ext <<_ACEOF
33831/* confdefs.h. */
33832_ACEOF
33833cat confdefs.h >>conftest.$ac_ext
33834cat >>conftest.$ac_ext <<_ACEOF
33835/* end confdefs.h. */
33836
33837/* Override any gcc2 internal prototype to avoid an error. */
33838#ifdef __cplusplus
33839extern "C"
33840#endif
33841/* We use char because int might match the return type of a gcc2
33842 builtin and then its argument prototype would still apply. */
33843char inet_addr ();
33844int
33845main ()
33846{
33847inet_addr ();
33848 ;
33849 return 0;
33850}
33851_ACEOF
33852rm -f conftest.$ac_objext conftest$ac_exeext
33853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33854 (eval $ac_link) 2>conftest.er1
a848cd7e 33855 ac_status=$?
ac1cb8d3
VS
33856 grep -v '^ *+' conftest.er1 >conftest.err
33857 rm -f conftest.er1
33858 cat conftest.err >&5
a848cd7e
SC
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } &&
6ebeb4c7 33861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33870 ac_status=$?
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; }; then
33873 ac_cv_lib_nsl_inet_addr=yes
33874else
33875 echo "$as_me: failed program was:" >&5
33876sed 's/^/| /' conftest.$ac_ext >&5
33877
33878ac_cv_lib_nsl_inet_addr=no
33879fi
ac1cb8d3
VS
33880rm -f conftest.err conftest.$ac_objext \
33881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33882LIBS=$ac_check_lib_save_LIBS
33883fi
33884echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33885echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33886if test $ac_cv_lib_nsl_inet_addr = yes; then
33887 INET_LINK="nsl"
33888else
33889
33890 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33891echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33892if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33893 echo $ECHO_N "(cached) $ECHO_C" >&6
33894else
33895 ac_check_lib_save_LIBS=$LIBS
33896LIBS="-lresolv $LIBS"
33897cat >conftest.$ac_ext <<_ACEOF
33898/* confdefs.h. */
33899_ACEOF
33900cat confdefs.h >>conftest.$ac_ext
33901cat >>conftest.$ac_ext <<_ACEOF
33902/* end confdefs.h. */
33903
33904/* Override any gcc2 internal prototype to avoid an error. */
33905#ifdef __cplusplus
33906extern "C"
33907#endif
33908/* We use char because int might match the return type of a gcc2
33909 builtin and then its argument prototype would still apply. */
33910char inet_addr ();
33911int
33912main ()
33913{
33914inet_addr ();
33915 ;
33916 return 0;
33917}
33918_ACEOF
33919rm -f conftest.$ac_objext conftest$ac_exeext
33920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33921 (eval $ac_link) 2>conftest.er1
a848cd7e 33922 ac_status=$?
ac1cb8d3
VS
33923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
a848cd7e
SC
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
6ebeb4c7 33928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; } &&
33934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936 (eval $ac_try) 2>&5
33937 ac_status=$?
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; }; then
33940 ac_cv_lib_resolv_inet_addr=yes
33941else
33942 echo "$as_me: failed program was:" >&5
33943sed 's/^/| /' conftest.$ac_ext >&5
33944
33945ac_cv_lib_resolv_inet_addr=no
33946fi
ac1cb8d3
VS
33947rm -f conftest.err conftest.$ac_objext \
33948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33949LIBS=$ac_check_lib_save_LIBS
33950fi
33951echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33952echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33953if test $ac_cv_lib_resolv_inet_addr = yes; then
33954 INET_LINK="resolv"
33955else
33956
33957 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33958echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33959if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33961else
33962 ac_check_lib_save_LIBS=$LIBS
33963LIBS="-lsocket $LIBS"
33964cat >conftest.$ac_ext <<_ACEOF
33965/* confdefs.h. */
33966_ACEOF
33967cat confdefs.h >>conftest.$ac_ext
33968cat >>conftest.$ac_ext <<_ACEOF
33969/* end confdefs.h. */
33970
33971/* Override any gcc2 internal prototype to avoid an error. */
33972#ifdef __cplusplus
33973extern "C"
33974#endif
33975/* We use char because int might match the return type of a gcc2
33976 builtin and then its argument prototype would still apply. */
33977char inet_addr ();
33978int
33979main ()
33980{
33981inet_addr ();
33982 ;
33983 return 0;
33984}
33985_ACEOF
33986rm -f conftest.$ac_objext conftest$ac_exeext
33987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33988 (eval $ac_link) 2>conftest.er1
a848cd7e 33989 ac_status=$?
ac1cb8d3
VS
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
a848cd7e
SC
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } &&
6ebeb4c7 33995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33997 (eval $ac_try) 2>&5
33998 ac_status=$?
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34003 (eval $ac_try) 2>&5
34004 ac_status=$?
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); }; }; then
34007 ac_cv_lib_socket_inet_addr=yes
34008else
34009 echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
34012ac_cv_lib_socket_inet_addr=no
34013fi
ac1cb8d3
VS
34014rm -f conftest.err conftest.$ac_objext \
34015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34016LIBS=$ac_check_lib_save_LIBS
34017fi
34018echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34019echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34020if test $ac_cv_lib_socket_inet_addr = yes; then
34021 INET_LINK="socket"
34022
34023fi
34024
34025
34026
34027fi
34028
34029
34030
34031fi
34032
34033
34034
34035fi
34036done
34037
34038
34039
34040for ac_func in inet_aton
34041do
34042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043echo "$as_me:$LINENO: checking for $ac_func" >&5
34044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045if eval "test \"\${$as_ac_var+set}\" = set"; then
34046 echo $ECHO_N "(cached) $ECHO_C" >&6
34047else
34048 cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h. */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h. */
ac1cb8d3
VS
34054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34056#define $ac_func innocuous_$ac_func
34057
a848cd7e
SC
34058/* System header to define __stub macros and hopefully few prototypes,
34059 which can conflict with char $ac_func (); below.
34060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34062
a848cd7e
SC
34063#ifdef __STDC__
34064# include <limits.h>
34065#else
34066# include <assert.h>
34067#endif
ac1cb8d3
VS
34068
34069#undef $ac_func
34070
a848cd7e
SC
34071/* Override any gcc2 internal prototype to avoid an error. */
34072#ifdef __cplusplus
34073extern "C"
34074{
34075#endif
34076/* We use char because int might match the return type of a gcc2
34077 builtin and then its argument prototype would still apply. */
34078char $ac_func ();
34079/* The GNU C library defines this for functions which it implements
34080 to always fail with ENOSYS. Some functions are actually named
34081 something starting with __ and the normal name is an alias. */
34082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083choke me
34084#else
34085char (*f) () = $ac_func;
34086#endif
34087#ifdef __cplusplus
34088}
34089#endif
34090
34091int
34092main ()
34093{
34094return f != $ac_func;
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext conftest$ac_exeext
34100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34101 (eval $ac_link) 2>conftest.er1
a848cd7e 34102 ac_status=$?
ac1cb8d3
VS
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
a848cd7e
SC
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
6ebeb4c7 34108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 eval "$as_ac_var=yes"
34121else
34122 echo "$as_me: failed program was:" >&5
34123sed 's/^/| /' conftest.$ac_ext >&5
34124
34125eval "$as_ac_var=no"
34126fi
ac1cb8d3
VS
34127rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34129fi
34130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34132if test `eval echo '${'$as_ac_var'}'` = yes; then
34133 cat >>confdefs.h <<_ACEOF
34134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135_ACEOF
34136 cat >>confdefs.h <<\_ACEOF
34137#define HAVE_INET_ATON 1
34138_ACEOF
34139
34140else
34141
34142 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34143echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34144echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34145if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34146 echo $ECHO_N "(cached) $ECHO_C" >&6
34147else
34148 ac_check_lib_save_LIBS=$LIBS
34149LIBS="-l$INET_LINK $LIBS"
34150cat >conftest.$ac_ext <<_ACEOF
34151/* confdefs.h. */
34152_ACEOF
34153cat confdefs.h >>conftest.$ac_ext
34154cat >>conftest.$ac_ext <<_ACEOF
34155/* end confdefs.h. */
34156
34157/* Override any gcc2 internal prototype to avoid an error. */
34158#ifdef __cplusplus
34159extern "C"
34160#endif
34161/* We use char because int might match the return type of a gcc2
34162 builtin and then its argument prototype would still apply. */
34163char inet_aton ();
34164int
34165main ()
34166{
34167inet_aton ();
34168 ;
34169 return 0;
34170}
34171_ACEOF
34172rm -f conftest.$ac_objext conftest$ac_exeext
34173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34174 (eval $ac_link) 2>conftest.er1
a848cd7e 34175 ac_status=$?
ac1cb8d3
VS
34176 grep -v '^ *+' conftest.er1 >conftest.err
34177 rm -f conftest.er1
34178 cat conftest.err >&5
a848cd7e
SC
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); } &&
6ebeb4c7 34181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34183 (eval $ac_try) 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189 (eval $ac_try) 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; }; then
34193 eval "$as_ac_Lib=yes"
34194else
34195 echo "$as_me: failed program was:" >&5
34196sed 's/^/| /' conftest.$ac_ext >&5
34197
34198eval "$as_ac_Lib=no"
34199fi
ac1cb8d3
VS
34200rm -f conftest.err conftest.$ac_objext \
34201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34202LIBS=$ac_check_lib_save_LIBS
34203fi
34204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34205echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34206if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34207 cat >>confdefs.h <<\_ACEOF
34208#define HAVE_INET_ATON 1
34209_ACEOF
34210
34211fi
34212
34213
34214fi
34215done
34216
34217
34218if test "x$INET_LINK" != "x"; then
34219 cat >>confdefs.h <<\_ACEOF
34220#define HAVE_INET_ADDR 1
34221_ACEOF
34222
34223 INET_LINK=" -l$INET_LINK"
34224fi
34225
34226fi
34227
34228
34229
34230EXTRALIBS_ESD=
34231echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34232echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34233if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34234 echo $ECHO_N "(cached) $ECHO_C" >&6
34235else
34236 ac_check_lib_save_LIBS=$LIBS
34237LIBS="-lesd $LIBS"
34238cat >conftest.$ac_ext <<_ACEOF
34239/* confdefs.h. */
34240_ACEOF
34241cat confdefs.h >>conftest.$ac_ext
34242cat >>conftest.$ac_ext <<_ACEOF
34243/* end confdefs.h. */
34244
34245/* Override any gcc2 internal prototype to avoid an error. */
34246#ifdef __cplusplus
34247extern "C"
34248#endif
34249/* We use char because int might match the return type of a gcc2
34250 builtin and then its argument prototype would still apply. */
34251char esd_close ();
34252int
34253main ()
34254{
34255esd_close ();
34256 ;
34257 return 0;
34258}
34259_ACEOF
34260rm -f conftest.$ac_objext conftest$ac_exeext
34261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34262 (eval $ac_link) 2>conftest.er1
a848cd7e 34263 ac_status=$?
ac1cb8d3
VS
34264 grep -v '^ *+' conftest.er1 >conftest.err
34265 rm -f conftest.er1
34266 cat conftest.err >&5
a848cd7e
SC
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); } &&
6ebeb4c7 34269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34272 ac_status=$?
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; } &&
34275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34278 ac_status=$?
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; }; then
34281 ac_cv_lib_esd_esd_close=yes
34282else
34283 echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
34285
34286ac_cv_lib_esd_esd_close=no
34287fi
ac1cb8d3
VS
34288rm -f conftest.err conftest.$ac_objext \
34289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34290LIBS=$ac_check_lib_save_LIBS
34291fi
34292echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34293echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34294if test $ac_cv_lib_esd_esd_close = yes; then
34295
34296
34297for ac_header in esd.h
34298do
34299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34300if eval "test \"\${$as_ac_Header+set}\" = set"; then
34301 echo "$as_me:$LINENO: checking for $ac_header" >&5
34302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34303if eval "test \"\${$as_ac_Header+set}\" = set"; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305fi
34306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34308else
34309 # Is the header compilable?
34310echo "$as_me:$LINENO: checking $ac_header usability" >&5
34311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34312cat >conftest.$ac_ext <<_ACEOF
34313/* confdefs.h. */
34314_ACEOF
34315cat confdefs.h >>conftest.$ac_ext
34316cat >>conftest.$ac_ext <<_ACEOF
34317/* end confdefs.h. */
34318$ac_includes_default
34319#include <$ac_header>
34320_ACEOF
34321rm -f conftest.$ac_objext
34322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34323 (eval $ac_compile) 2>conftest.er1
a848cd7e 34324 ac_status=$?
ac1cb8d3
VS
34325 grep -v '^ *+' conftest.er1 >conftest.err
34326 rm -f conftest.er1
34327 cat conftest.err >&5
a848cd7e
SC
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } &&
6ebeb4c7 34330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; } &&
34336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34338 (eval $ac_try) 2>&5
34339 ac_status=$?
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); }; }; then
34342 ac_header_compiler=yes
34343else
34344 echo "$as_me: failed program was:" >&5
34345sed 's/^/| /' conftest.$ac_ext >&5
34346
34347ac_header_compiler=no
34348fi
ac1cb8d3 34349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34351echo "${ECHO_T}$ac_header_compiler" >&6
34352
34353# Is the header present?
34354echo "$as_me:$LINENO: checking $ac_header presence" >&5
34355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34356cat >conftest.$ac_ext <<_ACEOF
34357/* confdefs.h. */
34358_ACEOF
34359cat confdefs.h >>conftest.$ac_ext
34360cat >>conftest.$ac_ext <<_ACEOF
34361/* end confdefs.h. */
34362#include <$ac_header>
34363_ACEOF
34364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34366 ac_status=$?
34367 grep -v '^ *+' conftest.er1 >conftest.err
34368 rm -f conftest.er1
34369 cat conftest.err >&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } >/dev/null; then
34372 if test -s conftest.err; then
34373 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34375 else
34376 ac_cpp_err=
34377 fi
34378else
34379 ac_cpp_err=yes
34380fi
34381if test -z "$ac_cpp_err"; then
34382 ac_header_preproc=yes
34383else
34384 echo "$as_me: failed program was:" >&5
34385sed 's/^/| /' conftest.$ac_ext >&5
34386
34387 ac_header_preproc=no
34388fi
34389rm -f conftest.err conftest.$ac_ext
34390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34391echo "${ECHO_T}$ac_header_preproc" >&6
34392
34393# So? What about this header?
ac1cb8d3
VS
34394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34395 yes:no: )
a848cd7e
SC
34396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34400 ac_header_preproc=yes
a848cd7e 34401 ;;
ac1cb8d3 34402 no:yes:* )
a848cd7e
SC
34403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34415 (
34416 cat <<\_ASBOX
ac1cb8d3
VS
34417## ----------------------------------------- ##
34418## Report this to wx-dev@lists.wxwidgets.org ##
34419## ----------------------------------------- ##
a848cd7e
SC
34420_ASBOX
34421 ) |
34422 sed "s/^/$as_me: WARNING: /" >&2
34423 ;;
34424esac
34425echo "$as_me:$LINENO: checking for $ac_header" >&5
34426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34427if eval "test \"\${$as_ac_Header+set}\" = set"; then
34428 echo $ECHO_N "(cached) $ECHO_C" >&6
34429else
ac1cb8d3 34430 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34431fi
34432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34434
34435fi
34436if test `eval echo '${'$as_ac_Header'}'` = yes; then
34437 cat >>confdefs.h <<_ACEOF
34438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34439_ACEOF
34440
34441 EXTRALIBS_ESD="-lesd"
34442
34443fi
34444
34445done
34446
34447
34448fi
34449
34450
34451
34452echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34453echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34454cat >conftest.$ac_ext <<_ACEOF
34455/* confdefs.h. */
34456_ACEOF
34457cat confdefs.h >>conftest.$ac_ext
34458cat >>conftest.$ac_ext <<_ACEOF
34459/* end confdefs.h. */
34460#ifdef __linux__
34461 #include <linux/cdrom.h>
34462 #else
34463 /* For Solaris */
34464 #include <sys/cdio.h>
34465 #endif
34466
34467int
34468main ()
34469{
34470struct cdrom_tocentry entry, old_entry;
34471 ;
34472 return 0;
34473}
34474_ACEOF
34475rm -f conftest.$ac_objext
34476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34477 (eval $ac_compile) 2>conftest.er1
a848cd7e 34478 ac_status=$?
ac1cb8d3
VS
34479 grep -v '^ *+' conftest.er1 >conftest.err
34480 rm -f conftest.er1
34481 cat conftest.err >&5
a848cd7e
SC
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); } &&
6ebeb4c7 34484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34492 (eval $ac_try) 2>&5
34493 ac_status=$?
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); }; }; then
34496 echo "$as_me:$LINENO: result: yes" >&5
34497echo "${ECHO_T}yes" >&6
34498 cat >>confdefs.h <<\_ACEOF
34499#define HAVE_KNOWN_CDROM_INTERFACE 1
34500_ACEOF
34501
34502else
34503 echo "$as_me: failed program was:" >&5
34504sed 's/^/| /' conftest.$ac_ext >&5
34505
34506echo "$as_me:$LINENO: result: no" >&5
34507echo "${ECHO_T}no" >&6
34508fi
ac1cb8d3 34509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34510
34511
34512cat >confcache <<\_ACEOF
34513# This file is a shell script that caches the results of configure
34514# tests run on this system so they can be shared between configure
34515# scripts and configure runs, see configure's option --config-cache.
34516# It is not useful on other systems. If it contains results you don't
34517# want to keep, you may remove or edit it.
34518#
34519# config.status only pays attention to the cache file if you give it
34520# the --recheck option to rerun configure.
34521#
34522# `ac_cv_env_foo' variables (set or unset) will be overridden when
34523# loading this file, other *unset* `ac_cv_foo' will be assigned the
34524# following values.
34525
34526_ACEOF
34527
34528# The following way of writing the cache mishandles newlines in values,
34529# but we know of no workaround that is simple, portable, and efficient.
34530# So, don't put newlines in cache variables' values.
34531# Ultrix sh set writes to stderr and can't be redirected directly,
34532# and sets the high bit in the cache file unless we assign to the vars.
34533{
34534 (set) 2>&1 |
34535 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34536 *ac_space=\ *)
34537 # `set' does not quote correctly, so add quotes (double-quote
34538 # substitution turns \\\\ into \\, and sed turns \\ into \).
34539 sed -n \
ac1cb8d3
VS
34540 "s/'/'\\\\''/g;
34541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34542 ;;
34543 *)
34544 # `set' quotes correctly as required by POSIX, so do not add quotes.
34545 sed -n \
ac1cb8d3 34546 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34547 ;;
34548 esac;
34549} |
34550 sed '
34551 t clear
34552 : clear
34553 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34554 t end
34555 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34556 : end' >>confcache
34557if diff $cache_file confcache >/dev/null 2>&1; then :; else
34558 if test -w $cache_file; then
34559 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34560 cat confcache >$cache_file
34561 else
34562 echo "not updating unwritable cache $cache_file"
34563 fi
34564fi
34565rm -f confcache
34566
34567
34568CPP_MT_FLAG=
34569if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34570
34571
34572 THREADS_LINK=
34573 THREADS_CFLAGS=
34574
34575 if test "$wxUSE_THREADS" = "yes" ; then
34576 if test "$USE_BEOS" = 1; then
34577 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34578echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34579 wxUSE_THREADS="no"
34580 fi
34581 fi
34582
34583 if test "$wxUSE_THREADS" = "yes" ; then
34584
34585
34586 THREAD_OPTS="-pthread"
34587 case "${host}" in
34588 *-*-solaris2* | *-*-sunos4* )
34589 if test "x$GCC" = "xyes"; then
34590 THREAD_OPTS="-pthreads $THREAD_OPTS"
34591 else
34592 THREAD_OPTS="-mt $THREAD_OPTS"
34593 fi
34594 ;;
34595 *-*-freebsd*)
34596 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34597 ;;
34598 *-*-darwin* | *-*-cygwin* )
34599 THREAD_OPTS=""
34600 ;;
34601 *-*-aix*)
34602 THREAD_OPTS="pthreads"
34603 ;;
34604 *-hp-hpux* )
34605 if test "x$GCC" != "xyes"; then
34606 THREAD_OPTS=""
34607 fi
34608 ;;
34609
34610 *-*-irix* )
34611 if test "x$GCC" = "xyes"; then
34612 THREAD_OPTS=""
34613 fi
34614 ;;
34615
34616 *-*-*UnixWare*)
34617 if test "x$GCC" != "xyes"; then
34618 THREAD_OPTS="-Ethread"
34619 fi
34620 ;;
34621 esac
34622
34623 THREAD_OPTS="$THREAD_OPTS pthread none"
34624
34625 THREADS_OK=no
34626 for flag in $THREAD_OPTS; do
34627 case $flag in
34628 none)
34629 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34630echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34631 ;;
34632
34633 -*)
34634 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34635echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34636 THREADS_CFLAGS="$flag"
34637 ;;
34638
34639 *)
34640 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34641echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34642 THREADS_LINK="-l$flag"
34643 ;;
34644 esac
34645
34646 save_LIBS="$LIBS"
34647 save_CFLAGS="$CFLAGS"
34648 LIBS="$THREADS_LINK $LIBS"
34649 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34650
34651 cat >conftest.$ac_ext <<_ACEOF
34652/* confdefs.h. */
34653_ACEOF
34654cat confdefs.h >>conftest.$ac_ext
34655cat >>conftest.$ac_ext <<_ACEOF
34656/* end confdefs.h. */
34657#include <pthread.h>
34658int
34659main ()
34660{
34661pthread_create(0,0,0,0);
34662 ;
34663 return 0;
34664}
34665_ACEOF
34666rm -f conftest.$ac_objext conftest$ac_exeext
34667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34668 (eval $ac_link) 2>conftest.er1
a848cd7e 34669 ac_status=$?
ac1cb8d3
VS
34670 grep -v '^ *+' conftest.er1 >conftest.err
34671 rm -f conftest.er1
34672 cat conftest.err >&5
a848cd7e
SC
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); } &&
6ebeb4c7 34675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34677 (eval $ac_try) 2>&5
34678 ac_status=$?
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); }; } &&
34681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34683 (eval $ac_try) 2>&5
34684 ac_status=$?
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); }; }; then
34687 THREADS_OK=yes
34688else
34689 echo "$as_me: failed program was:" >&5
34690sed 's/^/| /' conftest.$ac_ext >&5
34691
34692fi
ac1cb8d3
VS
34693rm -f conftest.err conftest.$ac_objext \
34694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34695
34696 LIBS="$save_LIBS"
34697 CFLAGS="$save_CFLAGS"
34698
34699 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34700echo "${ECHO_T}$THREADS_OK" >&6
34701 if test "x$THREADS_OK" = "xyes"; then
34702 break;
34703 fi
34704
34705 THREADS_LINK=""
34706 THREADS_CFLAGS=""
34707 done
34708
34709 if test "x$THREADS_OK" != "xyes"; then
34710 wxUSE_THREADS=no
34711 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34712echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34713 else
34714 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34715 LIBS="$THREADS_LINK $LIBS"
34716
34717 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34718echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34719 flag=no
34720 case "${host}" in
34721 *-aix*)
34722 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34723 flag="-D_THREAD_SAFE"
34724 ;;
34725 *-freebsd*)
34726 flag="-D_THREAD_SAFE"
34727 ;;
34728 *-hp-hpux* )
34729 flag="-D_REENTRANT"
34730 if test "x$GCC" != "xyes"; then
34731 flag="$flag -D_RWSTD_MULTI_THREAD"
34732 fi
34733 ;;
34734 *solaris* | alpha*-osf*)
34735 flag="-D_REENTRANT"
34736 ;;
34737 esac
34738 echo "$as_me:$LINENO: result: ${flag}" >&5
34739echo "${ECHO_T}${flag}" >&6
34740 if test "x$flag" != xno; then
34741 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34742 fi
34743
34744 if test "x$THREADS_CFLAGS" != "x"; then
34745 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34746 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34747 fi
34748 fi
34749 fi
34750
34751 if test "$wxUSE_THREADS" = "yes" ; then
34752
34753for ac_func in thr_setconcurrency
34754do
34755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34756echo "$as_me:$LINENO: checking for $ac_func" >&5
34757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34758if eval "test \"\${$as_ac_var+set}\" = set"; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34760else
34761 cat >conftest.$ac_ext <<_ACEOF
34762/* confdefs.h. */
34763_ACEOF
34764cat confdefs.h >>conftest.$ac_ext
34765cat >>conftest.$ac_ext <<_ACEOF
34766/* end confdefs.h. */
ac1cb8d3
VS
34767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34769#define $ac_func innocuous_$ac_func
34770
a848cd7e
SC
34771/* System header to define __stub macros and hopefully few prototypes,
34772 which can conflict with char $ac_func (); below.
34773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34774 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34775
a848cd7e
SC
34776#ifdef __STDC__
34777# include <limits.h>
34778#else
34779# include <assert.h>
34780#endif
ac1cb8d3
VS
34781
34782#undef $ac_func
34783
a848cd7e
SC
34784/* Override any gcc2 internal prototype to avoid an error. */
34785#ifdef __cplusplus
34786extern "C"
34787{
34788#endif
34789/* We use char because int might match the return type of a gcc2
34790 builtin and then its argument prototype would still apply. */
34791char $ac_func ();
34792/* The GNU C library defines this for functions which it implements
34793 to always fail with ENOSYS. Some functions are actually named
34794 something starting with __ and the normal name is an alias. */
34795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34796choke me
34797#else
34798char (*f) () = $ac_func;
34799#endif
34800#ifdef __cplusplus
34801}
34802#endif
34803
34804int
34805main ()
34806{
34807return f != $ac_func;
34808 ;
34809 return 0;
34810}
34811_ACEOF
34812rm -f conftest.$ac_objext conftest$ac_exeext
34813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34814 (eval $ac_link) 2>conftest.er1
a848cd7e 34815 ac_status=$?
ac1cb8d3
VS
34816 grep -v '^ *+' conftest.er1 >conftest.err
34817 rm -f conftest.er1
34818 cat conftest.err >&5
a848cd7e
SC
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); } &&
6ebeb4c7 34821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34824 ac_status=$?
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; } &&
34827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34830 ac_status=$?
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 eval "$as_ac_var=yes"
34834else
34835 echo "$as_me: failed program was:" >&5
34836sed 's/^/| /' conftest.$ac_ext >&5
34837
34838eval "$as_ac_var=no"
34839fi
ac1cb8d3
VS
34840rm -f conftest.err conftest.$ac_objext \
34841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34842fi
34843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34845if test `eval echo '${'$as_ac_var'}'` = yes; then
34846 cat >>confdefs.h <<_ACEOF
34847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34848_ACEOF
34849
34850fi
34851done
34852
34853
6ebeb4c7
VZ
34854 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
34855echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
34856if test "${wx_cv_func_pthread_cleanup+set}" = set; then
34857 echo $ECHO_N "(cached) $ECHO_C" >&6
34858else
34859
34860 cat >conftest.$ac_ext <<_ACEOF
34861/* confdefs.h. */
34862_ACEOF
34863cat confdefs.h >>conftest.$ac_ext
34864cat >>conftest.$ac_ext <<_ACEOF
34865/* end confdefs.h. */
34866#include <pthread.h>
34867 void ThreadCleanupFunc(void *p);
34868
34869int
34870main ()
34871{
34872
34873 void *p;
34874 pthread_cleanup_push(ThreadCleanupFunc, p);
34875 pthread_cleanup_pop(0);
34876
34877 ;
34878 return 0;
34879}
34880_ACEOF
34881rm -f conftest.$ac_objext
34882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34883 (eval $ac_compile) 2>conftest.er1
34884 ac_status=$?
34885 grep -v '^ *+' conftest.er1 >conftest.err
34886 rm -f conftest.er1
34887 cat conftest.err >&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
34890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest.$ac_objext'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34899 ac_status=$?
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; }; then
34902
34903 wx_cv_func_pthread_cleanup=yes
34904
34905else
34906 echo "$as_me: failed program was:" >&5
34907sed 's/^/| /' conftest.$ac_ext >&5
34908
34909
34910 wx_cv_func_pthread_cleanup=no
34911
34912
34913fi
34914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34915
34916fi
34917echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
34918echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
34919 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
34920 cat >>confdefs.h <<\_ACEOF
34921#define wxHAVE_PTHREAD_CLEANUP 1
34922_ACEOF
34923
34924 fi
34925
a848cd7e
SC
34926
34927for ac_header in sched.h
34928do
34929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34930if eval "test \"\${$as_ac_Header+set}\" = set"; then
34931 echo "$as_me:$LINENO: checking for $ac_header" >&5
34932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34933if eval "test \"\${$as_ac_Header+set}\" = set"; then
34934 echo $ECHO_N "(cached) $ECHO_C" >&6
34935fi
34936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34938else
34939 # Is the header compilable?
34940echo "$as_me:$LINENO: checking $ac_header usability" >&5
34941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34942cat >conftest.$ac_ext <<_ACEOF
34943/* confdefs.h. */
34944_ACEOF
34945cat confdefs.h >>conftest.$ac_ext
34946cat >>conftest.$ac_ext <<_ACEOF
34947/* end confdefs.h. */
34948$ac_includes_default
34949#include <$ac_header>
34950_ACEOF
34951rm -f conftest.$ac_objext
34952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34953 (eval $ac_compile) 2>conftest.er1
a848cd7e 34954 ac_status=$?
ac1cb8d3
VS
34955 grep -v '^ *+' conftest.er1 >conftest.err
34956 rm -f conftest.er1
34957 cat conftest.err >&5
a848cd7e
SC
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); } &&
6ebeb4c7 34960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34963 ac_status=$?
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; } &&
34966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34969 ac_status=$?
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; }; then
34972 ac_header_compiler=yes
34973else
34974 echo "$as_me: failed program was:" >&5
34975sed 's/^/| /' conftest.$ac_ext >&5
34976
34977ac_header_compiler=no
34978fi
ac1cb8d3 34979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34981echo "${ECHO_T}$ac_header_compiler" >&6
34982
34983# Is the header present?
34984echo "$as_me:$LINENO: checking $ac_header presence" >&5
34985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34986cat >conftest.$ac_ext <<_ACEOF
34987/* confdefs.h. */
34988_ACEOF
34989cat confdefs.h >>conftest.$ac_ext
34990cat >>conftest.$ac_ext <<_ACEOF
34991/* end confdefs.h. */
34992#include <$ac_header>
34993_ACEOF
34994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34996 ac_status=$?
34997 grep -v '^ *+' conftest.er1 >conftest.err
34998 rm -f conftest.er1
34999 cat conftest.err >&5
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); } >/dev/null; then
35002 if test -s conftest.err; then
35003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35005 else
35006 ac_cpp_err=
35007 fi
35008else
35009 ac_cpp_err=yes
35010fi
35011if test -z "$ac_cpp_err"; then
35012 ac_header_preproc=yes
35013else
35014 echo "$as_me: failed program was:" >&5
35015sed 's/^/| /' conftest.$ac_ext >&5
35016
35017 ac_header_preproc=no
35018fi
35019rm -f conftest.err conftest.$ac_ext
35020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35021echo "${ECHO_T}$ac_header_preproc" >&6
35022
35023# So? What about this header?
ac1cb8d3
VS
35024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35025 yes:no: )
a848cd7e
SC
35026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35030 ac_header_preproc=yes
a848cd7e 35031 ;;
ac1cb8d3 35032 no:yes:* )
a848cd7e
SC
35033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35045 (
35046 cat <<\_ASBOX
ac1cb8d3
VS
35047## ----------------------------------------- ##
35048## Report this to wx-dev@lists.wxwidgets.org ##
35049## ----------------------------------------- ##
a848cd7e
SC
35050_ASBOX
35051 ) |
35052 sed "s/^/$as_me: WARNING: /" >&2
35053 ;;
35054esac
35055echo "$as_me:$LINENO: checking for $ac_header" >&5
35056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35057if eval "test \"\${$as_ac_Header+set}\" = set"; then
35058 echo $ECHO_N "(cached) $ECHO_C" >&6
35059else
ac1cb8d3 35060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35061fi
35062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35064
35065fi
35066if test `eval echo '${'$as_ac_Header'}'` = yes; then
35067 cat >>confdefs.h <<_ACEOF
35068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35069_ACEOF
35070
35071fi
35072
35073done
35074
35075 if test "$ac_cv_header_sched_h" = "yes"; then
35076 echo "$as_me:$LINENO: checking for sched_yield" >&5
35077echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35078if test "${ac_cv_func_sched_yield+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080else
35081 cat >conftest.$ac_ext <<_ACEOF
35082/* confdefs.h. */
35083_ACEOF
35084cat confdefs.h >>conftest.$ac_ext
35085cat >>conftest.$ac_ext <<_ACEOF
35086/* end confdefs.h. */
ac1cb8d3
VS
35087/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35089#define sched_yield innocuous_sched_yield
35090
a848cd7e
SC
35091/* System header to define __stub macros and hopefully few prototypes,
35092 which can conflict with char sched_yield (); below.
35093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35094 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35095
a848cd7e
SC
35096#ifdef __STDC__
35097# include <limits.h>
35098#else
35099# include <assert.h>
35100#endif
ac1cb8d3
VS
35101
35102#undef sched_yield
35103
a848cd7e
SC
35104/* Override any gcc2 internal prototype to avoid an error. */
35105#ifdef __cplusplus
35106extern "C"
35107{
35108#endif
35109/* We use char because int might match the return type of a gcc2
35110 builtin and then its argument prototype would still apply. */
35111char sched_yield ();
35112/* The GNU C library defines this for functions which it implements
35113 to always fail with ENOSYS. Some functions are actually named
35114 something starting with __ and the normal name is an alias. */
35115#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35116choke me
35117#else
35118char (*f) () = sched_yield;
35119#endif
35120#ifdef __cplusplus
35121}
35122#endif
35123
35124int
35125main ()
35126{
35127return f != sched_yield;
35128 ;
35129 return 0;
35130}
35131_ACEOF
35132rm -f conftest.$ac_objext conftest$ac_exeext
35133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35134 (eval $ac_link) 2>conftest.er1
a848cd7e 35135 ac_status=$?
ac1cb8d3
VS
35136 grep -v '^ *+' conftest.er1 >conftest.err
35137 rm -f conftest.er1
35138 cat conftest.err >&5
a848cd7e
SC
35139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140 (exit $ac_status); } &&
6ebeb4c7 35141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143 (eval $ac_try) 2>&5
35144 ac_status=$?
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); }; } &&
35147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149 (eval $ac_try) 2>&5
35150 ac_status=$?
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); }; }; then
35153 ac_cv_func_sched_yield=yes
35154else
35155 echo "$as_me: failed program was:" >&5
35156sed 's/^/| /' conftest.$ac_ext >&5
35157
35158ac_cv_func_sched_yield=no
35159fi
ac1cb8d3
VS
35160rm -f conftest.err conftest.$ac_objext \
35161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35162fi
35163echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35164echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35165if test $ac_cv_func_sched_yield = yes; then
35166 cat >>confdefs.h <<\_ACEOF
35167#define HAVE_SCHED_YIELD 1
35168_ACEOF
35169
35170else
35171
35172 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35173echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35174if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35175 echo $ECHO_N "(cached) $ECHO_C" >&6
35176else
35177 ac_check_lib_save_LIBS=$LIBS
35178LIBS="-lposix4 $LIBS"
35179cat >conftest.$ac_ext <<_ACEOF
35180/* confdefs.h. */
35181_ACEOF
35182cat confdefs.h >>conftest.$ac_ext
35183cat >>conftest.$ac_ext <<_ACEOF
35184/* end confdefs.h. */
35185
35186/* Override any gcc2 internal prototype to avoid an error. */
35187#ifdef __cplusplus
35188extern "C"
35189#endif
35190/* We use char because int might match the return type of a gcc2
35191 builtin and then its argument prototype would still apply. */
35192char sched_yield ();
35193int
35194main ()
35195{
35196sched_yield ();
35197 ;
35198 return 0;
35199}
35200_ACEOF
35201rm -f conftest.$ac_objext conftest$ac_exeext
35202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35203 (eval $ac_link) 2>conftest.er1
a848cd7e 35204 ac_status=$?
ac1cb8d3
VS
35205 grep -v '^ *+' conftest.er1 >conftest.err
35206 rm -f conftest.er1
35207 cat conftest.err >&5
a848cd7e
SC
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); } &&
6ebeb4c7 35210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212 (eval $ac_try) 2>&5
35213 ac_status=$?
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); }; } &&
35216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; }; then
35222 ac_cv_lib_posix4_sched_yield=yes
35223else
35224 echo "$as_me: failed program was:" >&5
35225sed 's/^/| /' conftest.$ac_ext >&5
35226
35227ac_cv_lib_posix4_sched_yield=no
35228fi
ac1cb8d3
VS
35229rm -f conftest.err conftest.$ac_objext \
35230 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35231LIBS=$ac_check_lib_save_LIBS
35232fi
35233echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35234echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35235if test $ac_cv_lib_posix4_sched_yield = yes; then
35236 cat >>confdefs.h <<\_ACEOF
35237#define HAVE_SCHED_YIELD 1
35238_ACEOF
35239 POSIX4_LINK=" -lposix4"
35240else
35241 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35242echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35243
35244fi
35245
35246
35247
35248fi
35249
35250 fi
35251
35252 HAVE_PRIOR_FUNCS=0
35253 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35254echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35255if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35257else
35258 cat >conftest.$ac_ext <<_ACEOF
35259/* confdefs.h. */
35260_ACEOF
35261cat confdefs.h >>conftest.$ac_ext
35262cat >>conftest.$ac_ext <<_ACEOF
35263/* end confdefs.h. */
ac1cb8d3
VS
35264/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35266#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35267
a848cd7e
SC
35268/* System header to define __stub macros and hopefully few prototypes,
35269 which can conflict with char pthread_attr_getschedpolicy (); below.
35270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35271 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35272
a848cd7e
SC
35273#ifdef __STDC__
35274# include <limits.h>
35275#else
35276# include <assert.h>
35277#endif
ac1cb8d3
VS
35278
35279#undef pthread_attr_getschedpolicy
35280
a848cd7e
SC
35281/* Override any gcc2 internal prototype to avoid an error. */
35282#ifdef __cplusplus
35283extern "C"
35284{
35285#endif
35286/* We use char because int might match the return type of a gcc2
35287 builtin and then its argument prototype would still apply. */
35288char pthread_attr_getschedpolicy ();
35289/* The GNU C library defines this for functions which it implements
35290 to always fail with ENOSYS. Some functions are actually named
35291 something starting with __ and the normal name is an alias. */
35292#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35293choke me
35294#else
35295char (*f) () = pthread_attr_getschedpolicy;
35296#endif
35297#ifdef __cplusplus
35298}
35299#endif
35300
35301int
35302main ()
35303{
35304return f != pthread_attr_getschedpolicy;
35305 ;
35306 return 0;
35307}
35308_ACEOF
35309rm -f conftest.$ac_objext conftest$ac_exeext
35310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35311 (eval $ac_link) 2>conftest.er1
a848cd7e 35312 ac_status=$?
ac1cb8d3
VS
35313 grep -v '^ *+' conftest.er1 >conftest.err
35314 rm -f conftest.er1
35315 cat conftest.err >&5
a848cd7e
SC
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); } &&
6ebeb4c7 35318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; } &&
35324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326 (eval $ac_try) 2>&5
35327 ac_status=$?
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); }; }; then
35330 ac_cv_func_pthread_attr_getschedpolicy=yes
35331else
35332 echo "$as_me: failed program was:" >&5
35333sed 's/^/| /' conftest.$ac_ext >&5
35334
35335ac_cv_func_pthread_attr_getschedpolicy=no
35336fi
ac1cb8d3
VS
35337rm -f conftest.err conftest.$ac_objext \
35338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35339fi
35340echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35341echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35342if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35343 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35344echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35345if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35346 echo $ECHO_N "(cached) $ECHO_C" >&6
35347else
35348 cat >conftest.$ac_ext <<_ACEOF
35349/* confdefs.h. */
35350_ACEOF
35351cat confdefs.h >>conftest.$ac_ext
35352cat >>conftest.$ac_ext <<_ACEOF
35353/* end confdefs.h. */
ac1cb8d3
VS
35354/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35356#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35357
a848cd7e
SC
35358/* System header to define __stub macros and hopefully few prototypes,
35359 which can conflict with char pthread_attr_setschedparam (); below.
35360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35362
a848cd7e
SC
35363#ifdef __STDC__
35364# include <limits.h>
35365#else
35366# include <assert.h>
35367#endif
ac1cb8d3
VS
35368
35369#undef pthread_attr_setschedparam
35370
a848cd7e
SC
35371/* Override any gcc2 internal prototype to avoid an error. */
35372#ifdef __cplusplus
35373extern "C"
35374{
35375#endif
35376/* We use char because int might match the return type of a gcc2
35377 builtin and then its argument prototype would still apply. */
35378char pthread_attr_setschedparam ();
35379/* The GNU C library defines this for functions which it implements
35380 to always fail with ENOSYS. Some functions are actually named
35381 something starting with __ and the normal name is an alias. */
35382#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35383choke me
35384#else
35385char (*f) () = pthread_attr_setschedparam;
35386#endif
35387#ifdef __cplusplus
35388}
35389#endif
35390
35391int
35392main ()
35393{
35394return f != pthread_attr_setschedparam;
35395 ;
35396 return 0;
35397}
35398_ACEOF
35399rm -f conftest.$ac_objext conftest$ac_exeext
35400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35401 (eval $ac_link) 2>conftest.er1
a848cd7e 35402 ac_status=$?
ac1cb8d3
VS
35403 grep -v '^ *+' conftest.er1 >conftest.err
35404 rm -f conftest.er1
35405 cat conftest.err >&5
a848cd7e
SC
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } &&
6ebeb4c7 35408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410 (eval $ac_try) 2>&5
35411 ac_status=$?
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); }; } &&
35414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; }; then
35420 ac_cv_func_pthread_attr_setschedparam=yes
35421else
35422 echo "$as_me: failed program was:" >&5
35423sed 's/^/| /' conftest.$ac_ext >&5
35424
35425ac_cv_func_pthread_attr_setschedparam=no
35426fi
ac1cb8d3
VS
35427rm -f conftest.err conftest.$ac_objext \
35428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35429fi
35430echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35431echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35432if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35433 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35434echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35435if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35436 echo $ECHO_N "(cached) $ECHO_C" >&6
35437else
35438 cat >conftest.$ac_ext <<_ACEOF
35439/* confdefs.h. */
35440_ACEOF
35441cat confdefs.h >>conftest.$ac_ext
35442cat >>conftest.$ac_ext <<_ACEOF
35443/* end confdefs.h. */
ac1cb8d3
VS
35444/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35446#define sched_get_priority_max innocuous_sched_get_priority_max
35447
a848cd7e
SC
35448/* System header to define __stub macros and hopefully few prototypes,
35449 which can conflict with char sched_get_priority_max (); below.
35450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35452
a848cd7e
SC
35453#ifdef __STDC__
35454# include <limits.h>
35455#else
35456# include <assert.h>
35457#endif
ac1cb8d3
VS
35458
35459#undef sched_get_priority_max
35460
a848cd7e
SC
35461/* Override any gcc2 internal prototype to avoid an error. */
35462#ifdef __cplusplus
35463extern "C"
35464{
35465#endif
35466/* We use char because int might match the return type of a gcc2
35467 builtin and then its argument prototype would still apply. */
35468char sched_get_priority_max ();
35469/* The GNU C library defines this for functions which it implements
35470 to always fail with ENOSYS. Some functions are actually named
35471 something starting with __ and the normal name is an alias. */
35472#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35473choke me
35474#else
35475char (*f) () = sched_get_priority_max;
35476#endif
35477#ifdef __cplusplus
35478}
35479#endif
35480
35481int
35482main ()
35483{
35484return f != sched_get_priority_max;
35485 ;
35486 return 0;
35487}
35488_ACEOF
35489rm -f conftest.$ac_objext conftest$ac_exeext
35490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35491 (eval $ac_link) 2>conftest.er1
a848cd7e 35492 ac_status=$?
ac1cb8d3
VS
35493 grep -v '^ *+' conftest.er1 >conftest.err
35494 rm -f conftest.er1
35495 cat conftest.err >&5
a848cd7e
SC
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); } &&
6ebeb4c7 35498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35501 ac_status=$?
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; } &&
35504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; }; then
35510 ac_cv_func_sched_get_priority_max=yes
35511else
35512 echo "$as_me: failed program was:" >&5
35513sed 's/^/| /' conftest.$ac_ext >&5
35514
35515ac_cv_func_sched_get_priority_max=no
35516fi
ac1cb8d3
VS
35517rm -f conftest.err conftest.$ac_objext \
35518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35519fi
35520echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35521echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35522if test $ac_cv_func_sched_get_priority_max = yes; then
35523 HAVE_PRIOR_FUNCS=1
35524else
35525 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35526echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35527if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35529else
35530 ac_check_lib_save_LIBS=$LIBS
35531LIBS="-lposix4 $LIBS"
35532cat >conftest.$ac_ext <<_ACEOF
35533/* confdefs.h. */
35534_ACEOF
35535cat confdefs.h >>conftest.$ac_ext
35536cat >>conftest.$ac_ext <<_ACEOF
35537/* end confdefs.h. */
35538
35539/* Override any gcc2 internal prototype to avoid an error. */
35540#ifdef __cplusplus
35541extern "C"
35542#endif
35543/* We use char because int might match the return type of a gcc2
35544 builtin and then its argument prototype would still apply. */
35545char sched_get_priority_max ();
35546int
35547main ()
35548{
35549sched_get_priority_max ();
35550 ;
35551 return 0;
35552}
35553_ACEOF
35554rm -f conftest.$ac_objext conftest$ac_exeext
35555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35556 (eval $ac_link) 2>conftest.er1
a848cd7e 35557 ac_status=$?
ac1cb8d3
VS
35558 grep -v '^ *+' conftest.er1 >conftest.err
35559 rm -f conftest.er1
35560 cat conftest.err >&5
a848cd7e
SC
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); } &&
6ebeb4c7 35563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; } &&
35569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35572 ac_status=$?
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 ac_cv_lib_posix4_sched_get_priority_max=yes
35576else
35577 echo "$as_me: failed program was:" >&5
35578sed 's/^/| /' conftest.$ac_ext >&5
35579
35580ac_cv_lib_posix4_sched_get_priority_max=no
35581fi
ac1cb8d3
VS
35582rm -f conftest.err conftest.$ac_objext \
35583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35584LIBS=$ac_check_lib_save_LIBS
35585fi
35586echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35587echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35588if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35589
35590 HAVE_PRIOR_FUNCS=1
35591 POSIX4_LINK=" -lposix4"
35592
35593fi
35594
35595
35596fi
35597
35598
35599fi
35600
35601
35602fi
35603
35604
35605 if test "$HAVE_PRIOR_FUNCS" = 1; then
35606 cat >>confdefs.h <<\_ACEOF
35607#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35608_ACEOF
35609
35610 else
35611 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35612echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35613 fi
35614
35615 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35616echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35617if test "${ac_cv_func_pthread_cancel+set}" = set; then
35618 echo $ECHO_N "(cached) $ECHO_C" >&6
35619else
35620 cat >conftest.$ac_ext <<_ACEOF
35621/* confdefs.h. */
35622_ACEOF
35623cat confdefs.h >>conftest.$ac_ext
35624cat >>conftest.$ac_ext <<_ACEOF
35625/* end confdefs.h. */
ac1cb8d3
VS
35626/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35628#define pthread_cancel innocuous_pthread_cancel
35629
a848cd7e
SC
35630/* System header to define __stub macros and hopefully few prototypes,
35631 which can conflict with char pthread_cancel (); below.
35632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35633 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35634
a848cd7e
SC
35635#ifdef __STDC__
35636# include <limits.h>
35637#else
35638# include <assert.h>
35639#endif
ac1cb8d3
VS
35640
35641#undef pthread_cancel
35642
a848cd7e
SC
35643/* Override any gcc2 internal prototype to avoid an error. */
35644#ifdef __cplusplus
35645extern "C"
35646{
35647#endif
35648/* We use char because int might match the return type of a gcc2
35649 builtin and then its argument prototype would still apply. */
35650char pthread_cancel ();
35651/* The GNU C library defines this for functions which it implements
35652 to always fail with ENOSYS. Some functions are actually named
35653 something starting with __ and the normal name is an alias. */
35654#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35655choke me
35656#else
35657char (*f) () = pthread_cancel;
35658#endif
35659#ifdef __cplusplus
35660}
35661#endif
35662
35663int
35664main ()
35665{
35666return f != pthread_cancel;
35667 ;
35668 return 0;
35669}
35670_ACEOF
35671rm -f conftest.$ac_objext conftest$ac_exeext
35672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35673 (eval $ac_link) 2>conftest.er1
a848cd7e 35674 ac_status=$?
ac1cb8d3
VS
35675 grep -v '^ *+' conftest.er1 >conftest.err
35676 rm -f conftest.er1
35677 cat conftest.err >&5
a848cd7e
SC
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } &&
6ebeb4c7 35680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35683 ac_status=$?
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; } &&
35686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; }; then
35692 ac_cv_func_pthread_cancel=yes
35693else
35694 echo "$as_me: failed program was:" >&5
35695sed 's/^/| /' conftest.$ac_ext >&5
35696
35697ac_cv_func_pthread_cancel=no
35698fi
ac1cb8d3
VS
35699rm -f conftest.err conftest.$ac_objext \
35700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35701fi
35702echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35703echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35704if test $ac_cv_func_pthread_cancel = yes; then
35705 cat >>confdefs.h <<\_ACEOF
35706#define HAVE_PTHREAD_CANCEL 1
35707_ACEOF
35708
35709else
35710 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35711echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35712fi
35713
35714
abc736fd
MW
35715 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35716echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35717if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35719else
35720 cat >conftest.$ac_ext <<_ACEOF
35721/* confdefs.h. */
35722_ACEOF
35723cat confdefs.h >>conftest.$ac_ext
35724cat >>conftest.$ac_ext <<_ACEOF
35725/* end confdefs.h. */
35726/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35728#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35729
35730/* System header to define __stub macros and hopefully few prototypes,
35731 which can conflict with char pthread_attr_setstacksize (); below.
35732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35733 <limits.h> exists even on freestanding compilers. */
35734
35735#ifdef __STDC__
35736# include <limits.h>
35737#else
35738# include <assert.h>
35739#endif
35740
35741#undef pthread_attr_setstacksize
35742
35743/* Override any gcc2 internal prototype to avoid an error. */
35744#ifdef __cplusplus
35745extern "C"
35746{
35747#endif
35748/* We use char because int might match the return type of a gcc2
35749 builtin and then its argument prototype would still apply. */
35750char pthread_attr_setstacksize ();
35751/* The GNU C library defines this for functions which it implements
35752 to always fail with ENOSYS. Some functions are actually named
35753 something starting with __ and the normal name is an alias. */
35754#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35755choke me
35756#else
35757char (*f) () = pthread_attr_setstacksize;
35758#endif
35759#ifdef __cplusplus
35760}
35761#endif
35762
35763int
35764main ()
35765{
35766return f != pthread_attr_setstacksize;
35767 ;
35768 return 0;
35769}
35770_ACEOF
35771rm -f conftest.$ac_objext conftest$ac_exeext
35772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35773 (eval $ac_link) 2>conftest.er1
35774 ac_status=$?
35775 grep -v '^ *+' conftest.er1 >conftest.err
35776 rm -f conftest.er1
35777 cat conftest.err >&5
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); } &&
6ebeb4c7 35780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35783 ac_status=$?
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; } &&
35786 { ac_try='test -s conftest$ac_exeext'
35787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788 (eval $ac_try) 2>&5
35789 ac_status=$?
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); }; }; then
35792 ac_cv_func_pthread_attr_setstacksize=yes
35793else
35794 echo "$as_me: failed program was:" >&5
35795sed 's/^/| /' conftest.$ac_ext >&5
35796
35797ac_cv_func_pthread_attr_setstacksize=no
35798fi
35799rm -f conftest.err conftest.$ac_objext \
35800 conftest$ac_exeext conftest.$ac_ext
35801fi
35802echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35803echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35804if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35805 cat >>confdefs.h <<\_ACEOF
35806#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35807_ACEOF
35808
35809fi
35810
a848cd7e
SC
35811
35812
35813 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35814echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35815if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35816 echo $ECHO_N "(cached) $ECHO_C" >&6
35817else
35818
35819 cat >conftest.$ac_ext <<_ACEOF
35820/* confdefs.h. */
35821_ACEOF
35822cat confdefs.h >>conftest.$ac_ext
35823cat >>conftest.$ac_ext <<_ACEOF
35824/* end confdefs.h. */
35825#include <pthread.h>
35826int
35827main ()
35828{
35829
35830 pthread_mutexattr_t attr;
35831 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35832
35833 ;
35834 return 0;
35835}
35836_ACEOF
35837rm -f conftest.$ac_objext
35838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35839 (eval $ac_compile) 2>conftest.er1
a848cd7e 35840 ac_status=$?
ac1cb8d3
VS
35841 grep -v '^ *+' conftest.er1 >conftest.err
35842 rm -f conftest.er1
35843 cat conftest.err >&5
a848cd7e
SC
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); } &&
6ebeb4c7 35846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; } &&
35852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35854 (eval $ac_try) 2>&5
35855 ac_status=$?
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); }; }; then
35858
35859 wx_cv_type_pthread_mutexattr_t=yes
35860
35861else
35862 echo "$as_me: failed program was:" >&5
35863sed 's/^/| /' conftest.$ac_ext >&5
35864
35865
35866 wx_cv_type_pthread_mutexattr_t=no
35867
35868
35869fi
ac1cb8d3 35870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35871
35872fi
35873echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35874echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35875
35876 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35877 cat >>confdefs.h <<\_ACEOF
35878#define HAVE_PTHREAD_MUTEXATTR_T 1
35879_ACEOF
35880
35881 else
35882 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35883echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35884if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35885 echo $ECHO_N "(cached) $ECHO_C" >&6
35886else
35887
35888 cat >conftest.$ac_ext <<_ACEOF
35889/* confdefs.h. */
35890_ACEOF
35891cat confdefs.h >>conftest.$ac_ext
35892cat >>conftest.$ac_ext <<_ACEOF
35893/* end confdefs.h. */
35894#include <pthread.h>
35895int
35896main ()
35897{
35898
35899 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35900
35901 ;
35902 return 0;
35903}
35904_ACEOF
35905rm -f conftest.$ac_objext
35906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35907 (eval $ac_compile) 2>conftest.er1
a848cd7e 35908 ac_status=$?
ac1cb8d3
VS
35909 grep -v '^ *+' conftest.er1 >conftest.err
35910 rm -f conftest.er1
35911 cat conftest.err >&5
a848cd7e
SC
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); } &&
6ebeb4c7 35914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35916 (eval $ac_try) 2>&5
35917 ac_status=$?
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); }; } &&
35920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35922 (eval $ac_try) 2>&5
35923 ac_status=$?
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); }; }; then
35926
35927 wx_cv_type_pthread_rec_mutex_init=yes
35928
35929else
35930 echo "$as_me: failed program was:" >&5
35931sed 's/^/| /' conftest.$ac_ext >&5
35932
35933
35934 wx_cv_type_pthread_rec_mutex_init=no
35935
35936
35937fi
ac1cb8d3 35938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35939
35940fi
35941echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35942echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35943 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35944 cat >>confdefs.h <<\_ACEOF
35945#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35946_ACEOF
35947
35948 else
35949 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35950echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35951 fi
35952 fi
35953 fi
35954
35955else
35956 if test "$wxUSE_THREADS" = "yes" ; then
35957 case "${host}" in
35958 *-*-mingw32* )
35959 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35960echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35961if test "${wx_cv_cflags_mthread+set}" = set; then
35962 echo $ECHO_N "(cached) $ECHO_C" >&6
35963else
35964
35965 CFLAGS_OLD="$CFLAGS"
35966 CFLAGS="$CFLAGS -mthreads"
35967 cat >conftest.$ac_ext <<_ACEOF
35968/* confdefs.h. */
35969_ACEOF
35970cat confdefs.h >>conftest.$ac_ext
35971cat >>conftest.$ac_ext <<_ACEOF
35972/* end confdefs.h. */
35973
35974int
35975main ()
35976{
35977
35978 ;
35979 return 0;
35980}
35981_ACEOF
35982rm -f conftest.$ac_objext
35983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35984 (eval $ac_compile) 2>conftest.er1
a848cd7e 35985 ac_status=$?
ac1cb8d3
VS
35986 grep -v '^ *+' conftest.er1 >conftest.err
35987 rm -f conftest.er1
35988 cat conftest.err >&5
a848cd7e
SC
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); } &&
6ebeb4c7 35991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; } &&
35997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; }; then
36003 wx_cv_cflags_mthread=yes
36004else
36005 echo "$as_me: failed program was:" >&5
36006sed 's/^/| /' conftest.$ac_ext >&5
36007
36008wx_cv_cflags_mthread=no
36009
36010fi
ac1cb8d3 36011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36012
36013
36014fi
36015echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36016echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36017
36018 if test "$wx_cv_cflags_mthread" = "yes"; then
36019 CXXFLAGS="$CXXFLAGS -mthreads"
36020 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36021 LDFLAGS="$LDFLAGS -mthreads"
36022 else
36023 CFLAGS="$CFLAGS_OLD"
36024 fi
36025 ;;
36026 *-pc-os2*emx )
36027 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36028 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36029 LDFLAGS="$LDFLAGS -Zmt"
36030 ;;
36031 esac
36032 fi
36033fi
36034
36035if test "$wxUSE_THREADS" = "yes"; then
36036 cat >>confdefs.h <<\_ACEOF
36037#define wxUSE_THREADS 1
36038_ACEOF
36039
36040
36041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36042else
36043 if test "$ac_cv_func_strtok_r" = "yes"; then
36044 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36045echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36046 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36047 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36048 echo "$as_me:$LINENO: result: yes" >&5
36049echo "${ECHO_T}yes" >&6
36050 else
36051 echo "$as_me:$LINENO: result: no" >&5
36052echo "${ECHO_T}no" >&6
36053 fi
36054 fi
36055fi
36056
36057if test "$WXGTK20" = 1 ; then
36058 cat >>confdefs.h <<_ACEOF
36059#define __WXGTK20__ $WXGTK20
36060_ACEOF
36061
36062 WXGTK12=1
36063fi
36064
36065if test "$WXGTK12" = 1 ; then
36066 cat >>confdefs.h <<_ACEOF
36067#define __WXGTK12__ $WXGTK12
36068_ACEOF
36069
36070fi
36071
36072if test "$WXGTK127" = 1 ; then
36073 cat >>confdefs.h <<_ACEOF
36074#define __WXGTK127__ $WXGTK127
36075_ACEOF
36076
36077fi
36078
36079if test "$WXGPE" = 1 ; then
36080 cat >>confdefs.h <<_ACEOF
36081#define __WXGPE__ $WXGPE
36082_ACEOF
36083
36084fi
36085
36086WXDEBUG=
36087
36088if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36089 WXDEBUG="-g"
36090 wxUSE_OPTIMISE=no
36091fi
36092
36093if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36094 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36095 if test "$GCC" = yes; then
36096 WXDEBUG="-ggdb"
36097 fi
a848cd7e
SC
36098fi
36099
36100if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36101 cat >>confdefs.h <<\_ACEOF
36102#define WXDEBUG 1
36103_ACEOF
36104
36105 WXDEBUG_DEFINE="-D__WXDEBUG__"
36106else
36107 if test "$wxUSE_GTK" = 1 ; then
36108 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36109 fi
36110fi
36111
36112if test "$wxUSE_MEM_TRACING" = "yes" ; then
36113 cat >>confdefs.h <<\_ACEOF
36114#define wxUSE_MEMORY_TRACING 1
36115_ACEOF
36116
36117 cat >>confdefs.h <<\_ACEOF
36118#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36119_ACEOF
36120
36121 cat >>confdefs.h <<\_ACEOF
36122#define wxUSE_DEBUG_NEW_ALWAYS 1
36123_ACEOF
36124
36125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36126fi
36127
36128if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36129 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36130fi
36131
36132PROFILE=
36133if test "$wxUSE_PROFILE" = "yes" ; then
36134 PROFILE=" -pg"
36135fi
36136
36137CODE_GEN_FLAGS=
36138CODE_GEN_FLAGS_CXX=
36139if test "$GCC" = "yes" ; then
36140 if test "$wxUSE_NO_RTTI" = "yes" ; then
36141 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36142 fi
36143 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36144 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36145 fi
36146 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36147 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36148 fi
36149
36150 case "${host}" in
36151 powerpc*-*-aix* )
36152 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36153 ;;
36154 *-hppa* )
36155 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36156 ;;
36157 esac
36158fi
36159
36160OPTIMISE=
36161if test "$wxUSE_OPTIMISE" = "no" ; then
36162 if test "$GCC" = yes ; then
36163 OPTIMISE="-O0"
36164 fi
36165else
36166 if test "$GCC" = yes ; then
36167 OPTIMISE="-O2"
36168
36169 case "${host}" in
36170 i586-*-*|i686-*-* )
36171 OPTIMISE="${OPTIMISE} "
36172 ;;
36173 esac
36174 else
36175 OPTIMISE="-O"
36176 fi
36177fi
36178
36179
36180if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36181 cat >>confdefs.h <<\_ACEOF
36182#define WXWIN_COMPATIBILITY_2_2 1
36183_ACEOF
36184
36185
36186 WXWIN_COMPATIBILITY_2_4="yes"
36187fi
36188
36189if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36190 cat >>confdefs.h <<\_ACEOF
36191#define WXWIN_COMPATIBILITY_2_4 1
36192_ACEOF
36193
36194fi
36195
36196
36197if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36198 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36199#define wxUSE_GUI 1
36200_ACEOF
36201
36202
370fd4c2 36203 fi
a848cd7e
SC
36204
36205
36206if test "$wxUSE_UNIX" = "yes"; then
36207 cat >>confdefs.h <<\_ACEOF
36208#define wxUSE_UNIX 1
36209_ACEOF
36210
36211fi
36212
36213
36214if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36215
36216 HAVE_DL_FUNCS=0
36217 HAVE_SHL_FUNCS=0
36218 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36219 if test "$USE_DARWIN" = 1; then
36220 HAVE_DL_FUNCS=1
47a7e797
MW
36221 elif test "$USE_DOS" = 1; then
36222 HAVE_DL_FUNCS=0
a848cd7e
SC
36223 else
36224
36225for ac_func in dlopen
36226do
36227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36228echo "$as_me:$LINENO: checking for $ac_func" >&5
36229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36230if eval "test \"\${$as_ac_var+set}\" = set"; then
36231 echo $ECHO_N "(cached) $ECHO_C" >&6
36232else
36233 cat >conftest.$ac_ext <<_ACEOF
36234/* confdefs.h. */
36235_ACEOF
36236cat confdefs.h >>conftest.$ac_ext
36237cat >>conftest.$ac_ext <<_ACEOF
36238/* end confdefs.h. */
ac1cb8d3
VS
36239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36241#define $ac_func innocuous_$ac_func
36242
a848cd7e
SC
36243/* System header to define __stub macros and hopefully few prototypes,
36244 which can conflict with char $ac_func (); below.
36245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36247
a848cd7e
SC
36248#ifdef __STDC__
36249# include <limits.h>
36250#else
36251# include <assert.h>
36252#endif
ac1cb8d3
VS
36253
36254#undef $ac_func
36255
a848cd7e
SC
36256/* Override any gcc2 internal prototype to avoid an error. */
36257#ifdef __cplusplus
36258extern "C"
36259{
36260#endif
36261/* We use char because int might match the return type of a gcc2
36262 builtin and then its argument prototype would still apply. */
36263char $ac_func ();
36264/* The GNU C library defines this for functions which it implements
36265 to always fail with ENOSYS. Some functions are actually named
36266 something starting with __ and the normal name is an alias. */
36267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36268choke me
36269#else
36270char (*f) () = $ac_func;
36271#endif
36272#ifdef __cplusplus
36273}
36274#endif
36275
36276int
36277main ()
36278{
36279return f != $ac_func;
36280 ;
36281 return 0;
36282}
36283_ACEOF
36284rm -f conftest.$ac_objext conftest$ac_exeext
36285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36286 (eval $ac_link) 2>conftest.er1
a848cd7e 36287 ac_status=$?
ac1cb8d3
VS
36288 grep -v '^ *+' conftest.er1 >conftest.err
36289 rm -f conftest.er1
36290 cat conftest.err >&5
a848cd7e
SC
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); } &&
6ebeb4c7 36293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295 (eval $ac_try) 2>&5
36296 ac_status=$?
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); }; } &&
36299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36302 ac_status=$?
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 eval "$as_ac_var=yes"
36306else
36307 echo "$as_me: failed program was:" >&5
36308sed 's/^/| /' conftest.$ac_ext >&5
36309
36310eval "$as_ac_var=no"
36311fi
ac1cb8d3
VS
36312rm -f conftest.err conftest.$ac_objext \
36313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36314fi
36315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36317if test `eval echo '${'$as_ac_var'}'` = yes; then
36318 cat >>confdefs.h <<_ACEOF
36319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36320_ACEOF
36321
36322 cat >>confdefs.h <<\_ACEOF
36323#define HAVE_DLOPEN 1
36324_ACEOF
36325
36326 HAVE_DL_FUNCS=1
36327
36328else
36329
36330 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36331echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36332if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36333 echo $ECHO_N "(cached) $ECHO_C" >&6
36334else
36335 ac_check_lib_save_LIBS=$LIBS
36336LIBS="-ldl $LIBS"
36337cat >conftest.$ac_ext <<_ACEOF
36338/* confdefs.h. */
36339_ACEOF
36340cat confdefs.h >>conftest.$ac_ext
36341cat >>conftest.$ac_ext <<_ACEOF
36342/* end confdefs.h. */
36343
36344/* Override any gcc2 internal prototype to avoid an error. */
36345#ifdef __cplusplus
36346extern "C"
36347#endif
36348/* We use char because int might match the return type of a gcc2
36349 builtin and then its argument prototype would still apply. */
36350char dlopen ();
36351int
36352main ()
36353{
36354dlopen ();
36355 ;
36356 return 0;
36357}
36358_ACEOF
36359rm -f conftest.$ac_objext conftest$ac_exeext
36360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36361 (eval $ac_link) 2>conftest.er1
a848cd7e 36362 ac_status=$?
ac1cb8d3
VS
36363 grep -v '^ *+' conftest.er1 >conftest.err
36364 rm -f conftest.er1
36365 cat conftest.err >&5
a848cd7e
SC
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } &&
6ebeb4c7 36368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36370 (eval $ac_try) 2>&5
36371 ac_status=$?
36372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36373 (exit $ac_status); }; } &&
36374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36376 (eval $ac_try) 2>&5
36377 ac_status=$?
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); }; }; then
36380 ac_cv_lib_dl_dlopen=yes
36381else
36382 echo "$as_me: failed program was:" >&5
36383sed 's/^/| /' conftest.$ac_ext >&5
36384
36385ac_cv_lib_dl_dlopen=no
36386fi
ac1cb8d3
VS
36387rm -f conftest.err conftest.$ac_objext \
36388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36389LIBS=$ac_check_lib_save_LIBS
36390fi
36391echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36392echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36393if test $ac_cv_lib_dl_dlopen = yes; then
36394
36395 cat >>confdefs.h <<\_ACEOF
36396#define HAVE_DLOPEN 1
36397_ACEOF
36398
36399 HAVE_DL_FUNCS=1
36400 DL_LINK=" -ldl$DL_LINK"
36401
36402else
36403
36404
36405for ac_func in shl_load
36406do
36407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36408echo "$as_me:$LINENO: checking for $ac_func" >&5
36409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36410if eval "test \"\${$as_ac_var+set}\" = set"; then
36411 echo $ECHO_N "(cached) $ECHO_C" >&6
36412else
36413 cat >conftest.$ac_ext <<_ACEOF
36414/* confdefs.h. */
36415_ACEOF
36416cat confdefs.h >>conftest.$ac_ext
36417cat >>conftest.$ac_ext <<_ACEOF
36418/* end confdefs.h. */
ac1cb8d3
VS
36419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36421#define $ac_func innocuous_$ac_func
36422
a848cd7e
SC
36423/* System header to define __stub macros and hopefully few prototypes,
36424 which can conflict with char $ac_func (); below.
36425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36426 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36427
a848cd7e
SC
36428#ifdef __STDC__
36429# include <limits.h>
36430#else
36431# include <assert.h>
36432#endif
ac1cb8d3
VS
36433
36434#undef $ac_func
36435
a848cd7e
SC
36436/* Override any gcc2 internal prototype to avoid an error. */
36437#ifdef __cplusplus
36438extern "C"
36439{
36440#endif
36441/* We use char because int might match the return type of a gcc2
36442 builtin and then its argument prototype would still apply. */
36443char $ac_func ();
36444/* The GNU C library defines this for functions which it implements
36445 to always fail with ENOSYS. Some functions are actually named
36446 something starting with __ and the normal name is an alias. */
36447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36448choke me
36449#else
36450char (*f) () = $ac_func;
36451#endif
36452#ifdef __cplusplus
36453}
36454#endif
36455
36456int
36457main ()
36458{
36459return f != $ac_func;
36460 ;
36461 return 0;
36462}
36463_ACEOF
36464rm -f conftest.$ac_objext conftest$ac_exeext
36465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36466 (eval $ac_link) 2>conftest.er1
a848cd7e 36467 ac_status=$?
ac1cb8d3
VS
36468 grep -v '^ *+' conftest.er1 >conftest.err
36469 rm -f conftest.er1
36470 cat conftest.err >&5
a848cd7e
SC
36471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); } &&
6ebeb4c7 36473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36476 ac_status=$?
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; } &&
36479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481 (eval $ac_try) 2>&5
36482 ac_status=$?
36483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484 (exit $ac_status); }; }; then
36485 eval "$as_ac_var=yes"
36486else
36487 echo "$as_me: failed program was:" >&5
36488sed 's/^/| /' conftest.$ac_ext >&5
36489
36490eval "$as_ac_var=no"
36491fi
ac1cb8d3
VS
36492rm -f conftest.err conftest.$ac_objext \
36493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36494fi
36495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36497if test `eval echo '${'$as_ac_var'}'` = yes; then
36498 cat >>confdefs.h <<_ACEOF
36499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36500_ACEOF
36501
36502 cat >>confdefs.h <<\_ACEOF
36503#define HAVE_SHL_LOAD 1
36504_ACEOF
36505
36506 HAVE_SHL_FUNCS=1
36507
36508else
36509
36510 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36511echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36512if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36513 echo $ECHO_N "(cached) $ECHO_C" >&6
36514else
36515 ac_check_lib_save_LIBS=$LIBS
36516LIBS="-lshl_load $LIBS"
36517cat >conftest.$ac_ext <<_ACEOF
36518/* confdefs.h. */
36519_ACEOF
36520cat confdefs.h >>conftest.$ac_ext
36521cat >>conftest.$ac_ext <<_ACEOF
36522/* end confdefs.h. */
36523
36524/* Override any gcc2 internal prototype to avoid an error. */
36525#ifdef __cplusplus
36526extern "C"
36527#endif
36528/* We use char because int might match the return type of a gcc2
36529 builtin and then its argument prototype would still apply. */
36530char dld ();
36531int
36532main ()
36533{
36534dld ();
36535 ;
36536 return 0;
36537}
36538_ACEOF
36539rm -f conftest.$ac_objext conftest$ac_exeext
36540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36541 (eval $ac_link) 2>conftest.er1
a848cd7e 36542 ac_status=$?
ac1cb8d3
VS
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
a848cd7e
SC
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
6ebeb4c7 36548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550 (eval $ac_try) 2>&5
36551 ac_status=$?
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; } &&
36554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; }; then
36560 ac_cv_lib_shl_load_dld=yes
36561else
36562 echo "$as_me: failed program was:" >&5
36563sed 's/^/| /' conftest.$ac_ext >&5
36564
36565ac_cv_lib_shl_load_dld=no
36566fi
ac1cb8d3
VS
36567rm -f conftest.err conftest.$ac_objext \
36568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36569LIBS=$ac_check_lib_save_LIBS
36570fi
36571echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36572echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36573if test $ac_cv_lib_shl_load_dld = yes; then
36574
36575 HAVE_SHL_FUNCS=1
36576 DL_LINK=" -ldld$DL_LINK"
36577
36578fi
36579
36580
36581fi
36582done
36583
36584
36585fi
36586
36587
36588fi
36589done
36590
36591
36592 if test "$HAVE_DL_FUNCS" = 1; then
36593
36594for ac_func in dlerror
36595do
36596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36597echo "$as_me:$LINENO: checking for $ac_func" >&5
36598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36599if eval "test \"\${$as_ac_var+set}\" = set"; then
36600 echo $ECHO_N "(cached) $ECHO_C" >&6
36601else
36602 cat >conftest.$ac_ext <<_ACEOF
36603/* confdefs.h. */
36604_ACEOF
36605cat confdefs.h >>conftest.$ac_ext
36606cat >>conftest.$ac_ext <<_ACEOF
36607/* end confdefs.h. */
ac1cb8d3
VS
36608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36610#define $ac_func innocuous_$ac_func
36611
a848cd7e
SC
36612/* System header to define __stub macros and hopefully few prototypes,
36613 which can conflict with char $ac_func (); below.
36614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36616
a848cd7e
SC
36617#ifdef __STDC__
36618# include <limits.h>
36619#else
36620# include <assert.h>
36621#endif
ac1cb8d3
VS
36622
36623#undef $ac_func
36624
a848cd7e
SC
36625/* Override any gcc2 internal prototype to avoid an error. */
36626#ifdef __cplusplus
36627extern "C"
36628{
36629#endif
36630/* We use char because int might match the return type of a gcc2
36631 builtin and then its argument prototype would still apply. */
36632char $ac_func ();
36633/* The GNU C library defines this for functions which it implements
36634 to always fail with ENOSYS. Some functions are actually named
36635 something starting with __ and the normal name is an alias. */
36636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36637choke me
36638#else
36639char (*f) () = $ac_func;
36640#endif
36641#ifdef __cplusplus
36642}
36643#endif
36644
36645int
36646main ()
36647{
36648return f != $ac_func;
36649 ;
36650 return 0;
36651}
36652_ACEOF
36653rm -f conftest.$ac_objext conftest$ac_exeext
36654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36655 (eval $ac_link) 2>conftest.er1
a848cd7e 36656 ac_status=$?
ac1cb8d3
VS
36657 grep -v '^ *+' conftest.er1 >conftest.err
36658 rm -f conftest.er1
36659 cat conftest.err >&5
a848cd7e
SC
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); } &&
6ebeb4c7 36662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36665 ac_status=$?
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; } &&
36668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36670 (eval $ac_try) 2>&5
36671 ac_status=$?
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); }; }; then
36674 eval "$as_ac_var=yes"
36675else
36676 echo "$as_me: failed program was:" >&5
36677sed 's/^/| /' conftest.$ac_ext >&5
36678
36679eval "$as_ac_var=no"
36680fi
ac1cb8d3
VS
36681rm -f conftest.err conftest.$ac_objext \
36682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36683fi
36684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36686if test `eval echo '${'$as_ac_var'}'` = yes; then
36687 cat >>confdefs.h <<_ACEOF
36688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36689_ACEOF
36690 cat >>confdefs.h <<\_ACEOF
36691#define HAVE_DLERROR 1
36692_ACEOF
36693
36694else
36695
36696 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36697echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36698if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36699 echo $ECHO_N "(cached) $ECHO_C" >&6
36700else
36701 ac_check_lib_save_LIBS=$LIBS
36702LIBS="-ldl $LIBS"
36703cat >conftest.$ac_ext <<_ACEOF
36704/* confdefs.h. */
36705_ACEOF
36706cat confdefs.h >>conftest.$ac_ext
36707cat >>conftest.$ac_ext <<_ACEOF
36708/* end confdefs.h. */
36709
36710/* Override any gcc2 internal prototype to avoid an error. */
36711#ifdef __cplusplus
36712extern "C"
36713#endif
36714/* We use char because int might match the return type of a gcc2
36715 builtin and then its argument prototype would still apply. */
36716char dlerror ();
36717int
36718main ()
36719{
36720dlerror ();
36721 ;
36722 return 0;
36723}
36724_ACEOF
36725rm -f conftest.$ac_objext conftest$ac_exeext
36726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36727 (eval $ac_link) 2>conftest.er1
a848cd7e 36728 ac_status=$?
ac1cb8d3
VS
36729 grep -v '^ *+' conftest.er1 >conftest.err
36730 rm -f conftest.er1
36731 cat conftest.err >&5
a848cd7e
SC
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); } &&
6ebeb4c7 36734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36736 (eval $ac_try) 2>&5
36737 ac_status=$?
36738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36739 (exit $ac_status); }; } &&
36740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36742 (eval $ac_try) 2>&5
36743 ac_status=$?
36744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36745 (exit $ac_status); }; }; then
36746 ac_cv_lib_dl_dlerror=yes
36747else
36748 echo "$as_me: failed program was:" >&5
36749sed 's/^/| /' conftest.$ac_ext >&5
36750
36751ac_cv_lib_dl_dlerror=no
36752fi
ac1cb8d3
VS
36753rm -f conftest.err conftest.$ac_objext \
36754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36755LIBS=$ac_check_lib_save_LIBS
36756fi
36757echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36758echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36759if test $ac_cv_lib_dl_dlerror = yes; then
36760 cat >>confdefs.h <<\_ACEOF
36761#define HAVE_DLERROR 1
36762_ACEOF
36763
36764fi
36765
36766
36767
36768fi
36769done
36770
36771 fi
36772 fi
36773
36774 if test "$HAVE_DL_FUNCS" = 0; then
36775 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36776 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36777 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36778echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36779 wxUSE_DYNAMIC_LOADER=no
36780 wxUSE_DYNLIB_CLASS=no
36781 else
36782 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36783echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36784 fi
36785 fi
36786 fi
36787 fi
36788fi
36789
36790if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36791 cat >>confdefs.h <<\_ACEOF
36792#define wxUSE_DYNAMIC_LOADER 1
36793_ACEOF
36794
36795fi
36796if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36797 cat >>confdefs.h <<\_ACEOF
36798#define wxUSE_DYNLIB_CLASS 1
36799_ACEOF
36800
36801fi
36802
36803
36804
36805if test "$wxUSE_PLUGINS" = "yes" ; then
36806 if test "$wxUSE_SHARED" = "no" ; then
36807 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36808echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36809 wxUSE_PLUGINS=no
36810 fi
36811 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36812 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36813echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36814 wxUSE_PLUGINS=no
36815 fi
36816 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36817 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36818echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36819 wxUSE_PLUGINS=no
36820 fi
36821 if test "$wxUSE_PLUGINS" = "yes" ; then
36822 cat >>confdefs.h <<\_ACEOF
36823#define wxUSE_PLUGINS 1
36824_ACEOF
36825
36826 fi
36827fi
36828
36829
36830if test "$wxUSE_STL" = "yes"; then
36831 cat >>confdefs.h <<\_ACEOF
36832#define wxUSE_STL 1
36833_ACEOF
36834
36835fi
36836
36837if test "$wxUSE_APPLE_IEEE" = "yes"; then
36838 cat >>confdefs.h <<\_ACEOF
36839#define wxUSE_APPLE_IEEE 1
36840_ACEOF
36841
36842fi
36843
36844if test "$wxUSE_TIMER" = "yes"; then
36845 cat >>confdefs.h <<\_ACEOF
36846#define wxUSE_TIMER 1
36847_ACEOF
36848
36849fi
36850
9c112555 36851if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36852
36853for ac_header in sys/soundcard.h
36854do
36855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36856if eval "test \"\${$as_ac_Header+set}\" = set"; then
36857 echo "$as_me:$LINENO: checking for $ac_header" >&5
36858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36859if eval "test \"\${$as_ac_Header+set}\" = set"; then
36860 echo $ECHO_N "(cached) $ECHO_C" >&6
36861fi
36862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36864else
36865 # Is the header compilable?
36866echo "$as_me:$LINENO: checking $ac_header usability" >&5
36867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36868cat >conftest.$ac_ext <<_ACEOF
36869/* confdefs.h. */
36870_ACEOF
36871cat confdefs.h >>conftest.$ac_ext
36872cat >>conftest.$ac_ext <<_ACEOF
36873/* end confdefs.h. */
36874$ac_includes_default
36875#include <$ac_header>
36876_ACEOF
36877rm -f conftest.$ac_objext
36878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36879 (eval $ac_compile) 2>conftest.er1
a848cd7e 36880 ac_status=$?
ac1cb8d3
VS
36881 grep -v '^ *+' conftest.er1 >conftest.err
36882 rm -f conftest.er1
36883 cat conftest.err >&5
a848cd7e
SC
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); } &&
6ebeb4c7 36886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; } &&
36892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894 (eval $ac_try) 2>&5
36895 ac_status=$?
36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897 (exit $ac_status); }; }; then
36898 ac_header_compiler=yes
36899else
36900 echo "$as_me: failed program was:" >&5
36901sed 's/^/| /' conftest.$ac_ext >&5
36902
36903ac_header_compiler=no
36904fi
ac1cb8d3 36905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36907echo "${ECHO_T}$ac_header_compiler" >&6
36908
36909# Is the header present?
36910echo "$as_me:$LINENO: checking $ac_header presence" >&5
36911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36912cat >conftest.$ac_ext <<_ACEOF
36913/* confdefs.h. */
36914_ACEOF
36915cat confdefs.h >>conftest.$ac_ext
36916cat >>conftest.$ac_ext <<_ACEOF
36917/* end confdefs.h. */
36918#include <$ac_header>
36919_ACEOF
36920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36922 ac_status=$?
36923 grep -v '^ *+' conftest.er1 >conftest.err
36924 rm -f conftest.er1
36925 cat conftest.err >&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); } >/dev/null; then
36928 if test -s conftest.err; then
36929 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36931 else
36932 ac_cpp_err=
36933 fi
36934else
36935 ac_cpp_err=yes
36936fi
36937if test -z "$ac_cpp_err"; then
36938 ac_header_preproc=yes
36939else
36940 echo "$as_me: failed program was:" >&5
36941sed 's/^/| /' conftest.$ac_ext >&5
36942
36943 ac_header_preproc=no
36944fi
36945rm -f conftest.err conftest.$ac_ext
36946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36947echo "${ECHO_T}$ac_header_preproc" >&6
36948
36949# So? What about this header?
ac1cb8d3
VS
36950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36951 yes:no: )
a848cd7e
SC
36952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36956 ac_header_preproc=yes
a848cd7e 36957 ;;
ac1cb8d3 36958 no:yes:* )
a848cd7e
SC
36959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36962echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36966echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36971 (
36972 cat <<\_ASBOX
ac1cb8d3
VS
36973## ----------------------------------------- ##
36974## Report this to wx-dev@lists.wxwidgets.org ##
36975## ----------------------------------------- ##
a848cd7e
SC
36976_ASBOX
36977 ) |
36978 sed "s/^/$as_me: WARNING: /" >&2
36979 ;;
36980esac
36981echo "$as_me:$LINENO: checking for $ac_header" >&5
36982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36983if eval "test \"\${$as_ac_Header+set}\" = set"; then
36984 echo $ECHO_N "(cached) $ECHO_C" >&6
36985else
ac1cb8d3 36986 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36987fi
36988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36990
36991fi
36992if test `eval echo '${'$as_ac_Header'}'` = yes; then
36993 cat >>confdefs.h <<_ACEOF
36994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36995_ACEOF
36996
9c112555
MW
36997else
36998 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36999fi
37000
37001done
37002
9c112555
MW
37003fi
37004WITH_PLUGIN_SDL=0
37005if test "$wxUSE_SOUND" = "yes"; then
37006 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37007 if test "$wxUSE_LIBSDL" != "no"; then
37008
37009# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37010if test "${with_sdl_prefix+set}" = set; then
37011 withval="$with_sdl_prefix"
37012 sdl_prefix="$withval"
37013else
37014 sdl_prefix=""
37015fi;
37016
37017# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37018if test "${with_sdl_exec_prefix+set}" = set; then
37019 withval="$with_sdl_exec_prefix"
37020 sdl_exec_prefix="$withval"
37021else
37022 sdl_exec_prefix=""
37023fi;
37024# Check whether --enable-sdltest or --disable-sdltest was given.
37025if test "${enable_sdltest+set}" = set; then
37026 enableval="$enable_sdltest"
37027
37028else
37029 enable_sdltest=yes
37030fi;
37031
37032 if test x$sdl_exec_prefix != x ; then
37033 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37034 if test x${SDL_CONFIG+set} != xset ; then
37035 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37036 fi
37037 fi
37038 if test x$sdl_prefix != x ; then
37039 sdl_args="$sdl_args --prefix=$sdl_prefix"
37040 if test x${SDL_CONFIG+set} != xset ; then
37041 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37042 fi
37043 fi
37044
37045
37046 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37047 # Extract the first word of "sdl-config", so it can be a program name with args.
37048set dummy sdl-config; ac_word=$2
37049echo "$as_me:$LINENO: checking for $ac_word" >&5
37050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37051if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37052 echo $ECHO_N "(cached) $ECHO_C" >&6
37053else
37054 case $SDL_CONFIG in
37055 [\\/]* | ?:[\\/]*)
37056 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37057 ;;
37058 *)
37059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37060for as_dir in $PATH
37061do
37062 IFS=$as_save_IFS
37063 test -z "$as_dir" && as_dir=.
37064 for ac_exec_ext in '' $ac_executable_extensions; do
37065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37066 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37068 break 2
37069 fi
37070done
37071done
37072
37073 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37074 ;;
37075esac
37076fi
37077SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37078
37079if test -n "$SDL_CONFIG"; then
37080 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37081echo "${ECHO_T}$SDL_CONFIG" >&6
37082else
37083 echo "$as_me:$LINENO: result: no" >&5
37084echo "${ECHO_T}no" >&6
37085fi
37086
37087 min_sdl_version=1.2.0
37088 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37089echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37090 no_sdl=""
37091 if test "$SDL_CONFIG" = "no" ; then
37092 no_sdl=yes
37093 else
37094 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37095 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37096
37097 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37099 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37101 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37103 if test "x$enable_sdltest" = "xyes" ; then
37104 ac_save_CFLAGS="$CFLAGS"
94acd38e 37105 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37106 ac_save_LIBS="$LIBS"
37107 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37108 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37109 LIBS="$LIBS $SDL_LIBS"
37110 rm -f conf.sdltest
37111 if test "$cross_compiling" = yes; then
37112 echo $ac_n "cross compiling; assumed OK... $ac_c"
37113else
37114 cat >conftest.$ac_ext <<_ACEOF
37115/* confdefs.h. */
37116_ACEOF
37117cat confdefs.h >>conftest.$ac_ext
37118cat >>conftest.$ac_ext <<_ACEOF
37119/* end confdefs.h. */
37120
37121#include <stdio.h>
37122#include <stdlib.h>
37123#include <string.h>
37124#include "SDL.h"
37125
37126char*
37127my_strdup (char *str)
37128{
37129 char *new_str;
37130
37131 if (str)
37132 {
37133 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37134 strcpy (new_str, str);
37135 }
37136 else
37137 new_str = NULL;
37138
37139 return new_str;
37140}
37141
37142int main (int argc, char *argv[])
37143{
37144 int major, minor, micro;
37145 char *tmp_version;
37146
37147 /* This hangs on some systems (?)
37148 system ("touch conf.sdltest");
37149 */
37150 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37151
37152 /* HP/UX 9 (%@#!) writes to sscanf strings */
37153 tmp_version = my_strdup("$min_sdl_version");
37154 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37155 printf("%s, bad version string\n", "$min_sdl_version");
37156 exit(1);
37157 }
37158
37159 if (($sdl_major_version > major) ||
37160 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37161 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37162 {
37163 return 0;
37164 }
37165 else
37166 {
37167 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37168 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37169 printf("*** best to upgrade to the required version.\n");
37170 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37171 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37172 printf("*** config.cache before re-running configure\n");
37173 return 1;
37174 }
37175}
37176
37177
37178_ACEOF
37179rm -f conftest$ac_exeext
37180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37181 (eval $ac_link) 2>&5
37182 ac_status=$?
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186 (eval $ac_try) 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; }; then
37190 :
37191else
37192 echo "$as_me: program exited with status $ac_status" >&5
37193echo "$as_me: failed program was:" >&5
37194sed 's/^/| /' conftest.$ac_ext >&5
37195
37196( exit $ac_status )
37197no_sdl=yes
37198fi
ac1cb8d3 37199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37200fi
37201 CFLAGS="$ac_save_CFLAGS"
94acd38e 37202 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37203 LIBS="$ac_save_LIBS"
37204 fi
37205 fi
37206 if test "x$no_sdl" = x ; then
37207 echo "$as_me:$LINENO: result: yes" >&5
37208echo "${ECHO_T}yes" >&6
37209
37210 EXTRALIBS_SDL="$SDL_LIBS"
37211 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37212 cat >>confdefs.h <<\_ACEOF
37213#define wxUSE_LIBSDL 1
37214_ACEOF
37215
37216
37217 else
37218 echo "$as_me:$LINENO: result: no" >&5
37219echo "${ECHO_T}no" >&6
37220 if test "$SDL_CONFIG" = "no" ; then
37221 echo "*** The sdl-config script installed by SDL could not be found"
37222 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37223 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37224 echo "*** full path to sdl-config."
37225 else
37226 if test -f conf.sdltest ; then
37227 :
37228 else
37229 echo "*** Could not run SDL test program, checking why..."
37230 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37231 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37232 LIBS="$LIBS $SDL_LIBS"
37233 cat >conftest.$ac_ext <<_ACEOF
37234/* confdefs.h. */
37235_ACEOF
37236cat confdefs.h >>conftest.$ac_ext
37237cat >>conftest.$ac_ext <<_ACEOF
37238/* end confdefs.h. */
37239
37240#include <stdio.h>
37241#include "SDL.h"
37242
37243int main(int argc, char *argv[])
37244{ return 0; }
37245#undef main
37246#define main K_and_R_C_main
37247
37248int
37249main ()
37250{
37251 return 0;
37252 ;
37253 return 0;
37254}
37255_ACEOF
37256rm -f conftest.$ac_objext conftest$ac_exeext
37257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37258 (eval $ac_link) 2>conftest.er1
a848cd7e 37259 ac_status=$?
ac1cb8d3
VS
37260 grep -v '^ *+' conftest.er1 >conftest.err
37261 rm -f conftest.er1
37262 cat conftest.err >&5
a848cd7e
SC
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); } &&
6ebeb4c7 37265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37267 (eval $ac_try) 2>&5
37268 ac_status=$?
37269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270 (exit $ac_status); }; } &&
37271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37273 (eval $ac_try) 2>&5
37274 ac_status=$?
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); }; }; then
37277 echo "*** The test program compiled, but did not run. This usually means"
37278 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37279 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37280 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37281 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37282 echo "*** is required on your system"
37283 echo "***"
37284 echo "*** If you have an old version installed, it is best to remove it, although"
37285 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37286else
37287 echo "$as_me: failed program was:" >&5
37288sed 's/^/| /' conftest.$ac_ext >&5
37289
37290 echo "*** The test program failed to compile or link. See the file config.log for the"
37291 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37292 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37293 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37294fi
ac1cb8d3
VS
37295rm -f conftest.err conftest.$ac_objext \
37296 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37297 CFLAGS="$ac_save_CFLAGS"
94acd38e 37298 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37299 LIBS="$ac_save_LIBS"
37300 fi
37301 fi
37302 SDL_CFLAGS=""
37303 SDL_LIBS=""
37304 wxUSE_LIBSDL="no"
37305 fi
37306
37307
37308 rm -f conf.sdltest
37309
37310 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37311 WITH_PLUGIN_SDL=1
37312 fi
37313 fi
37314 fi
37315
37316 cat >>confdefs.h <<\_ACEOF
37317#define wxUSE_SOUND 1
37318_ACEOF
37319
37320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37321fi
37322
d1c38808
VZ
37323if test "$WXGTK20" = 1; then
37324 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37325 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37326
37327
37328 succeeded=no
37329
37330 if test -z "$PKG_CONFIG"; then
37331 # Extract the first word of "pkg-config", so it can be a program name with args.
37332set dummy pkg-config; ac_word=$2
37333echo "$as_me:$LINENO: checking for $ac_word" >&5
37334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37335if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37336 echo $ECHO_N "(cached) $ECHO_C" >&6
37337else
37338 case $PKG_CONFIG in
37339 [\\/]* | ?:[\\/]*)
37340 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37341 ;;
37342 *)
37343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37344for as_dir in $PATH
37345do
37346 IFS=$as_save_IFS
37347 test -z "$as_dir" && as_dir=.
37348 for ac_exec_ext in '' $ac_executable_extensions; do
37349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37350 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37352 break 2
37353 fi
37354done
37355done
37356
37357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37358 ;;
37359esac
37360fi
37361PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37362
37363if test -n "$PKG_CONFIG"; then
37364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37365echo "${ECHO_T}$PKG_CONFIG" >&6
37366else
37367 echo "$as_me:$LINENO: result: no" >&5
37368echo "${ECHO_T}no" >&6
37369fi
37370
37371 fi
37372
37373 if test "$PKG_CONFIG" = "no" ; then
37374 echo "*** The pkg-config script could not be found. Make sure it is"
37375 echo "*** in your path, or set the PKG_CONFIG environment variable"
37376 echo "*** to the full path to pkg-config."
37377 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37378 else
37379 PKG_CONFIG_MIN_VERSION=0.9.0
37380 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37381 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37382echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37383
ffa762ff 37384 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37385 echo "$as_me:$LINENO: result: yes" >&5
37386echo "${ECHO_T}yes" >&6
37387 succeeded=yes
37388
37389 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37390echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37391 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37392 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37393echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37394
37395 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37396echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37397 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37398 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37399echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37400 else
37401 LIBGNOMEPRINTUI_CFLAGS=""
37402 LIBGNOMEPRINTUI_LIBS=""
37403 ## If we have a custom action on failure, don't print errors, but
37404 ## do set a variable so people can do so.
ffa762ff 37405 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37406
37407 fi
37408
37409
37410
37411 else
37412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37414 fi
37415 fi
37416
37417 if test $succeeded = yes; then
37418
d1c38808
VZ
37419 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37420 cat >>confdefs.h <<\_ACEOF
37421#define wxUSE_LIBGNOMEPRINT 1
37422_ACEOF
37423
37424
37425 else
37426
37427 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37428echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37429 wxUSE_LIBGNOMEPRINT="no"
37430
37431
37432 fi
37433
37434 fi
37435 fi
37436fi
37437
37438
a848cd7e
SC
37439if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37440 cat >>confdefs.h <<\_ACEOF
37441#define wxUSE_CMDLINE_PARSER 1
37442_ACEOF
37443
37444fi
37445
37446if test "$wxUSE_STOPWATCH" = "yes"; then
37447 cat >>confdefs.h <<\_ACEOF
37448#define wxUSE_STOPWATCH 1
37449_ACEOF
37450
37451fi
37452
37453if test "$wxUSE_DATETIME" = "yes"; then
37454 cat >>confdefs.h <<\_ACEOF
37455#define wxUSE_DATETIME 1
37456_ACEOF
37457
37458fi
37459
37460if test "$wxUSE_FILE" = "yes"; then
37461 cat >>confdefs.h <<\_ACEOF
37462#define wxUSE_FILE 1
37463_ACEOF
37464
37465fi
37466
37467if test "$wxUSE_FFILE" = "yes"; then
37468 cat >>confdefs.h <<\_ACEOF
37469#define wxUSE_FFILE 1
37470_ACEOF
37471
37472fi
37473
37474if test "$wxUSE_FILESYSTEM" = "yes"; then
37475 cat >>confdefs.h <<\_ACEOF
37476#define wxUSE_FILESYSTEM 1
37477_ACEOF
37478
37479fi
37480
37481if test "$wxUSE_FS_ZIP" = "yes"; then
37482 cat >>confdefs.h <<\_ACEOF
37483#define wxUSE_FS_ZIP 1
37484_ACEOF
37485
37486fi
37487
9e8e867f 37488if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37489 cat >>confdefs.h <<\_ACEOF
9e8e867f 37490#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37491_ACEOF
37492
37493fi
37494
37495if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37496 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37497 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37498echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37499 elif test "$wxUSE_ZLIB" = "no"; then
37500 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37501echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37502 else
37503 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37504#define wxUSE_ZIPSTREAM 1
37505_ACEOF
37506
81f90336 37507 fi
a848cd7e
SC
37508fi
37509
a848cd7e 37510if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37511 if test "$USE_UNIX" != 1; then
37512 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37513echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37514 wxUSE_ON_FATAL_EXCEPTION=no
37515 else
37516 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37517#define wxUSE_ON_FATAL_EXCEPTION 1
37518_ACEOF
37519
18228ab4 37520 fi
a848cd7e
SC
37521fi
37522
eaff0f0d
VZ
37523if test "$wxUSE_STACKWALKER" = "yes"; then
37524 cat >>confdefs.h <<\_ACEOF
37525#define wxUSE_STACKWALKER 1
37526_ACEOF
37527
37528fi
37529
36b6448c 37530if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37531 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37532 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37533echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37534 wxUSE_DEBUGREPORT=no
37535 else
37536 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37537#define wxUSE_DEBUGREPORT 1
37538_ACEOF
37539
21dfc162
MW
37540 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37542 fi
dfe0c803 37543 fi
36b6448c
VZ
37544fi
37545
a848cd7e
SC
37546if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37547 cat >>confdefs.h <<\_ACEOF
37548#define wxUSE_SNGLINST_CHECKER 1
37549_ACEOF
37550
37551fi
37552
37553if test "$wxUSE_BUSYINFO" = "yes"; then
37554 cat >>confdefs.h <<\_ACEOF
37555#define wxUSE_BUSYINFO 1
37556_ACEOF
37557
37558fi
37559
37560if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37561 cat >>confdefs.h <<\_ACEOF
37562#define wxUSE_STD_IOSTREAM 1
37563_ACEOF
37564
37565fi
37566
59746b65
MW
37567if test "$wxUSE_STD_STRING" = "yes"; then
37568 cat >>confdefs.h <<\_ACEOF
37569#define wxUSE_STD_STRING 1
37570_ACEOF
37571
37572fi
37573
07158944
VZ
37574if test "$wxUSE_STDPATHS" = "yes"; then
37575 cat >>confdefs.h <<\_ACEOF
37576#define wxUSE_STDPATHS 1
37577_ACEOF
37578
37579fi
37580
a848cd7e
SC
37581if test "$wxUSE_TEXTBUFFER" = "yes"; then
37582 cat >>confdefs.h <<\_ACEOF
37583#define wxUSE_TEXTBUFFER 1
37584_ACEOF
37585
37586fi
37587
37588if test "$wxUSE_TEXTFILE" = "yes"; then
37589 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37590 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37591echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37592 else
37593 cat >>confdefs.h <<\_ACEOF
37594#define wxUSE_TEXTFILE 1
37595_ACEOF
37596
37597 fi
37598fi
37599
37600if test "$wxUSE_CONFIG" = "yes" ; then
37601 if test "$wxUSE_TEXTFILE" != "yes"; then
37602 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37603echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37604 else
37605 cat >>confdefs.h <<\_ACEOF
37606#define wxUSE_CONFIG 1
89be85c2
VS
37607_ACEOF
37608
37609 cat >>confdefs.h <<\_ACEOF
37610#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37611_ACEOF
37612
37613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37614 fi
37615fi
37616
37617if test "$wxUSE_INTL" = "yes" ; then
37618 if test "$wxUSE_FILE" != "yes"; then
37619 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37620echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37621 else
37622 cat >>confdefs.h <<\_ACEOF
37623#define wxUSE_INTL 1
37624_ACEOF
37625
37626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37627 GUIDIST="$GUIDIST INTL_DIST"
37628 fi
37629fi
37630
37631if test "$wxUSE_LOG" = "yes"; then
37632 cat >>confdefs.h <<\_ACEOF
37633#define wxUSE_LOG 1
37634_ACEOF
37635
37636
37637 if test "$wxUSE_LOGGUI" = "yes"; then
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_LOGGUI 1
37640_ACEOF
37641
37642 fi
37643
37644 if test "$wxUSE_LOGWINDOW" = "yes"; then
37645 cat >>confdefs.h <<\_ACEOF
37646#define wxUSE_LOGWINDOW 1
37647_ACEOF
37648
37649 fi
37650
37651 if test "$wxUSE_LOGDIALOG" = "yes"; then
37652 cat >>confdefs.h <<\_ACEOF
37653#define wxUSE_LOG_DIALOG 1
37654_ACEOF
37655
37656 fi
0b78747f
MW
37657
37658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37659fi
37660
37661if test "$wxUSE_LONGLONG" = "yes"; then
37662 cat >>confdefs.h <<\_ACEOF
37663#define wxUSE_LONGLONG 1
37664_ACEOF
37665
37666fi
37667
37668if test "$wxUSE_GEOMETRY" = "yes"; then
37669 cat >>confdefs.h <<\_ACEOF
37670#define wxUSE_GEOMETRY 1
37671_ACEOF
37672
37673fi
37674
a848cd7e
SC
37675if test "$wxUSE_STREAMS" = "yes" ; then
37676 cat >>confdefs.h <<\_ACEOF
37677#define wxUSE_STREAMS 1
37678_ACEOF
37679
37680fi
37681
37682
37683if test "$wxUSE_DATETIME" = "yes"; then
37684
37685for ac_func in strptime
37686do
37687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37688echo "$as_me:$LINENO: checking for $ac_func" >&5
37689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37690if eval "test \"\${$as_ac_var+set}\" = set"; then
37691 echo $ECHO_N "(cached) $ECHO_C" >&6
37692else
37693 cat >conftest.$ac_ext <<_ACEOF
37694/* confdefs.h. */
37695_ACEOF
37696cat confdefs.h >>conftest.$ac_ext
37697cat >>conftest.$ac_ext <<_ACEOF
37698/* end confdefs.h. */
ac1cb8d3
VS
37699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37701#define $ac_func innocuous_$ac_func
37702
a848cd7e
SC
37703/* System header to define __stub macros and hopefully few prototypes,
37704 which can conflict with char $ac_func (); below.
37705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37706 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37707
a848cd7e
SC
37708#ifdef __STDC__
37709# include <limits.h>
37710#else
37711# include <assert.h>
37712#endif
ac1cb8d3
VS
37713
37714#undef $ac_func
37715
a848cd7e
SC
37716/* Override any gcc2 internal prototype to avoid an error. */
37717#ifdef __cplusplus
37718extern "C"
37719{
37720#endif
37721/* We use char because int might match the return type of a gcc2
37722 builtin and then its argument prototype would still apply. */
37723char $ac_func ();
37724/* The GNU C library defines this for functions which it implements
37725 to always fail with ENOSYS. Some functions are actually named
37726 something starting with __ and the normal name is an alias. */
37727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37728choke me
37729#else
37730char (*f) () = $ac_func;
37731#endif
37732#ifdef __cplusplus
37733}
37734#endif
37735
37736int
37737main ()
37738{
37739return f != $ac_func;
37740 ;
37741 return 0;
37742}
37743_ACEOF
37744rm -f conftest.$ac_objext conftest$ac_exeext
37745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37746 (eval $ac_link) 2>conftest.er1
a848cd7e 37747 ac_status=$?
ac1cb8d3
VS
37748 grep -v '^ *+' conftest.er1 >conftest.err
37749 rm -f conftest.er1
37750 cat conftest.err >&5
a848cd7e
SC
37751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37752 (exit $ac_status); } &&
6ebeb4c7 37753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37755 (eval $ac_try) 2>&5
37756 ac_status=$?
37757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758 (exit $ac_status); }; } &&
37759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761 (eval $ac_try) 2>&5
37762 ac_status=$?
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); }; }; then
37765 eval "$as_ac_var=yes"
37766else
37767 echo "$as_me: failed program was:" >&5
37768sed 's/^/| /' conftest.$ac_ext >&5
37769
37770eval "$as_ac_var=no"
37771fi
ac1cb8d3
VS
37772rm -f conftest.err conftest.$ac_objext \
37773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37774fi
37775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37777if test `eval echo '${'$as_ac_var'}'` = yes; then
37778 cat >>confdefs.h <<_ACEOF
37779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37780_ACEOF
37781
37782fi
37783done
37784
37785
37786 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37787echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37788if test "${wx_cv_var_timezone+set}" = set; then
37789 echo $ECHO_N "(cached) $ECHO_C" >&6
37790else
37791
37792 cat >conftest.$ac_ext <<_ACEOF
37793/* confdefs.h. */
37794_ACEOF
37795cat confdefs.h >>conftest.$ac_ext
37796cat >>conftest.$ac_ext <<_ACEOF
37797/* end confdefs.h. */
37798
37799 #include <time.h>
37800
37801int
37802main ()
37803{
37804
37805 int tz;
37806 tz = timezone;
37807
37808 ;
37809 return 0;
37810}
37811_ACEOF
37812rm -f conftest.$ac_objext
37813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37814 (eval $ac_compile) 2>conftest.er1
a848cd7e 37815 ac_status=$?
ac1cb8d3
VS
37816 grep -v '^ *+' conftest.er1 >conftest.err
37817 rm -f conftest.er1
37818 cat conftest.err >&5
a848cd7e
SC
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); } &&
6ebeb4c7 37821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823 (eval $ac_try) 2>&5
37824 ac_status=$?
37825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826 (exit $ac_status); }; } &&
37827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37829 (eval $ac_try) 2>&5
37830 ac_status=$?
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); }; }; then
37833
37834 wx_cv_var_timezone=timezone
37835
37836else
37837 echo "$as_me: failed program was:" >&5
37838sed 's/^/| /' conftest.$ac_ext >&5
37839
37840
37841 cat >conftest.$ac_ext <<_ACEOF
37842/* confdefs.h. */
37843_ACEOF
37844cat confdefs.h >>conftest.$ac_ext
37845cat >>conftest.$ac_ext <<_ACEOF
37846/* end confdefs.h. */
37847
37848 #include <time.h>
37849
37850int
37851main ()
37852{
37853
37854 int tz;
37855 tz = _timezone;
37856
37857 ;
37858 return 0;
37859}
37860_ACEOF
37861rm -f conftest.$ac_objext
37862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37863 (eval $ac_compile) 2>conftest.er1
a848cd7e 37864 ac_status=$?
ac1cb8d3
VS
37865 grep -v '^ *+' conftest.er1 >conftest.err
37866 rm -f conftest.er1
37867 cat conftest.err >&5
a848cd7e
SC
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); } &&
6ebeb4c7 37870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37872 (eval $ac_try) 2>&5
37873 ac_status=$?
37874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37875 (exit $ac_status); }; } &&
37876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37878 (eval $ac_try) 2>&5
37879 ac_status=$?
37880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881 (exit $ac_status); }; }; then
37882
37883 wx_cv_var_timezone=_timezone
37884
37885else
37886 echo "$as_me: failed program was:" >&5
37887sed 's/^/| /' conftest.$ac_ext >&5
37888
37889
37890 cat >conftest.$ac_ext <<_ACEOF
37891/* confdefs.h. */
37892_ACEOF
37893cat confdefs.h >>conftest.$ac_ext
37894cat >>conftest.$ac_ext <<_ACEOF
37895/* end confdefs.h. */
37896
37897 #include <time.h>
37898
37899int
37900main ()
37901{
37902
37903 int tz;
37904 tz = __timezone;
37905
37906 ;
37907 return 0;
37908}
37909_ACEOF
37910rm -f conftest.$ac_objext
37911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37912 (eval $ac_compile) 2>conftest.er1
a848cd7e 37913 ac_status=$?
ac1cb8d3
VS
37914 grep -v '^ *+' conftest.er1 >conftest.err
37915 rm -f conftest.er1
37916 cat conftest.err >&5
a848cd7e
SC
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); } &&
6ebeb4c7 37919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
37922 ac_status=$?
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; } &&
37925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927 (eval $ac_try) 2>&5
37928 ac_status=$?
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931
37932 wx_cv_var_timezone=__timezone
37933
37934else
37935 echo "$as_me: failed program was:" >&5
37936sed 's/^/| /' conftest.$ac_ext >&5
37937
37938
37939 if test "$USE_DOS" = 0 ; then
37940 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37941echo "$as_me: WARNING: no timezone variable" >&2;}
37942 fi
37943
37944
37945fi
ac1cb8d3 37946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37947
37948
37949fi
ac1cb8d3 37950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37951
37952
37953fi
ac1cb8d3 37954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37955
37956
37957fi
37958echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37959echo "${ECHO_T}$wx_cv_var_timezone" >&6
37960
37961 if test "x$wx_cv_var_timezone" != x ; then
37962 cat >>confdefs.h <<_ACEOF
37963#define WX_TIMEZONE $wx_cv_var_timezone
37964_ACEOF
37965
37966 fi
37967
37968
37969for ac_func in localtime
37970do
37971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37972echo "$as_me:$LINENO: checking for $ac_func" >&5
37973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37974if eval "test \"\${$as_ac_var+set}\" = set"; then
37975 echo $ECHO_N "(cached) $ECHO_C" >&6
37976else
37977 cat >conftest.$ac_ext <<_ACEOF
37978/* confdefs.h. */
37979_ACEOF
37980cat confdefs.h >>conftest.$ac_ext
37981cat >>conftest.$ac_ext <<_ACEOF
37982/* end confdefs.h. */
ac1cb8d3
VS
37983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37985#define $ac_func innocuous_$ac_func
37986
a848cd7e
SC
37987/* System header to define __stub macros and hopefully few prototypes,
37988 which can conflict with char $ac_func (); below.
37989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37990 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37991
a848cd7e
SC
37992#ifdef __STDC__
37993# include <limits.h>
37994#else
37995# include <assert.h>
37996#endif
ac1cb8d3
VS
37997
37998#undef $ac_func
37999
a848cd7e
SC
38000/* Override any gcc2 internal prototype to avoid an error. */
38001#ifdef __cplusplus
38002extern "C"
38003{
38004#endif
38005/* We use char because int might match the return type of a gcc2
38006 builtin and then its argument prototype would still apply. */
38007char $ac_func ();
38008/* The GNU C library defines this for functions which it implements
38009 to always fail with ENOSYS. Some functions are actually named
38010 something starting with __ and the normal name is an alias. */
38011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38012choke me
38013#else
38014char (*f) () = $ac_func;
38015#endif
38016#ifdef __cplusplus
38017}
38018#endif
38019
38020int
38021main ()
38022{
38023return f != $ac_func;
38024 ;
38025 return 0;
38026}
38027_ACEOF
38028rm -f conftest.$ac_objext conftest$ac_exeext
38029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38030 (eval $ac_link) 2>conftest.er1
a848cd7e 38031 ac_status=$?
ac1cb8d3
VS
38032 grep -v '^ *+' conftest.er1 >conftest.err
38033 rm -f conftest.er1
38034 cat conftest.err >&5
a848cd7e
SC
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); } &&
6ebeb4c7 38037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039 (eval $ac_try) 2>&5
38040 ac_status=$?
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); }; } &&
38043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 (eval $ac_try) 2>&5
38046 ac_status=$?
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); }; }; then
38049 eval "$as_ac_var=yes"
38050else
38051 echo "$as_me: failed program was:" >&5
38052sed 's/^/| /' conftest.$ac_ext >&5
38053
38054eval "$as_ac_var=no"
38055fi
ac1cb8d3
VS
38056rm -f conftest.err conftest.$ac_objext \
38057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38058fi
38059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38061if test `eval echo '${'$as_ac_var'}'` = yes; then
38062 cat >>confdefs.h <<_ACEOF
38063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064_ACEOF
38065
38066fi
38067done
38068
38069
38070 if test "$ac_cv_func_localtime" = "yes"; then
38071 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38072echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38073if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38075else
38076
38077 cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h. */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h. */
38083
38084 #include <time.h>
38085
38086int
38087main ()
38088{
38089
38090 struct tm tm;
38091 tm.tm_gmtoff++;
38092
38093 ;
38094 return 0;
38095}
38096_ACEOF
38097rm -f conftest.$ac_objext
38098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38099 (eval $ac_compile) 2>conftest.er1
a848cd7e 38100 ac_status=$?
ac1cb8d3
VS
38101 grep -v '^ *+' conftest.er1 >conftest.err
38102 rm -f conftest.er1
38103 cat conftest.err >&5
a848cd7e
SC
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); } &&
6ebeb4c7 38106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38108 (eval $ac_try) 2>&5
38109 ac_status=$?
38110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111 (exit $ac_status); }; } &&
38112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38114 (eval $ac_try) 2>&5
38115 ac_status=$?
38116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38117 (exit $ac_status); }; }; then
38118
38119 wx_cv_struct_tm_has_gmtoff=yes
38120
38121else
38122 echo "$as_me: failed program was:" >&5
38123sed 's/^/| /' conftest.$ac_ext >&5
38124
38125wx_cv_struct_tm_has_gmtoff=no
38126
38127fi
ac1cb8d3 38128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38129
38130fi
38131echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38132echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38133 fi
38134
38135 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38136 cat >>confdefs.h <<\_ACEOF
38137#define WX_GMTOFF_IN_TM 1
38138_ACEOF
38139
38140 fi
38141
38142
38143
38144for ac_func in gettimeofday ftime
38145do
38146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38147echo "$as_me:$LINENO: checking for $ac_func" >&5
38148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38149if eval "test \"\${$as_ac_var+set}\" = set"; then
38150 echo $ECHO_N "(cached) $ECHO_C" >&6
38151else
38152 cat >conftest.$ac_ext <<_ACEOF
38153/* confdefs.h. */
38154_ACEOF
38155cat confdefs.h >>conftest.$ac_ext
38156cat >>conftest.$ac_ext <<_ACEOF
38157/* end confdefs.h. */
ac1cb8d3
VS
38158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38160#define $ac_func innocuous_$ac_func
38161
a848cd7e
SC
38162/* System header to define __stub macros and hopefully few prototypes,
38163 which can conflict with char $ac_func (); below.
38164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38165 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38166
a848cd7e
SC
38167#ifdef __STDC__
38168# include <limits.h>
38169#else
38170# include <assert.h>
38171#endif
ac1cb8d3
VS
38172
38173#undef $ac_func
38174
a848cd7e
SC
38175/* Override any gcc2 internal prototype to avoid an error. */
38176#ifdef __cplusplus
38177extern "C"
38178{
38179#endif
38180/* We use char because int might match the return type of a gcc2
38181 builtin and then its argument prototype would still apply. */
38182char $ac_func ();
38183/* The GNU C library defines this for functions which it implements
38184 to always fail with ENOSYS. Some functions are actually named
38185 something starting with __ and the normal name is an alias. */
38186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38187choke me
38188#else
38189char (*f) () = $ac_func;
38190#endif
38191#ifdef __cplusplus
38192}
38193#endif
38194
38195int
38196main ()
38197{
38198return f != $ac_func;
38199 ;
38200 return 0;
38201}
38202_ACEOF
38203rm -f conftest.$ac_objext conftest$ac_exeext
38204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38205 (eval $ac_link) 2>conftest.er1
a848cd7e 38206 ac_status=$?
ac1cb8d3
VS
38207 grep -v '^ *+' conftest.er1 >conftest.err
38208 rm -f conftest.er1
38209 cat conftest.err >&5
a848cd7e
SC
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } &&
6ebeb4c7 38212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214 (eval $ac_try) 2>&5
38215 ac_status=$?
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); }; } &&
38218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220 (eval $ac_try) 2>&5
38221 ac_status=$?
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); }; }; then
38224 eval "$as_ac_var=yes"
38225else
38226 echo "$as_me: failed program was:" >&5
38227sed 's/^/| /' conftest.$ac_ext >&5
38228
38229eval "$as_ac_var=no"
38230fi
ac1cb8d3
VS
38231rm -f conftest.err conftest.$ac_objext \
38232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38233fi
38234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38236if test `eval echo '${'$as_ac_var'}'` = yes; then
38237 cat >>confdefs.h <<_ACEOF
38238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38239_ACEOF
38240 break
38241fi
38242done
38243
38244
38245 if test "$ac_cv_func_gettimeofday" = "yes"; then
38246 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38247echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38248if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38249 echo $ECHO_N "(cached) $ECHO_C" >&6
38250else
38251
38252
38253
38254 ac_ext=cc
38255ac_cpp='$CXXCPP $CPPFLAGS'
38256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38259
38260
38261 cat >conftest.$ac_ext <<_ACEOF
38262/* confdefs.h. */
38263_ACEOF
38264cat confdefs.h >>conftest.$ac_ext
38265cat >>conftest.$ac_ext <<_ACEOF
38266/* end confdefs.h. */
38267
38268 #include <sys/time.h>
38269 #include <unistd.h>
38270
38271int
38272main ()
38273{
38274
38275 struct timeval tv;
38276 gettimeofday(&tv, NULL);
38277
38278 ;
38279 return 0;
38280}
38281_ACEOF
38282rm -f conftest.$ac_objext
38283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38284 (eval $ac_compile) 2>conftest.er1
a848cd7e 38285 ac_status=$?
ac1cb8d3
VS
38286 grep -v '^ *+' conftest.er1 >conftest.err
38287 rm -f conftest.er1
38288 cat conftest.err >&5
a848cd7e
SC
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); } &&
6ebeb4c7 38291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38294 ac_status=$?
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; } &&
38297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299 (eval $ac_try) 2>&5
38300 ac_status=$?
38301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); }; }; then
38303 wx_cv_func_gettimeofday_has_2_args=yes
38304else
38305 echo "$as_me: failed program was:" >&5
38306sed 's/^/| /' conftest.$ac_ext >&5
38307
38308cat >conftest.$ac_ext <<_ACEOF
38309/* confdefs.h. */
38310_ACEOF
38311cat confdefs.h >>conftest.$ac_ext
38312cat >>conftest.$ac_ext <<_ACEOF
38313/* end confdefs.h. */
38314
38315 #include <sys/time.h>
38316 #include <unistd.h>
38317
38318int
38319main ()
38320{
38321
38322 struct timeval tv;
38323 gettimeofday(&tv);
38324
38325 ;
38326 return 0;
38327}
38328_ACEOF
38329rm -f conftest.$ac_objext
38330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38331 (eval $ac_compile) 2>conftest.er1
a848cd7e 38332 ac_status=$?
ac1cb8d3
VS
38333 grep -v '^ *+' conftest.er1 >conftest.err
38334 rm -f conftest.er1
38335 cat conftest.err >&5
a848cd7e
SC
38336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); } &&
6ebeb4c7 38338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38340 (eval $ac_try) 2>&5
38341 ac_status=$?
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); }; } &&
38344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38346 (eval $ac_try) 2>&5
38347 ac_status=$?
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; }; then
38350 wx_cv_func_gettimeofday_has_2_args=no
38351else
38352 echo "$as_me: failed program was:" >&5
38353sed 's/^/| /' conftest.$ac_ext >&5
38354
38355
38356 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38357echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38358 wx_cv_func_gettimeofday_has_2_args=unknown
38359
38360
38361fi
ac1cb8d3 38362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38363
38364fi
ac1cb8d3 38365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38366 ac_ext=c
38367ac_cpp='$CPP $CPPFLAGS'
38368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38370ac_compiler_gnu=$ac_cv_c_compiler_gnu
38371
38372
38373fi
38374echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38375echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38376
38377 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38378 cat >>confdefs.h <<\_ACEOF
38379#define WX_GETTIMEOFDAY_NO_TZ 1
38380_ACEOF
38381
38382 fi
38383 fi
38384
38385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38386fi
38387
38388
38389if test "$wxUSE_SOCKETS" = "yes"; then
38390 if test "$wxUSE_MGL" = "1"; then
38391 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38392echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38393 wxUSE_SOCKETS="no"
38394 fi
38395fi
38396
38397if test "$wxUSE_SOCKETS" = "yes"; then
38398 if test "$TOOLKIT" != "MSW"; then
38399 echo "$as_me:$LINENO: checking for socket" >&5
38400echo $ECHO_N "checking for socket... $ECHO_C" >&6
38401if test "${ac_cv_func_socket+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403else
38404 cat >conftest.$ac_ext <<_ACEOF
38405/* confdefs.h. */
38406_ACEOF
38407cat confdefs.h >>conftest.$ac_ext
38408cat >>conftest.$ac_ext <<_ACEOF
38409/* end confdefs.h. */
ac1cb8d3
VS
38410/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38412#define socket innocuous_socket
38413
a848cd7e
SC
38414/* System header to define __stub macros and hopefully few prototypes,
38415 which can conflict with char socket (); below.
38416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38418
a848cd7e
SC
38419#ifdef __STDC__
38420# include <limits.h>
38421#else
38422# include <assert.h>
38423#endif
ac1cb8d3
VS
38424
38425#undef socket
38426
a848cd7e
SC
38427/* Override any gcc2 internal prototype to avoid an error. */
38428#ifdef __cplusplus
38429extern "C"
38430{
38431#endif
38432/* We use char because int might match the return type of a gcc2
38433 builtin and then its argument prototype would still apply. */
38434char socket ();
38435/* The GNU C library defines this for functions which it implements
38436 to always fail with ENOSYS. Some functions are actually named
38437 something starting with __ and the normal name is an alias. */
38438#if defined (__stub_socket) || defined (__stub___socket)
38439choke me
38440#else
38441char (*f) () = socket;
38442#endif
38443#ifdef __cplusplus
38444}
38445#endif
38446
38447int
38448main ()
38449{
38450return f != socket;
38451 ;
38452 return 0;
38453}
38454_ACEOF
38455rm -f conftest.$ac_objext conftest$ac_exeext
38456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38457 (eval $ac_link) 2>conftest.er1
a848cd7e 38458 ac_status=$?
ac1cb8d3
VS
38459 grep -v '^ *+' conftest.er1 >conftest.err
38460 rm -f conftest.er1
38461 cat conftest.err >&5
a848cd7e
SC
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } &&
6ebeb4c7 38464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38466 (eval $ac_try) 2>&5
38467 ac_status=$?
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); }; } &&
38470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472 (eval $ac_try) 2>&5
38473 ac_status=$?
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); }; }; then
38476 ac_cv_func_socket=yes
38477else
38478 echo "$as_me: failed program was:" >&5
38479sed 's/^/| /' conftest.$ac_ext >&5
38480
38481ac_cv_func_socket=no
38482fi
ac1cb8d3
VS
38483rm -f conftest.err conftest.$ac_objext \
38484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38485fi
38486echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38487echo "${ECHO_T}$ac_cv_func_socket" >&6
38488if test $ac_cv_func_socket = yes; then
38489 :
38490else
38491
38492 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38493echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38494if test "${ac_cv_lib_socket_socket+set}" = set; then
38495 echo $ECHO_N "(cached) $ECHO_C" >&6
38496else
38497 ac_check_lib_save_LIBS=$LIBS
38498LIBS="-lsocket $LIBS"
38499cat >conftest.$ac_ext <<_ACEOF
38500/* confdefs.h. */
38501_ACEOF
38502cat confdefs.h >>conftest.$ac_ext
38503cat >>conftest.$ac_ext <<_ACEOF
38504/* end confdefs.h. */
38505
38506/* Override any gcc2 internal prototype to avoid an error. */
38507#ifdef __cplusplus
38508extern "C"
38509#endif
38510/* We use char because int might match the return type of a gcc2
38511 builtin and then its argument prototype would still apply. */
38512char socket ();
38513int
38514main ()
38515{
38516socket ();
38517 ;
38518 return 0;
38519}
38520_ACEOF
38521rm -f conftest.$ac_objext conftest$ac_exeext
38522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38523 (eval $ac_link) 2>conftest.er1
a848cd7e 38524 ac_status=$?
ac1cb8d3
VS
38525 grep -v '^ *+' conftest.er1 >conftest.err
38526 rm -f conftest.er1
38527 cat conftest.err >&5
a848cd7e
SC
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } &&
6ebeb4c7 38530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38532 (eval $ac_try) 2>&5
38533 ac_status=$?
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); }; } &&
38536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38538 (eval $ac_try) 2>&5
38539 ac_status=$?
38540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541 (exit $ac_status); }; }; then
38542 ac_cv_lib_socket_socket=yes
38543else
38544 echo "$as_me: failed program was:" >&5
38545sed 's/^/| /' conftest.$ac_ext >&5
38546
38547ac_cv_lib_socket_socket=no
38548fi
ac1cb8d3
VS
38549rm -f conftest.err conftest.$ac_objext \
38550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38551LIBS=$ac_check_lib_save_LIBS
38552fi
38553echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38554echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38555if test $ac_cv_lib_socket_socket = yes; then
38556 if test "$INET_LINK" != " -lsocket"; then
38557 INET_LINK="$INET_LINK -lsocket"
38558 fi
38559else
38560
38561 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38562echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38563 wxUSE_SOCKETS=no
38564
38565
38566fi
38567
38568
38569
38570fi
38571
38572 fi
38573fi
38574
38575if test "$wxUSE_SOCKETS" = "yes" ; then
38576 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38577 ac_ext=cc
38578ac_cpp='$CXXCPP $CPPFLAGS'
38579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38582
38583 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38584echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38585if test "${wx_cv_type_getsockname3+set}" = set; then
38586 echo $ECHO_N "(cached) $ECHO_C" >&6
38587else
38588
38589 cat >conftest.$ac_ext <<_ACEOF
38590/* confdefs.h. */
38591_ACEOF
38592cat confdefs.h >>conftest.$ac_ext
38593cat >>conftest.$ac_ext <<_ACEOF
38594/* end confdefs.h. */
38595
38596 #include <sys/types.h>
38597 #include <sys/socket.h>
38598
38599int
38600main ()
38601{
38602
38603 socklen_t len;
38604 getsockname(0, 0, &len);
38605
38606 ;
38607 return 0;
38608}
38609_ACEOF
38610rm -f conftest.$ac_objext
38611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38612 (eval $ac_compile) 2>conftest.er1
a848cd7e 38613 ac_status=$?
ac1cb8d3
VS
38614 grep -v '^ *+' conftest.er1 >conftest.err
38615 rm -f conftest.er1
38616 cat conftest.err >&5
a848cd7e
SC
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); } &&
6ebeb4c7 38619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38621 (eval $ac_try) 2>&5
38622 ac_status=$?
38623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38624 (exit $ac_status); }; } &&
38625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; }; then
38631 wx_cv_type_getsockname3=socklen_t
38632else
38633 echo "$as_me: failed program was:" >&5
38634sed 's/^/| /' conftest.$ac_ext >&5
38635
38636
38637 CFLAGS_OLD="$CFLAGS"
38638 if test "$GCC" = yes ; then
38639 CFLAGS="$CFLAGS -Werror"
38640 fi
38641
38642 cat >conftest.$ac_ext <<_ACEOF
38643/* confdefs.h. */
38644_ACEOF
38645cat confdefs.h >>conftest.$ac_ext
38646cat >>conftest.$ac_ext <<_ACEOF
38647/* end confdefs.h. */
38648
38649 #include <sys/types.h>
38650 #include <sys/socket.h>
38651
38652int
38653main ()
38654{
38655
38656 size_t len;
38657 getsockname(0, 0, &len);
38658
38659 ;
38660 return 0;
38661}
38662_ACEOF
38663rm -f conftest.$ac_objext
38664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38665 (eval $ac_compile) 2>conftest.er1
a848cd7e 38666 ac_status=$?
ac1cb8d3
VS
38667 grep -v '^ *+' conftest.er1 >conftest.err
38668 rm -f conftest.er1
38669 cat conftest.err >&5
a848cd7e
SC
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); } &&
6ebeb4c7 38672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38675 ac_status=$?
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; } &&
38678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680 (eval $ac_try) 2>&5
38681 ac_status=$?
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); }; }; then
38684 wx_cv_type_getsockname3=size_t
38685else
38686 echo "$as_me: failed program was:" >&5
38687sed 's/^/| /' conftest.$ac_ext >&5
38688
38689cat >conftest.$ac_ext <<_ACEOF
38690/* confdefs.h. */
38691_ACEOF
38692cat confdefs.h >>conftest.$ac_ext
38693cat >>conftest.$ac_ext <<_ACEOF
38694/* end confdefs.h. */
38695
38696 #include <sys/types.h>
38697 #include <sys/socket.h>
38698
38699int
38700main ()
38701{
38702
38703 int len;
38704 getsockname(0, 0, &len);
38705
38706 ;
38707 return 0;
38708}
38709_ACEOF
38710rm -f conftest.$ac_objext
38711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38712 (eval $ac_compile) 2>conftest.er1
a848cd7e 38713 ac_status=$?
ac1cb8d3
VS
38714 grep -v '^ *+' conftest.er1 >conftest.err
38715 rm -f conftest.er1
38716 cat conftest.err >&5
a848cd7e
SC
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); } &&
6ebeb4c7 38719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38721 (eval $ac_try) 2>&5
38722 ac_status=$?
38723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724 (exit $ac_status); }; } &&
38725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38727 (eval $ac_try) 2>&5
38728 ac_status=$?
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); }; }; then
38731 wx_cv_type_getsockname3=int
38732else
38733 echo "$as_me: failed program was:" >&5
38734sed 's/^/| /' conftest.$ac_ext >&5
38735
38736wx_cv_type_getsockname3=unknown
38737
38738fi
ac1cb8d3 38739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38740
38741fi
ac1cb8d3 38742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38743
38744 CFLAGS="$CFLAGS_OLD"
38745
38746
38747fi
ac1cb8d3 38748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38749
38750fi
38751echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38752echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38753
38754 if test "$wx_cv_type_getsockname3" = "unknown"; then
38755 wxUSE_SOCKETS=no
38756 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38757echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38758 else
38759 cat >>confdefs.h <<_ACEOF
38760#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38761_ACEOF
38762
38763 fi
38764 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38765echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38766if test "${wx_cv_type_getsockopt5+set}" = set; then
38767 echo $ECHO_N "(cached) $ECHO_C" >&6
38768else
38769
38770 cat >conftest.$ac_ext <<_ACEOF
38771/* confdefs.h. */
38772_ACEOF
38773cat confdefs.h >>conftest.$ac_ext
38774cat >>conftest.$ac_ext <<_ACEOF
38775/* end confdefs.h. */
38776
38777 #include <sys/types.h>
38778 #include <sys/socket.h>
38779
38780int
38781main ()
38782{
38783
38784 socklen_t len;
38785 getsockopt(0, 0, 0, 0, &len);
38786
38787 ;
38788 return 0;
38789}
38790_ACEOF
38791rm -f conftest.$ac_objext
38792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38793 (eval $ac_compile) 2>conftest.er1
38794 ac_status=$?
38795 grep -v '^ *+' conftest.er1 >conftest.err
38796 rm -f conftest.er1
38797 cat conftest.err >&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); } &&
6ebeb4c7 38800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38803 ac_status=$?
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; } &&
38806 { ac_try='test -s conftest.$ac_objext'
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38809 ac_status=$?
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; }; then
38812 wx_cv_type_getsockopt5=socklen_t
38813else
38814 echo "$as_me: failed program was:" >&5
38815sed 's/^/| /' conftest.$ac_ext >&5
38816
38817
38818 CFLAGS_OLD="$CFLAGS"
38819 if test "$GCC" = yes ; then
38820 CFLAGS="$CFLAGS -Werror"
38821 fi
38822
38823 cat >conftest.$ac_ext <<_ACEOF
38824/* confdefs.h. */
38825_ACEOF
38826cat confdefs.h >>conftest.$ac_ext
38827cat >>conftest.$ac_ext <<_ACEOF
38828/* end confdefs.h. */
38829
38830 #include <sys/types.h>
38831 #include <sys/socket.h>
38832
38833int
38834main ()
38835{
38836
38837 size_t len;
38838 getsockopt(0, 0, 0, 0, &len);
38839
38840 ;
38841 return 0;
38842}
38843_ACEOF
38844rm -f conftest.$ac_objext
38845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38846 (eval $ac_compile) 2>conftest.er1
38847 ac_status=$?
38848 grep -v '^ *+' conftest.er1 >conftest.err
38849 rm -f conftest.er1
38850 cat conftest.err >&5
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); } &&
6ebeb4c7 38853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38856 ac_status=$?
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; } &&
38859 { ac_try='test -s conftest.$ac_objext'
38860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38861 (eval $ac_try) 2>&5
38862 ac_status=$?
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); }; }; then
38865 wx_cv_type_getsockopt5=size_t
38866else
38867 echo "$as_me: failed program was:" >&5
38868sed 's/^/| /' conftest.$ac_ext >&5
38869
38870cat >conftest.$ac_ext <<_ACEOF
38871/* confdefs.h. */
38872_ACEOF
38873cat confdefs.h >>conftest.$ac_ext
38874cat >>conftest.$ac_ext <<_ACEOF
38875/* end confdefs.h. */
38876
38877 #include <sys/types.h>
38878 #include <sys/socket.h>
38879
38880int
38881main ()
38882{
38883
38884 int len;
38885 getsockopt(0, 0, 0, 0, &len);
38886
38887 ;
38888 return 0;
38889}
38890_ACEOF
38891rm -f conftest.$ac_objext
38892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38893 (eval $ac_compile) 2>conftest.er1
38894 ac_status=$?
38895 grep -v '^ *+' conftest.er1 >conftest.err
38896 rm -f conftest.er1
38897 cat conftest.err >&5
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); } &&
6ebeb4c7 38900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38902 (eval $ac_try) 2>&5
38903 ac_status=$?
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); }; } &&
38906 { ac_try='test -s conftest.$ac_objext'
38907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38908 (eval $ac_try) 2>&5
38909 ac_status=$?
38910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38911 (exit $ac_status); }; }; then
38912 wx_cv_type_getsockopt5=int
38913else
38914 echo "$as_me: failed program was:" >&5
38915sed 's/^/| /' conftest.$ac_ext >&5
38916
38917wx_cv_type_getsockopt5=unknown
38918
38919fi
38920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38921
38922fi
38923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38924
38925 CFLAGS="$CFLAGS_OLD"
38926
38927
38928fi
38929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38930
38931fi
38932echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38933echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38934
38935 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38936 wxUSE_SOCKETS=no
38937 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38938echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38939 else
38940 cat >>confdefs.h <<_ACEOF
38941#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38942_ACEOF
38943
38944 fi
4d4ff94c
VZ
38945 ac_ext=c
38946ac_cpp='$CPP $CPPFLAGS'
38947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38949ac_compiler_gnu=$ac_cv_c_compiler_gnu
38950
a848cd7e
SC
38951 fi
38952fi
38953
38954if test "$wxUSE_SOCKETS" = "yes" ; then
38955 cat >>confdefs.h <<\_ACEOF
38956#define wxUSE_SOCKETS 1
38957_ACEOF
38958
38959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38960fi
38961
38962if test "$wxUSE_PROTOCOL" = "yes"; then
38963 if test "$wxUSE_SOCKETS" != "yes"; then
38964 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38965echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38966 wxUSE_PROTOCOL=no
38967 fi
38968fi
38969
38970if test "$wxUSE_PROTOCOL" = "yes"; then
38971 cat >>confdefs.h <<\_ACEOF
38972#define wxUSE_PROTOCOL 1
38973_ACEOF
38974
38975
38976 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38977 cat >>confdefs.h <<\_ACEOF
38978#define wxUSE_PROTOCOL_HTTP 1
38979_ACEOF
38980
38981 fi
38982 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38983 cat >>confdefs.h <<\_ACEOF
38984#define wxUSE_PROTOCOL_FTP 1
38985_ACEOF
38986
38987 fi
38988 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38989 cat >>confdefs.h <<\_ACEOF
38990#define wxUSE_PROTOCOL_FILE 1
38991_ACEOF
38992
38993 fi
38994else
38995 if test "$wxUSE_FS_INET" = "yes"; then
38996 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38997echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38998 wxUSE_FS_INET="no"
38999 fi
39000fi
39001
39002if test "$wxUSE_URL" = "yes"; then
39003 if test "$wxUSE_PROTOCOL" != "yes"; then
39004 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39005echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39006 wxUSE_URL=no
39007 fi
39008 if test "$wxUSE_URL" = "yes"; then
39009 cat >>confdefs.h <<\_ACEOF
39010#define wxUSE_URL 1
39011_ACEOF
39012
39013 fi
39014fi
39015
39016if test "$wxUSE_FS_INET" = "yes"; then
39017 cat >>confdefs.h <<\_ACEOF
39018#define wxUSE_FS_INET 1
39019_ACEOF
39020
39021fi
39022
39023
ee45c548
MW
39024if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39025 wxUSE_JOYSTICK=no
39026
39027 if test "$TOOLKIT" = "MSW"; then
39028 wxUSE_JOYSTICK=yes
39029
39030 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39031 if test "$USE_DARWIN" = 1; then
39032 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39033echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39034 ac_ext=cc
39035ac_cpp='$CXXCPP $CPPFLAGS'
39036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39039
39040 cat >conftest.$ac_ext <<_ACEOF
39041/* confdefs.h. */
39042_ACEOF
39043cat confdefs.h >>conftest.$ac_ext
39044cat >>conftest.$ac_ext <<_ACEOF
39045/* end confdefs.h. */
39046 #include <IOKit/hid/IOHIDLib.h>
39047int
39048main ()
39049{
39050 IOHIDQueueInterface *qi = NULL;
39051 IOHIDCallbackFunction cb = NULL;
39052 qi->setEventCallout(NULL, cb, NULL, NULL);
39053 ;
39054 return 0;
39055}
39056_ACEOF
39057rm -f conftest.$ac_objext
39058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39059 (eval $ac_compile) 2>conftest.er1
39060 ac_status=$?
39061 grep -v '^ *+' conftest.er1 >conftest.err
39062 rm -f conftest.er1
39063 cat conftest.err >&5
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); } &&
6ebeb4c7 39066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068 (eval $ac_try) 2>&5
39069 ac_status=$?
39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071 (exit $ac_status); }; } &&
39072 { ac_try='test -s conftest.$ac_objext'
39073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39074 (eval $ac_try) 2>&5
39075 ac_status=$?
39076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077 (exit $ac_status); }; }; then
39078 wxUSE_JOYSTICK=yes
a848cd7e 39079
ee45c548
MW
39080else
39081 echo "$as_me: failed program was:" >&5
39082sed 's/^/| /' conftest.$ac_ext >&5
39083
39084fi
39085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39086 ac_ext=c
39087ac_cpp='$CPP $CPPFLAGS'
39088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39090ac_compiler_gnu=$ac_cv_c_compiler_gnu
39091
39092 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39093echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39094 fi
39095
39096 else
a848cd7e
SC
39097
39098for ac_header in linux/joystick.h
39099do
39100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39101if eval "test \"\${$as_ac_Header+set}\" = set"; then
39102 echo "$as_me:$LINENO: checking for $ac_header" >&5
39103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39104if eval "test \"\${$as_ac_Header+set}\" = set"; then
39105 echo $ECHO_N "(cached) $ECHO_C" >&6
39106fi
39107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39109else
39110 # Is the header compilable?
39111echo "$as_me:$LINENO: checking $ac_header usability" >&5
39112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39113cat >conftest.$ac_ext <<_ACEOF
39114/* confdefs.h. */
39115_ACEOF
39116cat confdefs.h >>conftest.$ac_ext
39117cat >>conftest.$ac_ext <<_ACEOF
39118/* end confdefs.h. */
39119$ac_includes_default
39120#include <$ac_header>
39121_ACEOF
39122rm -f conftest.$ac_objext
39123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39124 (eval $ac_compile) 2>conftest.er1
a848cd7e 39125 ac_status=$?
ac1cb8d3
VS
39126 grep -v '^ *+' conftest.er1 >conftest.err
39127 rm -f conftest.er1
39128 cat conftest.err >&5
a848cd7e
SC
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); } &&
6ebeb4c7 39131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133 (eval $ac_try) 2>&5
39134 ac_status=$?
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); }; } &&
39137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; }; then
39143 ac_header_compiler=yes
39144else
39145 echo "$as_me: failed program was:" >&5
39146sed 's/^/| /' conftest.$ac_ext >&5
39147
39148ac_header_compiler=no
39149fi
ac1cb8d3 39150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39152echo "${ECHO_T}$ac_header_compiler" >&6
39153
39154# Is the header present?
39155echo "$as_me:$LINENO: checking $ac_header presence" >&5
39156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39157cat >conftest.$ac_ext <<_ACEOF
39158/* confdefs.h. */
39159_ACEOF
39160cat confdefs.h >>conftest.$ac_ext
39161cat >>conftest.$ac_ext <<_ACEOF
39162/* end confdefs.h. */
39163#include <$ac_header>
39164_ACEOF
39165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39167 ac_status=$?
39168 grep -v '^ *+' conftest.er1 >conftest.err
39169 rm -f conftest.er1
39170 cat conftest.err >&5
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } >/dev/null; then
39173 if test -s conftest.err; then
39174 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39176 else
39177 ac_cpp_err=
39178 fi
39179else
39180 ac_cpp_err=yes
39181fi
39182if test -z "$ac_cpp_err"; then
39183 ac_header_preproc=yes
39184else
39185 echo "$as_me: failed program was:" >&5
39186sed 's/^/| /' conftest.$ac_ext >&5
39187
39188 ac_header_preproc=no
39189fi
39190rm -f conftest.err conftest.$ac_ext
39191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39192echo "${ECHO_T}$ac_header_preproc" >&6
39193
39194# So? What about this header?
ac1cb8d3
VS
39195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39196 yes:no: )
a848cd7e
SC
39197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39201 ac_header_preproc=yes
a848cd7e 39202 ;;
ac1cb8d3 39203 no:yes:* )
a848cd7e
SC
39204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39216 (
39217 cat <<\_ASBOX
ac1cb8d3
VS
39218## ----------------------------------------- ##
39219## Report this to wx-dev@lists.wxwidgets.org ##
39220## ----------------------------------------- ##
a848cd7e
SC
39221_ASBOX
39222 ) |
39223 sed "s/^/$as_me: WARNING: /" >&2
39224 ;;
39225esac
39226echo "$as_me:$LINENO: checking for $ac_header" >&5
39227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39228if eval "test \"\${$as_ac_Header+set}\" = set"; then
39229 echo $ECHO_N "(cached) $ECHO_C" >&6
39230else
ac1cb8d3 39231 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39232fi
39233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39235
39236fi
39237if test `eval echo '${'$as_ac_Header'}'` = yes; then
39238 cat >>confdefs.h <<_ACEOF
39239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39240_ACEOF
ee45c548 39241 wxUSE_JOYSTICK=yes
a848cd7e
SC
39242fi
39243
39244done
39245
ee45c548 39246 fi
4cb1d3da 39247
ee45c548
MW
39248 if test "$wxUSE_JOYSTICK" = "yes"; then
39249 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39250#define wxUSE_JOYSTICK 1
39251_ACEOF
39252
ee45c548
MW
39253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39254 else
39255 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39256echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39257 fi
39258fi
39259
39260
39261
39262if test "$wxUSE_FONTMAP" = "yes" ; then
39263 cat >>confdefs.h <<\_ACEOF
39264#define wxUSE_FONTMAP 1
39265_ACEOF
39266
39267fi
39268
39269if test "$wxUSE_UNICODE" = "yes" ; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_UNICODE 1
39272_ACEOF
39273
39274
39275 if test "$USE_WIN32" != 1; then
39276 wxUSE_UNICODE_MSLU=no
39277 fi
39278
39279 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39280 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39281echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39282if test "${ac_cv_lib_unicows_main+set}" = set; then
39283 echo $ECHO_N "(cached) $ECHO_C" >&6
39284else
39285 ac_check_lib_save_LIBS=$LIBS
39286LIBS="-lunicows $LIBS"
39287cat >conftest.$ac_ext <<_ACEOF
39288/* confdefs.h. */
39289_ACEOF
39290cat confdefs.h >>conftest.$ac_ext
39291cat >>conftest.$ac_ext <<_ACEOF
39292/* end confdefs.h. */
39293
39294
39295int
39296main ()
39297{
39298main ();
39299 ;
39300 return 0;
39301}
39302_ACEOF
39303rm -f conftest.$ac_objext conftest$ac_exeext
39304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39305 (eval $ac_link) 2>conftest.er1
a848cd7e 39306 ac_status=$?
ac1cb8d3
VS
39307 grep -v '^ *+' conftest.er1 >conftest.err
39308 rm -f conftest.er1
39309 cat conftest.err >&5
a848cd7e
SC
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); } &&
6ebeb4c7 39312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39314 (eval $ac_try) 2>&5
39315 ac_status=$?
39316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317 (exit $ac_status); }; } &&
39318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39320 (eval $ac_try) 2>&5
39321 ac_status=$?
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); }; }; then
39324 ac_cv_lib_unicows_main=yes
39325else
39326 echo "$as_me: failed program was:" >&5
39327sed 's/^/| /' conftest.$ac_ext >&5
39328
39329ac_cv_lib_unicows_main=no
39330fi
ac1cb8d3
VS
39331rm -f conftest.err conftest.$ac_objext \
39332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39333LIBS=$ac_check_lib_save_LIBS
39334fi
39335echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39336echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39337if test $ac_cv_lib_unicows_main = yes; then
39338
39339 cat >>confdefs.h <<\_ACEOF
39340#define wxUSE_UNICODE_MSLU 1
39341_ACEOF
39342
39343
39344else
39345
39346 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39347 Applications will only run on Windows NT/2000/XP!" >&5
39348echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39349 Applications will only run on Windows NT/2000/XP!" >&2;}
39350 wxUSE_UNICODE_MSLU=no
39351
39352fi
39353
39354 fi
39355fi
39356
39357if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define wxUSE_EXPERIMENTAL_PRINTF 1
39360_ACEOF
39361
39362fi
39363
39364
39365if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39366 cat >>confdefs.h <<\_ACEOF
39367#define wxUSE_POSTSCRIPT 1
39368_ACEOF
39369
39370fi
39371
39372cat >>confdefs.h <<\_ACEOF
39373#define wxUSE_AFM_FOR_POSTSCRIPT 1
39374_ACEOF
39375
39376
39377cat >>confdefs.h <<\_ACEOF
39378#define wxUSE_NORMALIZED_PS_FONTS 1
39379_ACEOF
39380
39381
39382
39383if test "$wxUSE_CONSTRAINTS" = "yes"; then
39384 cat >>confdefs.h <<\_ACEOF
39385#define wxUSE_CONSTRAINTS 1
39386_ACEOF
39387
39388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39389fi
39390
8a7b1113
VZ
39391if test "$wxUSE_MDI" = "yes"; then
39392 cat >>confdefs.h <<\_ACEOF
39393#define wxUSE_MDI 1
39394_ACEOF
39395
39396
39397 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39398 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39399#define wxUSE_MDI_ARCHITECTURE 1
39400_ACEOF
39401
8a7b1113
VZ
39402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39403 fi
a848cd7e
SC
39404fi
39405
39406if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39407 cat >>confdefs.h <<\_ACEOF
39408#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39409_ACEOF
39410
39411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39412 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39414 fi
39415fi
39416
39417if test "$wxUSE_HELP" = "yes"; then
39418 cat >>confdefs.h <<\_ACEOF
39419#define wxUSE_HELP 1
39420_ACEOF
39421
39422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39423
39424 if test "$wxUSE_MSW" = 1; then
39425 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39426 cat >>confdefs.h <<\_ACEOF
39427#define wxUSE_MS_HTML_HELP 1
39428_ACEOF
39429
39430 fi
39431 fi
39432
39433 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39434 if test "$wxUSE_HTML" = "yes"; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define wxUSE_WXHTML_HELP 1
39437_ACEOF
39438
39439 else
39440 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39441echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39442 wxUSE_WXHTML_HELP=no
39443 fi
39444 fi
39445fi
39446
39447if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39448 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39449 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39450echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39451 else
39452 cat >>confdefs.h <<\_ACEOF
39453#define wxUSE_PRINTING_ARCHITECTURE 1
39454_ACEOF
39455
39456 fi
39457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39458fi
39459
39460if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39461 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39462echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39463 { (exit 1); exit 1; }; }
39464fi
39465
39466
39467if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39468 -o "$wxUSE_CLIPBOARD" = "yes" \
39469 -o "$wxUSE_OLE" = "yes" \
39470 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39471
39472for ac_header in ole2.h
39473do
39474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39475if eval "test \"\${$as_ac_Header+set}\" = set"; then
39476 echo "$as_me:$LINENO: checking for $ac_header" >&5
39477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39478if eval "test \"\${$as_ac_Header+set}\" = set"; then
39479 echo $ECHO_N "(cached) $ECHO_C" >&6
39480fi
39481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39483else
39484 # Is the header compilable?
39485echo "$as_me:$LINENO: checking $ac_header usability" >&5
39486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39487cat >conftest.$ac_ext <<_ACEOF
39488/* confdefs.h. */
39489_ACEOF
39490cat confdefs.h >>conftest.$ac_ext
39491cat >>conftest.$ac_ext <<_ACEOF
39492/* end confdefs.h. */
39493$ac_includes_default
39494#include <$ac_header>
39495_ACEOF
39496rm -f conftest.$ac_objext
39497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39498 (eval $ac_compile) 2>conftest.er1
a848cd7e 39499 ac_status=$?
ac1cb8d3
VS
39500 grep -v '^ *+' conftest.er1 >conftest.err
39501 rm -f conftest.er1
39502 cat conftest.err >&5
a848cd7e
SC
39503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504 (exit $ac_status); } &&
6ebeb4c7 39505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507 (eval $ac_try) 2>&5
39508 ac_status=$?
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); }; } &&
39511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513 (eval $ac_try) 2>&5
39514 ac_status=$?
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); }; }; then
39517 ac_header_compiler=yes
39518else
39519 echo "$as_me: failed program was:" >&5
39520sed 's/^/| /' conftest.$ac_ext >&5
39521
39522ac_header_compiler=no
39523fi
ac1cb8d3 39524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39526echo "${ECHO_T}$ac_header_compiler" >&6
39527
39528# Is the header present?
39529echo "$as_me:$LINENO: checking $ac_header presence" >&5
39530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39531cat >conftest.$ac_ext <<_ACEOF
39532/* confdefs.h. */
39533_ACEOF
39534cat confdefs.h >>conftest.$ac_ext
39535cat >>conftest.$ac_ext <<_ACEOF
39536/* end confdefs.h. */
39537#include <$ac_header>
39538_ACEOF
39539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39541 ac_status=$?
39542 grep -v '^ *+' conftest.er1 >conftest.err
39543 rm -f conftest.er1
39544 cat conftest.err >&5
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } >/dev/null; then
39547 if test -s conftest.err; then
39548 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39550 else
39551 ac_cpp_err=
39552 fi
39553else
39554 ac_cpp_err=yes
39555fi
39556if test -z "$ac_cpp_err"; then
39557 ac_header_preproc=yes
39558else
39559 echo "$as_me: failed program was:" >&5
39560sed 's/^/| /' conftest.$ac_ext >&5
39561
39562 ac_header_preproc=no
39563fi
39564rm -f conftest.err conftest.$ac_ext
39565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39566echo "${ECHO_T}$ac_header_preproc" >&6
39567
39568# So? What about this header?
ac1cb8d3
VS
39569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39570 yes:no: )
a848cd7e
SC
39571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39575 ac_header_preproc=yes
a848cd7e 39576 ;;
ac1cb8d3 39577 no:yes:* )
a848cd7e
SC
39578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39590 (
39591 cat <<\_ASBOX
ac1cb8d3
VS
39592## ----------------------------------------- ##
39593## Report this to wx-dev@lists.wxwidgets.org ##
39594## ----------------------------------------- ##
a848cd7e
SC
39595_ASBOX
39596 ) |
39597 sed "s/^/$as_me: WARNING: /" >&2
39598 ;;
39599esac
39600echo "$as_me:$LINENO: checking for $ac_header" >&5
39601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39602if eval "test \"\${$as_ac_Header+set}\" = set"; then
39603 echo $ECHO_N "(cached) $ECHO_C" >&6
39604else
ac1cb8d3 39605 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39606fi
39607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39609
39610fi
39611if test `eval echo '${'$as_ac_Header'}'` = yes; then
39612 cat >>confdefs.h <<_ACEOF
39613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39614_ACEOF
39615
39616fi
39617
39618done
39619
39620
39621 if test "$ac_cv_header_ole2_h" = "yes" ; then
39622 if test "$GCC" = yes ; then
39623
39624
39625 ac_ext=cc
39626ac_cpp='$CXXCPP $CPPFLAGS'
39627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39630
39631
39632 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39633echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39634 cat >conftest.$ac_ext <<_ACEOF
39635/* confdefs.h. */
39636_ACEOF
39637cat confdefs.h >>conftest.$ac_ext
39638cat >>conftest.$ac_ext <<_ACEOF
39639/* end confdefs.h. */
39640#include <windows.h>
39641 #include <ole2.h>
39642int
39643main ()
39644{
39645
39646 ;
39647 return 0;
39648}
39649_ACEOF
39650rm -f conftest.$ac_objext
39651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39652 (eval $ac_compile) 2>conftest.er1
a848cd7e 39653 ac_status=$?
ac1cb8d3
VS
39654 grep -v '^ *+' conftest.er1 >conftest.err
39655 rm -f conftest.er1
39656 cat conftest.err >&5
a848cd7e
SC
39657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658 (exit $ac_status); } &&
6ebeb4c7 39659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39661 (eval $ac_try) 2>&5
39662 ac_status=$?
39663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664 (exit $ac_status); }; } &&
39665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39668 ac_status=$?
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; }; then
39671 echo "$as_me:$LINENO: result: no" >&5
39672echo "${ECHO_T}no" >&6
39673else
39674 echo "$as_me: failed program was:" >&5
39675sed 's/^/| /' conftest.$ac_ext >&5
39676
39677echo "$as_me:$LINENO: result: yes" >&5
39678echo "${ECHO_T}yes" >&6
39679 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39680fi
ac1cb8d3 39681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39682 ac_ext=c
39683ac_cpp='$CPP $CPPFLAGS'
39684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39686ac_compiler_gnu=$ac_cv_c_compiler_gnu
39687
a848cd7e
SC
39688 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39689 if test "$wxUSE_OLE" = "yes" ; then
39690 cat >>confdefs.h <<\_ACEOF
39691#define wxUSE_OLE 1
39692_ACEOF
39693
0b78747f 39694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39695 fi
39696 fi
39697
39698 if test "$wxUSE_DATAOBJ" = "yes" ; then
39699 cat >>confdefs.h <<\_ACEOF
39700#define wxUSE_DATAOBJ 1
39701_ACEOF
39702
39703 fi
39704 else
39705 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39706echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39707
39708 wxUSE_CLIPBOARD=no
39709 wxUSE_DRAG_AND_DROP=no
39710 wxUSE_DATAOBJ=no
39711 wxUSE_OLE=no
39712 fi
39713
39714 if test "$wxUSE_METAFILE" = "yes"; then
39715 cat >>confdefs.h <<\_ACEOF
39716#define wxUSE_METAFILE 1
39717_ACEOF
39718
39719
39720 cat >>confdefs.h <<\_ACEOF
39721#define wxUSE_ENH_METAFILE 1
39722_ACEOF
39723
39724 fi
39725fi
39726
39727if test "$wxUSE_IPC" = "yes"; then
0b78747f 39728 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39729 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39730echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39731 wxUSE_IPC=no
a848cd7e
SC
39732 fi
39733
0b78747f
MW
39734 if test "$wxUSE_IPC" = "yes"; then
39735 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39736#define wxUSE_IPC 1
39737_ACEOF
39738
0b78747f
MW
39739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39740 fi
a848cd7e
SC
39741fi
39742
eb730a0c 39743if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39744 if test "$wxUSE_MGL" = 1; then
39745 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39746echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39747 wxUSE_DATAOBJ=no
39748 else
39749 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39750#define wxUSE_DATAOBJ 1
39751_ACEOF
39752
2113bc77 39753 fi
eb730a0c
JS
39754else
39755 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39756echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39757 wxUSE_CLIPBOARD=no
39758 wxUSE_DRAG_AND_DROP=no
39759fi
39760
a848cd7e
SC
39761if test "$wxUSE_CLIPBOARD" = "yes"; then
39762 if test "$wxUSE_MGL" = 1; then
39763 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39764echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39765 wxUSE_CLIPBOARD=no
39766 fi
39767
39768 if test "$wxUSE_CLIPBOARD" = "yes"; then
39769 cat >>confdefs.h <<\_ACEOF
39770#define wxUSE_CLIPBOARD 1
39771_ACEOF
39772
a848cd7e
SC
39773 fi
39774fi
39775
39776if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39777 if test "$wxUSE_GTK" = 1; then
39778 if test "$WXGTK12" != 1; then
39779 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39780echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39781 wxUSE_DRAG_AND_DROP=no
39782 fi
39783 fi
39784
39785 if test "$wxUSE_MOTIF" = 1; then
39786 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39787echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39788 wxUSE_DRAG_AND_DROP=no
39789 fi
39790
39791 if test "$wxUSE_X11" = 1; then
39792 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39793echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39794 wxUSE_DRAG_AND_DROP=no
39795 fi
39796
39797 if test "$wxUSE_MGL" = 1; then
39798 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39799echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39800 wxUSE_DRAG_AND_DROP=no
39801 fi
39802
39803 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39804 cat >>confdefs.h <<\_ACEOF
39805#define wxUSE_DRAG_AND_DROP 1
39806_ACEOF
39807
39808 fi
39809
39810fi
39811
39812if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39814fi
39815
39816if test "$wxUSE_SPLINES" = "yes" ; then
39817 cat >>confdefs.h <<\_ACEOF
39818#define wxUSE_SPLINES 1
39819_ACEOF
39820
39821fi
39822
fbe2ca43
SN
39823if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39824 cat >>confdefs.h <<\_ACEOF
39825#define wxUSE_MOUSEWHEEL 1
39826_ACEOF
39827
39828fi
39829
a848cd7e
SC
39830
39831USES_CONTROLS=0
39832if test "$wxUSE_CONTROLS" = "yes"; then
39833 USES_CONTROLS=1
39834fi
39835
39836if test "$wxUSE_ACCEL" = "yes"; then
39837 cat >>confdefs.h <<\_ACEOF
39838#define wxUSE_ACCEL 1
39839_ACEOF
39840
39841 USES_CONTROLS=1
39842fi
39843
39844if test "$wxUSE_BUTTON" = "yes"; then
39845 cat >>confdefs.h <<\_ACEOF
39846#define wxUSE_BUTTON 1
39847_ACEOF
39848
39849 USES_CONTROLS=1
39850fi
39851
39852if test "$wxUSE_BMPBUTTON" = "yes"; then
39853 cat >>confdefs.h <<\_ACEOF
39854#define wxUSE_BMPBUTTON 1
39855_ACEOF
39856
39857 USES_CONTROLS=1
39858fi
39859
39860if test "$wxUSE_CALCTRL" = "yes"; then
39861 cat >>confdefs.h <<\_ACEOF
39862#define wxUSE_CALENDARCTRL 1
39863_ACEOF
39864
39865 USES_CONTROLS=1
39866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39867fi
39868
39869if test "$wxUSE_CARET" = "yes"; then
39870 cat >>confdefs.h <<\_ACEOF
39871#define wxUSE_CARET 1
39872_ACEOF
39873
39874 USES_CONTROLS=1
39875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39876fi
39877
39878if test "$wxUSE_COMBOBOX" = "yes"; then
39879 cat >>confdefs.h <<\_ACEOF
39880#define wxUSE_COMBOBOX 1
39881_ACEOF
39882
39883 USES_CONTROLS=1
39884fi
39885
39886if test "$wxUSE_CHOICE" = "yes"; then
39887 cat >>confdefs.h <<\_ACEOF
39888#define wxUSE_CHOICE 1
39889_ACEOF
39890
39891 USES_CONTROLS=1
39892fi
39893
92bbdbcd
WS
39894if test "$wxUSE_CHOICEBOOK" = "yes"; then
39895 cat >>confdefs.h <<\_ACEOF
39896#define wxUSE_CHOICEBOOK 1
39897_ACEOF
39898
39899 USES_CONTROLS=1
39900fi
39901
a848cd7e
SC
39902if test "$wxUSE_CHECKBOX" = "yes"; then
39903 cat >>confdefs.h <<\_ACEOF
39904#define wxUSE_CHECKBOX 1
39905_ACEOF
39906
39907 USES_CONTROLS=1
39908fi
39909
39910if test "$wxUSE_CHECKLST" = "yes"; then
39911 cat >>confdefs.h <<\_ACEOF
39912#define wxUSE_CHECKLISTBOX 1
39913_ACEOF
39914
39915 USES_CONTROLS=1
39916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39917fi
39918
da98e9be
VZ
39919if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39920 cat >>confdefs.h <<\_ACEOF
39921#define wxUSE_DATEPICKCTRL 1
39922_ACEOF
39923
39924 USES_CONTROLS=1
39925fi
39926
a848cd7e
SC
39927if test "$wxUSE_DISPLAY" = "yes"; then
39928 cat >>confdefs.h <<\_ACEOF
39929#define wxUSE_DISPLAY 1
39930_ACEOF
39931
0b78747f 39932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39933fi
39934
39935if test "$wxUSE_GAUGE" = "yes"; then
39936 cat >>confdefs.h <<\_ACEOF
39937#define wxUSE_GAUGE 1
39938_ACEOF
39939
39940 USES_CONTROLS=1
39941fi
39942
39943if test "$wxUSE_GRID" = "yes"; then
39944 cat >>confdefs.h <<\_ACEOF
39945#define wxUSE_GRID 1
39946_ACEOF
39947
39948 USES_CONTROLS=1
39949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39950fi
39951
39952if test "$wxUSE_IMAGLIST" = "yes"; then
39953 cat >>confdefs.h <<\_ACEOF
39954#define wxUSE_IMAGLIST 1
39955_ACEOF
39956
39957fi
39958
39959if test "$wxUSE_LISTBOOK" = "yes"; then
39960 cat >>confdefs.h <<\_ACEOF
39961#define wxUSE_LISTBOOK 1
39962_ACEOF
39963
39964 USES_CONTROLS=1
39965fi
39966
39967if test "$wxUSE_LISTBOX" = "yes"; then
39968 cat >>confdefs.h <<\_ACEOF
39969#define wxUSE_LISTBOX 1
39970_ACEOF
39971
39972 USES_CONTROLS=1
0b78747f 39973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39974fi
39975
39976if test "$wxUSE_LISTCTRL" = "yes"; then
39977 if test "$wxUSE_IMAGLIST" = "yes"; then
39978 cat >>confdefs.h <<\_ACEOF
39979#define wxUSE_LISTCTRL 1
39980_ACEOF
39981
39982 USES_CONTROLS=1
39983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39984 else
39985 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39986echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39987 fi
39988fi
39989
39990if test "$wxUSE_NOTEBOOK" = "yes"; then
39991 cat >>confdefs.h <<\_ACEOF
39992#define wxUSE_NOTEBOOK 1
39993_ACEOF
39994
39995 USES_CONTROLS=1
39996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39997fi
39998
39999
40000if test "$wxUSE_RADIOBOX" = "yes"; then
40001 cat >>confdefs.h <<\_ACEOF
40002#define wxUSE_RADIOBOX 1
40003_ACEOF
40004
40005 USES_CONTROLS=1
40006fi
40007
40008if test "$wxUSE_RADIOBTN" = "yes"; then
40009 cat >>confdefs.h <<\_ACEOF
40010#define wxUSE_RADIOBTN 1
40011_ACEOF
40012
40013 USES_CONTROLS=1
40014fi
40015
40016if test "$wxUSE_SASH" = "yes"; then
40017 cat >>confdefs.h <<\_ACEOF
40018#define wxUSE_SASH 1
40019_ACEOF
40020
40021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40022fi
40023
40024if test "$wxUSE_SCROLLBAR" = "yes"; then
40025 cat >>confdefs.h <<\_ACEOF
40026#define wxUSE_SCROLLBAR 1
40027_ACEOF
40028
40029 USES_CONTROLS=1
40030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40031fi
40032
40033if test "$wxUSE_SLIDER" = "yes"; then
40034 cat >>confdefs.h <<\_ACEOF
40035#define wxUSE_SLIDER 1
40036_ACEOF
40037
40038 USES_CONTROLS=1
40039fi
40040
40041if test "$wxUSE_SPINBTN" = "yes"; then
40042 cat >>confdefs.h <<\_ACEOF
40043#define wxUSE_SPINBTN 1
40044_ACEOF
40045
40046 USES_CONTROLS=1
40047fi
40048
40049if test "$wxUSE_SPINCTRL" = "yes"; then
40050 cat >>confdefs.h <<\_ACEOF
40051#define wxUSE_SPINCTRL 1
40052_ACEOF
40053
40054 USES_CONTROLS=1
40055fi
40056
40057if test "$wxUSE_SPLITTER" = "yes"; then
40058 cat >>confdefs.h <<\_ACEOF
40059#define wxUSE_SPLITTER 1
40060_ACEOF
40061
40062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40063fi
40064
40065if test "$wxUSE_STATBMP" = "yes"; then
40066 cat >>confdefs.h <<\_ACEOF
40067#define wxUSE_STATBMP 1
40068_ACEOF
40069
40070 USES_CONTROLS=1
40071fi
40072
40073if test "$wxUSE_STATBOX" = "yes"; then
40074 cat >>confdefs.h <<\_ACEOF
40075#define wxUSE_STATBOX 1
40076_ACEOF
40077
40078 USES_CONTROLS=1
40079fi
40080
40081if test "$wxUSE_STATTEXT" = "yes"; then
40082 cat >>confdefs.h <<\_ACEOF
40083#define wxUSE_STATTEXT 1
40084_ACEOF
40085
40086 USES_CONTROLS=1
40087fi
40088
40089if test "$wxUSE_STATLINE" = "yes"; then
40090 cat >>confdefs.h <<\_ACEOF
40091#define wxUSE_STATLINE 1
40092_ACEOF
40093
40094 USES_CONTROLS=1
40095fi
40096
40097if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40098 cat >>confdefs.h <<\_ACEOF
40099#define wxUSE_NATIVE_STATUSBAR 1
40100_ACEOF
40101
a848cd7e
SC
40102 cat >>confdefs.h <<\_ACEOF
40103#define wxUSE_STATUSBAR 1
40104_ACEOF
40105
40106 USES_CONTROLS=1
40107
40108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40109fi
40110
40111if test "$wxUSE_TABDIALOG" = "yes"; then
40112 cat >>confdefs.h <<\_ACEOF
40113#define wxUSE_TAB_DIALOG 1
40114_ACEOF
40115
a848cd7e
SC
40116fi
40117
40118if test "$wxUSE_TEXTCTRL" = "yes"; then
40119 cat >>confdefs.h <<\_ACEOF
40120#define wxUSE_TEXTCTRL 1
40121_ACEOF
40122
40123 USES_CONTROLS=1
40124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40125fi
40126
40127if test "$wxUSE_TOGGLEBTN" = "yes"; then
40128 if test "$wxUSE_COCOA" = 1 ; then
40129 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40130echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40131 wxUSE_TOGGLEBTN=no
40132 fi
40133 if test "$wxUSE_UNIVERSAL" = "yes"; then
40134 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40135echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40136 wxUSE_TOGGLEBTN=no
40137 fi
40138
40139 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40140 cat >>confdefs.h <<\_ACEOF
40141#define wxUSE_TOGGLEBTN 1
40142_ACEOF
40143
40144 USES_CONTROLS=1
40145 fi
40146fi
40147
40148if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40149 cat >>confdefs.h <<\_ACEOF
40150#define wxUSE_TOOLBAR_SIMPLE 1
40151_ACEOF
40152
40153 wxUSE_TOOLBAR="yes"
40154 USES_CONTROLS=1
40155fi
40156
40157if test "$wxUSE_TOOLBAR" = "yes"; then
40158 cat >>confdefs.h <<\_ACEOF
40159#define wxUSE_TOOLBAR 1
40160_ACEOF
40161
40162 USES_CONTROLS=1
40163
40164 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40165 wxUSE_TOOLBAR_NATIVE="yes"
40166 fi
40167
40168 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40169 cat >>confdefs.h <<\_ACEOF
40170#define wxUSE_TOOLBAR_NATIVE 1
40171_ACEOF
40172
40173 USES_CONTROLS=1
40174 fi
40175
40176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40177fi
40178
40179if test "$wxUSE_TOOLTIPS" = "yes"; then
40180 if test "$wxUSE_MOTIF" = 1; then
40181 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40182echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40183 else
40184 if test "$wxUSE_UNIVERSAL" = "yes"; then
40185 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40186echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40187 else
40188 cat >>confdefs.h <<\_ACEOF
40189#define wxUSE_TOOLTIPS 1
40190_ACEOF
40191
40192 fi
40193 fi
40194fi
40195
40196if test "$wxUSE_TREECTRL" = "yes"; then
40197 if test "$wxUSE_IMAGLIST" = "yes"; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define wxUSE_TREECTRL 1
40200_ACEOF
40201
40202 USES_CONTROLS=1
40203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40204 else
40205 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40206echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40207 fi
40208fi
40209
40210if test "$wxUSE_POPUPWIN" = "yes"; then
40211 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40212 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40213echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40214 else
40215 if test "$wxUSE_PM" = 1; then
40216 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40217echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40218 else
40219 cat >>confdefs.h <<\_ACEOF
40220#define wxUSE_POPUPWIN 1
40221_ACEOF
40222
0b78747f 40223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40224
40225 USES_CONTROLS=1
40226 fi
40227 fi
40228fi
40229
0dcd06dd 40230if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40231 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40232 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40233echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40234 else
40235 cat >>confdefs.h <<\_ACEOF
40236#define wxUSE_DIALUP_MANAGER 1
40237_ACEOF
40238
40239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40240 fi
40241fi
40242
a848cd7e
SC
40243if test "$wxUSE_TIPWINDOW" = "yes"; then
40244 if test "$wxUSE_PM" = 1; then
40245 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40246echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40247 else
40248 cat >>confdefs.h <<\_ACEOF
40249#define wxUSE_TIPWINDOW 1
40250_ACEOF
40251
40252 fi
40253fi
40254
40255if test "$USES_CONTROLS" = 1; then
40256 cat >>confdefs.h <<\_ACEOF
40257#define wxUSE_CONTROLS 1
40258_ACEOF
40259
40260fi
40261
40262
40263if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40264 cat >>confdefs.h <<\_ACEOF
40265#define wxUSE_ACCESSIBILITY 1
40266_ACEOF
40267
40268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40269fi
40270
40271if test "$wxUSE_DRAGIMAGE" = "yes"; then
40272 cat >>confdefs.h <<\_ACEOF
40273#define wxUSE_DRAGIMAGE 1
40274_ACEOF
40275
40276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40277fi
40278
40279if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40280 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40281 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40282echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40283 else
40284 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40285#define wxUSE_EXCEPTIONS 1
40286_ACEOF
40287
07bea8f0
VS
40288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40289 fi
a848cd7e
SC
40290fi
40291
40292USE_HTML=0
40293if test "$wxUSE_HTML" = "yes"; then
40294 cat >>confdefs.h <<\_ACEOF
40295#define wxUSE_HTML 1
40296_ACEOF
40297
40298 USE_HTML=1
40299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40300 if test "$wxUSE_MAC" = 1; then
40301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40302 fi
a848cd7e 40303fi
646b6ec1 40304if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40305 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40306 old_CPPFLAGS="$CPPFLAGS"
40307 CPPFLAGS="$CPPFLAGS -x objective-c++"
40308 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40309echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40310if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40311 echo $ECHO_N "(cached) $ECHO_C" >&6
40312else
40313 cat >conftest.$ac_ext <<_ACEOF
40314/* confdefs.h. */
40315_ACEOF
40316cat confdefs.h >>conftest.$ac_ext
40317cat >>conftest.$ac_ext <<_ACEOF
40318/* end confdefs.h. */
40319#include <Carbon/Carbon.h>
40320
40321#include <WebKit/HIWebView.h>
40322_ACEOF
40323rm -f conftest.$ac_objext
40324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40325 (eval $ac_compile) 2>conftest.er1
40326 ac_status=$?
40327 grep -v '^ *+' conftest.er1 >conftest.err
40328 rm -f conftest.er1
40329 cat conftest.err >&5
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); } &&
6ebeb4c7 40332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334 (eval $ac_try) 2>&5
40335 ac_status=$?
40336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337 (exit $ac_status); }; } &&
40338 { ac_try='test -s conftest.$ac_objext'
40339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340 (eval $ac_try) 2>&5
40341 ac_status=$?
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); }; }; then
40344 ac_cv_header_WebKit_HIWebView_h=yes
40345else
40346 echo "$as_me: failed program was:" >&5
40347sed 's/^/| /' conftest.$ac_ext >&5
40348
40349ac_cv_header_WebKit_HIWebView_h=no
40350fi
40351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40352fi
40353echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40354echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40355if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40356
40357 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40358#define wxUSE_WEBKIT 1
40359_ACEOF
40360
07bea8f0
VS
40361 WEBKIT_LINK="-framework WebKit"
40362
40363else
40364
40365 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40366echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40367 wxUSE_WEBKIT=no
40368
646b6ec1
VS
40369fi
40370
07bea8f0
VS
40371
40372 CPPFLAGS="$old_CPPFLAGS"
40373 elif test "$wxUSE_COCOA" = 1; then
40374 cat >>confdefs.h <<\_ACEOF
40375#define wxUSE_WEBKIT 1
40376_ACEOF
40377
40378 else
40379 wxUSE_WEBKIT=no
40380 fi
40381fi
40382
9a8f0513
VS
40383USE_XRC=0
40384if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40385 if test "$wxUSE_XML" != "yes"; then
40386 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40387echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40388 wxUSE_XRC=no
40389 else
40390 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40391#define wxUSE_XRC 1
40392_ACEOF
40393
d2ebf0b7
VS
40394 USE_XRC=1
40395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40396 fi
9a8f0513 40397fi
07bea8f0 40398
a848cd7e
SC
40399if test "$wxUSE_MENUS" = "yes"; then
40400 cat >>confdefs.h <<\_ACEOF
40401#define wxUSE_MENUS 1
40402_ACEOF
40403
40404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40405fi
40406
40407if test "$wxUSE_METAFILE" = "yes"; then
40408 cat >>confdefs.h <<\_ACEOF
40409#define wxUSE_METAFILE 1
40410_ACEOF
40411
40412fi
40413
40414if test "$wxUSE_MIMETYPE" = "yes"; then
40415 cat >>confdefs.h <<\_ACEOF
40416#define wxUSE_MIMETYPE 1
40417_ACEOF
40418
40419fi
40420
40421if test "$wxUSE_MINIFRAME" = "yes"; then
40422 cat >>confdefs.h <<\_ACEOF
40423#define wxUSE_MINIFRAME 1
40424_ACEOF
40425
40426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40427fi
40428
40429if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40430 cat >>confdefs.h <<\_ACEOF
40431#define wxUSE_SYSTEM_OPTIONS 1
40432_ACEOF
40433
40434 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40435 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40437 fi
40438fi
40439
40440
40441if test "$wxUSE_VALIDATORS" = "yes"; then
40442 cat >>confdefs.h <<\_ACEOF
40443#define wxUSE_VALIDATORS 1
40444_ACEOF
40445
40446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40447fi
40448
40449if test "$wxUSE_PALETTE" = "yes" ; then
40450 cat >>confdefs.h <<\_ACEOF
40451#define wxUSE_PALETTE 1
40452_ACEOF
40453
40454fi
40455
40456if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40457 LIBS=" -lunicows $LIBS"
40458fi
40459
40460
40461if test "$wxUSE_IMAGE" = "yes" ; then
40462 cat >>confdefs.h <<\_ACEOF
40463#define wxUSE_IMAGE 1
40464_ACEOF
40465
40466
40467 if test "$wxUSE_GIF" = "yes" ; then
40468 cat >>confdefs.h <<\_ACEOF
40469#define wxUSE_GIF 1
40470_ACEOF
40471
40472 fi
40473
40474 if test "$wxUSE_PCX" = "yes" ; then
40475 cat >>confdefs.h <<\_ACEOF
40476#define wxUSE_PCX 1
40477_ACEOF
40478
40479 fi
40480
40481 if test "$wxUSE_IFF" = "yes" ; then
40482 cat >>confdefs.h <<\_ACEOF
40483#define wxUSE_IFF 1
40484_ACEOF
40485
40486 fi
40487
40488 if test "$wxUSE_PNM" = "yes" ; then
40489 cat >>confdefs.h <<\_ACEOF
40490#define wxUSE_PNM 1
40491_ACEOF
40492
40493 fi
40494
40495 if test "$wxUSE_XPM" = "yes" ; then
40496 cat >>confdefs.h <<\_ACEOF
40497#define wxUSE_XPM 1
40498_ACEOF
40499
40500 fi
40501
40502 if test "$wxUSE_ICO_CUR" = "yes" ; then
40503 cat >>confdefs.h <<\_ACEOF
40504#define wxUSE_ICO_CUR 1
40505_ACEOF
40506
40507 fi
40508fi
40509
40510
40511if test "$wxUSE_CHOICEDLG" = "yes"; then
40512 cat >>confdefs.h <<\_ACEOF
40513#define wxUSE_CHOICEDLG 1
40514_ACEOF
40515
40516fi
40517
40518if test "$wxUSE_COLOURDLG" = "yes"; then
40519 cat >>confdefs.h <<\_ACEOF
40520#define wxUSE_COLOURDLG 1
40521_ACEOF
40522
40523fi
40524
40525if test "$wxUSE_FILEDLG" = "yes"; then
40526 cat >>confdefs.h <<\_ACEOF
40527#define wxUSE_FILEDLG 1
40528_ACEOF
40529
40530fi
40531
40532if test "$wxUSE_FINDREPLDLG" = "yes"; then
40533 cat >>confdefs.h <<\_ACEOF
40534#define wxUSE_FINDREPLDLG 1
40535_ACEOF
40536
40537fi
40538
40539if test "$wxUSE_FONTDLG" = "yes"; then
40540 cat >>confdefs.h <<\_ACEOF
40541#define wxUSE_FONTDLG 1
40542_ACEOF
40543
40544fi
40545
40546if test "$wxUSE_DIRDLG" = "yes"; then
40547 if test "$wxUSE_TREECTRL" != "yes"; then
40548 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40549echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40550 else
40551 cat >>confdefs.h <<\_ACEOF
40552#define wxUSE_DIRDLG 1
40553_ACEOF
40554
40555 fi
40556fi
40557
40558if test "$wxUSE_MSGDLG" = "yes"; then
40559 cat >>confdefs.h <<\_ACEOF
40560#define wxUSE_MSGDLG 1
40561_ACEOF
40562
40563fi
40564
40565if test "$wxUSE_NUMBERDLG" = "yes"; then
40566 cat >>confdefs.h <<\_ACEOF
40567#define wxUSE_NUMBERDLG 1
40568_ACEOF
40569
40570fi
40571
40572if test "$wxUSE_PROGRESSDLG" = "yes"; then
40573 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40574 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40575echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40576 else
40577 cat >>confdefs.h <<\_ACEOF
40578#define wxUSE_PROGRESSDLG 1
40579_ACEOF
40580
40581 fi
40582fi
40583
40584if test "$wxUSE_SPLASH" = "yes"; then
40585 cat >>confdefs.h <<\_ACEOF
40586#define wxUSE_SPLASH 1
40587_ACEOF
40588
2057db16 40589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40590fi
40591
40592if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40593 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40594 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40595echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40596 else
40597 cat >>confdefs.h <<\_ACEOF
40598#define wxUSE_STARTUP_TIPS 1
40599_ACEOF
40600
40601 fi
40602fi
40603
40604if test "$wxUSE_TEXTDLG" = "yes"; then
40605 cat >>confdefs.h <<\_ACEOF
40606#define wxUSE_TEXTDLG 1
40607_ACEOF
40608
40609fi
40610
40611if test "$wxUSE_WIZARDDLG" = "yes"; then
40612 cat >>confdefs.h <<\_ACEOF
40613#define wxUSE_WIZARDDLG 1
40614_ACEOF
40615
40616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40617fi
40618
40619
ce756cb0 40620if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40621 if test "$wxUSE_GTK" = 1; then
40622 wxUSE_GSTREAMER="yes"
40623
ce756cb0 40624
dae87f93 40625 succeeded=no
ce756cb0 40626
dae87f93
RN
40627 if test -z "$PKG_CONFIG"; then
40628 # Extract the first word of "pkg-config", so it can be a program name with args.
40629set dummy pkg-config; ac_word=$2
40630echo "$as_me:$LINENO: checking for $ac_word" >&5
40631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40632if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40633 echo $ECHO_N "(cached) $ECHO_C" >&6
40634else
40635 case $PKG_CONFIG in
40636 [\\/]* | ?:[\\/]*)
40637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40638 ;;
40639 *)
40640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40641for as_dir in $PATH
40642do
40643 IFS=$as_save_IFS
40644 test -z "$as_dir" && as_dir=.
40645 for ac_exec_ext in '' $ac_executable_extensions; do
40646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40649 break 2
40650 fi
40651done
40652done
40653
40654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40655 ;;
40656esac
40657fi
40658PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40659
40660if test -n "$PKG_CONFIG"; then
40661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40662echo "${ECHO_T}$PKG_CONFIG" >&6
40663else
40664 echo "$as_me:$LINENO: result: no" >&5
40665echo "${ECHO_T}no" >&6
40666fi
40667
40668 fi
40669
40670 if test "$PKG_CONFIG" = "no" ; then
40671 echo "*** The pkg-config script could not be found. Make sure it is"
40672 echo "*** in your path, or set the PKG_CONFIG environment variable"
40673 echo "*** to the full path to pkg-config."
40674 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40675 else
40676 PKG_CONFIG_MIN_VERSION=0.9.0
40677 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40678 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40679echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40680
40681 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40682 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40683echo "${ECHO_T}yes" >&6
dae87f93 40684 succeeded=yes
ce756cb0 40685
dae87f93
RN
40686 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40687echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40688 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40689 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40690echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40691
40692 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40693echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40694 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40695 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40696echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40697 else
40698 GSTREAMER_CFLAGS=""
40699 GSTREAMER_LIBS=""
40700 ## If we have a custom action on failure, don't print errors, but
40701 ## do set a variable so people can do so.
40702 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40703
dae87f93
RN
40704 fi
40705
40706
40707
40708 else
40709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40711 fi
40712 fi
40713
40714 if test $succeeded = yes; then
40715
40716 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40717 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40718
ce756cb0 40719 else
dae87f93
RN
40720
40721 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40722echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40723 wxUSE_GSTREAMER="no"
40724
40725 fi
40726
40727
40728
40729
40730
40731 if test "x$GST_INSPECT" == "x"; then
40732 # Extract the first word of "gst-inspect", so it can be a program name with args.
40733set dummy gst-inspect; ac_word=$2
40734echo "$as_me:$LINENO: checking for $ac_word" >&5
40735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40736if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40737 echo $ECHO_N "(cached) $ECHO_C" >&6
40738else
40739 if test -n "$GST_INSPECT"; then
40740 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40741else
40742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40743for as_dir in $PATH
40744do
40745 IFS=$as_save_IFS
40746 test -z "$as_dir" && as_dir=.
40747 for ac_exec_ext in '' $ac_executable_extensions; do
40748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40749 ac_cv_prog_GST_INSPECT="gst-inspect"
40750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40751 break 2
ce756cb0 40752 fi
dae87f93
RN
40753done
40754done
40755
40756fi
40757fi
40758GST_INSPECT=$ac_cv_prog_GST_INSPECT
40759if test -n "$GST_INSPECT"; then
40760 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40761echo "${ECHO_T}$GST_INSPECT" >&6
40762else
40763 echo "$as_me:$LINENO: result: no" >&5
40764echo "${ECHO_T}no" >&6
40765fi
40766
40767 fi
40768
40769 if test "x$GST_INSPECT" != "x"; then
40770 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40771echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40772 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40773 echo "$as_me:$LINENO: result: found." >&5
40774echo "${ECHO_T}found." >&6
ce756cb0 40775
ce756cb0 40776 else
dae87f93
RN
40777 echo "$as_me:$LINENO: result: not found." >&5
40778echo "${ECHO_T}not found." >&6
40779
40780 wxUSE_GSTREAMER="no"
40781 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40782echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40783
40784 fi
40785 fi
40786
40787
40788 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40789echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40790if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40791 echo $ECHO_N "(cached) $ECHO_C" >&6
40792else
40793 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40794/* confdefs.h. */
40795_ACEOF
40796cat confdefs.h >>conftest.$ac_ext
40797cat >>conftest.$ac_ext <<_ACEOF
40798/* end confdefs.h. */
dae87f93 40799#include <gst/gst.h>
ce756cb0 40800
dae87f93 40801#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40802_ACEOF
40803rm -f conftest.$ac_objext
40804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40805 (eval $ac_compile) 2>conftest.er1
40806 ac_status=$?
40807 grep -v '^ *+' conftest.er1 >conftest.err
40808 rm -f conftest.er1
40809 cat conftest.err >&5
40810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811 (exit $ac_status); } &&
6ebeb4c7 40812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40814 (eval $ac_try) 2>&5
40815 ac_status=$?
40816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817 (exit $ac_status); }; } &&
40818 { ac_try='test -s conftest.$ac_objext'
40819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 (eval $ac_try) 2>&5
40821 ac_status=$?
40822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 (exit $ac_status); }; }; then
dae87f93 40824 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40825else
40826 echo "$as_me: failed program was:" >&5
40827sed 's/^/| /' conftest.$ac_ext >&5
40828
dae87f93 40829ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40830fi
40831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40832fi
40833echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40834echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40835if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40836 :
40837else
ce756cb0 40838
dae87f93
RN
40839 wxUSE_GSTREAMER="no"
40840 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40841echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40842
dae87f93 40843fi
ce756cb0 40844
dae87f93
RN
40845
40846
40847 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40848echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40849
40850ac_find_libraries=
40851for ac_dir in $SEARCH_LIB /usr/lib;
40852 do
3eca31dc 40853 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
40854 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40855 ac_find_libraries=$ac_dir
40856 break 2
40857 fi
40858 done
40859 done
40860
ce756cb0 40861
dae87f93
RN
40862 if test "$ac_find_libraries" = "" ; then
40863 echo "$as_me:$LINENO: result: no" >&5
40864echo "${ECHO_T}no" >&6
40865 wxUSE_GSTREAMER="no"
40866 else
40867 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40868echo "${ECHO_T}yes" >&6
dae87f93 40869 fi
ce756cb0 40870
dae87f93
RN
40871 if test "$wxUSE_GSTREAMER" = "yes"; then
40872 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40873#define wxUSE_GSTREAMER 1
40874_ACEOF
40875
dae87f93
RN
40876 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40877echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40878 fi
40879 fi
40880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40881 cat >>confdefs.h <<\_ACEOF
40882#define wxUSE_MEDIACTRL 1
40883_ACEOF
40884
40885fi
40886
40887
a848cd7e
SC
40888if test "$cross_compiling" = "yes"; then
40889 OSINFO="\"$host\""
40890else
40891 OSINFO=`uname -s -r -m`
40892 OSINFO="\"$OSINFO\""
40893fi
40894
40895cat >>confdefs.h <<_ACEOF
40896#define WXWIN_OS_DESCRIPTION $OSINFO
40897_ACEOF
40898
40899
40900
40901if test "x$prefix" != "xNONE"; then
40902 wxPREFIX=$prefix
40903else
40904 wxPREFIX=$ac_default_prefix
40905fi
40906
40907cat >>confdefs.h <<_ACEOF
40908#define wxINSTALL_PREFIX "$wxPREFIX"
40909_ACEOF
40910
40911
a848cd7e
SC
40912
40913
40914CORE_BASE_LIBS="net base"
40915CORE_GUI_LIBS="adv core"
40916
40917if test "$wxUSE_XML" = "yes" ; then
40918 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40919fi
40920if test "$wxUSE_ODBC" != "no" ; then
40921 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40922 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40923fi
40924if test "$wxUSE_HTML" = "yes" ; then
40925 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40926fi
61639efb
VZ
40927if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40928 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40929fi
9a8f0513
VS
40930if test "$wxUSE_XRC" = "yes" ; then
40931 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40932fi
a848cd7e
SC
40933
40934if test "$wxUSE_GUI" != "yes"; then
40935 CORE_GUI_LIBS=""
40936fi
40937
40938
40939
40940
40941
40942
40943
40944
40945if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40946 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40947 if test "$USE_DARWIN" = 1; then
40948 LDFLAGS="$LDFLAGS -framework QuickTime"
40949 else
40950 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40951 fi
07bea8f0 40952 fi
5dcf30a0 40953 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40954 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40955 else
40956 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40957 fi
a848cd7e
SC
40958fi
40959if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40960 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40961 if test "$wxUSE_MEDIACTRL" = "yes"; then
40962 LDFLAGS="$LDFLAGS -framework QuickTime"
40963 fi
a848cd7e 40964fi
19b27e78
MW
40965if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
40966 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
40967fi
a848cd7e
SC
40968
40969
40970LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40971
40972have_cos=0
40973have_floor=0
40974
40975for ac_func in cos
40976do
40977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40978echo "$as_me:$LINENO: checking for $ac_func" >&5
40979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40980if eval "test \"\${$as_ac_var+set}\" = set"; then
40981 echo $ECHO_N "(cached) $ECHO_C" >&6
40982else
40983 cat >conftest.$ac_ext <<_ACEOF
40984/* confdefs.h. */
40985_ACEOF
40986cat confdefs.h >>conftest.$ac_ext
40987cat >>conftest.$ac_ext <<_ACEOF
40988/* end confdefs.h. */
ac1cb8d3
VS
40989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40991#define $ac_func innocuous_$ac_func
40992
a848cd7e
SC
40993/* System header to define __stub macros and hopefully few prototypes,
40994 which can conflict with char $ac_func (); below.
40995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40997
a848cd7e
SC
40998#ifdef __STDC__
40999# include <limits.h>
41000#else
41001# include <assert.h>
41002#endif
ac1cb8d3
VS
41003
41004#undef $ac_func
41005
a848cd7e
SC
41006/* Override any gcc2 internal prototype to avoid an error. */
41007#ifdef __cplusplus
41008extern "C"
41009{
41010#endif
41011/* We use char because int might match the return type of a gcc2
41012 builtin and then its argument prototype would still apply. */
41013char $ac_func ();
41014/* The GNU C library defines this for functions which it implements
41015 to always fail with ENOSYS. Some functions are actually named
41016 something starting with __ and the normal name is an alias. */
41017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41018choke me
41019#else
41020char (*f) () = $ac_func;
41021#endif
41022#ifdef __cplusplus
41023}
41024#endif
41025
41026int
41027main ()
41028{
41029return f != $ac_func;
41030 ;
41031 return 0;
41032}
41033_ACEOF
41034rm -f conftest.$ac_objext conftest$ac_exeext
41035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41036 (eval $ac_link) 2>conftest.er1
a848cd7e 41037 ac_status=$?
ac1cb8d3
VS
41038 grep -v '^ *+' conftest.er1 >conftest.err
41039 rm -f conftest.er1
41040 cat conftest.err >&5
a848cd7e
SC
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); } &&
6ebeb4c7 41043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045 (eval $ac_try) 2>&5
41046 ac_status=$?
41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048 (exit $ac_status); }; } &&
41049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41051 (eval $ac_try) 2>&5
41052 ac_status=$?
41053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41054 (exit $ac_status); }; }; then
41055 eval "$as_ac_var=yes"
41056else
41057 echo "$as_me: failed program was:" >&5
41058sed 's/^/| /' conftest.$ac_ext >&5
41059
41060eval "$as_ac_var=no"
41061fi
ac1cb8d3
VS
41062rm -f conftest.err conftest.$ac_objext \
41063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41064fi
41065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41067if test `eval echo '${'$as_ac_var'}'` = yes; then
41068 cat >>confdefs.h <<_ACEOF
41069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41070_ACEOF
41071 have_cos=1
41072fi
41073done
41074
41075
41076for ac_func in floor
41077do
41078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41079echo "$as_me:$LINENO: checking for $ac_func" >&5
41080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41081if eval "test \"\${$as_ac_var+set}\" = set"; then
41082 echo $ECHO_N "(cached) $ECHO_C" >&6
41083else
41084 cat >conftest.$ac_ext <<_ACEOF
41085/* confdefs.h. */
41086_ACEOF
41087cat confdefs.h >>conftest.$ac_ext
41088cat >>conftest.$ac_ext <<_ACEOF
41089/* end confdefs.h. */
ac1cb8d3
VS
41090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41092#define $ac_func innocuous_$ac_func
41093
a848cd7e
SC
41094/* System header to define __stub macros and hopefully few prototypes,
41095 which can conflict with char $ac_func (); below.
41096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41097 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41098
a848cd7e
SC
41099#ifdef __STDC__
41100# include <limits.h>
41101#else
41102# include <assert.h>
41103#endif
ac1cb8d3
VS
41104
41105#undef $ac_func
41106
a848cd7e
SC
41107/* Override any gcc2 internal prototype to avoid an error. */
41108#ifdef __cplusplus
41109extern "C"
41110{
41111#endif
41112/* We use char because int might match the return type of a gcc2
41113 builtin and then its argument prototype would still apply. */
41114char $ac_func ();
41115/* The GNU C library defines this for functions which it implements
41116 to always fail with ENOSYS. Some functions are actually named
41117 something starting with __ and the normal name is an alias. */
41118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41119choke me
41120#else
41121char (*f) () = $ac_func;
41122#endif
41123#ifdef __cplusplus
41124}
41125#endif
41126
41127int
41128main ()
41129{
41130return f != $ac_func;
41131 ;
41132 return 0;
41133}
41134_ACEOF
41135rm -f conftest.$ac_objext conftest$ac_exeext
41136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41137 (eval $ac_link) 2>conftest.er1
a848cd7e 41138 ac_status=$?
ac1cb8d3
VS
41139 grep -v '^ *+' conftest.er1 >conftest.err
41140 rm -f conftest.er1
41141 cat conftest.err >&5
a848cd7e
SC
41142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41143 (exit $ac_status); } &&
6ebeb4c7 41144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41146 (eval $ac_try) 2>&5
41147 ac_status=$?
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; } &&
41150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; }; then
41156 eval "$as_ac_var=yes"
41157else
41158 echo "$as_me: failed program was:" >&5
41159sed 's/^/| /' conftest.$ac_ext >&5
41160
41161eval "$as_ac_var=no"
41162fi
ac1cb8d3
VS
41163rm -f conftest.err conftest.$ac_objext \
41164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41165fi
41166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41168if test `eval echo '${'$as_ac_var'}'` = yes; then
41169 cat >>confdefs.h <<_ACEOF
41170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41171_ACEOF
41172 have_floor=1
41173fi
41174done
41175
41176echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41177echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41178if test "$have_cos" = 1 -a "$have_floor" = 1; then
41179 echo "$as_me:$LINENO: result: yes" >&5
41180echo "${ECHO_T}yes" >&6
41181else
41182 echo "$as_me:$LINENO: result: no" >&5
41183echo "${ECHO_T}no" >&6
41184 LIBS="$LIBS -lm"
41185 # use different functions to avoid configure caching
41186 have_sin=0
41187 have_ceil=0
41188
41189for ac_func in sin
41190do
41191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41192echo "$as_me:$LINENO: checking for $ac_func" >&5
41193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41194if eval "test \"\${$as_ac_var+set}\" = set"; then
41195 echo $ECHO_N "(cached) $ECHO_C" >&6
41196else
41197 cat >conftest.$ac_ext <<_ACEOF
41198/* confdefs.h. */
41199_ACEOF
41200cat confdefs.h >>conftest.$ac_ext
41201cat >>conftest.$ac_ext <<_ACEOF
41202/* end confdefs.h. */
ac1cb8d3
VS
41203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41205#define $ac_func innocuous_$ac_func
41206
a848cd7e
SC
41207/* System header to define __stub macros and hopefully few prototypes,
41208 which can conflict with char $ac_func (); below.
41209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41210 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41211
a848cd7e
SC
41212#ifdef __STDC__
41213# include <limits.h>
41214#else
41215# include <assert.h>
41216#endif
ac1cb8d3
VS
41217
41218#undef $ac_func
41219
a848cd7e
SC
41220/* Override any gcc2 internal prototype to avoid an error. */
41221#ifdef __cplusplus
41222extern "C"
41223{
41224#endif
41225/* We use char because int might match the return type of a gcc2
41226 builtin and then its argument prototype would still apply. */
41227char $ac_func ();
41228/* The GNU C library defines this for functions which it implements
41229 to always fail with ENOSYS. Some functions are actually named
41230 something starting with __ and the normal name is an alias. */
41231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41232choke me
41233#else
41234char (*f) () = $ac_func;
41235#endif
41236#ifdef __cplusplus
41237}
41238#endif
41239
41240int
41241main ()
41242{
41243return f != $ac_func;
41244 ;
41245 return 0;
41246}
41247_ACEOF
41248rm -f conftest.$ac_objext conftest$ac_exeext
41249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41250 (eval $ac_link) 2>conftest.er1
a848cd7e 41251 ac_status=$?
ac1cb8d3
VS
41252 grep -v '^ *+' conftest.er1 >conftest.err
41253 rm -f conftest.er1
41254 cat conftest.err >&5
a848cd7e
SC
41255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41256 (exit $ac_status); } &&
6ebeb4c7 41257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41259 (eval $ac_try) 2>&5
41260 ac_status=$?
41261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41262 (exit $ac_status); }; } &&
41263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265 (eval $ac_try) 2>&5
41266 ac_status=$?
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); }; }; then
41269 eval "$as_ac_var=yes"
41270else
41271 echo "$as_me: failed program was:" >&5
41272sed 's/^/| /' conftest.$ac_ext >&5
41273
41274eval "$as_ac_var=no"
41275fi
ac1cb8d3
VS
41276rm -f conftest.err conftest.$ac_objext \
41277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41278fi
41279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41281if test `eval echo '${'$as_ac_var'}'` = yes; then
41282 cat >>confdefs.h <<_ACEOF
41283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41284_ACEOF
41285 have_sin=1
41286fi
41287done
41288
41289
41290for ac_func in ceil
41291do
41292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41293echo "$as_me:$LINENO: checking for $ac_func" >&5
41294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41295if eval "test \"\${$as_ac_var+set}\" = set"; then
41296 echo $ECHO_N "(cached) $ECHO_C" >&6
41297else
41298 cat >conftest.$ac_ext <<_ACEOF
41299/* confdefs.h. */
41300_ACEOF
41301cat confdefs.h >>conftest.$ac_ext
41302cat >>conftest.$ac_ext <<_ACEOF
41303/* end confdefs.h. */
ac1cb8d3
VS
41304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41306#define $ac_func innocuous_$ac_func
41307
a848cd7e
SC
41308/* System header to define __stub macros and hopefully few prototypes,
41309 which can conflict with char $ac_func (); below.
41310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41311 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41312
a848cd7e
SC
41313#ifdef __STDC__
41314# include <limits.h>
41315#else
41316# include <assert.h>
41317#endif
ac1cb8d3
VS
41318
41319#undef $ac_func
41320
a848cd7e
SC
41321/* Override any gcc2 internal prototype to avoid an error. */
41322#ifdef __cplusplus
41323extern "C"
41324{
41325#endif
41326/* We use char because int might match the return type of a gcc2
41327 builtin and then its argument prototype would still apply. */
41328char $ac_func ();
41329/* The GNU C library defines this for functions which it implements
41330 to always fail with ENOSYS. Some functions are actually named
41331 something starting with __ and the normal name is an alias. */
41332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41333choke me
41334#else
41335char (*f) () = $ac_func;
41336#endif
41337#ifdef __cplusplus
41338}
41339#endif
41340
41341int
41342main ()
41343{
41344return f != $ac_func;
41345 ;
41346 return 0;
41347}
41348_ACEOF
41349rm -f conftest.$ac_objext conftest$ac_exeext
41350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41351 (eval $ac_link) 2>conftest.er1
a848cd7e 41352 ac_status=$?
ac1cb8d3
VS
41353 grep -v '^ *+' conftest.er1 >conftest.err
41354 rm -f conftest.er1
41355 cat conftest.err >&5
a848cd7e
SC
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); } &&
6ebeb4c7 41358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41360 (eval $ac_try) 2>&5
41361 ac_status=$?
41362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); }; } &&
41364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41366 (eval $ac_try) 2>&5
41367 ac_status=$?
41368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41369 (exit $ac_status); }; }; then
41370 eval "$as_ac_var=yes"
41371else
41372 echo "$as_me: failed program was:" >&5
41373sed 's/^/| /' conftest.$ac_ext >&5
41374
41375eval "$as_ac_var=no"
41376fi
ac1cb8d3
VS
41377rm -f conftest.err conftest.$ac_objext \
41378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41379fi
41380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41382if test `eval echo '${'$as_ac_var'}'` = yes; then
41383 cat >>confdefs.h <<_ACEOF
41384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41385_ACEOF
41386 have_ceil=1
41387fi
41388done
41389
41390 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41391echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41392 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41393 echo "$as_me:$LINENO: result: yes" >&5
41394echo "${ECHO_T}yes" >&6
41395 else
41396 echo "$as_me:$LINENO: result: no" >&5
41397echo "${ECHO_T}no" >&6
41398 # not sure we should warn the user, crash, etc.
41399 fi
41400fi
41401
41402if test "$wxUSE_GUI" = "yes"; then
41403
41404
8bce5cda
MW
41405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41406 dynamic erase event exec font image minimal mobile \
41407 mobile/wxedit mobile/styles propsize render \
41408 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41409
41410 if test "$wxUSE_MONOLITHIC" != "yes"; then
41411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41412 fi
0b78747f 41413 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41415 if test "$wxUSE_UNIVERSAL" != "yes"; then
41416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41417 fi
41418 fi
41419 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41421 fi
a848cd7e
SC
41422else
41423 SAMPLES_SUBDIRS="console"
41424fi
41425
41426
ceec2216 41427INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41428-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41429
41430if test "$GXX" = yes ; then
6ebeb4c7 41431 CWARNINGS="-Wall -Wundef"
5294a27e 41432 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41433fi
a848cd7e
SC
41434
41435EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41436
0c3c69fc 41437CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41438CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41439CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41440
95986553
DE
41441if test "x$MWCC" = "xyes"; then
41442
41443 CC="$CC -cwd source -I-"
41444 CXX="$CXX -cwd source -I-"
41445fi
41446
a848cd7e 41447
0c3c69fc 41448LIBS=`echo $LIBS`
a848cd7e
SC
41449EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41450EXTRALIBS_XML="$EXPAT_LINK"
41451EXTRALIBS_HTML="$MSPACK_LINK"
41452EXTRALIBS_ODBC="$ODBC_LINK"
41453if test "$wxUSE_GUI" = "yes"; then
2e350179 41454 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41455fi
41456if test "$wxUSE_OPENGL" = "yes"; then
41457 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41458fi
41459
41460LDFLAGS="$LDFLAGS $PROFILE"
41461
41462if test "$wxUSE_GTK" = 1; then
41463 WXCONFIG_INCLUDE=
41464else
41465 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41466fi
41467
41468WXCONFIG_EXTRALIBS="$LIBS"
41469
41470if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41471 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41472fi
41473if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41474 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41475fi
41476if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41477 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41478fi
41479if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41480 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41481fi
41482if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41483 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41484fi
41485if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41486 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41487fi
41488if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41489 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41490fi
41491
41492for i in $wxconfig_3rdparty ; do
74802184 41493 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41494done
41495
41496
41497if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41498 WXUNIV=1
41499else
41500 WXUNIV=0
41501fi
41502
41503
41504
41505
41506
41507
41508
41509
41510
41511if test $wxUSE_MONOLITHIC = "yes" ; then
41512 MONOLITHIC=1
41513else
41514 MONOLITHIC=0
41515fi
41516
41517if test $wxUSE_PLUGINS = "yes" ; then
41518 USE_PLUGINS=1
41519else
41520 USE_PLUGINS=0
41521fi
41522
41523if test $wxUSE_ODBC != "no" ; then
41524 USE_ODBC=1
41525else
41526 USE_ODBC=0
41527fi
41528
16358932
VZ
41529if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41530 USE_QA=1
41531else
41532 USE_QA=0
41533fi
41534
a848cd7e
SC
41535if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41536 OFFICIAL_BUILD=1
41537else
41538 OFFICIAL_BUILD=0
41539fi
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
ceec2216 41559
d1c38808 41560
a848cd7e
SC
41561
41562
41563TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41564
41565
41566
41567
41568
41569
41570
41571
4d4ff94c
VZ
41572case "$TOOLKIT" in
41573 GTK)
41574 TOOLKIT_USER="GTK+"
41575 if test "$WXGTK20" = 1; then
41576 TOOLKIT_USER="$TOOLKIT_USER 2"
41577 fi
9a8f0513 41578 ;;
4d4ff94c
VZ
41579
41580 *)
41581 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41582 ;;
4d4ff94c 41583esac
a848cd7e 41584
fb00f58d
JS
41585if test "$wxUSE_WINE" = "yes"; then
41586 BAKEFILE_FORCE_PLATFORM=win32
41587fi
41588
9a8f0513 41589
1e9e8aba
DE
41590
41591
a848cd7e
SC
41592 if test "x$BAKEFILE_HOST" = "x"; then
41593 BAKEFILE_HOST="${host}"
41594 fi
41595
41596 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41597
41598 if test -n "$ac_tool_prefix"; then
41599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41600set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41601echo "$as_me:$LINENO: checking for $ac_word" >&5
41602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41603if test "${ac_cv_prog_RANLIB+set}" = set; then
41604 echo $ECHO_N "(cached) $ECHO_C" >&6
41605else
41606 if test -n "$RANLIB"; then
41607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41608else
41609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41610for as_dir in $PATH
41611do
41612 IFS=$as_save_IFS
41613 test -z "$as_dir" && as_dir=.
41614 for ac_exec_ext in '' $ac_executable_extensions; do
41615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41618 break 2
41619 fi
41620done
41621done
41622
41623fi
41624fi
41625RANLIB=$ac_cv_prog_RANLIB
41626if test -n "$RANLIB"; then
41627 echo "$as_me:$LINENO: result: $RANLIB" >&5
41628echo "${ECHO_T}$RANLIB" >&6
41629else
41630 echo "$as_me:$LINENO: result: no" >&5
41631echo "${ECHO_T}no" >&6
41632fi
41633
41634fi
41635if test -z "$ac_cv_prog_RANLIB"; then
41636 ac_ct_RANLIB=$RANLIB
41637 # Extract the first word of "ranlib", so it can be a program name with args.
41638set dummy ranlib; ac_word=$2
41639echo "$as_me:$LINENO: checking for $ac_word" >&5
41640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41641if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41642 echo $ECHO_N "(cached) $ECHO_C" >&6
41643else
41644 if test -n "$ac_ct_RANLIB"; then
41645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41646else
41647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41648for as_dir in $PATH
41649do
41650 IFS=$as_save_IFS
41651 test -z "$as_dir" && as_dir=.
41652 for ac_exec_ext in '' $ac_executable_extensions; do
41653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41654 ac_cv_prog_ac_ct_RANLIB="ranlib"
41655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41656 break 2
41657 fi
41658done
41659done
41660
41661 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41662fi
41663fi
41664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41665if test -n "$ac_ct_RANLIB"; then
41666 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41667echo "${ECHO_T}$ac_ct_RANLIB" >&6
41668else
41669 echo "$as_me:$LINENO: result: no" >&5
41670echo "${ECHO_T}no" >&6
41671fi
41672
41673 RANLIB=$ac_ct_RANLIB
41674else
41675 RANLIB="$ac_cv_prog_RANLIB"
41676fi
41677
41678 # Find a good install program. We prefer a C program (faster),
41679# so one script is as good as another. But avoid the broken or
41680# incompatible versions:
41681# SysV /etc/install, /usr/sbin/install
41682# SunOS /usr/etc/install
41683# IRIX /sbin/install
41684# AIX /bin/install
41685# AmigaOS /C/install, which installs bootblocks on floppy discs
41686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41689# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41690# ./install, which can be erroneously created by make from ./install.sh.
41691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41693if test -z "$INSTALL"; then
41694if test "${ac_cv_path_install+set}" = set; then
41695 echo $ECHO_N "(cached) $ECHO_C" >&6
41696else
41697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41698for as_dir in $PATH
41699do
41700 IFS=$as_save_IFS
41701 test -z "$as_dir" && as_dir=.
41702 # Account for people who put trailing slashes in PATH elements.
41703case $as_dir/ in
41704 ./ | .// | /cC/* | \
41705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41707 /usr/ucb/* ) ;;
41708 *)
41709 # OSF1 and SCO ODT 3.0 have their own names for install.
41710 # Don't use installbsd from OSF since it installs stuff as root
41711 # by default.
41712 for ac_prog in ginstall scoinst install; do
41713 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41715 if test $ac_prog = install &&
41716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41717 # AIX install. It has an incompatible calling convention.
41718 :
41719 elif test $ac_prog = install &&
41720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41721 # program-specific install script used by HP pwplus--don't use.
41722 :
41723 else
41724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41725 break 3
41726 fi
41727 fi
a848cd7e
SC
41728 done
41729 done
41730 ;;
41731esac
41732done
41733
41734
41735fi
41736 if test "${ac_cv_path_install+set}" = set; then
41737 INSTALL=$ac_cv_path_install
41738 else
41739 # As a last resort, use the slow shell script. We don't cache a
41740 # path for INSTALL within a source directory, because that will
41741 # break other packages using the cache if that directory is
41742 # removed, or if the path is relative.
41743 INSTALL=$ac_install_sh
41744 fi
41745fi
41746echo "$as_me:$LINENO: result: $INSTALL" >&5
41747echo "${ECHO_T}$INSTALL" >&6
41748
41749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41750# It thinks the first close brace ends the variable substitution.
41751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41752
41753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41754
41755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41756
41757 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41758echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41759LN_S=$as_ln_s
41760if test "$LN_S" = "ln -s"; then
41761 echo "$as_me:$LINENO: result: yes" >&5
41762echo "${ECHO_T}yes" >&6
41763else
41764 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41765echo "${ECHO_T}no, using $LN_S" >&6
41766fi
41767
41768
41769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41773 echo $ECHO_N "(cached) $ECHO_C" >&6
41774else
41775 cat >conftest.make <<\_ACEOF
41776all:
41777 @echo 'ac_maketemp="$(MAKE)"'
41778_ACEOF
41779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41781if test -n "$ac_maketemp"; then
41782 eval ac_cv_prog_make_${ac_make}_set=yes
41783else
41784 eval ac_cv_prog_make_${ac_make}_set=no
41785fi
41786rm -f conftest.make
41787fi
41788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41789 echo "$as_me:$LINENO: result: yes" >&5
41790echo "${ECHO_T}yes" >&6
41791 SET_MAKE=
41792else
41793 echo "$as_me:$LINENO: result: no" >&5
41794echo "${ECHO_T}no" >&6
41795 SET_MAKE="MAKE=${MAKE-make}"
41796fi
41797
41798
41799
41800 if test -n "$ac_tool_prefix"; then
41801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41802set dummy ${ac_tool_prefix}ar; ac_word=$2
41803echo "$as_me:$LINENO: checking for $ac_word" >&5
41804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41805if test "${ac_cv_prog_AR+set}" = set; then
41806 echo $ECHO_N "(cached) $ECHO_C" >&6
41807else
41808 if test -n "$AR"; then
41809 ac_cv_prog_AR="$AR" # Let the user override the test.
41810else
41811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41812for as_dir in $PATH
41813do
41814 IFS=$as_save_IFS
41815 test -z "$as_dir" && as_dir=.
41816 for ac_exec_ext in '' $ac_executable_extensions; do
41817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41818 ac_cv_prog_AR="${ac_tool_prefix}ar"
41819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41820 break 2
41821 fi
41822done
41823done
41824
41825fi
41826fi
41827AR=$ac_cv_prog_AR
41828if test -n "$AR"; then
41829 echo "$as_me:$LINENO: result: $AR" >&5
41830echo "${ECHO_T}$AR" >&6
41831else
41832 echo "$as_me:$LINENO: result: no" >&5
41833echo "${ECHO_T}no" >&6
41834fi
41835
41836fi
41837if test -z "$ac_cv_prog_AR"; then
41838 ac_ct_AR=$AR
41839 # Extract the first word of "ar", so it can be a program name with args.
41840set dummy ar; ac_word=$2
41841echo "$as_me:$LINENO: checking for $ac_word" >&5
41842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41843if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41844 echo $ECHO_N "(cached) $ECHO_C" >&6
41845else
41846 if test -n "$ac_ct_AR"; then
41847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41848else
41849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41850for as_dir in $PATH
41851do
41852 IFS=$as_save_IFS
41853 test -z "$as_dir" && as_dir=.
41854 for ac_exec_ext in '' $ac_executable_extensions; do
41855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41856 ac_cv_prog_ac_ct_AR="ar"
41857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41858 break 2
41859 fi
41860done
41861done
41862
41863 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41864fi
41865fi
41866ac_ct_AR=$ac_cv_prog_ac_ct_AR
41867if test -n "$ac_ct_AR"; then
41868 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41869echo "${ECHO_T}$ac_ct_AR" >&6
41870else
41871 echo "$as_me:$LINENO: result: no" >&5
41872echo "${ECHO_T}no" >&6
41873fi
41874
41875 AR=$ac_ct_AR
41876else
41877 AR="$ac_cv_prog_AR"
41878fi
41879
41880 if test -n "$ac_tool_prefix"; then
41881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41882set dummy ${ac_tool_prefix}strip; ac_word=$2
41883echo "$as_me:$LINENO: checking for $ac_word" >&5
41884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41885if test "${ac_cv_prog_STRIP+set}" = set; then
41886 echo $ECHO_N "(cached) $ECHO_C" >&6
41887else
41888 if test -n "$STRIP"; then
41889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41890else
41891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41892for as_dir in $PATH
41893do
41894 IFS=$as_save_IFS
41895 test -z "$as_dir" && as_dir=.
41896 for ac_exec_ext in '' $ac_executable_extensions; do
41897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41900 break 2
41901 fi
41902done
41903done
41904
41905fi
41906fi
41907STRIP=$ac_cv_prog_STRIP
41908if test -n "$STRIP"; then
41909 echo "$as_me:$LINENO: result: $STRIP" >&5
41910echo "${ECHO_T}$STRIP" >&6
41911else
41912 echo "$as_me:$LINENO: result: no" >&5
41913echo "${ECHO_T}no" >&6
41914fi
41915
41916fi
41917if test -z "$ac_cv_prog_STRIP"; then
41918 ac_ct_STRIP=$STRIP
41919 # Extract the first word of "strip", so it can be a program name with args.
41920set dummy strip; ac_word=$2
41921echo "$as_me:$LINENO: checking for $ac_word" >&5
41922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41923if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41924 echo $ECHO_N "(cached) $ECHO_C" >&6
41925else
41926 if test -n "$ac_ct_STRIP"; then
41927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41928else
41929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41930for as_dir in $PATH
41931do
41932 IFS=$as_save_IFS
41933 test -z "$as_dir" && as_dir=.
41934 for ac_exec_ext in '' $ac_executable_extensions; do
41935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41936 ac_cv_prog_ac_ct_STRIP="strip"
41937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41938 break 2
41939 fi
41940done
41941done
41942
41943 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41944fi
41945fi
41946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41947if test -n "$ac_ct_STRIP"; then
41948 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41949echo "${ECHO_T}$ac_ct_STRIP" >&6
41950else
41951 echo "$as_me:$LINENO: result: no" >&5
41952echo "${ECHO_T}no" >&6
41953fi
41954
41955 STRIP=$ac_ct_STRIP
41956else
41957 STRIP="$ac_cv_prog_STRIP"
41958fi
41959
41960 if test -n "$ac_tool_prefix"; then
41961 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41962set dummy ${ac_tool_prefix}nm; ac_word=$2
41963echo "$as_me:$LINENO: checking for $ac_word" >&5
41964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41965if test "${ac_cv_prog_NM+set}" = set; then
41966 echo $ECHO_N "(cached) $ECHO_C" >&6
41967else
41968 if test -n "$NM"; then
41969 ac_cv_prog_NM="$NM" # Let the user override the test.
41970else
41971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41972for as_dir in $PATH
41973do
41974 IFS=$as_save_IFS
41975 test -z "$as_dir" && as_dir=.
41976 for ac_exec_ext in '' $ac_executable_extensions; do
41977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41978 ac_cv_prog_NM="${ac_tool_prefix}nm"
41979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41980 break 2
41981 fi
41982done
41983done
41984
41985fi
41986fi
41987NM=$ac_cv_prog_NM
41988if test -n "$NM"; then
41989 echo "$as_me:$LINENO: result: $NM" >&5
41990echo "${ECHO_T}$NM" >&6
41991else
41992 echo "$as_me:$LINENO: result: no" >&5
41993echo "${ECHO_T}no" >&6
41994fi
41995
41996fi
41997if test -z "$ac_cv_prog_NM"; then
41998 ac_ct_NM=$NM
41999 # Extract the first word of "nm", so it can be a program name with args.
42000set dummy nm; ac_word=$2
42001echo "$as_me:$LINENO: checking for $ac_word" >&5
42002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42003if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42004 echo $ECHO_N "(cached) $ECHO_C" >&6
42005else
42006 if test -n "$ac_ct_NM"; then
42007 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42008else
42009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42010for as_dir in $PATH
42011do
42012 IFS=$as_save_IFS
42013 test -z "$as_dir" && as_dir=.
42014 for ac_exec_ext in '' $ac_executable_extensions; do
42015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42016 ac_cv_prog_ac_ct_NM="nm"
42017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42018 break 2
42019 fi
42020done
42021done
42022
42023 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42024fi
42025fi
42026ac_ct_NM=$ac_cv_prog_ac_ct_NM
42027if test -n "$ac_ct_NM"; then
42028 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42029echo "${ECHO_T}$ac_ct_NM" >&6
42030else
42031 echo "$as_me:$LINENO: result: no" >&5
42032echo "${ECHO_T}no" >&6
42033fi
42034
42035 NM=$ac_ct_NM
42036else
42037 NM="$ac_cv_prog_NM"
42038fi
42039
42040
42041 case ${BAKEFILE_HOST} in
42042 *-hp-hpux* )
1e9e8aba 42043 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42044 ;;
42045 *) INSTALL_DIR="$INSTALL -d"
42046 ;;
42047 esac
42048
42049
42050 LDFLAGS_GUI=
42051 case ${BAKEFILE_HOST} in
42052 *-*-cygwin* | *-*-mingw32* )
42053 LDFLAGS_GUI="-mwindows"
42054 esac
42055
42056
42057 fi
42058
42059 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42060echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42061if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42062 echo $ECHO_N "(cached) $ECHO_C" >&6
42063else
42064
42065 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42066 egrep -s GNU > /dev/null); then
42067 bakefile_cv_prog_makeisgnu="yes"
42068 else
42069 bakefile_cv_prog_makeisgnu="no"
42070 fi
42071
42072fi
42073echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42074echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42075
42076 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42077 IF_GNU_MAKE=""
42078 else
42079 IF_GNU_MAKE="#"
42080 fi
42081
42082
42083
42084 PLATFORM_UNIX=0
42085 PLATFORM_WIN32=0
42086 PLATFORM_MSDOS=0
42087 PLATFORM_MAC=0
1e9e8aba 42088 PLATFORM_MACOS=0
a848cd7e
SC
42089 PLATFORM_MACOSX=0
42090 PLATFORM_OS2=0
1e9e8aba 42091 PLATFORM_BEOS=0
a848cd7e
SC
42092
42093 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42094 case "${BAKEFILE_HOST}" in
810b94f0 42095 *-*-mingw32* )
a848cd7e
SC
42096 PLATFORM_WIN32=1
42097 ;;
42098 *-pc-msdosdjgpp )
42099 PLATFORM_MSDOS=1
42100 ;;
42101 *-pc-os2_emx | *-pc-os2-emx )
42102 PLATFORM_OS2=1
42103 ;;
42104 powerpc-*-darwin* )
42105 PLATFORM_MAC=1
42106 PLATFORM_MACOSX=1
42107 ;;
1e9e8aba
DE
42108 *-*-beos* )
42109 PLATFORM_BEOS=1
42110 ;;
42111 powerpc-apple-macos* )
42112 PLATFORM_MAC=1
42113 PLATFORM_MACOS=1
42114 ;;
a848cd7e
SC
42115 * )
42116 PLATFORM_UNIX=1
42117 ;;
42118 esac
42119 else
42120 case "$BAKEFILE_FORCE_PLATFORM" in
42121 win32 )
42122 PLATFORM_WIN32=1
42123 ;;
42124 msdos )
42125 PLATFORM_MSDOS=1
42126 ;;
42127 os2 )
42128 PLATFORM_OS2=1
42129 ;;
42130 darwin )
42131 PLATFORM_MAC=1
42132 PLATFORM_MACOSX=1
42133 ;;
42134 unix )
42135 PLATFORM_UNIX=1
42136 ;;
1e9e8aba
DE
42137 beos )
42138 PLATFORM_BEOS=1
42139 ;;
a848cd7e
SC
42140 * )
42141 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42142echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42143 { (exit 1); exit 1; }; }
42144 ;;
42145 esac
42146 fi
42147
42148
42149
42150
42151
42152
42153
42154
42155
1e9e8aba
DE
42156
42157
a848cd7e
SC
42158 # Check whether --enable-omf or --disable-omf was given.
42159if test "${enable_omf+set}" = set; then
42160 enableval="$enable_omf"
42161 bk_os2_use_omf="$enableval"
42162fi;
42163
42164 case "${BAKEFILE_HOST}" in
42165 *-*-darwin* )
42166 CFLAGS="$CFLAGS -fno-common"
42167 CXXFLAGS="$CXXFLAGS -fno-common"
42168 ;;
42169
42170 *-pc-os2_emx | *-pc-os2-emx )
42171 if test "x$bk_os2_use_omf" = "xyes" ; then
42172 AR=emxomfar
42173 RANLIB=:
42174 LDFLAGS="-Zomf $LDFLAGS"
42175 CFLAGS="-Zomf $CFLAGS"
42176 CXXFLAGS="-Zomf $CXXFLAGS"
42177 OS2_LIBEXT="lib"
42178 else
42179 OS2_LIBEXT="a"
42180 fi
42181 ;;
1e9e8aba
DE
42182
42183 i*86-*-beos* )
42184 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42185 ;;
a848cd7e
SC
42186 esac
42187
42188
42189 SO_SUFFIX="so"
42190 SO_SUFFIX_MODULE="so"
42191 EXEEXT=""
42192 LIBPREFIX="lib"
42193 LIBEXT=".a"
42194 DLLPREFIX="lib"
42195 DLLPREFIX_MODULE=""
42196 DLLIMP_SUFFIX=""
810b94f0 42197 dlldir="$libdir"
a848cd7e
SC
42198
42199 case "${BAKEFILE_HOST}" in
42200 *-hp-hpux* )
42201 SO_SUFFIX="sl"
42202 SO_SUFFIX_MODULE="sl"
42203 ;;
42204 *-*-aix* )
42205 SO_SUFFIX="a"
42206 SO_SUFFIX_MODULE="a"
42207 ;;
810b94f0
MW
42208 *-*-cygwin* )
42209 SO_SUFFIX="dll"
42210 SO_SUFFIX_MODULE="dll"
42211 DLLIMP_SUFFIX="dll.a"
42212 EXEEXT=".exe"
42213 DLLPREFIX="cyg"
42214 dlldir="$bindir"
42215 ;;
42216 *-*-mingw32* )
a848cd7e
SC
42217 SO_SUFFIX="dll"
42218 SO_SUFFIX_MODULE="dll"
42219 DLLIMP_SUFFIX="dll.a"
42220 EXEEXT=".exe"
42221 DLLPREFIX=""
810b94f0 42222 dlldir="$bindir"
a848cd7e
SC
42223 ;;
42224 *-pc-msdosdjgpp )
42225 EXEEXT=".exe"
42226 DLLPREFIX=""
810b94f0 42227 dlldir="$bindir"
a848cd7e
SC
42228 ;;
42229 *-pc-os2_emx | *-pc-os2-emx )
42230 SO_SUFFIX="dll"
42231 SO_SUFFIX_MODULE="dll"
42232 DLLIMP_SUFFIX=$OS2_LIBEXT
42233 EXEEXT=".exe"
42234 DLLPREFIX=""
42235 LIBPREFIX=""
42236 LIBEXT=".$OS2_LIBEXT"
810b94f0 42237 dlldir="$bindir"
a848cd7e
SC
42238 ;;
42239 powerpc-*-darwin* )
42240 SO_SUFFIX="dylib"
42241 SO_SUFFIX_MODULE="bundle"
42242 ;;
42243 esac
42244
42245 if test "x$DLLIMP_SUFFIX" = "x" ; then
42246 DLLIMP_SUFFIX="$SO_SUFFIX"
42247 fi
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
810b94f0 42259
1e9e8aba
DE
42260 PIC_FLAG=""
42261 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42262 PIC_FLAG="-fPIC"
42263 fi
42264
1e9e8aba
DE
42265 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42266 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42267 WINDOWS_IMPLIB=0
1e9e8aba 42268
a848cd7e
SC
42269 case "${BAKEFILE_HOST}" in
42270 *-hp-hpux* )
1e9e8aba 42271 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42272 LDFLAGS="$LDFLAGS -L/usr/lib"
42273
42274 SHARED_LD_CC="${CC} -b -o"
42275 SHARED_LD_CXX="${CXX} -b -o"
42276 PIC_FLAG="+Z"
42277 fi
42278 ;;
42279
42280 *-*-linux* )
42281 if test "x$GCC" != "xyes"; then
42282 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42283echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42284if test "${bakefile_cv_prog_icc+set}" = set; then
42285 echo $ECHO_N "(cached) $ECHO_C" >&6
42286else
42287
42288 cat >conftest.$ac_ext <<_ACEOF
42289/* confdefs.h. */
42290_ACEOF
42291cat confdefs.h >>conftest.$ac_ext
42292cat >>conftest.$ac_ext <<_ACEOF
42293/* end confdefs.h. */
42294
42295int
42296main ()
42297{
42298
42299 #ifndef __INTEL_COMPILER
42300 #error Not icc
42301 #endif
42302
42303 ;
42304 return 0;
42305}
42306_ACEOF
42307rm -f conftest.$ac_objext
42308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42309 (eval $ac_compile) 2>conftest.er1
a848cd7e 42310 ac_status=$?
ac1cb8d3
VS
42311 grep -v '^ *+' conftest.er1 >conftest.err
42312 rm -f conftest.er1
42313 cat conftest.err >&5
a848cd7e
SC
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); } &&
6ebeb4c7 42316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318 (eval $ac_try) 2>&5
42319 ac_status=$?
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); }; } &&
42322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42324 (eval $ac_try) 2>&5
42325 ac_status=$?
42326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); }; }; then
42328 bakefile_cv_prog_icc=yes
42329else
42330 echo "$as_me: failed program was:" >&5
42331sed 's/^/| /' conftest.$ac_ext >&5
42332
42333bakefile_cv_prog_icc=no
42334
42335fi
ac1cb8d3 42336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42337
42338fi
42339echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42340echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42341 if test "$bakefile_cv_prog_icc" = "yes"; then
42342 PIC_FLAG="-KPIC"
42343 fi
42344 fi
42345 ;;
42346
42347 *-*-solaris2* )
42348 if test "x$GCC" != xyes ; then
42349 SHARED_LD_CC="${CC} -G -o"
42350 SHARED_LD_CXX="${CXX} -G -o"
42351 PIC_FLAG="-KPIC"
42352 fi
42353 ;;
42354
42355 *-*-darwin* )
42356
42357 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42358echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42359if test "${wx_cv_gcc31+set}" = set; then
42360 echo $ECHO_N "(cached) $ECHO_C" >&6
42361else
42362
42363 cat >conftest.$ac_ext <<_ACEOF
42364/* confdefs.h. */
42365_ACEOF
42366cat confdefs.h >>conftest.$ac_ext
42367cat >>conftest.$ac_ext <<_ACEOF
42368/* end confdefs.h. */
42369
42370int
42371main ()
42372{
42373
42374 #if (__GNUC__ < 3) || \
42375 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42376 #error old gcc
42377 #endif
42378
42379 ;
42380 return 0;
42381}
42382_ACEOF
42383rm -f conftest.$ac_objext
42384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42385 (eval $ac_compile) 2>conftest.er1
a848cd7e 42386 ac_status=$?
ac1cb8d3
VS
42387 grep -v '^ *+' conftest.er1 >conftest.err
42388 rm -f conftest.er1
42389 cat conftest.err >&5
a848cd7e
SC
42390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42391 (exit $ac_status); } &&
6ebeb4c7 42392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42394 (eval $ac_try) 2>&5
42395 ac_status=$?
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); }; } &&
42398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400 (eval $ac_try) 2>&5
42401 ac_status=$?
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); }; }; then
42404
42405 wx_cv_gcc31=yes
42406
42407else
42408 echo "$as_me: failed program was:" >&5
42409sed 's/^/| /' conftest.$ac_ext >&5
42410
42411
42412 wx_cv_gcc31=no
42413
42414
42415fi
ac1cb8d3 42416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42417
42418fi
42419echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42420echo "${ECHO_T}$wx_cv_gcc31" >&6
42421 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42422
42423D='$'
42424cat <<EOF >shared-ld-sh
a848cd7e
SC
42425#!/bin/sh
42426#-----------------------------------------------------------------------------
42427#-- Name: distrib/mac/shared-ld-sh
42428#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42429#-- Author: Gilles Depeyrot
42430#-- Copyright: (c) 2002 Gilles Depeyrot
42431#-- Licence: any use permitted
42432#-----------------------------------------------------------------------------
42433
42434verbose=0
42435args=""
42436objects=""
42437linking_flag="-dynamiclib"
810b94f0 42438ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42439
473276a9
VS
42440while test ${D}# -gt 0; do
42441 case ${D}1 in
a848cd7e
SC
42442
42443 -v)
42444 verbose=1
42445 ;;
42446
42447 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42448 # collect these options and values
473276a9 42449 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42450 shift
42451 ;;
42452
810b94f0
MW
42453 -s|-Wl,*)
42454 # collect these load args
42455 ldargs="${D}{ldargs} ${D}1"
2113bc77 42456 ;;
810b94f0
MW
42457
42458 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42459 # collect these options
473276a9 42460 args="${D}{args} ${D}1"
a848cd7e
SC
42461 ;;
42462
42463 -dynamiclib|-bundle)
473276a9 42464 linking_flag="${D}1"
a848cd7e
SC
42465 ;;
42466
42467 -*)
473276a9 42468 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42469 exit 1
42470 ;;
42471
42472 *.o | *.a | *.dylib)
42473 # collect object files
473276a9 42474 objects="${D}{objects} ${D}1"
a848cd7e
SC
42475 ;;
42476
42477 *)
473276a9 42478 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42479 exit 1
42480 ;;
42481
42482 esac
42483 shift
42484done
42485
810b94f0
MW
42486status=0
42487
a848cd7e
SC
42488#
42489# Link one module containing all the others
42490#
473276a9 42491if test ${D}{verbose} = 1; then
810b94f0 42492 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42493fi
810b94f0 42494c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42495status=${D}?
a848cd7e
SC
42496
42497#
810b94f0
MW
42498# Link the shared library from the single module created, but only if the
42499# previous command didn't fail:
a848cd7e 42500#
810b94f0
MW
42501if test ${D}{status} = 0; then
42502 if test ${D}{verbose} = 1; then
42503 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42504 fi
42505 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42506 status=${D}?
a848cd7e
SC
42507fi
42508
42509#
42510# Remove intermediate module
42511#
473276a9 42512rm -f master.${D}${D}.o
a848cd7e 42513
810b94f0 42514exit ${D}status
a848cd7e 42515EOF
473276a9 42516
a848cd7e
SC
42517 chmod +x shared-ld-sh
42518
42519 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42520 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42521 SHARED_LD_CXX="$SHARED_LD_CC"
42522 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42523 else
42524 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42525 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42526 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42527 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42528 fi
42529
42530 PIC_FLAG="-dynamic -fPIC"
42531 ;;
42532
42533 *-*-aix* )
42534 if test "x$GCC" != "xyes"; then
42535 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42536set dummy makeC++SharedLib; ac_word=$2
42537echo "$as_me:$LINENO: checking for $ac_word" >&5
42538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42539if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42540 echo $ECHO_N "(cached) $ECHO_C" >&6
42541else
42542 if test -n "$AIX_CXX_LD"; then
42543 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42544else
42545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42546for as_dir in $PATH
42547do
42548 IFS=$as_save_IFS
42549 test -z "$as_dir" && as_dir=.
42550 for ac_exec_ext in '' $ac_executable_extensions; do
42551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42552 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42554 break 2
42555 fi
42556done
42557done
42558
42559 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42560fi
42561fi
42562AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42563if test -n "$AIX_CXX_LD"; then
42564 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42565echo "${ECHO_T}$AIX_CXX_LD" >&6
42566else
42567 echo "$as_me:$LINENO: result: no" >&5
42568echo "${ECHO_T}no" >&6
42569fi
42570
42571 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42572 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42573 fi
42574 ;;
42575
42576 *-*-beos* )
1e9e8aba
DE
42577 SHARED_LD_CC="${LD} -nostart -o"
42578 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42579 ;;
42580
42581 *-*-irix* )
42582 if test "x$GCC" != "xyes"; then
42583 PIC_FLAG="-KPIC"
42584 fi
42585 ;;
42586
42587 *-*-cygwin* | *-*-mingw32* )
42588 PIC_FLAG=""
1e9e8aba
DE
42589 SHARED_LD_CC="\$(CC) -shared -o"
42590 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42591 WINDOWS_IMPLIB=1
a848cd7e
SC
42592 ;;
42593
42594 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42595 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42596 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42597 PIC_FLAG=""
473276a9
VS
42598
42599D='$'
42600cat <<EOF >dllar.sh
42601#!/bin/sh
42602#
42603# dllar - a tool to build both a .dll and an .a file
42604# from a set of object (.o) files for EMX/OS2.
42605#
42606# Written by Andrew Zabolotny, bit@freya.etu.ru
42607# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42608#
42609# This script will accept a set of files on the command line.
42610# All the public symbols from the .o files will be exported into
42611# a .DEF file, then linker will be run (through gcc) against them to
42612# build a shared library consisting of all given .o files. All libraries
42613# (.a) will be first decompressed into component .o files then act as
42614# described above. You can optionally give a description (-d "description")
42615# which will be put into .DLL. To see the list of accepted options (as well
42616# as command-line format) simply run this program without options. The .DLL
42617# is built to be imported by name (there is no guarantee that new versions
42618# of the library you build will have same ordinals for same symbols).
42619#
42620# dllar is free software; you can redistribute it and/or modify
42621# it under the terms of the GNU General Public License as published by
42622# the Free Software Foundation; either version 2, or (at your option)
42623# any later version.
42624#
42625# dllar is distributed in the hope that it will be useful,
42626# but WITHOUT ANY WARRANTY; without even the implied warranty of
42627# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42628# GNU General Public License for more details.
42629#
42630# You should have received a copy of the GNU General Public License
42631# along with dllar; see the file COPYING. If not, write to the Free
42632# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42633# 02111-1307, USA.
42634
42635# To successfuly run this program you will need:
42636# - Current drive should have LFN support (HPFS, ext2, network, etc)
42637# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42638# - gcc
42639# (used to build the .dll)
42640# - emxexp
42641# (used to create .def file from .o files)
42642# - emximp
42643# (used to create .a file from .def file)
42644# - GNU text utilites (cat, sort, uniq)
42645# used to process emxexp output
42646# - GNU file utilities (mv, rm)
42647# - GNU sed
42648# - lxlite (optional, see flag below)
42649# (used for general .dll cleanup)
42650#
42651
42652flag_USE_LXLITE=1;
42653
42654#
42655# helper functions
42656# basnam, variant of basename, which does _not_ remove the path, _iff_
42657# second argument (suffix to remove) is given
42658basnam(){
42659 case ${D}# in
42660 1)
1e9e8aba 42661 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42662 ;;
42663 2)
42664 echo ${D}1 | sed 's/'${D}2'${D}//'
42665 ;;
42666 *)
42667 echo "error in basnam ${D}*"
42668 exit 8
42669 ;;
42670 esac
42671}
42672
42673# Cleanup temporary files and output
42674CleanUp() {
42675 cd ${D}curDir
42676 for i in ${D}inputFiles ; do
42677 case ${D}i in
42678 *!)
42679 rm -rf \`basnam ${D}i !\`
42680 ;;
42681 *)
42682 ;;
42683 esac
42684 done
42685
42686 # Kill result in case of failure as there is just to many stupid make/nmake
42687 # things out there which doesn't do this.
1e9e8aba 42688 if [ ${D}# -eq 0 ]; then
473276a9
VS
42689 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42690 fi
42691}
42692
42693# Print usage and exit script with rc=1.
42694PrintHelp() {
b1d22ded
DE
42695 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42696 echo ' [-name-mangler-script script.sh]'
42697 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42698 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42699 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42700 echo ' [*.o] [*.a]'
473276a9
VS
42701 echo '*> "output_file" should have no extension.'
42702 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42703 echo ' The import library name is derived from this and is set to "name".a,'
42704 echo ' unless overridden by -import'
42705 echo '*> "importlib_name" should have no extension.'
42706 echo ' If it has the .o, or .a extension, it is automatically removed.'
42707 echo ' This name is used as the import library name and may be longer and'
42708 echo ' more descriptive than the DLL name which has to follow the old '
42709 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42710 echo '*> "script.sh may be given to override the output_file name by a'
42711 echo ' different name. It is mainly useful if the regular make process'
42712 echo ' of some package does not take into account OS/2 restriction of'
42713 echo ' DLL name lengths. It takes the importlib name as input and is'
42714 echo ' supposed to procude a shorter name as output. The script should'
42715 echo ' expect to get importlib_name without extension and should produce'
42716 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42717 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42718 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42719 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42720 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42721 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42722 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42723 echo ' If the last character of a symbol is "*", all symbols beginning'
42724 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42725 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42726 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42727 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42728 echo ' C runtime DLLs.'
b1d22ded 42729 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42730 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42731 echo ' unchanged to GCC at the end of command line.'
42732 echo '*> If you create a DLL from a library and you do not specify -o,'
42733 echo ' the basename for DLL and import library will be set to library name,'
42734 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42735 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42736 echo ' library will be renamed into gcc_s.a.'
42737 echo '--------'
42738 echo 'Example:'
42739 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42740 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42741 CleanUp
42742 exit 1
42743}
42744
42745# Execute a command.
42746# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42747# @Uses Whatever CleanUp() uses.
42748doCommand() {
42749 echo "${D}*"
42750 eval ${D}*
42751 rcCmd=${D}?
42752
1e9e8aba 42753 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42754 echo "command failed, exit code="${D}rcCmd
42755 CleanUp
42756 exit ${D}rcCmd
42757 fi
42758}
42759
42760# main routine
42761# setup globals
42762cmdLine=${D}*
42763outFile=""
42764outimpFile=""
42765inputFiles=""
b1d22ded 42766renameScript=""
473276a9
VS
42767description=""
42768CC=gcc.exe
42769CFLAGS="-s -Zcrtdll"
42770EXTRA_CFLAGS=""
42771EXPORT_BY_ORDINALS=0
42772exclude_symbols=""
42773library_flags=""
42774curDir=\`pwd\`
42775curDirS=curDir
42776case ${D}curDirS in
42777*/)
42778 ;;
42779*)
42780 curDirS=${D}{curDirS}"/"
42781 ;;
42782esac
42783# Parse commandline
42784libsToLink=0
b1d22ded 42785omfLinking=0
1e9e8aba 42786while [ ${D}1 ]; do
473276a9
VS
42787 case ${D}1 in
42788 -ord*)
42789 EXPORT_BY_ORDINALS=1;
42790 ;;
42791 -o*)
42792 shift
42793 outFile=${D}1
42794 ;;
42795 -i*)
42796 shift
42797 outimpFile=${D}1
42798 ;;
b1d22ded
DE
42799 -name-mangler-script)
42800 shift
42801 renameScript=${D}1
42802 ;;
473276a9
VS
42803 -d*)
42804 shift
42805 description=${D}1
42806 ;;
42807 -f*)
42808 shift
42809 CFLAGS=${D}1
42810 ;;
42811 -c*)
42812 shift
42813 CC=${D}1
42814 ;;
42815 -h*)
42816 PrintHelp
42817 ;;
42818 -ex*)
42819 shift
42820 exclude_symbols=${D}{exclude_symbols}${D}1" "
42821 ;;
42822 -libf*)
42823 shift
42824 library_flags=${D}{library_flags}${D}1" "
42825 ;;
42826 -nocrt*)
42827 CFLAGS="-s"
42828 ;;
42829 -nolxl*)
42830 flag_USE_LXLITE=0
42831 ;;
42832 -* | /*)
42833 case ${D}1 in
42834 -L* | -l*)
42835 libsToLink=1
42836 ;;
b1d22ded
DE
42837 -Zomf)
42838 omfLinking=1
42839 ;;
473276a9
VS
42840 *)
42841 ;;
42842 esac
42843 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42844 ;;
b1d22ded
DE
42845 *.dll)
42846 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42847 if [ ${D}omfLinking -eq 1 ]; then
42848 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42849 else
42850 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42851 fi
42852 ;;
473276a9
VS
42853 *)
42854 found=0;
1e9e8aba 42855 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42856 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42857 else
42858 for file in ${D}1 ; do
1e9e8aba 42859 if [ -f ${D}file ]; then
473276a9
VS
42860 inputFiles="${D}{inputFiles} ${D}file"
42861 found=1
42862 fi
42863 done
1e9e8aba 42864 if [ ${D}found -eq 0 ]; then
473276a9
VS
42865 echo "ERROR: No file(s) found: "${D}1
42866 exit 8
42867 fi
42868 fi
42869 ;;
42870 esac
42871 shift
42872done # iterate cmdline words
42873
42874#
1e9e8aba 42875if [ -z "${D}inputFiles" ]; then
473276a9
VS
42876 echo "dllar: no input files"
42877 PrintHelp
42878fi
42879
42880# Now extract all .o files from .a files
42881newInputFiles=""
42882for file in ${D}inputFiles ; do
42883 case ${D}file in
42884 *.a | *.lib)
42885 case ${D}file in
42886 *.a)
42887 suffix=".a"
42888 AR="ar"
42889 ;;
42890 *.lib)
42891 suffix=".lib"
42892 AR="emxomfar"
42893 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42894 ;;
42895 *)
42896 ;;
42897 esac
42898 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42899 mkdir ${D}dirname
1e9e8aba 42900 if [ ${D}? -ne 0 ]; then
473276a9
VS
42901 echo "Failed to create subdirectory ./${D}dirname"
42902 CleanUp
42903 exit 8;
42904 fi
42905 # Append '!' to indicate archive
42906 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42907 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42908 cd ${D}curDir
42909 found=0;
42910 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42911 if [ -f ${D}subfile ]; then
473276a9 42912 found=1
1e9e8aba 42913 if [ -s ${D}subfile ]; then
473276a9
VS
42914 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42915 newInputFiles="${D}newInputFiles ${D}subfile"
42916 fi
42917 fi
42918 done
1e9e8aba
DE
42919 if [ ${D}found -eq 0 ]; then
42920 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42921 fi
42922 ;;
42923 *)
42924 newInputFiles="${D}{newInputFiles} ${D}file"
42925 ;;
42926 esac
42927done
42928inputFiles="${D}newInputFiles"
42929
42930# Output filename(s).
42931do_backup=0;
1e9e8aba 42932if [ -z ${D}outFile ]; then
473276a9
VS
42933 do_backup=1;
42934 set outFile ${D}inputFiles; outFile=${D}2
42935fi
42936
42937# If it is an archive, remove the '!' and the '_%' suffixes
42938case ${D}outFile in
42939*_%!)
42940 outFile=\`basnam ${D}outFile _%!\`
42941 ;;
42942*)
42943 ;;
42944esac
42945case ${D}outFile in
42946*.dll)
42947 outFile=\`basnam ${D}outFile .dll\`
42948 ;;
42949*.DLL)
42950 outFile=\`basnam ${D}outFile .DLL\`
42951 ;;
42952*.o)
42953 outFile=\`basnam ${D}outFile .o\`
42954 ;;
42955*.obj)
42956 outFile=\`basnam ${D}outFile .obj\`
42957 ;;
42958*.a)
42959 outFile=\`basnam ${D}outFile .a\`
42960 ;;
42961*.lib)
42962 outFile=\`basnam ${D}outFile .lib\`
42963 ;;
42964*)
42965 ;;
42966esac
42967case ${D}outimpFile in
42968*.a)
42969 outimpFile=\`basnam ${D}outimpFile .a\`
42970 ;;
42971*.lib)
42972 outimpFile=\`basnam ${D}outimpFile .lib\`
42973 ;;
42974*)
42975 ;;
42976esac
1e9e8aba 42977if [ -z ${D}outimpFile ]; then
473276a9
VS
42978 outimpFile=${D}outFile
42979fi
42980defFile="${D}{outFile}.def"
42981arcFile="${D}{outimpFile}.a"
42982arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42983
42984#create ${D}dllFile as something matching 8.3 restrictions,
42985if [ -z ${D}renameScript ] ; then
42986 dllFile="${D}outFile"
42987else
42988 dllFile=\`${D}renameScript ${D}outimpFile\`
42989fi
473276a9 42990
1e9e8aba
DE
42991if [ ${D}do_backup -ne 0 ] ; then
42992 if [ -f ${D}arcFile ] ; then
473276a9
VS
42993 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42994 fi
1e9e8aba 42995 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42996 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42997 fi
42998fi
42999
43000# Extract public symbols from all the object files.
43001tmpdefFile=${D}{defFile}_%
43002rm -f ${D}tmpdefFile
43003for file in ${D}inputFiles ; do
43004 case ${D}file in
43005 *!)
43006 ;;
43007 *)
43008 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43009 ;;
43010 esac
43011done
43012
43013# Create the def file.
43014rm -f ${D}defFile
43015echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43016dllFile="${D}{dllFile}.dll"
43017if [ ! -z ${D}description ]; then
1e9e8aba 43018 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43019fi
43020echo "EXPORTS" >> ${D}defFile
43021
43022doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43023grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43024
43025# Checks if the export is ok or not.
43026for word in ${D}exclude_symbols; do
43027 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43028 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43029done
43030
43031
1e9e8aba
DE
43032if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43033 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43034 sed '
43035 N
43036 : loop
1e9e8aba 43037 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43038 t loop
43039 ' > ${D}{tmpdefFile}%
43040 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43041else
43042 rm -f ${D}{tmpdefFile}%
43043fi
43044cat ${D}tmpdefFile >> ${D}defFile
43045rm -f ${D}tmpdefFile
43046
43047# Do linking, create implib, and apply lxlite.
43048gccCmdl="";
43049for file in ${D}inputFiles ; do
43050 case ${D}file in
43051 *!)
43052 ;;
43053 *)
43054 gccCmdl="${D}gccCmdl ${D}file"
43055 ;;
43056 esac
43057done
43058doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43059touch "${D}{outFile}.dll"
43060
43061doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43062if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43063 add_flags="";
1e9e8aba 43064 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43065 add_flags="-ynd"
43066 fi
43067 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43068fi
43069doCommand "emxomf -s -l ${D}arcFile"
43070
43071# Successful exit.
43072CleanUp 1
43073exit 0
43074EOF
43075
43076 chmod +x dllar.sh
a848cd7e
SC
43077 ;;
43078
1e9e8aba 43079 powerpc-apple-macos* | \
a848cd7e
SC
43080 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43081 *-*-sunos4* | \
43082 *-*-osf* | \
43083 *-*-dgux5* | \
47a7e797
MW
43084 *-*-sysv5* | \
43085 *-pc-msdosdjgpp )
a848cd7e
SC
43086 ;;
43087
43088 *)
43089 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43090echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43091 { (exit 1); exit 1; }; }
43092 esac
43093
2057db16
VS
43094 if test "x$PIC_FLAG" != "x" ; then
43095 PIC_FLAG="$PIC_FLAG -DPIC"
43096 fi
43097
a848cd7e
SC
43098 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43099 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43100 fi
43101 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43102 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43103 fi
43104
43105
43106
43107
43108
43109
43110
43111
810b94f0 43112
a848cd7e
SC
43113 USE_SOVERSION=0
43114 USE_SOVERLINUX=0
43115 USE_SOVERSOLARIS=0
810b94f0 43116 USE_SOVERCYGWIN=0
a848cd7e
SC
43117 USE_SOSYMLINKS=0
43118 USE_MACVERSION=0
43119 SONAME_FLAG=
43120
43121 case "${BAKEFILE_HOST}" in
b1d22ded 43122 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43123 SONAME_FLAG="-Wl,-soname,"
43124 USE_SOVERSION=1
43125 USE_SOVERLINUX=1
43126 USE_SOSYMLINKS=1
43127 ;;
43128
a848cd7e
SC
43129 *-*-solaris2* )
43130 SONAME_FLAG="-h "
43131 USE_SOVERSION=1
43132 USE_SOVERSOLARIS=1
43133 USE_SOSYMLINKS=1
43134 ;;
43135
43136 *-*-darwin* )
43137 USE_MACVERSION=1
43138 USE_SOVERSION=1
43139 USE_SOSYMLINKS=1
43140 ;;
810b94f0
MW
43141
43142 *-*-cygwin* )
43143 USE_SOVERSION=1
43144 USE_SOVERCYGWIN=1
43145 ;;
a848cd7e
SC
43146 esac
43147
43148
43149
43150
43151
43152
43153
43154
43155
810b94f0 43156
a848cd7e
SC
43157 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43158echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43159 DEPS_TRACKING=0
43160
43161 if test "x$GCC" = "xyes"; then
43162 DEPSMODE=gcc
43163 DEPS_TRACKING=1
43164 case "${BAKEFILE_HOST}" in
43165 powerpc-*-darwin* )
43166 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43167 ;;
43168 * )
43169 DEPSFLAG_GCC="-MMD"
43170 ;;
43171 esac
43172 echo "$as_me:$LINENO: result: gcc" >&5
43173echo "${ECHO_T}gcc" >&6
b1d22ded 43174 elif test "x$MWCC" = "xyes"; then
81f90336 43175 DEPSMODE=mwcc
b1d22ded 43176 DEPS_TRACKING=1
81f90336 43177 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43178 echo "$as_me:$LINENO: result: mwcc" >&5
43179echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43180 elif test "x$SUNCC" = "xyes"; then
43181 DEPSMODE=suncc
43182 DEPS_TRACKING=1
43183 DEPSFLAG_SUNCC="-xM1"
43184 echo "$as_me:$LINENO: result: suncc" >&5
43185echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43186 else
43187 echo "$as_me:$LINENO: result: none" >&5
43188echo "${ECHO_T}none" >&6
43189 fi
43190
43191 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43192
43193D='$'
43194cat <<EOF >bk-deps
a848cd7e
SC
43195#!/bin/sh
43196
43197# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43198# script. It is used to track C/C++ files dependencies in portable way.
43199#
43200# Permission is given to use this file in any way.
43201
473276a9 43202DEPSMODE=${DEPSMODE}
a848cd7e 43203DEPSDIR=.deps
473276a9 43204DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43205DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43206DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43207
473276a9 43208mkdir -p ${D}DEPSDIR
a848cd7e 43209
473276a9
VS
43210if test ${D}DEPSMODE = gcc ; then
43211 ${D}* ${D}{DEPSFLAG_GCC}
43212 status=${D}?
43213 if test ${D}{status} != 0 ; then
43214 exit ${D}{status}
a848cd7e
SC
43215 fi
43216 # move created file to the location we want it in:
473276a9
VS
43217 while test ${D}# -gt 0; do
43218 case "${D}1" in
a848cd7e
SC
43219 -o )
43220 shift
473276a9 43221 objfile=${D}1
a848cd7e
SC
43222 ;;
43223 -* )
43224 ;;
43225 * )
473276a9 43226 srcfile=${D}1
a848cd7e
SC
43227 ;;
43228 esac
43229 shift
43230 done
1e9e8aba
DE
43231 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43232 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43233 if test -f ${D}depfile ; then
43234 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43235 rm -f ${D}depfile
a848cd7e 43236 else
1e9e8aba 43237 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43238 if test -f ${D}depfile ; then
43239 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43240 rm -f ${D}depfile
a848cd7e
SC
43241 fi
43242 fi
43243 exit 0
81f90336
MW
43244elif test ${D}DEPSMODE = mwcc ; then
43245 ${D}*
43246 status=${D}?
43247 if test ${D}{status} != 0 ; then
43248 exit ${D}{status}
43249 fi
43250 # Run mwcc again with -MM and redirect into the dep file we want
43251 # NOTE: We can't use shift here because we need ${D}* to be valid
43252 prevarg=
43253 for arg in ${D}* ; do
43254 if test "${D}prevarg" = "-o"; then
43255 objfile=${D}arg
43256 else
43257 case "${D}arg" in
43258 -* )
43259 ;;
43260 * )
43261 srcfile=${D}arg
43262 ;;
43263 esac
43264 fi
43265 prevarg="${D}arg"
43266 done
43267 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43268 exit 0
a9e5b1f0
MW
43269elif test ${D}DEPSMODE = suncc; then
43270 ${D}* || exit
43271 # Run compiler again with deps flag and redirect into the dep file.
43272 # It doesn't work if the '-o FILE' option is used, but without it the
43273 # dependency file will contain the wrong name for the object. So it is
43274 # removed from the command line, and the dep file is fixed with sed.
43275 cmd=""
43276 while test ${D}# -gt 0; do
43277 case "${D}1" in
43278 -o )
43279 shift
43280 objfile=${D}1
43281 ;;
43282 * )
43283 eval arg${D}#=\\${D}1
43284 cmd="${D}cmd \\${D}arg${D}#"
43285 ;;
43286 esac
43287 shift
43288 done
43289 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43290 exit 0
a848cd7e 43291else
473276a9
VS
43292 ${D}*
43293 exit ${D}?
a848cd7e
SC
43294fi
43295EOF
473276a9 43296
a848cd7e
SC
43297 chmod +x bk-deps
43298 fi
43299
43300
43301
43302
43303 RESCOMP=
43304 SETFILE=
43305
43306 case ${BAKEFILE_HOST} in
43307 *-*-cygwin* | *-*-mingw32* )
43308 if test "$build" != "$host" ; then
43309 RESCOMP=$host_alias-windres
43310 else
43311 # Extract the first word of "windres", so it can be a program name with args.
43312set dummy windres; ac_word=$2
43313echo "$as_me:$LINENO: checking for $ac_word" >&5
43314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43315if test "${ac_cv_prog_RESCOMP+set}" = set; then
43316 echo $ECHO_N "(cached) $ECHO_C" >&6
43317else
43318 if test -n "$RESCOMP"; then
43319 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43320else
43321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43322for as_dir in $PATH
43323do
43324 IFS=$as_save_IFS
43325 test -z "$as_dir" && as_dir=.
43326 for ac_exec_ext in '' $ac_executable_extensions; do
43327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43328 ac_cv_prog_RESCOMP="windres"
43329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43330 break 2
43331 fi
43332done
43333done
43334
43335 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43336fi
43337fi
43338RESCOMP=$ac_cv_prog_RESCOMP
43339if test -n "$RESCOMP"; then
43340 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43341echo "${ECHO_T}$RESCOMP" >&6
43342else
43343 echo "$as_me:$LINENO: result: no" >&5
43344echo "${ECHO_T}no" >&6
43345fi
43346
43347 fi
43348 ;;
43349
1e9e8aba 43350 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43351 # Extract the first word of "Rez", so it can be a program name with args.
43352set dummy Rez; ac_word=$2
43353echo "$as_me:$LINENO: checking for $ac_word" >&5
43354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43355if test "${ac_cv_prog_RESCOMP+set}" = set; then
43356 echo $ECHO_N "(cached) $ECHO_C" >&6
43357else
43358 if test -n "$RESCOMP"; then
43359 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43360else
43361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43362for as_dir in $PATH
43363do
43364 IFS=$as_save_IFS
43365 test -z "$as_dir" && as_dir=.
43366 for ac_exec_ext in '' $ac_executable_extensions; do
43367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43368 ac_cv_prog_RESCOMP="Rez"
43369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43370 break 2
43371 fi
43372done
43373done
43374
43375 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43376fi
43377fi
43378RESCOMP=$ac_cv_prog_RESCOMP
43379if test -n "$RESCOMP"; then
43380 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43381echo "${ECHO_T}$RESCOMP" >&6
43382else
43383 echo "$as_me:$LINENO: result: no" >&5
43384echo "${ECHO_T}no" >&6
43385fi
43386
43387 # Extract the first word of "SetFile", so it can be a program name with args.
43388set dummy SetFile; ac_word=$2
43389echo "$as_me:$LINENO: checking for $ac_word" >&5
43390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43391if test "${ac_cv_prog_SETFILE+set}" = set; then
43392 echo $ECHO_N "(cached) $ECHO_C" >&6
43393else
43394 if test -n "$SETFILE"; then
43395 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43396else
43397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43398for as_dir in $PATH
43399do
43400 IFS=$as_save_IFS
43401 test -z "$as_dir" && as_dir=.
43402 for ac_exec_ext in '' $ac_executable_extensions; do
43403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43404 ac_cv_prog_SETFILE="SetFile"
43405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43406 break 2
43407 fi
43408done
43409done
43410
43411 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43412fi
43413fi
43414SETFILE=$ac_cv_prog_SETFILE
43415if test -n "$SETFILE"; then
43416 echo "$as_me:$LINENO: result: $SETFILE" >&5
43417echo "${ECHO_T}$SETFILE" >&6
43418else
43419 echo "$as_me:$LINENO: result: no" >&5
43420echo "${ECHO_T}no" >&6
43421fi
43422
43423 ;;
43424 esac
43425
43426
43427
43428
43429
c9469659 43430 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43431
dcc1b6ad 43432
c9469659 43433BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43434
646b6ec1 43435
74b84332 43436
a848cd7e
SC
43437 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43438if test "${enable_precomp_headers+set}" = set; then
43439 enableval="$enable_precomp_headers"
43440 bk_use_pch="$enableval"
43441fi;
43442
43443 GCC_PCH=0
43444
43445 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43446 if test "x$GCC" = "xyes"; then
43447 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43448echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43449 cat >conftest.$ac_ext <<_ACEOF
43450/* confdefs.h. */
43451_ACEOF
43452cat confdefs.h >>conftest.$ac_ext
43453cat >>conftest.$ac_ext <<_ACEOF
43454/* end confdefs.h. */
43455
43456int
43457main ()
43458{
43459
43460 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43461 #error "no pch support"
43462 #endif
43463 #if (__GNUC__ < 3)
43464 #error "no pch support"
43465 #endif
43466 #if (__GNUC__ == 3) && \
43467 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43468 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43469 #error "no pch support"
43470 #endif
43471
43472 ;
43473 return 0;
43474}
43475_ACEOF
43476rm -f conftest.$ac_objext
43477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43478 (eval $ac_compile) 2>conftest.er1
a848cd7e 43479 ac_status=$?
ac1cb8d3
VS
43480 grep -v '^ *+' conftest.er1 >conftest.err
43481 rm -f conftest.er1
43482 cat conftest.err >&5
a848cd7e
SC
43483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43484 (exit $ac_status); } &&
6ebeb4c7 43485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43487 (eval $ac_try) 2>&5
43488 ac_status=$?
43489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43490 (exit $ac_status); }; } &&
43491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43493 (eval $ac_try) 2>&5
43494 ac_status=$?
43495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43496 (exit $ac_status); }; }; then
43497
43498 echo "$as_me:$LINENO: result: yes" >&5
43499echo "${ECHO_T}yes" >&6
a848cd7e
SC
43500 GCC_PCH=1
43501
43502else
43503 echo "$as_me: failed program was:" >&5
43504sed 's/^/| /' conftest.$ac_ext >&5
43505
43506
43507 echo "$as_me:$LINENO: result: no" >&5
43508echo "${ECHO_T}no" >&6
43509
43510fi
ac1cb8d3 43511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43512 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43513
43514D='$'
43515cat <<EOF >bk-make-pch
a848cd7e
SC
43516#!/bin/sh
43517
43518# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43519# script. It is used to generated precompiled headers.
43520#
43521# Permission is given to use this file in any way.
43522
1e9e8aba
DE
43523outfile="${D}{1}"
43524header="${D}{2}"
a848cd7e
SC
43525shift
43526shift
43527
43528compiler=
43529headerfile=
1e9e8aba
DE
43530while test ${D}{#} -gt 0; do
43531 case "${D}{1}" in
a848cd7e 43532 -I* )
1e9e8aba
DE
43533 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43534 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43535 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43536 fi
43537 ;;
43538 esac
1e9e8aba 43539 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43540 shift
43541done
43542
1e9e8aba
DE
43543if test "x${D}{headerfile}" = "x" ; then
43544 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43545else
1e9e8aba
DE
43546 if test -f ${D}{outfile} ; then
43547 rm -f ${D}{outfile}
a848cd7e 43548 else
1e9e8aba 43549 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43550 fi
1e9e8aba 43551 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43552 mkdir -p .deps
43553 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43554 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43555 exit ${D}{?}
a848cd7e
SC
43556fi
43557EOF
1e9e8aba 43558
a848cd7e
SC
43559 chmod +x bk-make-pch
43560 fi
43561 fi
43562 fi
43563
43564
43565
a848cd7e
SC
43566 COND_BUILD_DEBUG="#"
43567 if test "x$BUILD" = "xdebug" ; then
43568 COND_BUILD_DEBUG=""
43569 fi
43570
43571 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43572 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43573 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43574 fi
43575
43576 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43577 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43578 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43579 fi
43580
43581 COND_BUILD_DEBUG_UNICODE_0="#"
43582 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43583 COND_BUILD_DEBUG_UNICODE_0=""
43584 fi
43585
43586 COND_BUILD_DEBUG_UNICODE_1="#"
43587 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43588 COND_BUILD_DEBUG_UNICODE_1=""
43589 fi
43590
43591 COND_BUILD_RELEASE="#"
43592 if test "x$BUILD" = "xrelease" ; then
43593 COND_BUILD_RELEASE=""
43594 fi
43595
43596 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43597 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43598 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43599 fi
43600
43601 COND_BUILD_RELEASE_UNICODE_0="#"
43602 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43603 COND_BUILD_RELEASE_UNICODE_0=""
43604 fi
43605
43606 COND_BUILD_RELEASE_UNICODE_1="#"
43607 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43608 COND_BUILD_RELEASE_UNICODE_1=""
43609 fi
43610
43611 COND_DEBUG_FLAG_1="#"
43612 if test "x$DEBUG_FLAG" = "x1" ; then
43613 COND_DEBUG_FLAG_1=""
43614 fi
43615
43616 COND_DEBUG_INFO_0="#"
43617 if test "x$DEBUG_INFO" = "x0" ; then
43618 COND_DEBUG_INFO_0=""
43619 fi
43620
43621 COND_DEBUG_INFO_1="#"
43622 if test "x$DEBUG_INFO" = "x1" ; then
43623 COND_DEBUG_INFO_1=""
43624 fi
43625
43626 COND_DEPS_TRACKING_0="#"
43627 if test "x$DEPS_TRACKING" = "x0" ; then
43628 COND_DEPS_TRACKING_0=""
43629 fi
43630
43631 COND_DEPS_TRACKING_1="#"
43632 if test "x$DEPS_TRACKING" = "x1" ; then
43633 COND_DEPS_TRACKING_1=""
43634 fi
43635
43636 COND_GCC_PCH_1="#"
43637 if test "x$GCC_PCH" = "x1" ; then
43638 COND_GCC_PCH_1=""
43639 fi
43640
43641 COND_MONOLITHIC_0="#"
43642 if test "x$MONOLITHIC" = "x0" ; then
43643 COND_MONOLITHIC_0=""
43644 fi
43645
43646 COND_MONOLITHIC_0_SHARED_0="#"
43647 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43648 COND_MONOLITHIC_0_SHARED_0=""
43649 fi
43650
43651 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43652 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43653 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43654 fi
43655
90970d69
DE
43656 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43657 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43658 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43659 fi
43660
a848cd7e
SC
43661 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43662 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43663 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43664 fi
43665
6671c68b
VZ
43666 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43667 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43669 fi
43670
a848cd7e
SC
43671 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43672 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43673 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43674 fi
43675
ceec2216
RL
43676 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43677 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43678 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43679 fi
43680
a848cd7e
SC
43681 COND_MONOLITHIC_0_SHARED_1="#"
43682 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43683 COND_MONOLITHIC_0_SHARED_1=""
43684 fi
43685
43686 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43687 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43688 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43689 fi
43690
90970d69
DE
43691 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43692 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43693 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43694 fi
43695
a848cd7e
SC
43696 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43697 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43698 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43699 fi
43700
6671c68b
VZ
43701 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43702 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43703 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43704 fi
43705
a848cd7e
SC
43706 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43707 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43708 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43709 fi
43710
ceec2216
RL
43711 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43712 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43713 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43714 fi
43715
a848cd7e
SC
43716 COND_MONOLITHIC_0_USE_ODBC_1="#"
43717 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43718 COND_MONOLITHIC_0_USE_ODBC_1=""
43719 fi
43720
43721 COND_MONOLITHIC_1="#"
43722 if test "x$MONOLITHIC" = "x1" ; then
43723 COND_MONOLITHIC_1=""
43724 fi
43725
43726 COND_MONOLITHIC_1_SHARED_0="#"
43727 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43728 COND_MONOLITHIC_1_SHARED_0=""
43729 fi
43730
43731 COND_MONOLITHIC_1_SHARED_1="#"
43732 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43733 COND_MONOLITHIC_1_SHARED_1=""
43734 fi
43735
43736 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43737 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43738 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43739 fi
43740
43741 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43742 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43743 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43744 fi
43745
eb730a0c
JS
43746 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43747 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43748 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43749 fi
43750
a848cd7e
SC
43751 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43752 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43753 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43754 fi
43755
43756 COND_PLATFORM_MACOSX_1="#"
43757 if test "x$PLATFORM_MACOSX" = "x1" ; then
43758 COND_PLATFORM_MACOSX_1=""
43759 fi
43760
a30f955f
VS
43761 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43762 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43763 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43764 fi
43765
a848cd7e
SC
43766 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43767 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43768 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43769 fi
43770
43771 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43772 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43773 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43774 fi
43775
43776 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43777 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43778 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43779 fi
43780
fc480dc1
DE
43781 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43782 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43783 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43784 fi
43785
1e9e8aba
DE
43786 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43787 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43788 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43789 fi
43790
ebee3cd0
VS
43791 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43792 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43793 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43794 fi
43795
43796 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43797 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43798 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43799 fi
43800
a848cd7e
SC
43801 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43802 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43803 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43804 fi
43805
43806 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43807 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43808 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43809 fi
43810
b48a2016
DE
43811 COND_PLATFORM_MACOS_1="#"
43812 if test "x$PLATFORM_MACOS" = "x1" ; then
43813 COND_PLATFORM_MACOS_1=""
43814 fi
43815
083508af
MW
43816 COND_PLATFORM_MAC_1="#"
43817 if test "x$PLATFORM_MAC" = "x1" ; then
43818 COND_PLATFORM_MAC_1=""
43819 fi
43820
83d8eb47
MW
43821 COND_PLATFORM_MSDOS_1="#"
43822 if test "x$PLATFORM_MSDOS" = "x1" ; then
43823 COND_PLATFORM_MSDOS_1=""
43824 fi
43825
a848cd7e
SC
43826 COND_PLATFORM_OS2_1="#"
43827 if test "x$PLATFORM_OS2" = "x1" ; then
43828 COND_PLATFORM_OS2_1=""
43829 fi
43830
43831 COND_PLATFORM_UNIX_0="#"
43832 if test "x$PLATFORM_UNIX" = "x0" ; then
43833 COND_PLATFORM_UNIX_0=""
43834 fi
43835
43836 COND_PLATFORM_UNIX_1="#"
43837 if test "x$PLATFORM_UNIX" = "x1" ; then
43838 COND_PLATFORM_UNIX_1=""
43839 fi
43840
43841 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43842 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43843 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43844 fi
43845
43846 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43847 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43848 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43849 fi
43850
43851 COND_PLATFORM_WIN32_0="#"
43852 if test "x$PLATFORM_WIN32" = "x0" ; then
43853 COND_PLATFORM_WIN32_0=""
43854 fi
43855
43856 COND_PLATFORM_WIN32_1="#"
43857 if test "x$PLATFORM_WIN32" = "x1" ; then
43858 COND_PLATFORM_WIN32_1=""
43859 fi
43860
43861 COND_SHARED_0="#"
43862 if test "x$SHARED" = "x0" ; then
43863 COND_SHARED_0=""
43864 fi
43865
083508af
MW
43866 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43867 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43868 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43869 fi
43870
43871 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43872 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43873 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43874 fi
43875
43876 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43877 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43878 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43879 fi
43880
a848cd7e
SC
43881 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43882 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43883 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43884 fi
43885
43886 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43887 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43888 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43889 fi
43890
43891 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43892 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43893 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43894 fi
43895
43896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43897 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43899 fi
43900
083508af
MW
43901 COND_SHARED_0_USE_XRC_1="#"
43902 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43903 COND_SHARED_0_USE_XRC_1=""
43904 fi
43905
a848cd7e
SC
43906 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43907 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43908 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43909 fi
43910
43911 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43912 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43913 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43914 fi
43915
43916 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43917 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43918 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43919 fi
43920
43921 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43922 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43923 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43924 fi
43925
43926 COND_SHARED_1="#"
43927 if test "x$SHARED" = "x1" ; then
43928 COND_SHARED_1=""
43929 fi
43930
43931 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43932 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43933 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43934 fi
43935
083508af
MW
43936 COND_SHARED_1_USE_XRC_1="#"
43937 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43938 COND_SHARED_1_USE_XRC_1=""
43939 fi
43940
a30f955f
VS
43941 COND_TOOLKIT_="#"
43942 if test "x$TOOLKIT" = "x" ; then
43943 COND_TOOLKIT_=""
43944 fi
43945
a848cd7e
SC
43946 COND_TOOLKIT_COCOA="#"
43947 if test "x$TOOLKIT" = "xCOCOA" ; then
43948 COND_TOOLKIT_COCOA=""
43949 fi
43950
a49baeab
DE
43951 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43952 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43953 COND_TOOLKIT_COCOA_USE_GUI_1=""
43954 fi
43955
a848cd7e
SC
43956 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43957 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43958 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43959 fi
43960
43961 COND_TOOLKIT_GTK="#"
43962 if test "x$TOOLKIT" = "xGTK" ; then
43963 COND_TOOLKIT_GTK=""
43964 fi
43965
43966 COND_TOOLKIT_GTK_USE_GUI_1="#"
43967 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43968 COND_TOOLKIT_GTK_USE_GUI_1=""
43969 fi
43970
43971 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43972 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43973 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43974 fi
43975
43976 COND_TOOLKIT_MAC="#"
43977 if test "x$TOOLKIT" = "xMAC" ; then
43978 COND_TOOLKIT_MAC=""
43979 fi
43980
43981 COND_TOOLKIT_MAC_USE_GUI_1="#"
43982 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43983 COND_TOOLKIT_MAC_USE_GUI_1=""
43984 fi
43985
43986 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43987 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43988 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43989 fi
43990
43991 COND_TOOLKIT_MGL="#"
43992 if test "x$TOOLKIT" = "xMGL" ; then
43993 COND_TOOLKIT_MGL=""
43994 fi
43995
43996 COND_TOOLKIT_MGL_USE_GUI_1="#"
43997 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43998 COND_TOOLKIT_MGL_USE_GUI_1=""
43999 fi
44000
44001 COND_TOOLKIT_MOTIF="#"
44002 if test "x$TOOLKIT" = "xMOTIF" ; then
44003 COND_TOOLKIT_MOTIF=""
44004 fi
44005
44006 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44007 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44008 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44009 fi
44010
44011 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44012 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44013 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44014 fi
44015
44016 COND_TOOLKIT_MSW="#"
44017 if test "x$TOOLKIT" = "xMSW" ; then
44018 COND_TOOLKIT_MSW=""
44019 fi
44020
44021 COND_TOOLKIT_MSW_USE_GUI_1="#"
44022 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44023 COND_TOOLKIT_MSW_USE_GUI_1=""
44024 fi
44025
44026 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44027 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44028 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44029 fi
44030
44031 COND_TOOLKIT_PM="#"
44032 if test "x$TOOLKIT" = "xPM" ; then
44033 COND_TOOLKIT_PM=""
44034 fi
44035
44036 COND_TOOLKIT_PM_USE_GUI_1="#"
44037 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44038 COND_TOOLKIT_PM_USE_GUI_1=""
44039 fi
44040
44041 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44042 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44043 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44044 fi
44045
3fd9c298
DE
44046 COND_TOOLKIT_WINCE="#"
44047 if test "x$TOOLKIT" = "xWINCE" ; then
44048 COND_TOOLKIT_WINCE=""
44049 fi
44050
44051 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44052 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44053 COND_TOOLKIT_WINCE_USE_GUI_1=""
44054 fi
44055
44056 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44057 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44058 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44059 fi
44060
a848cd7e
SC
44061 COND_TOOLKIT_X11="#"
44062 if test "x$TOOLKIT" = "xX11" ; then
44063 COND_TOOLKIT_X11=""
44064 fi
44065
44066 COND_TOOLKIT_X11_USE_GUI_1="#"
44067 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44068 COND_TOOLKIT_X11_USE_GUI_1=""
44069 fi
44070
44071 COND_UNICODE_1="#"
44072 if test "x$UNICODE" = "x1" ; then
44073 COND_UNICODE_1=""
44074 fi
44075
44076 COND_USE_EXCEPTIONS_0="#"
44077 if test "x$USE_EXCEPTIONS" = "x0" ; then
44078 COND_USE_EXCEPTIONS_0=""
44079 fi
44080
44081 COND_USE_EXCEPTIONS_1="#"
44082 if test "x$USE_EXCEPTIONS" = "x1" ; then
44083 COND_USE_EXCEPTIONS_1=""
44084 fi
44085
44086 COND_USE_GUI_0="#"
44087 if test "x$USE_GUI" = "x0" ; then
44088 COND_USE_GUI_0=""
44089 fi
44090
44091 COND_USE_GUI_1="#"
44092 if test "x$USE_GUI" = "x1" ; then
44093 COND_USE_GUI_1=""
44094 fi
44095
44096 COND_USE_GUI_1_WXUNIV_0="#"
44097 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44098 COND_USE_GUI_1_WXUNIV_0=""
44099 fi
44100
44101 COND_USE_GUI_1_WXUNIV_1="#"
44102 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44103 COND_USE_GUI_1_WXUNIV_1=""
44104 fi
44105
44106 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44107 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44108 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44109 fi
44110
44111 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44112 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44113 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44114 fi
44115
44116 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44117 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44118 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44119 fi
44120
083508af
MW
44121 COND_USE_ODBC_1="#"
44122 if test "x$USE_ODBC" = "x1" ; then
44123 COND_USE_ODBC_1=""
44124 fi
44125
44126 COND_USE_OPENGL_1="#"
44127 if test "x$USE_OPENGL" = "x1" ; then
44128 COND_USE_OPENGL_1=""
44129 fi
44130
a848cd7e
SC
44131 COND_USE_PLUGINS_0="#"
44132 if test "x$USE_PLUGINS" = "x0" ; then
44133 COND_USE_PLUGINS_0=""
44134 fi
44135
0b78747f
MW
44136 COND_USE_RTTI_0="#"
44137 if test "x$USE_RTTI" = "x0" ; then
44138 COND_USE_RTTI_0=""
44139 fi
44140
44141 COND_USE_RTTI_1="#"
44142 if test "x$USE_RTTI" = "x1" ; then
44143 COND_USE_RTTI_1=""
44144 fi
44145
a848cd7e
SC
44146 COND_USE_SOSYMLINKS_1="#"
44147 if test "x$USE_SOSYMLINKS" = "x1" ; then
44148 COND_USE_SOSYMLINKS_1=""
44149 fi
44150
eb730a0c
JS
44151 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44152 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44153 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44154 fi
44155
a848cd7e
SC
44156 COND_USE_SOVERLINUX_1="#"
44157 if test "x$USE_SOVERLINUX" = "x1" ; then
44158 COND_USE_SOVERLINUX_1=""
44159 fi
44160
44161 COND_USE_SOVERSION_0="#"
44162 if test "x$USE_SOVERSION" = "x0" ; then
44163 COND_USE_SOVERSION_0=""
44164 fi
44165
44166 COND_USE_SOVERSOLARIS_1="#"
44167 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44168 COND_USE_SOVERSOLARIS_1=""
44169 fi
44170
0b78747f
MW
44171 COND_USE_THREADS_0="#"
44172 if test "x$USE_THREADS" = "x0" ; then
44173 COND_USE_THREADS_0=""
44174 fi
44175
44176 COND_USE_THREADS_1="#"
44177 if test "x$USE_THREADS" = "x1" ; then
44178 COND_USE_THREADS_1=""
44179 fi
44180
a13a7f89
RL
44181 COND_USE_XRC_1="#"
44182 if test "x$USE_XRC" = "x1" ; then
44183 COND_USE_XRC_1=""
44184 fi
44185
eb730a0c
JS
44186 COND_WINDOWS_IMPLIB_1="#"
44187 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44188 COND_WINDOWS_IMPLIB_1=""
44189 fi
44190
a848cd7e
SC
44191 COND_WITH_PLUGIN_SDL_1="#"
44192 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44193 COND_WITH_PLUGIN_SDL_1=""
44194 fi
44195
1e6eb025
VZ
44196 COND_WXUNIV_0="#"
44197 if test "x$WXUNIV" = "x0" ; then
44198 COND_WXUNIV_0=""
44199 fi
44200
a848cd7e
SC
44201 COND_WXUNIV_1="#"
44202 if test "x$WXUNIV" = "x1" ; then
44203 COND_WXUNIV_1=""
44204 fi
44205
44206 COND_WXUSE_EXPAT_BUILTIN="#"
44207 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44208 COND_WXUSE_EXPAT_BUILTIN=""
44209 fi
44210
44211 COND_WXUSE_LIBJPEG_BUILTIN="#"
44212 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44213 COND_WXUSE_LIBJPEG_BUILTIN=""
44214 fi
44215
44216 COND_WXUSE_LIBPNG_BUILTIN="#"
44217 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44218 COND_WXUSE_LIBPNG_BUILTIN=""
44219 fi
44220
44221 COND_WXUSE_LIBTIFF_BUILTIN="#"
44222 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44223 COND_WXUSE_LIBTIFF_BUILTIN=""
44224 fi
44225
44226 COND_WXUSE_ODBC_BUILTIN="#"
44227 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44228 COND_WXUSE_ODBC_BUILTIN=""
44229 fi
44230
44231 COND_WXUSE_REGEX_BUILTIN="#"
44232 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44233 COND_WXUSE_REGEX_BUILTIN=""
44234 fi
44235
44236 COND_WXUSE_ZLIB_BUILTIN="#"
44237 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44238 COND_WXUSE_ZLIB_BUILTIN=""
44239 fi
44240
44241
44242
810b94f0
MW
44243 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44244 { { 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
44245echo "$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;}
44246 { (exit 1); exit 1; }; }
44247 fi
44248
2057db16
VS
44249 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44250 { { 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
44251echo "$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;}
44252 { (exit 1); exit 1; }; }
44253 fi
44254
a848cd7e 44255
fb00f58d
JS
44256if test "$wxUSE_WINE" = "yes"; then
44257 RESCOMP=wrc
44258fi
44259
ceec2216
RL
44260if test "$wxUSE_SHARED" = "yes"; then
44261
44262 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44263 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44264
5b674b9d
DE
44265 case "${host}" in
44266 *-pc-os2_emx | *-pc-os2-emx )
44267 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44268 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44269 cp -p ${srcdir}/src/os2/dllnames.sh .
44270 cp -p ${srcdir}/src/os2/dllar.sh .
44271 ;;
44272 esac
ceec2216
RL
44273else
44274
44275 EXE_LINKER="$CXX -o"
44276
44277fi
69120ee4
VZ
44278if test "$wxUSE_OMF" = "yes"; then
44279 case "${host}" in
44280 *-pc-os2_emx | *-pc-os2-emx )
44281 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44282 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44283 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44284 ;;
44285 esac
44286fi
a848cd7e 44287
ddd14b14
RR
44288GCC_PRAGMA_FLAGS=""
44289PCH_FLAGS=""
87dd70d3 44290
c08ebc62 44291if test $GCC_PCH = 1 ; then
ddd14b14 44292 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44293 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44294else
44295 if test "$GCC" = yes; then
44296 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44297echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44298 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44299/* confdefs.h. */
44300_ACEOF
44301cat confdefs.h >>conftest.$ac_ext
44302cat >>conftest.$ac_ext <<_ACEOF
44303/* end confdefs.h. */
44304
44305int
44306main ()
44307{
44308#if (__GNUC__ < 4)
87ae5038
RR
44309 #error "Not GCC 4.0 or greater"
44310 #endif
87dd70d3
RR
44311
44312 ;
44313 return 0;
44314}
44315_ACEOF
44316rm -f conftest.$ac_objext
44317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44318 (eval $ac_compile) 2>conftest.er1
44319 ac_status=$?
44320 grep -v '^ *+' conftest.er1 >conftest.err
44321 rm -f conftest.er1
44322 cat conftest.err >&5
44323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44324 (exit $ac_status); } &&
6ebeb4c7 44325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44327 (eval $ac_try) 2>&5
44328 ac_status=$?
44329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44330 (exit $ac_status); }; } &&
44331 { ac_try='test -s conftest.$ac_objext'
44332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44333 (eval $ac_try) 2>&5
44334 ac_status=$?
44335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44336 (exit $ac_status); }; }; then
44337 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44338 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44339echo "${ECHO_T}yes" >&6
44340else
44341 echo "$as_me: failed program was:" >&5
44342sed 's/^/| /' conftest.$ac_ext >&5
44343
44344echo "$as_me:$LINENO: result: no" >&5
44345echo "${ECHO_T}no" >&6
87ae5038
RR
44346 case "${host}" in
44347 powerpc-*-darwin* )
44348 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44349 ;;
44350 *-*-mingw32* )
44351 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44352 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44353 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44354 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44355echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44356 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44357/* confdefs.h. */
44358_ACEOF
44359cat confdefs.h >>conftest.$ac_ext
44360cat >>conftest.$ac_ext <<_ACEOF
44361/* end confdefs.h. */
44362
44363int
44364main ()
44365{
44366#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44367 #error "Not GCC 3.2 or greater"
44368 #endif
ddd14b14
RR
44369
44370 ;
44371 return 0;
44372}
44373_ACEOF
44374rm -f conftest.$ac_objext
44375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44376 (eval $ac_compile) 2>conftest.er1
44377 ac_status=$?
44378 grep -v '^ *+' conftest.er1 >conftest.err
44379 rm -f conftest.er1
44380 cat conftest.err >&5
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); } &&
6ebeb4c7 44383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44385 (eval $ac_try) 2>&5
44386 ac_status=$?
44387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44388 (exit $ac_status); }; } &&
44389 { ac_try='test -s conftest.$ac_objext'
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44392 ac_status=$?
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; }; then
44395 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44396 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44397echo "${ECHO_T}yes" >&6
44398else
44399 echo "$as_me: failed program was:" >&5
44400sed 's/^/| /' conftest.$ac_ext >&5
44401
44402echo "$as_me:$LINENO: result: no" >&5
44403echo "${ECHO_T}no" >&6
3314e67b 44404fi
ddd14b14 44405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44406 fi
44407 ;;
44408 *-pc-os2_emx | *-pc-os2-emx )
44409 if test "$wxUSE_STL" = "yes"; then
44410 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44411echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44412 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44413/* confdefs.h. */
44414_ACEOF
44415cat confdefs.h >>conftest.$ac_ext
44416cat >>conftest.$ac_ext <<_ACEOF
44417/* end confdefs.h. */
44418
44419int
44420main ()
44421{
44422#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44423 #error "Not GCC 3.2 or greater"
44424 #endif
ddd14b14
RR
44425
44426 ;
44427 return 0;
44428}
44429_ACEOF
44430rm -f conftest.$ac_objext
44431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44432 (eval $ac_compile) 2>conftest.er1
44433 ac_status=$?
44434 grep -v '^ *+' conftest.er1 >conftest.err
44435 rm -f conftest.er1
44436 cat conftest.err >&5
44437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44438 (exit $ac_status); } &&
6ebeb4c7 44439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441 (eval $ac_try) 2>&5
44442 ac_status=$?
44443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); }; } &&
44445 { ac_try='test -s conftest.$ac_objext'
44446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44447 (eval $ac_try) 2>&5
44448 ac_status=$?
44449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44450 (exit $ac_status); }; }; then
44451 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44452 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44453echo "${ECHO_T}yes" >&6
44454else
44455 echo "$as_me: failed program was:" >&5
44456sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44457
ddd14b14
RR
44458echo "$as_me:$LINENO: result: no" >&5
44459echo "${ECHO_T}no" >&6
44460fi
44461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44462 fi
44463 ;;
44464 esac
44465
44466fi
44467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44468 fi
ddd14b14
RR
44469fi
44470CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44471
44472
44473SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44474
44475
44476
44477
44478
44479
44480
44481
44482
44483
44484
44485
44486
44487
44488
44489
44490
44491
44492
44493
44494
44495
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515
a848cd7e
SC
44516
44517
44518
44519
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530
44531
44532
44533
ddd14b14 44534
a848cd7e
SC
44535
44536
44537echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44538echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44539set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44540if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44541 echo $ECHO_N "(cached) $ECHO_C" >&6
44542else
44543 cat >conftest.make <<\_ACEOF
44544all:
44545 @echo 'ac_maketemp="$(MAKE)"'
44546_ACEOF
44547# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44548eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44549if test -n "$ac_maketemp"; then
44550 eval ac_cv_prog_make_${ac_make}_set=yes
44551else
44552 eval ac_cv_prog_make_${ac_make}_set=no
44553fi
44554rm -f conftest.make
44555fi
44556if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44557 echo "$as_me:$LINENO: result: yes" >&5
44558echo "${ECHO_T}yes" >&6
44559 SET_MAKE=
44560else
44561 echo "$as_me:$LINENO: result: no" >&5
44562echo "${ECHO_T}no" >&6
44563 SET_MAKE="MAKE=${MAKE-make}"
44564fi
44565
44566
a848cd7e 44567
ceec2216
RL
44568 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44569
a848cd7e 44570
ceec2216 44571 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44572
a848cd7e 44573
ceec2216 44574 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44575
ceec2216
RL
44576
44577 ac_config_files="$ac_config_files version-script Makefile"
44578
44579
44580 ac_config_commands="$ac_config_commands wx-config
44581 "
a848cd7e
SC
44582
44583
9103d280
RL
44584
44585
a848cd7e
SC
44586if test "$wxUSE_GUI" = "yes"; then
44587 SUBDIRS="samples demos utils contrib"
44588else SUBDIRS="samples utils"
44589fi
44590
44591
44592
44593# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44594if test "${with_cppunit_prefix+set}" = set; then
44595 withval="$with_cppunit_prefix"
44596 cppunit_config_prefix="$withval"
44597else
44598 cppunit_config_prefix=""
44599fi;
44600
44601# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44602if test "${with_cppunit_exec_prefix+set}" = set; then
44603 withval="$with_cppunit_exec_prefix"
44604 cppunit_config_exec_prefix="$withval"
44605else
44606 cppunit_config_exec_prefix=""
44607fi;
44608
44609 if test x$cppunit_config_exec_prefix != x ; then
44610 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44611 if test x${CPPUNIT_CONFIG+set} != xset ; then
44612 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44613 fi
44614 fi
44615 if test x$cppunit_config_prefix != x ; then
44616 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44617 if test x${CPPUNIT_CONFIG+set} != xset ; then
44618 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44619 fi
44620 fi
44621
44622 # Extract the first word of "cppunit-config", so it can be a program name with args.
44623set dummy cppunit-config; ac_word=$2
44624echo "$as_me:$LINENO: checking for $ac_word" >&5
44625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44626if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44627 echo $ECHO_N "(cached) $ECHO_C" >&6
44628else
44629 case $CPPUNIT_CONFIG in
44630 [\\/]* | ?:[\\/]*)
44631 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44632 ;;
44633 *)
44634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44635for as_dir in $PATH
44636do
44637 IFS=$as_save_IFS
44638 test -z "$as_dir" && as_dir=.
44639 for ac_exec_ext in '' $ac_executable_extensions; do
44640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44641 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44643 break 2
44644 fi
44645done
44646done
44647
44648 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44649 ;;
44650esac
44651fi
44652CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44653
44654if test -n "$CPPUNIT_CONFIG"; then
44655 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44656echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44657else
44658 echo "$as_me:$LINENO: result: no" >&5
44659echo "${ECHO_T}no" >&6
44660fi
44661
44662 cppunit_version_min=1.8.0
44663
44664 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44665echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44666 no_cppunit=""
44667 if test "$CPPUNIT_CONFIG" = "no" ; then
44668 no_cppunit=yes
44669 else
44670 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44671 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44672 cppunit_version=`$CPPUNIT_CONFIG --version`
44673
44674 cppunit_major_version=`echo $cppunit_version | \
44675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44676 cppunit_minor_version=`echo $cppunit_version | \
44677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44678 cppunit_micro_version=`echo $cppunit_version | \
44679 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44680
44681 cppunit_major_min=`echo $cppunit_version_min | \
44682 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44683 cppunit_minor_min=`echo $cppunit_version_min | \
44684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44685 cppunit_micro_min=`echo $cppunit_version_min | \
44686 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44687
44688 cppunit_version_proper=`expr \
44689 $cppunit_major_version \> $cppunit_major_min \| \
44690 $cppunit_major_version \= $cppunit_major_min \& \
44691 $cppunit_minor_version \> $cppunit_minor_min \| \
44692 $cppunit_major_version \= $cppunit_major_min \& \
44693 $cppunit_minor_version \= $cppunit_minor_min \& \
44694 $cppunit_micro_version \>= $cppunit_micro_min `
44695
44696 if test "$cppunit_version_proper" = "1" ; then
44697 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44698echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44699 else
44700 echo "$as_me:$LINENO: result: no" >&5
44701echo "${ECHO_T}no" >&6
44702 no_cppunit=yes
44703 fi
44704 fi
44705
44706 if test "x$no_cppunit" = x ; then
c2218763 44707 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44708 else
44709 CPPUNIT_CFLAGS=""
44710 CPPUNIT_LIBS=""
c2218763 44711 :
a848cd7e
SC
44712 fi
44713
44714
44715
44716
44717
44718for subdir in `echo $SUBDIRS`; do
44719 if test -d ${srcdir}/${subdir} ; then
44720 if test "$wxUSE_GUI" = "yes"; then
44721 if test ${subdir} = "samples"; then
44722 makefiles="samples/Makefile.in $makefiles"
44723 for sample in `echo $SAMPLES_SUBDIRS`; do
44724 if test -d $srcdir/samples/$sample; then
44725 makefiles="samples/$sample/Makefile.in $makefiles"
44726 fi
44727 done
9c112555
MW
44728 else
44729 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44730 eval "disabled=\$$disabled_var"
44731 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44732 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44733 fi
44734 else if test ${subdir} = "samples"; then
44735 makefiles="samples/Makefile.in samples/console/Makefile.in"
44736 elif test ${subdir} = "utils"; then
6537ccf8
VS
44737 makefiles=""
44738 for util in HelpGen tex2rtf ; do
44739 if test -d $srcdir/utils/$util ; then
44740 makefiles="utils/$util/Makefile.in \
44741 utils/$util/src/Makefile.in \
44742 $makefiles"
44743 fi
44744 done
a848cd7e
SC
44745 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44746 fi
44747 fi
44748
44749 for mkin in $makefiles ; do
44750 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44751 ac_config_files="$ac_config_files $mk"
44752
44753 done
44754 fi
44755done
44756
44757
44758cat >confcache <<\_ACEOF
44759# This file is a shell script that caches the results of configure
44760# tests run on this system so they can be shared between configure
44761# scripts and configure runs, see configure's option --config-cache.
44762# It is not useful on other systems. If it contains results you don't
44763# want to keep, you may remove or edit it.
44764#
44765# config.status only pays attention to the cache file if you give it
44766# the --recheck option to rerun configure.
44767#
44768# `ac_cv_env_foo' variables (set or unset) will be overridden when
44769# loading this file, other *unset* `ac_cv_foo' will be assigned the
44770# following values.
44771
44772_ACEOF
44773
44774# The following way of writing the cache mishandles newlines in values,
44775# but we know of no workaround that is simple, portable, and efficient.
44776# So, don't put newlines in cache variables' values.
44777# Ultrix sh set writes to stderr and can't be redirected directly,
44778# and sets the high bit in the cache file unless we assign to the vars.
44779{
44780 (set) 2>&1 |
44781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44782 *ac_space=\ *)
44783 # `set' does not quote correctly, so add quotes (double-quote
44784 # substitution turns \\\\ into \\, and sed turns \\ into \).
44785 sed -n \
ac1cb8d3
VS
44786 "s/'/'\\\\''/g;
44787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44788 ;;
44789 *)
44790 # `set' quotes correctly as required by POSIX, so do not add quotes.
44791 sed -n \
ac1cb8d3 44792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44793 ;;
44794 esac;
44795} |
44796 sed '
44797 t clear
44798 : clear
44799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44800 t end
44801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44802 : end' >>confcache
44803if diff $cache_file confcache >/dev/null 2>&1; then :; else
44804 if test -w $cache_file; then
44805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44806 cat confcache >$cache_file
44807 else
44808 echo "not updating unwritable cache $cache_file"
44809 fi
44810fi
44811rm -f confcache
44812
44813test "x$prefix" = xNONE && prefix=$ac_default_prefix
44814# Let make expand exec_prefix.
44815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44816
44817# VPATH may cause trouble with some makes, so we remove $(srcdir),
44818# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44819# trailing colons and then remove the whole line if VPATH becomes empty
44820# (actually we leave an empty line to preserve line numbers).
44821if test "x$srcdir" = x.; then
ac1cb8d3 44822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44823s/:*\$(srcdir):*/:/;
44824s/:*\${srcdir}:*/:/;
44825s/:*@srcdir@:*/:/;
ac1cb8d3 44826s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44827s/:*$//;
ac1cb8d3 44828s/^[^=]*=[ ]*$//;
a848cd7e
SC
44829}'
44830fi
44831
44832DEFS=-DHAVE_CONFIG_H
44833
44834ac_libobjs=
44835ac_ltlibobjs=
44836for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44837 # 1. Remove the extension, and $U if already installed.
44838 ac_i=`echo "$ac_i" |
ac1cb8d3 44839 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44840 # 2. Add them.
44841 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44842 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44843done
44844LIBOBJS=$ac_libobjs
44845
44846LTLIBOBJS=$ac_ltlibobjs
44847
44848
44849
44850: ${CONFIG_STATUS=./config.status}
44851ac_clean_files_save=$ac_clean_files
44852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44853{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44854echo "$as_me: creating $CONFIG_STATUS" >&6;}
44855cat >$CONFIG_STATUS <<_ACEOF
44856#! $SHELL
44857# Generated by $as_me.
44858# Run this file to recreate the current configuration.
44859# Compiler output produced by configure, useful for debugging
44860# configure, is in config.log if it exists.
44861
44862debug=false
44863ac_cs_recheck=false
44864ac_cs_silent=false
44865SHELL=\${CONFIG_SHELL-$SHELL}
44866_ACEOF
44867
44868cat >>$CONFIG_STATUS <<\_ACEOF
44869## --------------------- ##
44870## M4sh Initialization. ##
44871## --------------------- ##
44872
44873# Be Bourne compatible
44874if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44875 emulate sh
44876 NULLCMD=:
44877 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44878 # is contrary to our usage. Disable this feature.
44879 alias -g '${1+"$@"}'='"$@"'
44880elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44881 set -o posix
44882fi
ac1cb8d3 44883DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44884
44885# Support unset when possible.
ac1cb8d3 44886if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44887 as_unset=unset
44888else
44889 as_unset=false
44890fi
44891
44892
44893# Work around bugs in pre-3.0 UWIN ksh.
44894$as_unset ENV MAIL MAILPATH
44895PS1='$ '
44896PS2='> '
44897PS4='+ '
44898
44899# NLS nuisances.
44900for as_var in \
44901 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44902 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44903 LC_TELEPHONE LC_TIME
44904do
ac1cb8d3 44905 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44906 eval $as_var=C; export $as_var
44907 else
44908 $as_unset $as_var
44909 fi
44910done
44911
44912# Required to use basename.
44913if expr a : '\(a\)' >/dev/null 2>&1; then
44914 as_expr=expr
44915else
44916 as_expr=false
44917fi
44918
44919if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44920 as_basename=basename
44921else
44922 as_basename=false
44923fi
44924
44925
44926# Name of the executable.
44927as_me=`$as_basename "$0" ||
44928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44929 X"$0" : 'X\(//\)$' \| \
44930 X"$0" : 'X\(/\)$' \| \
44931 . : '\(.\)' 2>/dev/null ||
44932echo X/"$0" |
44933 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44934 /^X\/\(\/\/\)$/{ s//\1/; q; }
44935 /^X\/\(\/\).*/{ s//\1/; q; }
44936 s/.*/./; q'`
44937
44938
44939# PATH needs CR, and LINENO needs CR and PATH.
44940# Avoid depending upon Character Ranges.
44941as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44943as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44944as_cr_digits='0123456789'
44945as_cr_alnum=$as_cr_Letters$as_cr_digits
44946
44947# The user is always right.
44948if test "${PATH_SEPARATOR+set}" != set; then
44949 echo "#! /bin/sh" >conf$$.sh
44950 echo "exit 0" >>conf$$.sh
44951 chmod +x conf$$.sh
44952 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44953 PATH_SEPARATOR=';'
44954 else
44955 PATH_SEPARATOR=:
44956 fi
44957 rm -f conf$$.sh
44958fi
44959
44960
44961 as_lineno_1=$LINENO
44962 as_lineno_2=$LINENO
44963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44964 test "x$as_lineno_1" != "x$as_lineno_2" &&
44965 test "x$as_lineno_3" = "x$as_lineno_2" || {
44966 # Find who we are. Look in the path if we contain no path at all
44967 # relative or not.
44968 case $0 in
44969 *[\\/]* ) as_myself=$0 ;;
44970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44971for as_dir in $PATH
44972do
44973 IFS=$as_save_IFS
44974 test -z "$as_dir" && as_dir=.
44975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44976done
44977
44978 ;;
44979 esac
44980 # We did not find ourselves, most probably we were run as `sh COMMAND'
44981 # in which case we are not to be found in the path.
44982 if test "x$as_myself" = x; then
44983 as_myself=$0
44984 fi
44985 if test ! -f "$as_myself"; then
44986 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44987echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44988 { (exit 1); exit 1; }; }
44989 fi
44990 case $CONFIG_SHELL in
44991 '')
44992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44993for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44994do
44995 IFS=$as_save_IFS
44996 test -z "$as_dir" && as_dir=.
44997 for as_base in sh bash ksh sh5; do
44998 case $as_dir in
44999 /*)
45000 if ("$as_dir/$as_base" -c '
45001 as_lineno_1=$LINENO
45002 as_lineno_2=$LINENO
45003 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45004 test "x$as_lineno_1" != "x$as_lineno_2" &&
45005 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45006 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45007 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45008 CONFIG_SHELL=$as_dir/$as_base
45009 export CONFIG_SHELL
45010 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45011 fi;;
45012 esac
45013 done
45014done
45015;;
45016 esac
45017
45018 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45019 # uniformly replaced by the line number. The first 'sed' inserts a
45020 # line-number line before each line; the second 'sed' does the real
45021 # work. The second script uses 'N' to pair each line-number line
45022 # with the numbered line, and appends trailing '-' during
45023 # substitution so that $LINENO is not a special case at line end.
45024 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45025 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45026 sed '=' <$as_myself |
45027 sed '
45028 N
45029 s,$,-,
45030 : loop
45031 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45032 t loop
45033 s,-$,,
45034 s,^['$as_cr_digits']*\n,,
45035 ' >$as_me.lineno &&
45036 chmod +x $as_me.lineno ||
45037 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45038echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45039 { (exit 1); exit 1; }; }
45040
45041 # Don't try to exec as it changes $[0], causing all sort of problems
45042 # (the dirname of $[0] is not the place where we might find the
45043 # original and so on. Autoconf is especially sensible to this).
45044 . ./$as_me.lineno
45045 # Exit status is that of the last command.
45046 exit
45047}
45048
45049
45050case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45051 *c*,-n*) ECHO_N= ECHO_C='
45052' ECHO_T=' ' ;;
45053 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45054 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45055esac
45056
45057if expr a : '\(a\)' >/dev/null 2>&1; then
45058 as_expr=expr
45059else
45060 as_expr=false
45061fi
45062
45063rm -f conf$$ conf$$.exe conf$$.file
45064echo >conf$$.file
45065if ln -s conf$$.file conf$$ 2>/dev/null; then
45066 # We could just check for DJGPP; but this test a) works b) is more generic
45067 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45068 if test -f conf$$.exe; then
45069 # Don't use ln at all; we don't have any links
45070 as_ln_s='cp -p'
45071 else
45072 as_ln_s='ln -s'
45073 fi
45074elif ln conf$$.file conf$$ 2>/dev/null; then
45075 as_ln_s=ln
45076else
45077 as_ln_s='cp -p'
45078fi
45079rm -f conf$$ conf$$.exe conf$$.file
45080
45081if mkdir -p . 2>/dev/null; then
45082 as_mkdir_p=:
45083else
ac1cb8d3 45084 test -d ./-p && rmdir ./-p
a848cd7e
SC
45085 as_mkdir_p=false
45086fi
45087
45088as_executable_p="test -f"
45089
45090# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45092
45093# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45095
45096
45097# IFS
45098# We need space, tab and new line, in precisely that order.
45099as_nl='
45100'
45101IFS=" $as_nl"
45102
45103# CDPATH.
45104$as_unset CDPATH
45105
45106exec 6>&1
45107
45108# Open the log real soon, to keep \$[0] and so on meaningful, and to
45109# report actual input values of CONFIG_FILES etc. instead of their
45110# values after options handling. Logging --version etc. is OK.
45111exec 5>>config.log
45112{
45113 echo
45114 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45115## Running $as_me. ##
45116_ASBOX
45117} >&5
45118cat >&5 <<_CSEOF
45119
eb730a0c 45120This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45121generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45122
45123 CONFIG_FILES = $CONFIG_FILES
45124 CONFIG_HEADERS = $CONFIG_HEADERS
45125 CONFIG_LINKS = $CONFIG_LINKS
45126 CONFIG_COMMANDS = $CONFIG_COMMANDS
45127 $ $0 $@
45128
45129_CSEOF
45130echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45131echo >&5
45132_ACEOF
45133
45134# Files that config.status was made for.
45135if test -n "$ac_config_files"; then
45136 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45137fi
45138
45139if test -n "$ac_config_headers"; then
45140 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45141fi
45142
45143if test -n "$ac_config_links"; then
45144 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45145fi
45146
45147if test -n "$ac_config_commands"; then
45148 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45149fi
45150
45151cat >>$CONFIG_STATUS <<\_ACEOF
45152
45153ac_cs_usage="\
45154\`$as_me' instantiates files from templates according to the
45155current configuration.
45156
45157Usage: $0 [OPTIONS] [FILE]...
45158
45159 -h, --help print this help, then exit
45160 -V, --version print version number, then exit
45161 -q, --quiet do not print progress messages
45162 -d, --debug don't remove temporary files
45163 --recheck update $as_me by reconfiguring in the same conditions
45164 --file=FILE[:TEMPLATE]
ac1cb8d3 45165 instantiate the configuration file FILE
a848cd7e 45166 --header=FILE[:TEMPLATE]
ac1cb8d3 45167 instantiate the configuration header FILE
a848cd7e
SC
45168
45169Configuration files:
45170$config_files
45171
45172Configuration headers:
45173$config_headers
45174
45175Configuration commands:
45176$config_commands
45177
45178Report bugs to <bug-autoconf@gnu.org>."
45179_ACEOF
45180
45181cat >>$CONFIG_STATUS <<_ACEOF
45182ac_cs_version="\\
eb730a0c 45183wxWidgets config.status 2.6.2
ac1cb8d3 45184configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45185 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45186
ac1cb8d3 45187Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45188This config.status script is free software; the Free Software Foundation
45189gives unlimited permission to copy, distribute and modify it."
45190srcdir=$srcdir
45191INSTALL="$INSTALL"
45192_ACEOF
45193
45194cat >>$CONFIG_STATUS <<\_ACEOF
45195# If no file are specified by the user, then we need to provide default
45196# value. By we need to know if files were specified by the user.
45197ac_need_defaults=:
45198while test $# != 0
45199do
45200 case $1 in
45201 --*=*)
45202 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45203 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45204 ac_shift=:
45205 ;;
45206 -*)
45207 ac_option=$1
45208 ac_optarg=$2
45209 ac_shift=shift
45210 ;;
45211 *) # This is not an option, so the user has probably given explicit
45212 # arguments.
45213 ac_option=$1
45214 ac_need_defaults=false;;
45215 esac
45216
45217 case $ac_option in
45218 # Handling of the options.
45219_ACEOF
45220cat >>$CONFIG_STATUS <<\_ACEOF
45221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45222 ac_cs_recheck=: ;;
45223 --version | --vers* | -V )
45224 echo "$ac_cs_version"; exit 0 ;;
45225 --he | --h)
45226 # Conflict between --help and --header
45227 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45228Try \`$0 --help' for more information." >&5
45229echo "$as_me: error: ambiguous option: $1
45230Try \`$0 --help' for more information." >&2;}
45231 { (exit 1); exit 1; }; };;
45232 --help | --hel | -h )
45233 echo "$ac_cs_usage"; exit 0 ;;
45234 --debug | --d* | -d )
45235 debug=: ;;
45236 --file | --fil | --fi | --f )
45237 $ac_shift
45238 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45239 ac_need_defaults=false;;
45240 --header | --heade | --head | --hea )
45241 $ac_shift
45242 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45243 ac_need_defaults=false;;
45244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45246 ac_cs_silent=: ;;
45247
45248 # This is an error.
45249 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45250Try \`$0 --help' for more information." >&5
45251echo "$as_me: error: unrecognized option: $1
45252Try \`$0 --help' for more information." >&2;}
45253 { (exit 1); exit 1; }; } ;;
45254
45255 *) ac_config_targets="$ac_config_targets $1" ;;
45256
45257 esac
45258 shift
45259done
45260
45261ac_configure_extra_args=
45262
45263if $ac_cs_silent; then
45264 exec 6>/dev/null
45265 ac_configure_extra_args="$ac_configure_extra_args --silent"
45266fi
45267
45268_ACEOF
45269cat >>$CONFIG_STATUS <<_ACEOF
45270if \$ac_cs_recheck; then
45271 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45272 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45273fi
45274
45275_ACEOF
45276
45277cat >>$CONFIG_STATUS <<_ACEOF
45278#
45279# INIT-COMMANDS section.
45280#
45281
ceec2216
RL
45282 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45283 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45284 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45285 LN_S="${LN_S}"
a848cd7e
SC
45286
45287
45288_ACEOF
45289
45290
45291
45292cat >>$CONFIG_STATUS <<\_ACEOF
45293for ac_config_target in $ac_config_targets
45294do
45295 case "$ac_config_target" in
45296 # Handling of arguments.
ceec2216
RL
45297 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45298 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45299 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45300 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45301 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45302 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45303 "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
45304 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45305echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45306 { (exit 1); exit 1; }; };;
45307 esac
45308done
45309
45310# If the user did not use the arguments to specify the items to instantiate,
45311# then the envvar interface is used. Set only those that are not.
45312# We use the long form for the default assignment because of an extremely
45313# bizarre bug on SunOS 4.1.3.
45314if $ac_need_defaults; then
45315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45318fi
45319
45320# Have a temporary directory for convenience. Make it in the build tree
45321# simply because there is no reason to put it here, and in addition,
45322# creating and moving files from /tmp can sometimes cause problems.
45323# Create a temporary directory, and hook for its removal unless debugging.
45324$debug ||
45325{
45326 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45327 trap '{ (exit 1); exit 1; }' 1 2 13 15
45328}
45329
45330# Create a (secure) tmp directory for tmp files.
45331
45332{
45333 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45334 test -n "$tmp" && test -d "$tmp"
45335} ||
45336{
45337 tmp=./confstat$$-$RANDOM
45338 (umask 077 && mkdir $tmp)
45339} ||
45340{
45341 echo "$me: cannot create a temporary directory in ." >&2
45342 { (exit 1); exit 1; }
45343}
45344
45345_ACEOF
45346
45347cat >>$CONFIG_STATUS <<_ACEOF
45348
45349#
45350# CONFIG_FILES section.
45351#
45352
45353# No need to generate the scripts if there are no CONFIG_FILES.
45354# This happens for instance when ./config.status config.h
45355if test -n "\$CONFIG_FILES"; then
45356 # Protect against being on the right side of a sed subst in config.status.
45357 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45358 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45359s,@SHELL@,$SHELL,;t t
45360s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45361s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45362s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45363s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45364s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45365s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45366s,@exec_prefix@,$exec_prefix,;t t
45367s,@prefix@,$prefix,;t t
45368s,@program_transform_name@,$program_transform_name,;t t
45369s,@bindir@,$bindir,;t t
45370s,@sbindir@,$sbindir,;t t
45371s,@libexecdir@,$libexecdir,;t t
45372s,@datadir@,$datadir,;t t
45373s,@sysconfdir@,$sysconfdir,;t t
45374s,@sharedstatedir@,$sharedstatedir,;t t
45375s,@localstatedir@,$localstatedir,;t t
45376s,@libdir@,$libdir,;t t
45377s,@includedir@,$includedir,;t t
45378s,@oldincludedir@,$oldincludedir,;t t
45379s,@infodir@,$infodir,;t t
45380s,@mandir@,$mandir,;t t
45381s,@build_alias@,$build_alias,;t t
45382s,@host_alias@,$host_alias,;t t
45383s,@target_alias@,$target_alias,;t t
45384s,@DEFS@,$DEFS,;t t
45385s,@ECHO_C@,$ECHO_C,;t t
45386s,@ECHO_N@,$ECHO_N,;t t
45387s,@ECHO_T@,$ECHO_T,;t t
45388s,@LIBS@,$LIBS,;t t
45389s,@build@,$build,;t t
45390s,@build_cpu@,$build_cpu,;t t
45391s,@build_vendor@,$build_vendor,;t t
45392s,@build_os@,$build_os,;t t
45393s,@host@,$host,;t t
45394s,@host_cpu@,$host_cpu,;t t
45395s,@host_vendor@,$host_vendor,;t t
45396s,@host_os@,$host_os,;t t
45397s,@target@,$target,;t t
45398s,@target_cpu@,$target_cpu,;t t
45399s,@target_vendor@,$target_vendor,;t t
45400s,@target_os@,$target_os,;t t
45401s,@CC@,$CC,;t t
45402s,@CFLAGS@,$CFLAGS,;t t
45403s,@LDFLAGS@,$LDFLAGS,;t t
45404s,@CPPFLAGS@,$CPPFLAGS,;t t
45405s,@ac_ct_CC@,$ac_ct_CC,;t t
45406s,@EXEEXT@,$EXEEXT,;t t
45407s,@OBJEXT@,$OBJEXT,;t t
45408s,@CPP@,$CPP,;t t
45409s,@EGREP@,$EGREP,;t t
45410s,@CXX@,$CXX,;t t
45411s,@CXXFLAGS@,$CXXFLAGS,;t t
45412s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45413s,@RANLIB@,$RANLIB,;t t
45414s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45415s,@AR@,$AR,;t t
45416s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45417s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45418s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45419s,@STRIP@,$STRIP,;t t
45420s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45421s,@LN_S@,$LN_S,;t t
45422s,@CXXCPP@,$CXXCPP,;t t
45423s,@subdirs@,$subdirs,;t t
45424s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45425s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45426s,@GTK_LIBS@,$GTK_LIBS,;t t
45427s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45428s,@X_CFLAGS@,$X_CFLAGS,;t t
45429s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45430s,@X_LIBS@,$X_LIBS,;t t
45431s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45432s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45433s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45434s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45435s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45436s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45437s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45438s,@RESCOMP@,$RESCOMP,;t t
45439s,@DEREZ@,$DEREZ,;t t
45440s,@SETFILE@,$SETFILE,;t t
45441s,@LIBICONV@,$LIBICONV,;t t
45442s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45443s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45444s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45445s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45446s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45447s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45448s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45449s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45450s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45451s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45452s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45453s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45454s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45455s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45456s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45457s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45458s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45459s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45460s,@VENDOR@,$VENDOR,;t t
45461s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45462s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45463s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45464s,@WXUNIV@,$WXUNIV,;t t
45465s,@MONOLITHIC@,$MONOLITHIC,;t t
45466s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45467s,@EXTRALIBS@,$EXTRALIBS,;t t
45468s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45469s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45470s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45471s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45472s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45473s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45474s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45475s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45476s,@UNICODE@,$UNICODE,;t t
45477s,@BUILD@,$BUILD,;t t
45478s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45479s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45480s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45481s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45482s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45483s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45484s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45485s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45486s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45487s,@SET_MAKE@,$SET_MAKE,;t t
45488s,@MAKE_SET@,$MAKE_SET,;t t
45489s,@ac_ct_AR@,$ac_ct_AR,;t t
45490s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45491s,@NM@,$NM,;t t
45492s,@ac_ct_NM@,$ac_ct_NM,;t t
45493s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45494s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45495s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45496s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45497s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45498s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45499s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45500s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45501s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45502s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45503s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45504s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45505s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45506s,@LIBPREFIX@,$LIBPREFIX,;t t
45507s,@LIBEXT@,$LIBEXT,;t t
45508s,@DLLPREFIX@,$DLLPREFIX,;t t
45509s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45510s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45511s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45512s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45513s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45514s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45515s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45516s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45517s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45518s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45519s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45520s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45521s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45522s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45523s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45524s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45525s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45526s,@GCC_PCH@,$GCC_PCH,;t t
45527s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45528s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45529s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45530s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45531s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45532s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45533s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45534s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45535s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45536s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45537s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45538s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45539s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45540s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45541s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45542s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45543s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45544s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45545s,@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 45546s,@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 45547s,@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 45548s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45549s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45550s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45551s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45552s,@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 45553s,@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 45554s,@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 45555s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45556s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45557s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45558s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45559s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45560s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45561s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45562s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45563s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45564s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45565s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45566s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45567s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45568s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45569s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45570s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45571s,@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
45572s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45573s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45574s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45575s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45576s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45577s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45578s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45579s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45580s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45581s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45582s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45583s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45584s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45585s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45586s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45587s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45588s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45589s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45590s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45591s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45592s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45593s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45594s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45595s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45596s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45597s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45598s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45599s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45600s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45601s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45602s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45603s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45604s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45605s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45606s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45607s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45608s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45609s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45610s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45611s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45612s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45613s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45614s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45615s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45616s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45617s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45618s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45619s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45620s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45621s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45622s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45623s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45624s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45625s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45626s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45627s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45628s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45629s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45630s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45631s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45632s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45633s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45634s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45635s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45636s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45637s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45638s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45639s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45640s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45641s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45642s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45643s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45644s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45645s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45646s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45647s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45648s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45649s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45650s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45651s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45652s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45653s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45654s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45655s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45656s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45657s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45658s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45659s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45660s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45661s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45662s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45663s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45664s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45665s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45666s,@USE_GUI@,$USE_GUI,;t t
45667s,@AFMINSTALL@,$AFMINSTALL,;t t
45668s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45669s,@TOOLKIT@,$TOOLKIT,;t t
45670s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45671s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45672s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45673s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45674s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45675s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45676s,@WIDGET_SET@,$WIDGET_SET,;t t
45677s,@WX_RELEASE@,$WX_RELEASE,;t t
45678s,@WX_VERSION@,$WX_VERSION,;t t
45679s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45680s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45681s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45682s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45683s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45684s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45685s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45686s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45687s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45688s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45689s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45690s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45691s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45692s,@DISTDIR@,$DISTDIR,;t t
45693s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45694s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45695s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45696s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45697s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45698s,@RESFLAGS@,$RESFLAGS,;t t
45699s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45700s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45701s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45702s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45703s,@MACRESCOMP@,$MACRESCOMP,;t t
45704s,@MACSETFILE@,$MACSETFILE,;t t
45705s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45706s,@GCC@,$GCC,;t t
a848cd7e 45707s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45708s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45709s,@LIBOBJS@,$LIBOBJS,;t t
45710s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45711CEOF
45712
45713_ACEOF
45714
45715 cat >>$CONFIG_STATUS <<\_ACEOF
45716 # Split the substitutions into bite-sized pieces for seds with
45717 # small command number limits, like on Digital OSF/1 and HP-UX.
45718 ac_max_sed_lines=48
45719 ac_sed_frag=1 # Number of current file.
45720 ac_beg=1 # First line for current file.
45721 ac_end=$ac_max_sed_lines # Line after last line for current file.
45722 ac_more_lines=:
45723 ac_sed_cmds=
45724 while $ac_more_lines; do
45725 if test $ac_beg -gt 1; then
45726 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45727 else
45728 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45729 fi
45730 if test ! -s $tmp/subs.frag; then
45731 ac_more_lines=false
45732 else
45733 # The purpose of the label and of the branching condition is to
45734 # speed up the sed processing (if there are no `@' at all, there
45735 # is no need to browse any of the substitutions).
45736 # These are the two extra sed commands mentioned above.
45737 (echo ':t
45738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45739 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45740 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45741 else
ac1cb8d3 45742 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45743 fi
45744 ac_sed_frag=`expr $ac_sed_frag + 1`
45745 ac_beg=$ac_end
45746 ac_end=`expr $ac_end + $ac_max_sed_lines`
45747 fi
45748 done
45749 if test -z "$ac_sed_cmds"; then
45750 ac_sed_cmds=cat
45751 fi
45752fi # test -n "$CONFIG_FILES"
45753
45754_ACEOF
45755cat >>$CONFIG_STATUS <<\_ACEOF
45756for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45758 case $ac_file in
45759 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45760 cat >$tmp/stdin
45761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45765 * ) ac_file_in=$ac_file.in ;;
45766 esac
45767
45768 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45769 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45771 X"$ac_file" : 'X\(//\)[^/]' \| \
45772 X"$ac_file" : 'X\(//\)$' \| \
45773 X"$ac_file" : 'X\(/\)' \| \
45774 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45775echo X"$ac_file" |
45776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45778 /^X\(\/\/\)$/{ s//\1/; q; }
45779 /^X\(\/\).*/{ s//\1/; q; }
45780 s/.*/./; q'`
45781 { if $as_mkdir_p; then
45782 mkdir -p "$ac_dir"
45783 else
45784 as_dir="$ac_dir"
45785 as_dirs=
45786 while test ! -d "$as_dir"; do
45787 as_dirs="$as_dir $as_dirs"
45788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45790 X"$as_dir" : 'X\(//\)[^/]' \| \
45791 X"$as_dir" : 'X\(//\)$' \| \
45792 X"$as_dir" : 'X\(/\)' \| \
45793 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45794echo X"$as_dir" |
45795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45797 /^X\(\/\/\)$/{ s//\1/; q; }
45798 /^X\(\/\).*/{ s//\1/; q; }
45799 s/.*/./; q'`
45800 done
45801 test ! -n "$as_dirs" || mkdir $as_dirs
45802 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45803echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45804 { (exit 1); exit 1; }; }; }
45805
45806 ac_builddir=.
45807
45808if test "$ac_dir" != .; then
45809 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45810 # A "../" for each directory in $ac_dir_suffix.
45811 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45812else
45813 ac_dir_suffix= ac_top_builddir=
45814fi
45815
45816case $srcdir in
45817 .) # No --srcdir option. We are building in place.
45818 ac_srcdir=.
45819 if test -z "$ac_top_builddir"; then
45820 ac_top_srcdir=.
45821 else
45822 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45823 fi ;;
45824 [\\/]* | ?:[\\/]* ) # Absolute path.
45825 ac_srcdir=$srcdir$ac_dir_suffix;
45826 ac_top_srcdir=$srcdir ;;
45827 *) # Relative path.
45828 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45829 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45830esac
ac1cb8d3
VS
45831
45832# Do not use `cd foo && pwd` to compute absolute paths, because
45833# the directories may not exist.
45834case `pwd` in
45835.) ac_abs_builddir="$ac_dir";;
45836*)
45837 case "$ac_dir" in
45838 .) ac_abs_builddir=`pwd`;;
45839 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45840 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45841 esac;;
45842esac
45843case $ac_abs_builddir in
45844.) ac_abs_top_builddir=${ac_top_builddir}.;;
45845*)
45846 case ${ac_top_builddir}. in
45847 .) ac_abs_top_builddir=$ac_abs_builddir;;
45848 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45849 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45850 esac;;
45851esac
45852case $ac_abs_builddir in
45853.) ac_abs_srcdir=$ac_srcdir;;
45854*)
45855 case $ac_srcdir in
45856 .) ac_abs_srcdir=$ac_abs_builddir;;
45857 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45858 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45859 esac;;
45860esac
45861case $ac_abs_builddir in
45862.) ac_abs_top_srcdir=$ac_top_srcdir;;
45863*)
45864 case $ac_top_srcdir in
45865 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45866 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45867 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45868 esac;;
45869esac
a848cd7e
SC
45870
45871
45872 case $INSTALL in
45873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45874 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45875 esac
45876
a848cd7e
SC
45877 # Let's still pretend it is `configure' which instantiates (i.e., don't
45878 # use $as_me), people would be surprised to read:
45879 # /* config.h. Generated by config.status. */
45880 if test x"$ac_file" = x-; then
45881 configure_input=
45882 else
45883 configure_input="$ac_file. "
45884 fi
45885 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45886 sed 's,.*/,,'` by configure."
a848cd7e
SC
45887
45888 # First look for the input files in the build tree, otherwise in the
45889 # src tree.
45890 ac_file_inputs=`IFS=:
45891 for f in $ac_file_in; do
45892 case $f in
45893 -) echo $tmp/stdin ;;
45894 [\\/$]*)
ac1cb8d3
VS
45895 # Absolute (can't be DOS-style, as IFS=:)
45896 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45897echo "$as_me: error: cannot find input file: $f" >&2;}
45898 { (exit 1); exit 1; }; }
ac1cb8d3 45899 echo "$f";;
a848cd7e 45900 *) # Relative
ac1cb8d3
VS
45901 if test -f "$f"; then
45902 # Build tree
45903 echo "$f"
45904 elif test -f "$srcdir/$f"; then
45905 # Source tree
45906 echo "$srcdir/$f"
45907 else
45908 # /dev/null tree
45909 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45910echo "$as_me: error: cannot find input file: $f" >&2;}
45911 { (exit 1); exit 1; }; }
ac1cb8d3 45912 fi;;
a848cd7e
SC
45913 esac
45914 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
45915
45916 if test x"$ac_file" != x-; then
45917 { echo "$as_me:$LINENO: creating $ac_file" >&5
45918echo "$as_me: creating $ac_file" >&6;}
45919 rm -f "$ac_file"
45920 fi
a848cd7e
SC
45921_ACEOF
45922cat >>$CONFIG_STATUS <<_ACEOF
45923 sed "$ac_vpsub
45924$extrasub
45925_ACEOF
45926cat >>$CONFIG_STATUS <<\_ACEOF
45927:t
45928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45929s,@configure_input@,$configure_input,;t t
45930s,@srcdir@,$ac_srcdir,;t t
45931s,@abs_srcdir@,$ac_abs_srcdir,;t t
45932s,@top_srcdir@,$ac_top_srcdir,;t t
45933s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45934s,@builddir@,$ac_builddir,;t t
45935s,@abs_builddir@,$ac_abs_builddir,;t t
45936s,@top_builddir@,$ac_top_builddir,;t t
45937s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45938s,@INSTALL@,$ac_INSTALL,;t t
45939" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45940 rm -f $tmp/stdin
45941 if test x"$ac_file" != x-; then
45942 mv $tmp/out $ac_file
45943 else
45944 cat $tmp/out
45945 rm -f $tmp/out
45946 fi
45947
ceec2216
RL
45948 # Run the commands associated with the file.
45949 case $ac_file in
45950 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45951 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45952 esac
a848cd7e
SC
45953done
45954_ACEOF
45955cat >>$CONFIG_STATUS <<\_ACEOF
45956
45957#
45958# CONFIG_HEADER section.
45959#
45960
45961# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45962# NAME is the cpp macro being defined and VALUE is the value it is being given.
45963#
45964# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45965ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45966ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45967ac_dC=' '
45968ac_dD=',;t'
45969# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45970ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45971ac_uB='$,\1#\2define\3'
45972ac_uC=' '
45973ac_uD=',;t'
45974
45975for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45977 case $ac_file in
45978 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45979 cat >$tmp/stdin
45980 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45982 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45984 * ) ac_file_in=$ac_file.in ;;
45985 esac
45986
45987 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45988echo "$as_me: creating $ac_file" >&6;}
45989
45990 # First look for the input files in the build tree, otherwise in the
45991 # src tree.
45992 ac_file_inputs=`IFS=:
45993 for f in $ac_file_in; do
45994 case $f in
45995 -) echo $tmp/stdin ;;
45996 [\\/$]*)
ac1cb8d3
VS
45997 # Absolute (can't be DOS-style, as IFS=:)
45998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45999echo "$as_me: error: cannot find input file: $f" >&2;}
46000 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46001 # Do quote $f, to prevent DOS paths from being IFS'd.
46002 echo "$f";;
a848cd7e 46003 *) # Relative
ac1cb8d3
VS
46004 if test -f "$f"; then
46005 # Build tree
46006 echo "$f"
46007 elif test -f "$srcdir/$f"; then
46008 # Source tree
46009 echo "$srcdir/$f"
46010 else
46011 # /dev/null tree
46012 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46013echo "$as_me: error: cannot find input file: $f" >&2;}
46014 { (exit 1); exit 1; }; }
ac1cb8d3 46015 fi;;
a848cd7e
SC
46016 esac
46017 done` || { (exit 1); exit 1; }
46018 # Remove the trailing spaces.
ac1cb8d3 46019 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46020
46021_ACEOF
46022
46023# Transform confdefs.h into two sed scripts, `conftest.defines' and
46024# `conftest.undefs', that substitutes the proper values into
46025# config.h.in to produce config.h. The first handles `#define'
46026# templates, and the second `#undef' templates.
46027# And first: Protect against being on the right side of a sed subst in
46028# config.status. Protect against being in an unquoted here document
46029# in config.status.
46030rm -f conftest.defines conftest.undefs
46031# Using a here document instead of a string reduces the quoting nightmare.
46032# Putting comments in sed scripts is not portable.
46033#
46034# `end' is used to avoid that the second main sed command (meant for
46035# 0-ary CPP macros) applies to n-ary macro definitions.
46036# See the Autoconf documentation for `clear'.
46037cat >confdef2sed.sed <<\_ACEOF
46038s/[\\&,]/\\&/g
46039s,[\\$`],\\&,g
46040t clear
46041: clear
ac1cb8d3 46042s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46043t end
ac1cb8d3 46044s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46045: end
46046_ACEOF
46047# If some macros were called several times there might be several times
46048# the same #defines, which is useless. Nevertheless, we may not want to
46049# sort them, since we want the *last* AC-DEFINE to be honored.
46050uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46051sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46052rm -f confdef2sed.sed
46053
46054# This sed command replaces #undef with comments. This is necessary, for
46055# example, in the case of _POSIX_SOURCE, which is predefined and required
46056# on some systems where configure will not decide to define it.
46057cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46058s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46059_ACEOF
46060
46061# Break up conftest.defines because some shells have a limit on the size
46062# of here documents, and old seds have small limits too (100 cmds).
46063echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46064echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46065echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46066echo ' :' >>$CONFIG_STATUS
46067rm -f conftest.tail
46068while grep . conftest.defines >/dev/null
46069do
46070 # Write a limited-size here document to $tmp/defines.sed.
46071 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46072 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46073 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46074 # Work around the forget-to-reset-the-flag bug.
46075 echo 't clr' >>$CONFIG_STATUS
46076 echo ': clr' >>$CONFIG_STATUS
46077 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46078 echo 'CEOF
46079 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46080 rm -f $tmp/in
46081 mv $tmp/out $tmp/in
46082' >>$CONFIG_STATUS
46083 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46084 rm -f conftest.defines
46085 mv conftest.tail conftest.defines
46086done
46087rm -f conftest.defines
46088echo ' fi # grep' >>$CONFIG_STATUS
46089echo >>$CONFIG_STATUS
46090
46091# Break up conftest.undefs because some shells have a limit on the size
46092# of here documents, and old seds have small limits too (100 cmds).
46093echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46094rm -f conftest.tail
46095while grep . conftest.undefs >/dev/null
46096do
46097 # Write a limited-size here document to $tmp/undefs.sed.
46098 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46099 # Speed up: don't consider the non `#undef'
ac1cb8d3 46100 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46101 # Work around the forget-to-reset-the-flag bug.
46102 echo 't clr' >>$CONFIG_STATUS
46103 echo ': clr' >>$CONFIG_STATUS
46104 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46105 echo 'CEOF
46106 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46107 rm -f $tmp/in
46108 mv $tmp/out $tmp/in
46109' >>$CONFIG_STATUS
46110 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46111 rm -f conftest.undefs
46112 mv conftest.tail conftest.undefs
46113done
46114rm -f conftest.undefs
46115
46116cat >>$CONFIG_STATUS <<\_ACEOF
46117 # Let's still pretend it is `configure' which instantiates (i.e., don't
46118 # use $as_me), people would be surprised to read:
46119 # /* config.h. Generated by config.status. */
46120 if test x"$ac_file" = x-; then
46121 echo "/* Generated by configure. */" >$tmp/config.h
46122 else
46123 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46124 fi
46125 cat $tmp/in >>$tmp/config.h
46126 rm -f $tmp/in
46127 if test x"$ac_file" != x-; then
46128 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46129 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46130echo "$as_me: $ac_file is unchanged" >&6;}
46131 else
46132 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46133$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46134 X"$ac_file" : 'X\(//\)[^/]' \| \
46135 X"$ac_file" : 'X\(//\)$' \| \
46136 X"$ac_file" : 'X\(/\)' \| \
46137 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46138echo X"$ac_file" |
46139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46141 /^X\(\/\/\)$/{ s//\1/; q; }
46142 /^X\(\/\).*/{ s//\1/; q; }
46143 s/.*/./; q'`
46144 { if $as_mkdir_p; then
46145 mkdir -p "$ac_dir"
46146 else
46147 as_dir="$ac_dir"
46148 as_dirs=
46149 while test ! -d "$as_dir"; do
46150 as_dirs="$as_dir $as_dirs"
46151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46153 X"$as_dir" : 'X\(//\)[^/]' \| \
46154 X"$as_dir" : 'X\(//\)$' \| \
46155 X"$as_dir" : 'X\(/\)' \| \
46156 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46157echo X"$as_dir" |
46158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46160 /^X\(\/\/\)$/{ s//\1/; q; }
46161 /^X\(\/\).*/{ s//\1/; q; }
46162 s/.*/./; q'`
46163 done
46164 test ! -n "$as_dirs" || mkdir $as_dirs
46165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46166echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46167 { (exit 1); exit 1; }; }; }
46168
46169 rm -f $ac_file
46170 mv $tmp/config.h $ac_file
46171 fi
46172 else
46173 cat $tmp/config.h
46174 rm -f $tmp/config.h
46175 fi
46176done
46177_ACEOF
46178cat >>$CONFIG_STATUS <<\_ACEOF
46179
46180#
46181# CONFIG_COMMANDS section.
46182#
46183for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46184 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46185 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46186 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46187$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46188 X"$ac_dest" : 'X\(//\)[^/]' \| \
46189 X"$ac_dest" : 'X\(//\)$' \| \
46190 X"$ac_dest" : 'X\(/\)' \| \
46191 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46192echo X"$ac_dest" |
46193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46195 /^X\(\/\/\)$/{ s//\1/; q; }
46196 /^X\(\/\).*/{ s//\1/; q; }
46197 s/.*/./; q'`
ac1cb8d3
VS
46198 { if $as_mkdir_p; then
46199 mkdir -p "$ac_dir"
46200 else
46201 as_dir="$ac_dir"
46202 as_dirs=
46203 while test ! -d "$as_dir"; do
46204 as_dirs="$as_dir $as_dirs"
46205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46207 X"$as_dir" : 'X\(//\)[^/]' \| \
46208 X"$as_dir" : 'X\(//\)$' \| \
46209 X"$as_dir" : 'X\(/\)' \| \
46210 . : '\(.\)' 2>/dev/null ||
46211echo X"$as_dir" |
46212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46214 /^X\(\/\/\)$/{ s//\1/; q; }
46215 /^X\(\/\).*/{ s//\1/; q; }
46216 s/.*/./; q'`
46217 done
46218 test ! -n "$as_dirs" || mkdir $as_dirs
46219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46221 { (exit 1); exit 1; }; }; }
46222
a848cd7e
SC
46223 ac_builddir=.
46224
46225if test "$ac_dir" != .; then
46226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46227 # A "../" for each directory in $ac_dir_suffix.
46228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46229else
46230 ac_dir_suffix= ac_top_builddir=
46231fi
46232
46233case $srcdir in
46234 .) # No --srcdir option. We are building in place.
46235 ac_srcdir=.
46236 if test -z "$ac_top_builddir"; then
46237 ac_top_srcdir=.
46238 else
46239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46240 fi ;;
46241 [\\/]* | ?:[\\/]* ) # Absolute path.
46242 ac_srcdir=$srcdir$ac_dir_suffix;
46243 ac_top_srcdir=$srcdir ;;
46244 *) # Relative path.
46245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46247esac
ac1cb8d3
VS
46248
46249# Do not use `cd foo && pwd` to compute absolute paths, because
46250# the directories may not exist.
46251case `pwd` in
46252.) ac_abs_builddir="$ac_dir";;
46253*)
46254 case "$ac_dir" in
46255 .) ac_abs_builddir=`pwd`;;
46256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46258 esac;;
46259esac
46260case $ac_abs_builddir in
46261.) ac_abs_top_builddir=${ac_top_builddir}.;;
46262*)
46263 case ${ac_top_builddir}. in
46264 .) ac_abs_top_builddir=$ac_abs_builddir;;
46265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46267 esac;;
46268esac
46269case $ac_abs_builddir in
46270.) ac_abs_srcdir=$ac_srcdir;;
46271*)
46272 case $ac_srcdir in
46273 .) ac_abs_srcdir=$ac_abs_builddir;;
46274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46276 esac;;
46277esac
46278case $ac_abs_builddir in
46279.) ac_abs_top_srcdir=$ac_top_srcdir;;
46280*)
46281 case $ac_top_srcdir in
46282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46285 esac;;
46286esac
a848cd7e
SC
46287
46288
46289 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46290echo "$as_me: executing $ac_dest commands" >&6;}
46291 case $ac_dest in
ceec2216
RL
46292 wx-config ) rm -f wx-config
46293 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46294 ;;
a848cd7e
SC
46295 esac
46296done
46297_ACEOF
46298
46299cat >>$CONFIG_STATUS <<\_ACEOF
46300
46301{ (exit 0); exit 0; }
46302_ACEOF
46303chmod +x $CONFIG_STATUS
46304ac_clean_files=$ac_clean_files_save
46305
46306
46307# configure is writing to config.log, and then calls config.status.
46308# config.status does its own redirection, appending to config.log.
46309# Unfortunately, on DOS this fails, as config.log is still kept open
46310# by configure, so config.status won't be able to write to it; its
46311# output is simply discarded. So we exec the FD to /dev/null,
46312# effectively closing config.log, so it can be properly (re)opened and
46313# appended to by config.status. When coming back to configure, we
46314# need to make the FD available again.
46315if test "$no_create" != yes; then
46316 ac_cs_success=:
46317 ac_config_status_args=
46318 test "$silent" = yes &&
46319 ac_config_status_args="$ac_config_status_args --quiet"
46320 exec 5>/dev/null
46321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46322 exec 5>>config.log
46323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46324 # would make configure fail if this is the last instruction.
46325 $ac_cs_success || { (exit 1); exit 1; }
46326fi
46327
46328#
46329# CONFIG_SUBDIRS section.
46330#
46331if test "$no_recursion" != yes; then
46332
46333 # Remove --cache-file and --srcdir arguments so they do not pile up.
46334 ac_sub_configure_args=
46335 ac_prev=
46336 for ac_arg in $ac_configure_args; do
46337 if test -n "$ac_prev"; then
46338 ac_prev=
46339 continue
46340 fi
46341 case $ac_arg in
46342 -cache-file | --cache-file | --cache-fil | --cache-fi \
46343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46344 ac_prev=cache_file ;;
46345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46347 | --c=*)
46348 ;;
46349 --config-cache | -C)
46350 ;;
46351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46352 ac_prev=srcdir ;;
46353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46354 ;;
46355 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46356 ac_prev=prefix ;;
46357 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46358 ;;
46359 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46360 esac
46361 done
46362
46363 # Always prepend --prefix to ensure using the same prefix
46364 # in subdir configurations.
46365 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46366
46367 ac_popdir=`pwd`
46368 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46369
46370 # Do not complain, so a configure script can configure whichever
46371 # parts of a large source tree are present.
46372 test -d $srcdir/$ac_dir || continue
46373
46374 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46375echo "$as_me: configuring in $ac_dir" >&6;}
46376 { if $as_mkdir_p; then
46377 mkdir -p "$ac_dir"
46378 else
46379 as_dir="$ac_dir"
46380 as_dirs=
46381 while test ! -d "$as_dir"; do
46382 as_dirs="$as_dir $as_dirs"
46383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46384$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46385 X"$as_dir" : 'X\(//\)[^/]' \| \
46386 X"$as_dir" : 'X\(//\)$' \| \
46387 X"$as_dir" : 'X\(/\)' \| \
46388 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46389echo X"$as_dir" |
46390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46392 /^X\(\/\/\)$/{ s//\1/; q; }
46393 /^X\(\/\).*/{ s//\1/; q; }
46394 s/.*/./; q'`
46395 done
46396 test ! -n "$as_dirs" || mkdir $as_dirs
46397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46398echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46399 { (exit 1); exit 1; }; }; }
46400
46401 ac_builddir=.
46402
46403if test "$ac_dir" != .; then
46404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46405 # A "../" for each directory in $ac_dir_suffix.
46406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46407else
46408 ac_dir_suffix= ac_top_builddir=
46409fi
46410
46411case $srcdir in
46412 .) # No --srcdir option. We are building in place.
46413 ac_srcdir=.
46414 if test -z "$ac_top_builddir"; then
46415 ac_top_srcdir=.
46416 else
46417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46418 fi ;;
46419 [\\/]* | ?:[\\/]* ) # Absolute path.
46420 ac_srcdir=$srcdir$ac_dir_suffix;
46421 ac_top_srcdir=$srcdir ;;
46422 *) # Relative path.
46423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46425esac
ac1cb8d3
VS
46426
46427# Do not use `cd foo && pwd` to compute absolute paths, because
46428# the directories may not exist.
46429case `pwd` in
46430.) ac_abs_builddir="$ac_dir";;
46431*)
46432 case "$ac_dir" in
46433 .) ac_abs_builddir=`pwd`;;
46434 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46435 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46436 esac;;
46437esac
46438case $ac_abs_builddir in
46439.) ac_abs_top_builddir=${ac_top_builddir}.;;
46440*)
46441 case ${ac_top_builddir}. in
46442 .) ac_abs_top_builddir=$ac_abs_builddir;;
46443 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46444 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46445 esac;;
46446esac
46447case $ac_abs_builddir in
46448.) ac_abs_srcdir=$ac_srcdir;;
46449*)
46450 case $ac_srcdir in
46451 .) ac_abs_srcdir=$ac_abs_builddir;;
46452 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46453 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46454 esac;;
46455esac
46456case $ac_abs_builddir in
46457.) ac_abs_top_srcdir=$ac_top_srcdir;;
46458*)
46459 case $ac_top_srcdir in
46460 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46461 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46462 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46463 esac;;
46464esac
a848cd7e
SC
46465
46466
46467 cd $ac_dir
46468
46469 # Check for guested configure; otherwise get Cygnus style configure.
46470 if test -f $ac_srcdir/configure.gnu; then
46471 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46472 elif test -f $ac_srcdir/configure; then
46473 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46474 elif test -f $ac_srcdir/configure.in; then
46475 ac_sub_configure=$ac_configure
46476 else
46477 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46478echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46479 ac_sub_configure=
46480 fi
46481
46482 # The recursion is here.
46483 if test -n "$ac_sub_configure"; then
46484 # Make the cache file name correct relative to the subdirectory.
46485 case $cache_file in
46486 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46487 *) # Relative path.
ac1cb8d3 46488 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46489 esac
46490
46491 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46492echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46493 # The eval makes quoting arguments work.
46494 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46495 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46496 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46497echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46498 { (exit 1); exit 1; }; }
46499 fi
46500
6ebeb4c7 46501 cd "$ac_popdir"
a848cd7e
SC
46502 done
46503fi
46504
46505
46506echo
77ffb593 46507echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46508echo ""
4d4ff94c 46509echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46510echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46511
77ffb593
JS
46512echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46513echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46514echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46515
77ffb593
JS
46516echo " What level of wxWidgets compatibility should be enabled?"
46517echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46518echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46519
77ffb593 46520echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46521echo " jpeg ${wxUSE_LIBJPEG-none}"
46522echo " png ${wxUSE_LIBPNG-none}"
46523echo " regex ${wxUSE_REGEX}"
46524echo " tiff ${wxUSE_LIBTIFF-none}"
46525if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46526echo " xpm ${wxUSE_LIBXPM-none}"
46527fi
46528echo " zlib ${wxUSE_ZLIB}"
46529echo " odbc ${wxUSE_ODBC}"
46530echo " expat ${wxUSE_EXPAT}"
46531echo " libmspack ${wxUSE_LIBMSPACK}"
46532echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46533echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46534
46535echo ""
46536