]> git.saurik.com Git - wxWidgets.git/blame - configure
added wxStaticText::Wrap()
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
083508af 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
1978 powerpc-*-darwin* )
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569if test "$wxUSE_GUI" = "yes"; then
2570
2571
2572 enablestring=
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2575 no_cache=0
2576 # Check whether --enable-universal or --disable-universal was given.
2577if test "${enable_universal+set}" = set; then
2578 enableval="$enable_universal"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2582 else
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2596
2597fi;
2598
2599 eval "$ac_cv_use_universal"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_UNIVERSAL" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613# Check whether --with-gtk or --without-gtk was given.
2614if test "${with_gtk+set}" = set; then
2615 withval="$with_gtk"
2616 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-motif or --without-motif was given.
2620if test "${with_motif+set}" = set; then
2621 withval="$with_motif"
2622 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mac or --without-mac was given.
2626if test "${with_mac+set}" = set; then
2627 withval="$with_mac"
c228d3a4 2628 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2629fi;
2630
2631# Check whether --with-cocoa or --without-cocoa was given.
2632if test "${with_cocoa+set}" = set; then
2633 withval="$with_cocoa"
c228d3a4 2634 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2635fi;
2636
2637# Check whether --with-wine or --without-wine was given.
2638if test "${with_wine+set}" = set; then
2639 withval="$with_wine"
2640 wxUSE_WINE="$withval" CACHE_WINE=1
2641fi;
2642
2643# Check whether --with-msw or --without-msw was given.
2644if test "${with_msw+set}" = set; then
2645 withval="$with_msw"
2646 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-pm or --without-pm was given.
2650if test "${with_pm+set}" = set; then
2651 withval="$with_pm"
2652 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655# Check whether --with-mgl or --without-mgl was given.
2656if test "${with_mgl+set}" = set; then
2657 withval="$with_mgl"
2658 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-microwin or --without-microwin was given.
2662if test "${with_microwin+set}" = set; then
2663 withval="$with_microwin"
2664 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-x11 or --without-x11 was given.
2668if test "${with_x11+set}" = set; then
2669 withval="$with_x11"
2670 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2671fi;
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-nanox or --disable-nanox was given.
2678if test "${enable_nanox+set}" = set; then
2679 enableval="$enable_nanox"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_nanox='wxUSE_NANOX=yes'
2683 else
2684 ac_cv_use_nanox='wxUSE_NANOX=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2697
2698fi;
2699
2700 eval "$ac_cv_use_nanox"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_NANOX" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
f34ca037
MW
2714# Check whether --enable-gtk2 or --disable-gtk2 was given.
2715if test "${enable_gtk2+set}" = set; then
2716 enableval="$enable_gtk2"
2717 wxUSE_GTK2="$enableval"
2718fi;
a848cd7e 2719
a848cd7e
SC
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-gpe or --disable-gpe was given.
2725if test "${enable_gpe+set}" = set; then
2726 enableval="$enable_gpe"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_gpe='wxUSE_GPE=yes'
2730 else
2731 ac_cv_use_gpe='wxUSE_GPE=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2744
2745fi;
2746
2747 eval "$ac_cv_use_gpe"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_GPE" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761
2762 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2763echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2764 no_cache=0
2765
2766# Check whether --with-libpng or --without-libpng was given.
2767if test "${with_libpng+set}" = set; then
2768 withval="$with_libpng"
2769
2770 if test "$withval" = yes; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2772 elif test "$withval" = no; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2774 elif test "$withval" = sys; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2776 elif test "$withval" = builtin; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2778 else
2779 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2780echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2794
2795fi;
2796
2797 eval "$ac_cv_use_libpng"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_LIBPNG" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 elif test "$wxUSE_LIBPNG" = no; then
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 elif test "$wxUSE_LIBPNG" = sys; then
2809 echo "$as_me:$LINENO: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
2811 elif test "$wxUSE_LIBPNG" = builtin; then
2812 echo "$as_me:$LINENO: result: builtin version" >&5
2813echo "${ECHO_T}builtin version" >&6
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820
2821 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2822echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2823 no_cache=0
2824
2825# Check whether --with-libjpeg or --without-libjpeg was given.
2826if test "${with_libjpeg+set}" = set; then
2827 withval="$with_libjpeg"
2828
2829 if test "$withval" = yes; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2831 elif test "$withval" = no; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2833 elif test "$withval" = sys; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2835 elif test "$withval" = builtin; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843else
2844
2845 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2853
2854fi;
2855
2856 eval "$ac_cv_use_libjpeg"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_LIBJPEG" = yes; then
2862 echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
2864 elif test "$wxUSE_LIBJPEG" = no; then
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867 elif test "$wxUSE_LIBJPEG" = sys; then
2868 echo "$as_me:$LINENO: result: system version" >&5
2869echo "${ECHO_T}system version" >&6
2870 elif test "$wxUSE_LIBJPEG" = builtin; then
2871 echo "$as_me:$LINENO: result: builtin version" >&5
2872echo "${ECHO_T}builtin version" >&6
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2881echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2882 no_cache=0
2883
2884# Check whether --with-libtiff or --without-libtiff was given.
2885if test "${with_libtiff+set}" = set; then
2886 withval="$with_libtiff"
2887
2888 if test "$withval" = yes; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2890 elif test "$withval" = no; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2892 elif test "$withval" = sys; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2894 elif test "$withval" = builtin; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2912
2913fi;
2914
2915 eval "$ac_cv_use_libtiff"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LIBTIFF" = yes; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 elif test "$wxUSE_LIBTIFF" = no; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926 elif test "$wxUSE_LIBTIFF" = sys; then
2927 echo "$as_me:$LINENO: result: system version" >&5
2928echo "${ECHO_T}system version" >&6
2929 elif test "$wxUSE_LIBTIFF" = builtin; then
2930 echo "$as_me:$LINENO: result: builtin version" >&5
2931echo "${ECHO_T}builtin version" >&6
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938
2939 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2940echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2941 no_cache=0
2942
2943# Check whether --with-libxpm or --without-libxpm was given.
2944if test "${with_libxpm+set}" = set; then
2945 withval="$with_libxpm"
2946
2947 if test "$withval" = yes; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2949 elif test "$withval" = no; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2951 elif test "$withval" = sys; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2953 elif test "$withval" = builtin; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2971
2972fi;
2973
2974 eval "$ac_cv_use_libxpm"
2975 if test "$no_cache" != 1; then
2976 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2977 fi
2978
2979 if test "$wxUSE_LIBXPM" = yes; then
2980 echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6
2982 elif test "$wxUSE_LIBXPM" = no; then
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985 elif test "$wxUSE_LIBXPM" = sys; then
2986 echo "$as_me:$LINENO: result: system version" >&5
2987echo "${ECHO_T}system version" >&6
2988 elif test "$wxUSE_LIBXPM" = builtin; then
2989 echo "$as_me:$LINENO: result: builtin version" >&5
2990echo "${ECHO_T}builtin version" >&6
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997
2998 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2999echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3000 no_cache=0
3001
3002# Check whether --with-libmspack or --without-libmspack was given.
3003if test "${with_libmspack+set}" = set; then
3004 withval="$with_libmspack"
3005
3006 if test "$withval" = yes; then
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3008 else
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3022
3023fi;
3024
3025 eval "$ac_cv_use_libmspack"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_LIBMSPACK" = yes; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032echo "${ECHO_T}yes" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3040echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-sdl or --without-sdl was given.
3044if test "${with_sdl+set}" = set; then
3045 withval="$with_sdl"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3049 else
3050 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3063
3064fi;
3065
3066 eval "$ac_cv_use_sdl"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_LIBSDL" = yes; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077 fi
3078
3079
d1c38808
VZ
3080 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3081echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3082 no_cache=0
3083
3084# Check whether --with-gnomeprint or --without-gnomeprint was given.
3085if test "${with_gnomeprint+set}" = set; then
3086 withval="$with_gnomeprint"
3087
3088 if test "$withval" = yes; then
3089 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3090 else
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3104
3105fi;
3106
3107 eval "$ac_cv_use_gnomeprint"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118 fi
3119
3120
a848cd7e
SC
3121 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3122echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3123 no_cache=0
3124
3125# Check whether --with-opengl or --without-opengl was given.
3126if test "${with_opengl+set}" = set; then
3127 withval="$with_opengl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3131 else
3132 ac_cv_use_opengl='wxUSE_OPENGL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3145
3146fi;
3147
3148 eval "$ac_cv_use_opengl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPENGL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
3162fi
3163
3164
3165 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3166echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3167 no_cache=0
3168
3169# Check whether --with-dmalloc or --without-dmalloc was given.
3170if test "${with_dmalloc+set}" = set; then
3171 withval="$with_dmalloc"
3172
3173 if test "$withval" = yes; then
3174 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3175 else
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3189
3190fi;
3191
3192 eval "$ac_cv_use_dmalloc"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DMALLOC" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for --with-regex" >&5
3207echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3208 no_cache=0
3209
3210# Check whether --with-regex or --without-regex was given.
3211if test "${with_regex+set}" = set; then
3212 withval="$with_regex"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_regex='wxUSE_REGEX=yes'
3216 elif test "$withval" = no; then
3217 ac_cv_use_regex='wxUSE_REGEX=no'
3218 elif test "$withval" = sys; then
3219 ac_cv_use_regex='wxUSE_REGEX=sys'
3220 elif test "$withval" = builtin; then
3221 ac_cv_use_regex='wxUSE_REGEX=builtin'
3222 else
3223 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3224echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3238
3239fi;
3240
3241 eval "$ac_cv_use_regex"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_REGEX" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 elif test "$wxUSE_REGEX" = no; then
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 elif test "$wxUSE_REGEX" = sys; then
3253 echo "$as_me:$LINENO: result: system version" >&5
3254echo "${ECHO_T}system version" >&6
3255 elif test "$wxUSE_REGEX" = builtin; then
3256 echo "$as_me:$LINENO: result: builtin version" >&5
3257echo "${ECHO_T}builtin version" >&6
3258 else
3259 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3260echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264
3265 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3266echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-zlib or --without-zlib was given.
3270if test "${with_zlib+set}" = set; then
3271 withval="$with_zlib"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3275 elif test "$withval" = no; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=no'
3277 elif test "$withval" = sys; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3279 elif test "$withval" = builtin; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3297
3298fi;
3299
3300 eval "$ac_cv_use_zlib"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_ZLIB" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
3308 elif test "$wxUSE_ZLIB" = no; then
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311 elif test "$wxUSE_ZLIB" = sys; then
3312 echo "$as_me:$LINENO: result: system version" >&5
3313echo "${ECHO_T}system version" >&6
3314 elif test "$wxUSE_ZLIB" = builtin; then
3315 echo "$as_me:$LINENO: result: builtin version" >&5
3316echo "${ECHO_T}builtin version" >&6
3317 else
3318 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3319echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3320 { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3325echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-odbc or --without-odbc was given.
3329if test "${with_odbc+set}" = set; then
3330 withval="$with_odbc"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_odbc='wxUSE_ODBC=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_odbc='wxUSE_ODBC=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_odbc='wxUSE_ODBC=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3356
3357fi;
3358
3359 eval "$ac_cv_use_odbc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_ODBC" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_ODBC" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_ODBC" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_ODBC" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-expat" >&5
3384echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-expat or --without-expat was given.
3388if test "${with_expat+set}" = set; then
3389 withval="$with_expat"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_expat='wxUSE_EXPAT=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_expat='wxUSE_EXPAT=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_expat='wxUSE_EXPAT=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3415
3416fi;
3417
3418 eval "$ac_cv_use_expat"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_EXPAT" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_EXPAT" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_EXPAT" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_EXPAT" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442
3443
3444 enablestring=
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3447 no_cache=0
3448 # Check whether --enable-shared or --disable-shared was given.
3449if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_shared='wxUSE_SHARED=yes'
3454 else
3455 ac_cv_use_shared='wxUSE_SHARED=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3468
3469fi;
3470
3471 eval "$ac_cv_use_shared"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_SHARED" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 fi
3483
3484
3485 enablestring=
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3488 no_cache=0
3489 # Check whether --enable-optimise or --disable-optimise was given.
3490if test "${enable_optimise+set}" = set; then
3491 enableval="$enable_optimise"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3495 else
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3509
3510fi;
3511
3512 eval "$ac_cv_use_optimise"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_OPTIMISE" = yes; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523 fi
3524
3525
3526 enablestring=
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3529 no_cache=0
3530 # Check whether --enable-debug or --disable-debug was given.
3531if test "${enable_debug+set}" = set; then
3532 enableval="$enable_debug"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_debug='wxUSE_DEBUG=yes'
3536 else
3537 ac_cv_use_debug='wxUSE_DEBUG=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3550
3551fi;
3552
3553 eval "$ac_cv_use_debug"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DEBUG" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 fi
3565
3566
3567 enablestring=
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3570 no_cache=0
3571 # Check whether --enable-stl or --disable-stl was given.
3572if test "${enable_stl+set}" = set; then
3573 enableval="$enable_stl"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_stl='wxUSE_STL=yes'
3577 else
3578 ac_cv_use_stl='wxUSE_STL=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3591
3592fi;
3593
3594 eval "$ac_cv_use_stl"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_STL" = yes; then
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605 fi
3606
3607if test "$USE_OS2" = "1"; then
69120ee4 3608 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
81f90336
MW
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-arcstream or --disable-arcstream was given.
4660if test "${enable_arcstream+set}" = set; then
4661 enableval="$enable_arcstream"
4662
4663 if test "$enableval" = yes; then
9e8e867f 4664 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4665 else
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4667 fi
4668
4669else
4670
9e8e867f 4671 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
9e8e867f 4678 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4679
4680fi;
4681
4682 eval "$ac_cv_use_arcstream"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4685 fi
4686
9e8e867f 4687 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
a848cd7e 4696 enablestring=
36b6448c
VZ
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4699 no_cache=0
36b6448c
VZ
4700 # Check whether --enable-backtrace or --disable-backtrace was given.
4701if test "${enable_backtrace+set}" = set; then
4702 enableval="$enable_backtrace"
a848cd7e
SC
4703
4704 if test "$enableval" = yes; then
36b6448c 4705 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4706 else
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4708 fi
4709
4710else
4711
36b6448c 4712 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
36b6448c 4719 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4720
4721fi;
4722
36b6448c 4723 eval "$ac_cv_use_backtrace"
a848cd7e 4724 if test "$no_cache" != 1; then
36b6448c 4725 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4726 fi
4727
36b6448c 4728 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
eaff0f0d 4737 enablestring=
36b6448c
VZ
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4740 no_cache=0
36b6448c
VZ
4741 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4742if test "${enable_catch_segvs+set}" = set; then
4743 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4744
4745 if test "$enableval" = yes; then
36b6448c 4746 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4747 else
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4749 fi
4750
4751else
4752
36b6448c 4753 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
36b6448c 4760 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4761
4762fi;
4763
36b6448c 4764 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4765 if test "$no_cache" != 1; then
36b6448c 4766 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4767 fi
4768
36b6448c 4769 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
a848cd7e
SC
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-cmdline or --disable-cmdline was given.
4783if test "${enable_cmdline+set}" = set; then
4784 enableval="$enable_cmdline"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4788 else
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4802
4803fi;
4804
4805 eval "$ac_cv_use_cmdline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-datetime or --disable-datetime was given.
4824if test "${enable_datetime+set}" = set; then
4825 enableval="$enable_datetime"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4829 else
4830 ac_cv_use_datetime='wxUSE_DATETIME=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4843
4844fi;
4845
4846 eval "$ac_cv_use_datetime"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DATETIME" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
36b6448c
VZ
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-debugreport or --disable-debugreport was given.
4865if test "${enable_debugreport+set}" = set; then
4866 enableval="$enable_debugreport"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4870 else
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4884
4885fi;
4886
4887 eval "$ac_cv_use_debugreport"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DEBUGREPORT" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
a848cd7e
SC
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-dialupman or --disable-dialupman was given.
4906if test "${enable_dialupman+set}" = set; then
4907 enableval="$enable_dialupman"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4911 else
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4925
4926fi;
4927
4928 eval "$ac_cv_use_dialupman"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-dynlib or --disable-dynlib was given.
4947if test "${enable_dynlib+set}" = set; then
4948 enableval="$enable_dynlib"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4952 else
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4966
4967fi;
4968
4969 eval "$ac_cv_use_dynlib"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4988if test "${enable_dynamicloader+set}" = set; then
4989 enableval="$enable_dynamicloader"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4993 else
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5007
5008fi;
5009
5010 eval "$ac_cv_use_dynamicloader"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-exceptions or --disable-exceptions was given.
5029if test "${enable_exceptions+set}" = set; then
5030 enableval="$enable_exceptions"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5034 else
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5048
5049fi;
5050
5051 eval "$ac_cv_use_exceptions"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_EXCEPTIONS" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-ffile or --disable-ffile was given.
5070if test "${enable_ffile+set}" = set; then
5071 enableval="$enable_ffile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_ffile='wxUSE_FFILE=yes'
5075 else
5076 ac_cv_use_ffile='wxUSE_FFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_ffile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-file or --disable-file was given.
5111if test "${enable_file+set}" = set; then
5112 enableval="$enable_file"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_file='wxUSE_FILE=yes'
5116 else
5117 ac_cv_use_file='wxUSE_FILE=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5130
5131fi;
5132
5133 eval "$ac_cv_use_file"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FILE" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-filesystem or --disable-filesystem was given.
5152if test "${enable_filesystem+set}" = set; then
5153 enableval="$enable_filesystem"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5157 else
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5171
5172fi;
5173
5174 eval "$ac_cv_use_filesystem"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FILESYSTEM" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-fontmap or --disable-fontmap was given.
5193if test "${enable_fontmap+set}" = set; then
5194 enableval="$enable_fontmap"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5198 else
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5212
5213fi;
5214
5215 eval "$ac_cv_use_fontmap"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_FONTMAP" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5234if test "${enable_fs_inet+set}" = set; then
5235 enableval="$enable_fs_inet"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5239 else
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5253
5254fi;
5255
5256 eval "$ac_cv_use_fs_inet"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_FS_INET" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5275if test "${enable_fs_zip+set}" = set; then
5276 enableval="$enable_fs_zip"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5280 else
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5294
5295fi;
5296
5297 eval "$ac_cv_use_fs_zip"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_FS_ZIP" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-geometry or --disable-geometry was given.
5316if test "${enable_geometry+set}" = set; then
5317 enableval="$enable_geometry"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5321 else
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5335
5336fi;
5337
5338 eval "$ac_cv_use_geometry"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_GEOMETRY" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-log or --disable-log was given.
5357if test "${enable_log+set}" = set; then
5358 enableval="$enable_log"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_log='wxUSE_LOG=yes'
5362 else
5363 ac_cv_use_log='wxUSE_LOG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5376
5377fi;
5378
5379 eval "$ac_cv_use_log"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_LOG" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-longlong or --disable-longlong was given.
5398if test "${enable_longlong+set}" = set; then
5399 enableval="$enable_longlong"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5403 else
5404 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5417
5418fi;
5419
5420 eval "$ac_cv_use_longlong"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_LONGLONG" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-mimetype or --disable-mimetype was given.
5439if test "${enable_mimetype+set}" = set; then
5440 enableval="$enable_mimetype"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5444 else
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5458
5459fi;
5460
5461 eval "$ac_cv_use_mimetype"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MIMETYPE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-mslu or --disable-mslu was given.
5480if test "${enable_mslu+set}" = set; then
5481 enableval="$enable_mslu"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5485 else
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5499
5500fi;
5501
5502 eval "$ac_cv_use_mslu"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_UNICODE_MSLU" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-snglinst or --disable-snglinst was given.
5521if test "${enable_snglinst+set}" = set; then
5522 enableval="$enable_snglinst"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5526 else
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5540
5541fi;
5542
5543 eval "$ac_cv_use_snglinst"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
07158944
VZ
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5560 no_cache=0
07158944
VZ
5561 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5562if test "${enable_std_iostreams+set}" = set; then
5563 enableval="$enable_std_iostreams"
a848cd7e
SC
5564
5565 if test "$enableval" = yes; then
07158944 5566 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5567 else
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5569 fi
5570
5571else
5572
07158944 5573 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
07158944 5580 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5581
5582fi;
5583
07158944 5584 eval "$ac_cv_use_std_iostreams"
a848cd7e 5585 if test "$no_cache" != 1; then
07158944 5586 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5587 fi
5588
07158944 5589 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
59746b65
MW
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-std_string or --disable-std_string was given.
5603if test "${enable_std_string+set}" = set; then
5604 enableval="$enable_std_string"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5608 else
5609 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5622
5623fi;
5624
5625 eval "$ac_cv_use_std_string"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_STD_STRING" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
a848cd7e 5639 enablestring=
07158944
VZ
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5642 no_cache=0
07158944
VZ
5643 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5644if test "${enable_stdpaths+set}" = set; then
5645 enableval="$enable_stdpaths"
a848cd7e
SC
5646
5647 if test "$enableval" = yes; then
07158944 5648 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5649 else
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5651 fi
5652
5653else
5654
07158944 5655 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
07158944 5662 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5663
5664fi;
5665
07158944 5666 eval "$ac_cv_use_stdpaths"
a848cd7e 5667 if test "$no_cache" != 1; then
07158944 5668 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5669 fi
5670
07158944 5671 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5685if test "${enable_stopwatch+set}" = set; then
5686 enableval="$enable_stopwatch"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5690 else
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5704
5705fi;
5706
5707 eval "$ac_cv_use_stopwatch"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_STOPWATCH" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
07158944
VZ
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-streams or --disable-streams was given.
5726if test "${enable_streams+set}" = set; then
5727 enableval="$enable_streams"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_streams='wxUSE_STREAMS=yes'
5731 else
5732 ac_cv_use_streams='wxUSE_STREAMS=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5745
5746fi;
5747
5748 eval "$ac_cv_use_streams"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_STREAMS" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
a848cd7e
SC
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-system_options or --disable-system_options was given.
5767if test "${enable_system_options+set}" = set; then
5768 enableval="$enable_system_options"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5772 else
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5786
5787fi;
5788
5789 eval "$ac_cv_use_system_options"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-textbuf or --disable-textbuf was given.
5808if test "${enable_textbuf+set}" = set; then
5809 enableval="$enable_textbuf"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5813 else
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5827
5828fi;
5829
5830 eval "$ac_cv_use_textbuf"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_TEXTBUFFER" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-textfile or --disable-textfile was given.
5849if test "${enable_textfile+set}" = set; then
5850 enableval="$enable_textfile"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5854 else
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5868
5869fi;
5870
5871 eval "$ac_cv_use_textfile"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_TEXTFILE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-timer or --disable-timer was given.
5890if test "${enable_timer+set}" = set; then
5891 enableval="$enable_timer"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_timer='wxUSE_TIMER=yes'
5895 else
5896 ac_cv_use_timer='wxUSE_TIMER=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5909
5910fi;
5911
5912 eval "$ac_cv_use_timer"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_TIMER" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-unicode or --disable-unicode was given.
5931if test "${enable_unicode+set}" = set; then
5932 enableval="$enable_unicode"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5936 else
5937 ac_cv_use_unicode='wxUSE_UNICODE=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5950
5951fi;
5952
5953 eval "$ac_cv_use_unicode"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_UNICODE" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-sound or --disable-sound was given.
5972if test "${enable_sound+set}" = set; then
5973 enableval="$enable_sound"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_sound='wxUSE_SOUND=yes'
5977 else
5978 ac_cv_use_sound='wxUSE_SOUND=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5991
5992fi;
5993
5994 eval "$ac_cv_use_sound"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_SOUND" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
3b57de8b
RL
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6013if test "${enable_mediactrl+set}" = set; then
6014 enableval="$enable_mediactrl"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6018 else
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6032
6033fi;
6034
6035 eval "$ac_cv_use_mediactrl"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_MEDIACTRL" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e
SC
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6054if test "${enable_wxprintfv+set}" = set; then
6055 enableval="$enable_wxprintfv"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6059 else
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6073
6074fi;
6075
6076 eval "$ac_cv_use_wxprintfv"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-zipstream or --disable-zipstream was given.
6095if test "${enable_zipstream+set}" = set; then
6096 enableval="$enable_zipstream"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6100 else
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6114
6115fi;
6116
6117 eval "$ac_cv_use_zipstream"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_ZIPSTREAM" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
a848cd7e
SC
6131
6132 enablestring=
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6135 no_cache=0
6136 # Check whether --enable-url or --disable-url was given.
6137if test "${enable_url+set}" = set; then
6138 enableval="$enable_url"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_url='wxUSE_URL=yes'
6142 else
6143 ac_cv_use_url='wxUSE_URL=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6156
6157fi;
6158
6159 eval "$ac_cv_use_url"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_URL" = yes; then
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170 fi
6171
6172
6173 enablestring=
6174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6175echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6176 no_cache=0
6177 # Check whether --enable-protocol or --disable-protocol was given.
6178if test "${enable_protocol+set}" = set; then
6179 enableval="$enable_protocol"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6183 else
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6185 fi
6186
6187else
6188
6189 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6197
6198fi;
6199
6200 eval "$ac_cv_use_protocol"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_PROTOCOL" = yes; then
6206 echo "$as_me:$LINENO: result: yes" >&5
6207echo "${ECHO_T}yes" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211 fi
6212
6213
6214 enablestring=
6215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6216echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6217 no_cache=0
6218 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6219if test "${enable_protocol_http+set}" = set; then
6220 enableval="$enable_protocol_http"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6224 else
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6226 fi
6227
6228else
6229
6230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6238
6239fi;
6240
6241 eval "$ac_cv_use_protocol_http"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248echo "${ECHO_T}yes" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255 enablestring=
6256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6257echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6258 no_cache=0
6259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6260if test "${enable_protocol_ftp+set}" = set; then
6261 enableval="$enable_protocol_ftp"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6265 else
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6279
6280fi;
6281
6282 eval "$ac_cv_use_protocol_ftp"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293 fi
6294
6295
6296 enablestring=
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6299 no_cache=0
6300 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6301if test "${enable_protocol_file+set}" = set; then
6302 enableval="$enable_protocol_file"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6306 else
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6320
6321fi;
6322
6323 eval "$ac_cv_use_protocol_file"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334 fi
6335
6336
6337
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-threads or --disable-threads was given.
6345if test "${enable_threads+set}" = set; then
6346 enableval="$enable_threads"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_threads='wxUSE_THREADS=yes'
6350 else
6351 ac_cv_use_threads='wxUSE_THREADS=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6364
6365fi;
6366
6367 eval "$ac_cv_use_threads"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_THREADS" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381if test "$wxUSE_GUI" = "yes"; then
6382
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-docview or --disable-docview was given.
6390if test "${enable_docview+set}" = set; then
6391 enableval="$enable_docview"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6395 else
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6409
6410fi;
6411
6412 eval "$ac_cv_use_docview"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-help or --disable-help was given.
6431if test "${enable_help+set}" = set; then
6432 enableval="$enable_help"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_help='wxUSE_HELP=yes'
6436 else
6437 ac_cv_use_help='wxUSE_HELP=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6450
6451fi;
6452
6453 eval "$ac_cv_use_help"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_HELP" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6472if test "${enable_mshtmlhelp+set}" = set; then
6473 enableval="$enable_mshtmlhelp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6477 else
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6491
6492fi;
6493
6494 eval "$ac_cv_use_mshtmlhelp"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MS_HTML_HELP" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-html or --disable-html was given.
6513if test "${enable_html+set}" = set; then
6514 enableval="$enable_html"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_html='wxUSE_HTML=yes'
6518 else
6519 ac_cv_use_html='wxUSE_HTML=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6532
6533fi;
6534
6535 eval "$ac_cv_use_html"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_HTML" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6554if test "${enable_htmlhelp+set}" = set; then
6555 enableval="$enable_htmlhelp"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6559 else
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6573
6574fi;
6575
6576 eval "$ac_cv_use_htmlhelp"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_WXHTML_HELP" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
9a8f0513
VS
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-xrc or --disable-xrc was given.
6595if test "${enable_xrc+set}" = set; then
6596 enableval="$enable_xrc"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_xrc='wxUSE_XRC=yes'
6600 else
6601 ac_cv_use_xrc='wxUSE_XRC=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6614
6615fi;
6616
6617 eval "$ac_cv_use_xrc"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_XRC" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-constraints or --disable-constraints was given.
6636if test "${enable_constraints+set}" = set; then
6637 enableval="$enable_constraints"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6641 else
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6655
6656fi;
6657
6658 eval "$ac_cv_use_constraints"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_CONSTRAINTS" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-printarch or --disable-printarch was given.
6677if test "${enable_printarch+set}" = set; then
6678 enableval="$enable_printarch"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6682 else
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6696
6697fi;
6698
6699 eval "$ac_cv_use_printarch"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-mdi or --disable-mdi was given.
6718if test "${enable_mdi+set}" = set; then
6719 enableval="$enable_mdi"
6720
6721 if test "$enableval" = yes; then
8a7b1113 6722 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6723 else
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6725 fi
6726
6727else
6728
8a7b1113 6729 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
8a7b1113 6736 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6737
6738fi;
6739
6740 eval "$ac_cv_use_mdi"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6743 fi
6744
8a7b1113
VZ
6745 if test "$wxUSE_MDI" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6759if test "${enable_mdidoc+set}" = set; then
6760 enableval="$enable_mdidoc"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_mdidoc"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6784 fi
6785
a848cd7e
SC
6786 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-loggui or --disable-loggui was given.
6800if test "${enable_loggui+set}" = set; then
6801 enableval="$enable_loggui"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6805 else
6806 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6819
6820fi;
6821
6822 eval "$ac_cv_use_loggui"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_LOGGUI" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-logwin or --disable-logwin was given.
6841if test "${enable_logwin+set}" = set; then
6842 enableval="$enable_logwin"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6846 else
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6860
6861fi;
6862
6863 eval "$ac_cv_use_logwin"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_LOGWINDOW" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-logdialog or --disable-logdialog was given.
6882if test "${enable_logdialog+set}" = set; then
6883 enableval="$enable_logdialog"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6887 else
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6901
6902fi;
6903
6904 eval "$ac_cv_use_logdialog"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_LOGDIALOG" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
646b6ec1
VS
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-webkit or --disable-webkit was given.
6923if test "${enable_webkit+set}" = set; then
6924 enableval="$enable_webkit"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6928 else
6929 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6942
6943fi;
6944
6945 eval "$ac_cv_use_webkit"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WEBKIT" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
a848cd7e
SC
6959
6960 enablestring=
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6963 no_cache=0
6964 # Check whether --enable-postscript or --disable-postscript was given.
6965if test "${enable_postscript+set}" = set; then
6966 enableval="$enable_postscript"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6970 else
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6984
6985fi;
6986
6987 eval "$ac_cv_use_postscript"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_POSTSCRIPT" = yes; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998 fi
6999
7000
7001
7002
7003
7004 enablestring=
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7007 no_cache=0
7008 # Check whether --enable-prologio or --disable-prologio was given.
7009if test "${enable_prologio+set}" = set; then
7010 enableval="$enable_prologio"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7014 else
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7016 fi
7017
7018else
7019
7020 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7028
7029fi;
7030
7031 eval "$ac_cv_use_prologio"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_PROLOGIO" = yes; then
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039 else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042 fi
7043
7044
7045 enablestring=
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7048 no_cache=0
7049 # Check whether --enable-resources or --disable-resources was given.
7050if test "${enable_resources+set}" = set; then
7051 enableval="$enable_resources"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7055 else
7056 ac_cv_use_resources='wxUSE_RESOURCES=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7069
7070fi;
7071
7072 eval "$ac_cv_use_resources"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_RESOURCES" = yes; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
7080 else
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083 fi
7084
7085
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-clipboard or --disable-clipboard was given.
7093if test "${enable_clipboard+set}" = set; then
7094 enableval="$enable_clipboard"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7098 else
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7112
7113fi;
7114
7115 eval "$ac_cv_use_clipboard"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CLIPBOARD" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-dnd or --disable-dnd was given.
7134if test "${enable_dnd+set}" = set; then
7135 enableval="$enable_dnd"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7139 else
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7153
7154fi;
7155
7156 eval "$ac_cv_use_dnd"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-metafile or --disable-metafile was given.
7175if test "${enable_metafile+set}" = set; then
7176 enableval="$enable_metafile"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7180 else
7181 ac_cv_use_metafile='wxUSE_METAFILE=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7194
7195fi;
7196
7197 eval "$ac_cv_use_metafile"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_METAFILE" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-controls or --disable-controls was given.
7219if test "${enable_controls+set}" = set; then
7220 enableval="$enable_controls"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7224 else
7225 ac_cv_use_controls='wxUSE_CONTROLS=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7238
7239fi;
7240
7241 eval "$ac_cv_use_controls"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CONTROLS" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255if test "$wxUSE_CONTROLS" = "yes"; then
7256 DEFAULT_wxUSE_ACCEL=yes
7257 DEFAULT_wxUSE_BMPBUTTON=yes
7258 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7259 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7260 DEFAULT_wxUSE_CARET=yes
7261 DEFAULT_wxUSE_COMBOBOX=yes
7262 DEFAULT_wxUSE_CHECKBOX=yes
7263 DEFAULT_wxUSE_CHECKLISTBOX=yes
7264 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7265 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7266 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7267 DEFAULT_wxUSE_GAUGE=yes
7268 DEFAULT_wxUSE_GRID=yes
7269 DEFAULT_wxUSE_IMAGLIST=yes
7270 DEFAULT_wxUSE_LISTBOOK=yes
7271 DEFAULT_wxUSE_LISTBOX=yes
7272 DEFAULT_wxUSE_LISTCTRL=yes
7273 DEFAULT_wxUSE_NOTEBOOK=yes
7274 DEFAULT_wxUSE_RADIOBOX=yes
7275 DEFAULT_wxUSE_RADIOBTN=yes
7276 DEFAULT_wxUSE_SASH=yes
7277 DEFAULT_wxUSE_SCROLLBAR=yes
7278 DEFAULT_wxUSE_SLIDER=yes
7279 DEFAULT_wxUSE_SPINBTN=yes
7280 DEFAULT_wxUSE_SPINCTRL=yes
7281 DEFAULT_wxUSE_SPLITTER=yes
7282 DEFAULT_wxUSE_STATBMP=yes
7283 DEFAULT_wxUSE_STATBOX=yes
7284 DEFAULT_wxUSE_STATLINE=yes
7285 DEFAULT_wxUSE_STATUSBAR=yes
7286 DEFAULT_wxUSE_TAB_DIALOG=yes
7287 DEFAULT_wxUSE_TOGGLEBTN=yes
7288 DEFAULT_wxUSE_TOOLBAR=yes
7289 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7290 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7291 DEFAULT_wxUSE_TOOLTIPS=yes
7292 DEFAULT_wxUSE_TREECTRL=yes
7293 DEFAULT_wxUSE_POPUPWIN=yes
7294 DEFAULT_wxUSE_TIPWINDOW=yes
7295elif test "$wxUSE_CONTROLS" = "no"; then
7296 DEFAULT_wxUSE_ACCEL=no
7297 DEFAULT_wxUSE_BMPBUTTON=no
7298 DEFAULT_wxUSE_BUTTON=no
7299 DEFAULT_wxUSE_CALCTRL=no
7300 DEFAULT_wxUSE_CARET=no
7301 DEFAULT_wxUSE_COMBOBOX=no
7302 DEFAULT_wxUSE_CHECKBOX=no
7303 DEFAULT_wxUSE_CHECKLISTBOX=no
7304 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7305 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7306 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7307 DEFAULT_wxUSE_GAUGE=no
7308 DEFAULT_wxUSE_GRID=no
7309 DEFAULT_wxUSE_IMAGLIST=no
7310 DEFAULT_wxUSE_LISTBOOK=no
7311 DEFAULT_wxUSE_LISTBOX=no
7312 DEFAULT_wxUSE_LISTCTRL=no
7313 DEFAULT_wxUSE_NOTEBOOK=no
7314 DEFAULT_wxUSE_RADIOBOX=no
7315 DEFAULT_wxUSE_RADIOBTN=no
7316 DEFAULT_wxUSE_SASH=no
7317 DEFAULT_wxUSE_SCROLLBAR=no
7318 DEFAULT_wxUSE_SLIDER=no
7319 DEFAULT_wxUSE_SPINBTN=no
7320 DEFAULT_wxUSE_SPINCTRL=no
7321 DEFAULT_wxUSE_SPLITTER=no
7322 DEFAULT_wxUSE_STATBMP=no
7323 DEFAULT_wxUSE_STATBOX=no
7324 DEFAULT_wxUSE_STATLINE=no
7325 DEFAULT_wxUSE_STATUSBAR=no
7326 DEFAULT_wxUSE_TAB_DIALOG=no
7327 DEFAULT_wxUSE_TOGGLEBTN=no
7328 DEFAULT_wxUSE_TOOLBAR=no
7329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7331 DEFAULT_wxUSE_TOOLTIPS=no
7332 DEFAULT_wxUSE_TREECTRL=no
7333 DEFAULT_wxUSE_POPUPWIN=no
7334 DEFAULT_wxUSE_TIPWINDOW=no
7335fi
7336
a848cd7e
SC
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-accel or --disable-accel was given.
7343if test "${enable_accel+set}" = set; then
7344 enableval="$enable_accel"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_accel='wxUSE_ACCEL=yes'
7348 else
7349 ac_cv_use_accel='wxUSE_ACCEL=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7362
7363fi;
7364
7365 eval "$ac_cv_use_accel"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_ACCEL" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-button or --disable-button was given.
7384if test "${enable_button+set}" = set; then
7385 enableval="$enable_button"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_button='wxUSE_BUTTON=yes'
7389 else
7390 ac_cv_use_button='wxUSE_BUTTON=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7403
7404fi;
7405
7406 eval "$ac_cv_use_button"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_BUTTON" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7425if test "${enable_bmpbutton+set}" = set; then
7426 enableval="$enable_bmpbutton"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7430 else
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7444
7445fi;
7446
7447 eval "$ac_cv_use_bmpbutton"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_BMPBUTTON" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-calendar or --disable-calendar was given.
7466if test "${enable_calendar+set}" = set; then
7467 enableval="$enable_calendar"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7471 else
7472 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7485
7486fi;
7487
7488 eval "$ac_cv_use_calendar"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_CALCTRL" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-caret or --disable-caret was given.
7507if test "${enable_caret+set}" = set; then
7508 enableval="$enable_caret"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_caret='wxUSE_CARET=yes'
7512 else
7513 ac_cv_use_caret='wxUSE_CARET=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7526
7527fi;
7528
7529 eval "$ac_cv_use_caret"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_CARET" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-checkbox or --disable-checkbox was given.
7548if test "${enable_checkbox+set}" = set; then
7549 enableval="$enable_checkbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7553 else
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_checkbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_CHECKBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-checklst or --disable-checklst was given.
7589if test "${enable_checklst+set}" = set; then
7590 enableval="$enable_checklst"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7594 else
7595 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7608
7609fi;
7610
7611 eval "$ac_cv_use_checklst"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_CHECKLST" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-choice or --disable-choice was given.
7630if test "${enable_choice+set}" = set; then
7631 enableval="$enable_choice"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_choice='wxUSE_CHOICE=yes'
7635 else
7636 ac_cv_use_choice='wxUSE_CHOICE=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7649
7650fi;
7651
7652 eval "$ac_cv_use_choice"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_CHOICE" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
92bbdbcd
WS
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-choicebook or --disable-choicebook was given.
7671if test "${enable_choicebook+set}" = set; then
7672 enableval="$enable_choicebook"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7676 else
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7690
7691fi;
7692
7693 eval "$ac_cv_use_choicebook"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_CHOICEBOOK" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
a848cd7e
SC
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-combobox or --disable-combobox was given.
7712if test "${enable_combobox+set}" = set; then
7713 enableval="$enable_combobox"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7717 else
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7731
7732fi;
7733
7734 eval "$ac_cv_use_combobox"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_COMBOBOX" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
da98e9be
VZ
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-datepick or --disable-datepick was given.
7753if test "${enable_datepick+set}" = set; then
7754 enableval="$enable_datepick"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7758 else
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7772
7773fi;
7774
7775 eval "$ac_cv_use_datepick"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_DATEPICKCTRL" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
a848cd7e
SC
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-display or --disable-display was given.
7794if test "${enable_display+set}" = set; then
7795 enableval="$enable_display"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_display='wxUSE_DISPLAY=yes'
7799 else
7800 ac_cv_use_display='wxUSE_DISPLAY=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7813
7814fi;
7815
7816 eval "$ac_cv_use_display"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_DISPLAY" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-gauge or --disable-gauge was given.
7835if test "${enable_gauge+set}" = set; then
7836 enableval="$enable_gauge"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7840 else
7841 ac_cv_use_gauge='wxUSE_GAUGE=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7854
7855fi;
7856
7857 eval "$ac_cv_use_gauge"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_GAUGE" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-grid or --disable-grid was given.
7876if test "${enable_grid+set}" = set; then
7877 enableval="$enable_grid"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_grid='wxUSE_GRID=yes'
7881 else
7882 ac_cv_use_grid='wxUSE_GRID=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7895
7896fi;
7897
7898 eval "$ac_cv_use_grid"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_GRID" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-imaglist or --disable-imaglist was given.
7917if test "${enable_imaglist+set}" = set; then
7918 enableval="$enable_imaglist"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7922 else
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7936
7937fi;
7938
7939 eval "$ac_cv_use_imaglist"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_IMAGLIST" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-listbook or --disable-listbook was given.
7958if test "${enable_listbook+set}" = set; then
7959 enableval="$enable_listbook"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7963 else
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7977
7978fi;
7979
7980 eval "$ac_cv_use_listbook"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_LISTBOOK" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-listbox or --disable-listbox was given.
7999if test "${enable_listbox+set}" = set; then
8000 enableval="$enable_listbox"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8004 else
8005 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8018
8019fi;
8020
8021 eval "$ac_cv_use_listbox"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_LISTBOX" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-listctrl or --disable-listctrl was given.
8040if test "${enable_listctrl+set}" = set; then
8041 enableval="$enable_listctrl"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8045 else
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8059
8060fi;
8061
8062 eval "$ac_cv_use_listctrl"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_LISTCTRL" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-notebook or --disable-notebook was given.
8081if test "${enable_notebook+set}" = set; then
8082 enableval="$enable_notebook"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8086 else
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8100
8101fi;
8102
8103 eval "$ac_cv_use_notebook"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_NOTEBOOK" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-radiobox or --disable-radiobox was given.
8122if test "${enable_radiobox+set}" = set; then
8123 enableval="$enable_radiobox"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8127 else
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8141
8142fi;
8143
8144 eval "$ac_cv_use_radiobox"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_RADIOBOX" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8163if test "${enable_radiobtn+set}" = set; then
8164 enableval="$enable_radiobtn"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8168 else
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8182
8183fi;
8184
8185 eval "$ac_cv_use_radiobtn"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_RADIOBTN" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-sash or --disable-sash was given.
8204if test "${enable_sash+set}" = set; then
8205 enableval="$enable_sash"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_sash='wxUSE_SASH=yes'
8209 else
8210 ac_cv_use_sash='wxUSE_SASH=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8223
8224fi;
8225
8226 eval "$ac_cv_use_sash"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_SASH" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8245if test "${enable_scrollbar+set}" = set; then
8246 enableval="$enable_scrollbar"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8250 else
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8264
8265fi;
8266
8267 eval "$ac_cv_use_scrollbar"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_SCROLLBAR" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-slider or --disable-slider was given.
8286if test "${enable_slider+set}" = set; then
8287 enableval="$enable_slider"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_slider='wxUSE_SLIDER=yes'
8291 else
8292 ac_cv_use_slider='wxUSE_SLIDER=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8305
8306fi;
8307
8308 eval "$ac_cv_use_slider"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_SLIDER" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8327if test "${enable_spinbtn+set}" = set; then
8328 enableval="$enable_spinbtn"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8332 else
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8346
8347fi;
8348
8349 eval "$ac_cv_use_spinbtn"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_SPINBTN" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8368if test "${enable_spinctrl+set}" = set; then
8369 enableval="$enable_spinctrl"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8373 else
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8387
8388fi;
8389
8390 eval "$ac_cv_use_spinctrl"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_SPINCTRL" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-splitter or --disable-splitter was given.
8409if test "${enable_splitter+set}" = set; then
8410 enableval="$enable_splitter"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8414 else
8415 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8428
8429fi;
8430
8431 eval "$ac_cv_use_splitter"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_SPLITTER" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-statbmp or --disable-statbmp was given.
8450if test "${enable_statbmp+set}" = set; then
8451 enableval="$enable_statbmp"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8455 else
8456 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8469
8470fi;
8471
8472 eval "$ac_cv_use_statbmp"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_STATBMP" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-statbox or --disable-statbox was given.
8491if test "${enable_statbox+set}" = set; then
8492 enableval="$enable_statbox"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8496 else
8497 ac_cv_use_statbox='wxUSE_STATBOX=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8510
8511fi;
8512
8513 eval "$ac_cv_use_statbox"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_STATBOX" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-statline or --disable-statline was given.
8532if test "${enable_statline+set}" = set; then
8533 enableval="$enable_statline"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_statline='wxUSE_STATLINE=yes'
8537 else
8538 ac_cv_use_statline='wxUSE_STATLINE=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8551
8552fi;
8553
8554 eval "$ac_cv_use_statline"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_STATLINE" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-stattext or --disable-stattext was given.
8573if test "${enable_stattext+set}" = set; then
8574 enableval="$enable_stattext"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8578 else
8579 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8592
8593fi;
8594
8595 eval "$ac_cv_use_stattext"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_STATTEXT" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-statusbar or --disable-statusbar was given.
8614if test "${enable_statusbar+set}" = set; then
8615 enableval="$enable_statusbar"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8619 else
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8633
8634fi;
8635
8636 eval "$ac_cv_use_statusbar"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_STATUSBAR" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8655if test "${enable_tabdialog+set}" = set; then
8656 enableval="$enable_tabdialog"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8660 else
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8674
8675fi;
8676
8677 eval "$ac_cv_use_tabdialog"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_TABDIALOG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-textctrl or --disable-textctrl was given.
8696if test "${enable_textctrl+set}" = set; then
8697 enableval="$enable_textctrl"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8701 else
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8715
8716fi;
8717
8718 eval "$ac_cv_use_textctrl"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_TEXTCTRL" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8737if test "${enable_togglebtn+set}" = set; then
8738 enableval="$enable_togglebtn"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8742 else
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8756
8757fi;
8758
8759 eval "$ac_cv_use_togglebtn"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_TOGGLEBTN" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-toolbar or --disable-toolbar was given.
8778if test "${enable_toolbar+set}" = set; then
8779 enableval="$enable_toolbar"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8783 else
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8797
8798fi;
8799
8800 eval "$ac_cv_use_toolbar"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLBAR" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8819if test "${enable_tbarnative+set}" = set; then
8820 enableval="$enable_tbarnative"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8824 else
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8838
8839fi;
8840
8841 eval "$ac_cv_use_tbarnative"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8860if test "${enable_tbarsmpl+set}" = set; then
8861 enableval="$enable_tbarsmpl"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8865 else
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8879
8880fi;
8881
8882 eval "$ac_cv_use_tbarsmpl"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-treectrl or --disable-treectrl was given.
8901if test "${enable_treectrl+set}" = set; then
8902 enableval="$enable_treectrl"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8906 else
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8920
8921fi;
8922
8923 eval "$ac_cv_use_treectrl"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_TREECTRL" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8942if test "${enable_tipwindow+set}" = set; then
8943 enableval="$enable_tipwindow"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8947 else
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8961
8962fi;
8963
8964 eval "$ac_cv_use_tipwindow"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_TIPWINDOW" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-popupwin or --disable-popupwin was given.
8983if test "${enable_popupwin+set}" = set; then
8984 enableval="$enable_popupwin"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8988 else
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9002
9003fi;
9004
9005 eval "$ac_cv_use_popupwin"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_POPUPWIN" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-commondlg or --disable-commondlg was given.
9026if test "${enable_commondlg+set}" = set; then
9027 enableval="$enable_commondlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9031 else
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9045
9046fi;
9047
9048 eval "$ac_cv_use_commondlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_COMMONDLGS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9067if test "${enable_choicedlg+set}" = set; then
9068 enableval="$enable_choicedlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9072 else
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_choicedlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_CHOICEDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-coldlg or --disable-coldlg was given.
9108if test "${enable_coldlg+set}" = set; then
9109 enableval="$enable_coldlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9113 else
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_coldlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_COLOURDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-filedlg or --disable-filedlg was given.
9149if test "${enable_filedlg+set}" = set; then
9150 enableval="$enable_filedlg"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9154 else
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9168
9169fi;
9170
9171 eval "$ac_cv_use_filedlg"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_FILEDLG" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-finddlg or --disable-finddlg was given.
9190if test "${enable_finddlg+set}" = set; then
9191 enableval="$enable_finddlg"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9195 else
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9209
9210fi;
9211
9212 eval "$ac_cv_use_finddlg"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_FINDREPLDLG" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9231if test "${enable_fontdlg+set}" = set; then
9232 enableval="$enable_fontdlg"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9236 else
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9250
9251fi;
9252
9253 eval "$ac_cv_use_fontdlg"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_FONTDLG" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9272if test "${enable_dirdlg+set}" = set; then
9273 enableval="$enable_dirdlg"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9277 else
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9291
9292fi;
9293
9294 eval "$ac_cv_use_dirdlg"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_DIRDLG" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9313if test "${enable_msgdlg+set}" = set; then
9314 enableval="$enable_msgdlg"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9318 else
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9332
9333fi;
9334
9335 eval "$ac_cv_use_msgdlg"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MSGDLG" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9354if test "${enable_numberdlg+set}" = set; then
9355 enableval="$enable_numberdlg"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9359 else
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9373
9374fi;
9375
9376 eval "$ac_cv_use_numberdlg"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_NUMBERDLG" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-splash or --disable-splash was given.
9395if test "${enable_splash+set}" = set; then
9396 enableval="$enable_splash"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_splash='wxUSE_SPLASH=yes'
9400 else
9401 ac_cv_use_splash='wxUSE_SPLASH=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9414
9415fi;
9416
9417 eval "$ac_cv_use_splash"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_SPLASH" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-textdlg or --disable-textdlg was given.
9436if test "${enable_textdlg+set}" = set; then
9437 enableval="$enable_textdlg"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9441 else
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9455
9456fi;
9457
9458 eval "$ac_cv_use_textdlg"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TEXTDLG" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9477if test "${enable_tipdlg+set}" = set; then
9478 enableval="$enable_tipdlg"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9482 else
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9496
9497fi;
9498
9499 eval "$ac_cv_use_tipdlg"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_STARTUP_TIPS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9518if test "${enable_progressdlg+set}" = set; then
9519 enableval="$enable_progressdlg"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9523 else
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9537
9538fi;
9539
9540 eval "$ac_cv_use_progressdlg"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PROGRESSDLG" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9559if test "${enable_wizarddlg+set}" = set; then
9560 enableval="$enable_wizarddlg"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9564 else
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9578
9579fi;
9580
9581 eval "$ac_cv_use_wizarddlg"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_WIZARDDLG" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-menus or --disable-menus was given.
9602if test "${enable_menus+set}" = set; then
9603 enableval="$enable_menus"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_menus='wxUSE_MENUS=yes'
9607 else
9608 ac_cv_use_menus='wxUSE_MENUS=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9621
9622fi;
9623
9624 eval "$ac_cv_use_menus"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_MENUS" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-miniframe or --disable-miniframe was given.
9643if test "${enable_miniframe+set}" = set; then
9644 enableval="$enable_miniframe"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9648 else
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9662
9663fi;
9664
9665 eval "$ac_cv_use_miniframe"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_MINIFRAME" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-tooltips or --disable-tooltips was given.
9684if test "${enable_tooltips+set}" = set; then
9685 enableval="$enable_tooltips"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9689 else
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9703
9704fi;
9705
9706 eval "$ac_cv_use_tooltips"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TOOLTIPS" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-splines or --disable-splines was given.
9725if test "${enable_splines+set}" = set; then
9726 enableval="$enable_splines"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_splines='wxUSE_SPLINES=yes'
9730 else
9731 ac_cv_use_splines='wxUSE_SPLINES=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9744
9745fi;
9746
9747 eval "$ac_cv_use_splines"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_SPLINES" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
fbe2ca43
SN
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9766if test "${enable_mousewheel+set}" = set; then
9767 enableval="$enable_mousewheel"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9771 else
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9785
9786fi;
9787
9788 eval "$ac_cv_use_mousewheel"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_MOUSEWHEEL" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
a848cd7e
SC
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-validators or --disable-validators was given.
9807if test "${enable_validators+set}" = set; then
9808 enableval="$enable_validators"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9812 else
9813 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9826
9827fi;
9828
9829 eval "$ac_cv_use_validators"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_VALIDATORS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9848if test "${enable_busyinfo+set}" = set; then
9849 enableval="$enable_busyinfo"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9853 else
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9867
9868fi;
9869
9870 eval "$ac_cv_use_busyinfo"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_BUSYINFO" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-joystick or --disable-joystick was given.
9889if test "${enable_joystick+set}" = set; then
9890 enableval="$enable_joystick"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9894 else
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9908
9909fi;
9910
9911 eval "$ac_cv_use_joystick"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_JOYSTICK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-metafile or --disable-metafile was given.
9930if test "${enable_metafile+set}" = set; then
9931 enableval="$enable_metafile"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9935 else
9936 ac_cv_use_metafile='wxUSE_METAFILE=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9949
9950fi;
9951
9952 eval "$ac_cv_use_metafile"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_METAFILE" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-dragimage or --disable-dragimage was given.
9971if test "${enable_dragimage+set}" = set; then
9972 enableval="$enable_dragimage"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9976 else
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9990
9991fi;
9992
9993 eval "$ac_cv_use_dragimage"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_DRAGIMAGE" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-accessibility or --disable-accessibility was given.
10012if test "${enable_accessibility+set}" = set; then
10013 enableval="$enable_accessibility"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10017 else
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10031
10032fi;
10033
10034 eval "$ac_cv_use_accessibility"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ACCESSIBILITY" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
38b4a946
VZ
10048if test "$wxUSE_MSW" = "1"; then
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dccache or --disable-dccache was given.
10055if test "${enable_dccache+set}" = set; then
10056 enableval="$enable_dccache"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10060 else
10061 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10074
10075fi;
10076
10077 eval "$ac_cv_use_dccache"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DC_CACHEING" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090fi
10091
a848cd7e
SC
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-palette or --disable-palette was given.
10099if test "${enable_palette+set}" = set; then
10100 enableval="$enable_palette"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_palette='wxUSE_PALETTE=yes'
10104 else
10105 ac_cv_use_palette='wxUSE_PALETTE=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10118
10119fi;
10120
10121 eval "$ac_cv_use_palette"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_PALETTE" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-image or --disable-image was given.
10140if test "${enable_image+set}" = set; then
10141 enableval="$enable_image"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_image='wxUSE_IMAGE=yes'
10145 else
10146 ac_cv_use_image='wxUSE_IMAGE=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10159
10160fi;
10161
10162 eval "$ac_cv_use_image"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_IMAGE" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-gif or --disable-gif was given.
10181if test "${enable_gif+set}" = set; then
10182 enableval="$enable_gif"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_gif='wxUSE_GIF=yes'
10186 else
10187 ac_cv_use_gif='wxUSE_GIF=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10200
10201fi;
10202
10203 eval "$ac_cv_use_gif"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_GIF" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-pcx or --disable-pcx was given.
10222if test "${enable_pcx+set}" = set; then
10223 enableval="$enable_pcx"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_pcx='wxUSE_PCX=yes'
10227 else
10228 ac_cv_use_pcx='wxUSE_PCX=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10241
10242fi;
10243
10244 eval "$ac_cv_use_pcx"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_PCX" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-iff or --disable-iff was given.
10263if test "${enable_iff+set}" = set; then
10264 enableval="$enable_iff"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_iff='wxUSE_IFF=yes'
10268 else
10269 ac_cv_use_iff='wxUSE_IFF=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10282
10283fi;
10284
10285 eval "$ac_cv_use_iff"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_IFF" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-pnm or --disable-pnm was given.
10304if test "${enable_pnm+set}" = set; then
10305 enableval="$enable_pnm"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_pnm='wxUSE_PNM=yes'
10309 else
10310 ac_cv_use_pnm='wxUSE_PNM=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10323
10324fi;
10325
10326 eval "$ac_cv_use_pnm"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_PNM" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-xpm or --disable-xpm was given.
10345if test "${enable_xpm+set}" = set; then
10346 enableval="$enable_xpm"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_xpm='wxUSE_XPM=yes'
10350 else
10351 ac_cv_use_xpm='wxUSE_XPM=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10364
10365fi;
10366
10367 eval "$ac_cv_use_xpm"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_XPM" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10386if test "${enable_ico_cur+set}" = set; then
10387 enableval="$enable_ico_cur"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10391 else
10392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10405
10406fi;
10407
10408 eval "$ac_cv_use_ico_cur"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_ICO_CUR" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422fi
10423
10424
10425
ceec2216
RL
10426# Check whether --with-flavour or --without-flavour was given.
10427if test "${with_flavour+set}" = set; then
10428 withval="$with_flavour"
10429 WX_FLAVOUR="$withval"
10430fi;
10431
10432
10433
a848cd7e
SC
10434 enablestring=
10435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10437 no_cache=0
10438 # Check whether --enable-official_build or --disable-official_build was given.
10439if test "${enable_official_build+set}" = set; then
10440 enableval="$enable_official_build"
10441
10442 if test "$enableval" = yes; then
10443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10444 else
10445 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10446 fi
10447
10448else
10449
10450 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10451 if test "x$LINE" != x ; then
10452 eval "DEFAULT_$LINE"
10453 else
10454 no_cache=1
10455 fi
10456
10457 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10458
10459fi;
10460
10461 eval "$ac_cv_use_official_build"
10462 if test "$no_cache" != 1; then
10463 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10464 fi
10465
10466 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 else
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472 fi
10473
10474# Check whether --enable-vendor or --disable-vendor was given.
10475if test "${enable_vendor+set}" = set; then
10476 enableval="$enable_vendor"
10477 VENDOR="$enableval"
10478fi;
10479if test "x$VENDOR" = "x"; then
10480 VENDOR="custom"
10481fi
10482
a848cd7e
SC
10483
10484
10485
10486 echo "saving argument cache $wx_arg_cache_file"
10487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10488
10489
10490
10491echo "$as_me:$LINENO: checking for toolkit" >&5
10492echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10493
10494# In Wine, we need to default to MSW, not GTK or MOTIF
10495if test "$wxUSE_WINE" = "yes"; then
10496 DEFAULT_DEFAULT_wxUSE_GTK=0
10497 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10498 DEFAULT_DEFAULT_wxUSE_MSW=1
10499 wxUSE_SHARED=no
10500fi
10501
f597b41c 10502
a848cd7e
SC
10503if test "$wxUSE_GUI" = "yes"; then
10504
10505 if test "$USE_BEOS" = 1; then
10506 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10507echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511 if test "$TOOLKIT_GIVEN" = 1; then
10512 for toolkit in `echo $ALL_TOOLKITS`; do
10513 var=wxUSE_$toolkit
10514 eval "value=\$${var}"
f34ca037
MW
10515 if test "x$value" = "xno"; then
10516 eval "$var=0"
10517 elif test "x$value" != "x"; then
10518 eval "$var=1"
10519 fi
10520
10521 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10522 eval "wx${toolkit}_VERSION=$value"
10523 fi
a848cd7e
SC
10524 done
10525 else
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 if test "$has_toolkit_in_cache" != 1; then
10528 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10529 else
10530 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10531
10532 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10533 if test "x$version" != "x"; then
10534 eval "wx${toolkit}_VERSION=$version"
10535 fi
a848cd7e
SC
10536 fi
10537 eval "wxUSE_$toolkit=\$${var}"
10538 done
10539 fi
10540
10541 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10542 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10543 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10544
10545 case "${host}" in
10546 *-pc-os2_emx | *-pc-os2-emx )
10547 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10548 esac
10549
10550 case "$NUM_TOOLKITS" in
10551 1)
10552 ;;
10553 0)
10554 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10555echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10556 { (exit 1); exit 1; }; }
10557 ;;
10558 *)
10559 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10560echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10561 { (exit 1); exit 1; }; }
10562 esac
10563
f34ca037
MW
10564 # to be removed when --disable-gtk2 isn't needed
10565 if test "x$wxUSE_GTK2" = "xyes"; then
10566 wxGTK_VERSION=2
10567 elif test "x$wxUSE_GTK2" = "xno"; then
10568 wxGTK_VERSION=1
10569 fi
10570
a848cd7e
SC
10571 for toolkit in `echo $ALL_TOOLKITS`; do
10572 var=wxUSE_$toolkit
10573 eval "value=\$${var}"
10574 if test "x$value" != x; then
10575 cache_var=CACHE_$toolkit
10576 eval "cache=\$${cache_var}"
10577 if test "$cache" = 1; then
10578 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10579 eval "version=\$wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10582 fi
a848cd7e
SC
10583 fi
10584 if test "$value" = 1; then
10585 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10586 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10587echo "${ECHO_T}$toolkit_echo" >&6
10588 fi
10589 fi
10590 done
10591else
10592 if test "x$host_alias" != "x"; then
10593 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10594echo "${ECHO_T}base ($host_alias hosted) only" >&6
10595 else
10596 echo "$as_me:$LINENO: result: base only" >&5
10597echo "${ECHO_T}base only" >&6
10598 fi
10599fi
10600
10601wants_win32=0
10602doesnt_want_win32=0
10603case "${host}" in
10604 *-*-cygwin*)
10605 if test "$wxUSE_MSW" = 1 ; then
10606 wants_win32=1
7275146d 10607 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10608 else
10609 doesnt_want_win32=1
10610 fi
10611 ;;
10612 *-*-mingw*)
10613 wants_win32=1
10614 ;;
10615esac
10616
10617if test "$wxUSE_WINE" = "yes"; then
10618 wants_win32=1
10619 CC=winegcc
10620 CXX=wineg++
10621 RESCOMP=wrc
10622 LDFLAGS_GUI="-mwindows"
10623fi
10624
10625if test "$wants_win32" = 1 ; then
10626 USE_UNIX=0
10627 USE_WIN32=1
10628 cat >>confdefs.h <<\_ACEOF
10629#define __WIN32__ 1
10630_ACEOF
10631
10632 cat >>confdefs.h <<\_ACEOF
10633#define __WIN95__ 1
10634_ACEOF
10635
10636 cat >>confdefs.h <<\_ACEOF
10637#define __WINDOWS__ 1
10638_ACEOF
10639
10640 cat >>confdefs.h <<\_ACEOF
10641#define __GNUWIN32__ 1
10642_ACEOF
10643
10644 cat >>confdefs.h <<\_ACEOF
10645#define STRICT 1
10646_ACEOF
10647
10648 cat >>confdefs.h <<\_ACEOF
10649#define WINVER 0x0400
10650_ACEOF
10651
10652fi
10653if test "$doesnt_want_win32" = 1 ; then
10654 USE_UNIX=1
10655 USE_WIN32=0
10656fi
10657
10658if test "$USE_UNIX" = 1 ; then
10659 wxUSE_UNIX=yes
10660 cat >>confdefs.h <<\_ACEOF
10661#define __UNIX__ 1
10662_ACEOF
10663
10664fi
10665
10666
10667cat >confcache <<\_ACEOF
10668# This file is a shell script that caches the results of configure
10669# tests run on this system so they can be shared between configure
10670# scripts and configure runs, see configure's option --config-cache.
10671# It is not useful on other systems. If it contains results you don't
10672# want to keep, you may remove or edit it.
10673#
10674# config.status only pays attention to the cache file if you give it
10675# the --recheck option to rerun configure.
10676#
10677# `ac_cv_env_foo' variables (set or unset) will be overridden when
10678# loading this file, other *unset* `ac_cv_foo' will be assigned the
10679# following values.
10680
10681_ACEOF
10682
10683# The following way of writing the cache mishandles newlines in values,
10684# but we know of no workaround that is simple, portable, and efficient.
10685# So, don't put newlines in cache variables' values.
10686# Ultrix sh set writes to stderr and can't be redirected directly,
10687# and sets the high bit in the cache file unless we assign to the vars.
10688{
10689 (set) 2>&1 |
10690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10691 *ac_space=\ *)
10692 # `set' does not quote correctly, so add quotes (double-quote
10693 # substitution turns \\\\ into \\, and sed turns \\ into \).
10694 sed -n \
ac1cb8d3
VS
10695 "s/'/'\\\\''/g;
10696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10697 ;;
10698 *)
10699 # `set' quotes correctly as required by POSIX, so do not add quotes.
10700 sed -n \
ac1cb8d3 10701 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10702 ;;
10703 esac;
10704} |
10705 sed '
10706 t clear
10707 : clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 : end' >>confcache
10712if diff $cache_file confcache >/dev/null 2>&1; then :; else
10713 if test -w $cache_file; then
10714 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10715 cat confcache >$cache_file
10716 else
10717 echo "not updating unwritable cache $cache_file"
10718 fi
10719fi
10720rm -f confcache
10721
10722if test "$build" != "$host" ; then
1e9e8aba 10723 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10724 CC=$host_alias-gcc
10725 CXX=$host_alias-c++
10726 AR=$host_alias-ar
10727 RANLIB=$host_alias-ranlib
10728 DLLTOOL=$host_alias-dlltool
10729 RESCOMP=$host_alias-windres
a848cd7e 10730 STRIP=$host_alias-strip
1e9e8aba
DE
10731 elif test "x$CC" '!=' "x"; then
10732 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10733 else
10734 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10735echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738fi
10739
10740CFLAGS=${CFLAGS:=}
6dcfc289
DE
10741
10742
10743 ac_ext=c
a848cd7e
SC
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751echo "$as_me:$LINENO: checking for $ac_word" >&5
10752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10753if test "${ac_cv_prog_CC+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 if test -n "$CC"; then
10757 ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
10773fi
10774fi
10775CC=$ac_cv_prog_CC
10776if test -n "$CC"; then
10777 echo "$as_me:$LINENO: result: $CC" >&5
10778echo "${ECHO_T}$CC" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782fi
10783
10784fi
10785if test -z "$ac_cv_prog_CC"; then
10786 ac_ct_CC=$CC
10787 # Extract the first word of "gcc", so it can be a program name with args.
10788set dummy gcc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$ac_ct_CC"; then
10795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_ac_ct_CC="gcc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813ac_ct_CC=$ac_cv_prog_ac_ct_CC
10814if test -n "$ac_ct_CC"; then
10815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10816echo "${ECHO_T}$ac_ct_CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822 CC=$ac_ct_CC
10823else
10824 CC="$ac_cv_prog_CC"
10825fi
10826
10827if test -z "$CC"; then
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10830set dummy ${ac_tool_prefix}cc; ac_word=$2
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_CC+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 if test -n "$CC"; then
10837 ac_cv_prog_CC="$CC" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_CC="${ac_tool_prefix}cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853fi
10854fi
10855CC=$ac_cv_prog_CC
10856if test -n "$CC"; then
10857 echo "$as_me:$LINENO: result: $CC" >&5
10858echo "${ECHO_T}$CC" >&6
10859else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862fi
10863
10864fi
10865if test -z "$ac_cv_prog_CC"; then
10866 ac_ct_CC=$CC
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$ac_ct_CC"; then
10875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_ac_ct_CC="cc"
10885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889done
10890
10891fi
10892fi
10893ac_ct_CC=$ac_cv_prog_ac_ct_CC
10894if test -n "$ac_ct_CC"; then
10895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10896echo "${ECHO_T}$ac_ct_CC" >&6
10897else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902 CC=$ac_ct_CC
10903else
10904 CC="$ac_cv_prog_CC"
10905fi
10906
10907fi
10908if test -z "$CC"; then
10909 # Extract the first word of "cc", so it can be a program name with args.
10910set dummy cc; ac_word=$2
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_CC+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 if test -n "$CC"; then
10917 ac_cv_prog_CC="$CC" # Let the user override the test.
10918else
10919 ac_prog_rejected=no
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10928 ac_prog_rejected=yes
10929 continue
10930 fi
10931 ac_cv_prog_CC="cc"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935done
10936done
10937
10938if test $ac_prog_rejected = yes; then
10939 # We found a bogon in the path, so make sure we never use it.
10940 set dummy $ac_cv_prog_CC
10941 shift
10942 if test $# != 0; then
10943 # We chose a different compiler from the bogus one.
10944 # However, it has the same basename, so the bogon will be chosen
10945 # first if we set CC to just the basename; use the full file name.
10946 shift
10947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10948 fi
10949fi
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961fi
10962if test -z "$CC"; then
10963 if test -n "$ac_tool_prefix"; then
10964 for ac_prog in cl
10965 do
10966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$CC"; then
10974 ac_cv_prog_CC="$CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992CC=$ac_cv_prog_CC
10993if test -n "$CC"; then
10994 echo "$as_me:$LINENO: result: $CC" >&5
10995echo "${ECHO_T}$CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$CC" && break
11002 done
11003fi
11004if test -z "$CC"; then
11005 ac_ct_CC=$CC
11006 for ac_prog in cl
11007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$ac_ct_CC"; then
11016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_ac_ct_CC="$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034ac_ct_CC=$ac_cv_prog_ac_ct_CC
11035if test -n "$ac_ct_CC"; then
11036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11037echo "${ECHO_T}$ac_ct_CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 test -n "$ac_ct_CC" && break
11044done
11045
11046 CC=$ac_ct_CC
11047fi
11048
11049fi
11050
11051
11052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11053See \`config.log' for more details." >&5
11054echo "$as_me: error: no acceptable C compiler found in \$PATH
11055See \`config.log' for more details." >&2;}
11056 { (exit 1); exit 1; }; }
11057
11058# Provide some information about the compiler.
11059echo "$as_me:$LINENO:" \
11060 "checking for C compiler version" >&5
11061ac_compiler=`set X $ac_compile; echo $2`
11062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11063 (eval $ac_compiler --version </dev/null >&5) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }
11067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11068 (eval $ac_compiler -v </dev/null >&5) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11073 (eval $ac_compiler -V </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files a.out a.exe b.out"
11095# Try to create an executable without -o first, disregard a.out.
11096# It will help us diagnose broken compilers, and finding out an intuition
11097# of exeext.
ac1cb8d3
VS
11098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11102 (eval $ac_link_default) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Find the output, starting from the most likely. This scheme is
11107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11108# resort.
11109
11110# Be careful to initialize this variable, since it used to be cached.
11111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11112ac_cv_exeext=
11113# b.out is created by i960 compilers.
11114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11115do
11116 test -f "$ac_file" || continue
11117 case $ac_file in
11118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11119 ;;
a848cd7e 11120 conftest.$ac_ext )
ac1cb8d3
VS
11121 # This is the source file.
11122 ;;
a848cd7e 11123 [ab].out )
ac1cb8d3
VS
11124 # We found the default executable, but exeext='' is most
11125 # certainly right.
11126 break;;
a848cd7e 11127 *.* )
ac1cb8d3
VS
11128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11129 # FIXME: I believe we export ac_cv_exeext for Libtool,
11130 # but it would be cool to find out if it's true. Does anybody
11131 # maintain Libtool? --akim.
11132 export ac_cv_exeext
11133 break;;
a848cd7e 11134 * )
ac1cb8d3 11135 break;;
a848cd7e
SC
11136 esac
11137done
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11143See \`config.log' for more details." >&5
11144echo "$as_me: error: C compiler cannot create executables
11145See \`config.log' for more details." >&2;}
11146 { (exit 77); exit 77; }; }
11147fi
11148
11149ac_exeext=$ac_cv_exeext
11150echo "$as_me:$LINENO: result: $ac_file" >&5
11151echo "${ECHO_T}$ac_file" >&6
11152
11153# Check the compiler produces executables we can run. If not, either
11154# the compiler is broken, or we cross compile.
11155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11158# If not cross compiling, check that we can run a simple program.
11159if test "$cross_compiling" != yes; then
11160 if { ac_try='./$ac_file'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cross_compiling=no
11167 else
11168 if test "$cross_compiling" = maybe; then
11169 cross_compiling=yes
11170 else
11171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11172If you meant to cross compile, use \`--host'.
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot run C compiled programs.
11175If you meant to cross compile, use \`--host'.
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: yes" >&5
11182echo "${ECHO_T}yes" >&6
11183
11184rm -f a.out a.exe conftest$ac_cv_exeext b.out
11185ac_clean_files=$ac_clean_files_save
11186# Check the compiler produces executables we can run. If not, either
11187# the compiler is broken, or we cross compile.
11188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11190echo "$as_me:$LINENO: result: $cross_compiling" >&5
11191echo "${ECHO_T}$cross_compiling" >&6
11192
11193echo "$as_me:$LINENO: checking for suffix of executables" >&5
11194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; then
11200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11202# work properly (i.e., refer to `conftest.exe'), while it won't with
11203# `rm'.
11204for ac_file in conftest.exe conftest conftest.*; do
11205 test -f "$ac_file" || continue
11206 case $ac_file in
11207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11209 export ac_cv_exeext
11210 break;;
a848cd7e
SC
11211 * ) break;;
11212 esac
11213done
11214else
11215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11216See \`config.log' for more details." >&5
11217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11218See \`config.log' for more details." >&2;}
11219 { (exit 1); exit 1; }; }
11220fi
11221
11222rm -f conftest$ac_cv_exeext
11223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11224echo "${ECHO_T}$ac_cv_exeext" >&6
11225
11226rm -f conftest.$ac_ext
11227EXEEXT=$ac_cv_exeext
11228ac_exeext=$EXEEXT
11229echo "$as_me:$LINENO: checking for suffix of object files" >&5
11230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11231if test "${ac_cv_objext+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.o conftest.obj
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; then
11255 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11256 case $ac_file in
11257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11259 break;;
11260 esac
11261done
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11267See \`config.log' for more details." >&5
11268echo "$as_me: error: cannot compute suffix of object files: cannot compile
11269See \`config.log' for more details." >&2;}
11270 { (exit 1); exit 1; }; }
11271fi
11272
11273rm -f conftest.$ac_cv_objext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11276echo "${ECHO_T}$ac_cv_objext" >&6
11277OBJEXT=$ac_cv_objext
11278ac_objext=$OBJEXT
11279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11281if test "${ac_cv_c_compiler_gnu+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291int
11292main ()
11293{
11294#ifndef __GNUC__
11295 choke me
11296#endif
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11304 (eval $ac_compile) 2>conftest.er1
a848cd7e 11305 ac_status=$?
ac1cb8d3
VS
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
a848cd7e
SC
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
6ebeb4c7 11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_compiler_gnu=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328ac_compiler_gnu=no
11329fi
ac1cb8d3 11330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11331ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332
11333fi
11334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11336GCC=`test $ac_compiler_gnu = yes && echo yes`
11337ac_test_CFLAGS=${CFLAGS+set}
11338ac_save_CFLAGS=$CFLAGS
1ff36a0a 11339CFLAGS="$CFLAGS -g"
a848cd7e
SC
11340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11342if test "${ac_cv_prog_cc_g+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352int
11353main ()
11354{
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11362 (eval $ac_compile) 2>conftest.er1
a848cd7e 11363 ac_status=$?
ac1cb8d3
VS
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
a848cd7e
SC
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
6ebeb4c7 11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_prog_cc_g=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386ac_cv_prog_cc_g=no
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11392if test "$ac_test_CFLAGS" = set; then
11393 CFLAGS=$ac_save_CFLAGS
11394elif test $ac_cv_prog_cc_g = yes; then
11395 if test "$GCC" = yes; then
11396 CFLAGS="-g -O2"
11397 else
11398 CFLAGS="-g"
11399 fi
11400else
11401 if test "$GCC" = yes; then
11402 CFLAGS="-O2"
11403 else
11404 CFLAGS=
11405 fi
11406fi
11407echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11408echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11409if test "${ac_cv_prog_cc_stdc+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_cv_prog_cc_stdc=no
11413ac_save_CC=$CC
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdarg.h>
11421#include <stdio.h>
11422#include <sys/types.h>
11423#include <sys/stat.h>
11424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11425struct buf { int x; };
11426FILE * (*rcsopen) (struct buf *, struct stat *, int);
11427static char *e (p, i)
11428 char **p;
11429 int i;
11430{
11431 return p[i];
11432}
11433static char *f (char * (*g) (char **, int), char **p, ...)
11434{
11435 char *s;
11436 va_list v;
11437 va_start (v,p);
11438 s = g (p, va_arg (v,int));
11439 va_end (v);
11440 return s;
11441}
ac1cb8d3
VS
11442
11443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11444 function prototypes and stuff, but not '\xHH' hex character constants.
11445 These don't provoke an error unfortunately, instead are silently treated
11446 as 'x'. The following induces an error, until -std1 is added to get
11447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11448 array size at least. It's necessary to write '\x00'==0 to get something
11449 that's true only with -std1. */
11450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11451
a848cd7e
SC
11452int test (int i, double x);
11453struct s1 {int (*f) (int a);};
11454struct s2 {int (*f) (double a);};
11455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11456int argc;
11457char **argv;
11458int
11459main ()
11460{
11461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466# Don't try gcc -ansi; that turns off useful extensions and
11467# breaks some systems' header files.
11468# AIX -qlanglvl=ansi
11469# Ultrix and OSF/1 -std1
11470# HP-UX 10.20 and later -Ae
11471# HP-UX older versions -Aa -D_HPUX_SOURCE
11472# SVR4 -Xc -D__EXTENSIONS__
11473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11474do
11475 CC="$ac_save_CC $ac_arg"
11476 rm -f conftest.$ac_objext
11477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11478 (eval $ac_compile) 2>conftest.er1
a848cd7e 11479 ac_status=$?
ac1cb8d3
VS
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
a848cd7e
SC
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
6ebeb4c7 11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_prog_cc_stdc=$ac_arg
11498break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
ac1cb8d3 11504rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11505done
11506rm -f conftest.$ac_ext conftest.$ac_objext
11507CC=$ac_save_CC
11508
11509fi
11510
11511case "x$ac_cv_prog_cc_stdc" in
11512 x|xno)
11513 echo "$as_me:$LINENO: result: none needed" >&5
11514echo "${ECHO_T}none needed" >&6 ;;
11515 *)
11516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11518 CC="$CC $ac_cv_prog_cc_stdc" ;;
11519esac
11520
11521# Some people use a C++ compiler to compile C. Since we use `exit',
11522# in C++ we need to declare it. In case someone uses the same compiler
11523# for both compiling C and C++ we need to have the C++ compiler decide
11524# the declaration of exit, since it's the most demanding environment.
11525cat >conftest.$ac_ext <<_ACEOF
11526#ifndef __cplusplus
11527 choke me
11528#endif
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 for ac_declaration in \
ac1cb8d3 11552 '' \
a848cd7e
SC
11553 'extern "C" void std::exit (int) throw (); using std::exit;' \
11554 'extern "C" void std::exit (int); using std::exit;' \
11555 'extern "C" void exit (int) throw ();' \
11556 'extern "C" void exit (int);' \
11557 'void exit (int);'
11558do
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
de59c161 11565$ac_declaration
ac1cb8d3 11566#include <stdlib.h>
a848cd7e
SC
11567int
11568main ()
11569{
11570exit (42);
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11577 (eval $ac_compile) 2>conftest.er1
a848cd7e 11578 ac_status=$?
ac1cb8d3
VS
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
a848cd7e
SC
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
6ebeb4c7 11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601continue
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_declaration
11611int
11612main ()
11613{
11614exit (42);
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11621 (eval $ac_compile) 2>conftest.er1
a848cd7e 11622 ac_status=$?
ac1cb8d3
VS
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
a848cd7e
SC
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
6ebeb4c7 11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 break
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647done
11648rm -f conftest*
11649if test -n "$ac_declaration"; then
11650 echo '#ifdef __cplusplus' >>confdefs.h
11651 echo $ac_declaration >>confdefs.h
11652 echo '#endif' >>confdefs.h
11653fi
11654
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
ac1cb8d3 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
6dcfc289 11667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11669if test "${wx_cv_c_exto+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679int
11680main ()
11681{
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest.$ac_ext.o
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; then
11693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11694 case $ac_file in
11695 conftest.$ac_ext.o)
11696 wx_cv_c_exto="-ext o"
11697 ;;
11698 *)
11699 ;;
11700 esac
11701done
11702else
11703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11706See \`config.log' for more details." >&2;}
11707 { (exit 1); exit 1; }; }
11708
11709fi
11710
11711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11715echo "${ECHO_T}$wx_cv_c_exto" >&6
11716if test "x$wx_cv_c_exto" '!=' "x"; then
11717 if test "c" = "c"; then
11718 CFLAGS="$wx_cv_c_exto $CFLAGS"
11719 fi
11720 if test "c" = "cxx"; then
11721 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11722 fi
11723fi
11724
6dcfc289
DE
11725 if test "x$wx_cv_c_exto" '!=' "x"; then
11726 unset ac_cv_prog_cc_g
11727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11728ac_save_CFLAGS=$CFLAGS
1ff36a0a 11729CFLAGS="$CFLAGS -g"
480ccd21
DE
11730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11732if test "${ac_cv_prog_cc_g+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
6ebeb4c7 11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_prog_cc_g=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_prog_cc_g=no
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11782if test "$ac_test_CFLAGS" = set; then
11783 CFLAGS=$ac_save_CFLAGS
11784elif test $ac_cv_prog_cc_g = yes; then
11785 if test "$GCC" = yes; then
11786 CFLAGS="-g -O2"
11787 else
11788 CFLAGS="-g"
11789 fi
11790else
11791 if test "$GCC" = yes; then
11792 CFLAGS="-O2"
11793 else
11794 CFLAGS=
11795 fi
11796fi
6dcfc289
DE
11797 fi
11798 ac_ext=c
95986553
DE
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11805echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11806if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819#ifndef __MWERKS__
11820 choke me
11821#endif
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
6ebeb4c7 11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_compiler_mwerks=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_compiler_mwerks=no
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11857
11858fi
11859echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11860echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11861
0e6fa1d9 11862MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11863ac_ext=c
11864ac_cpp='$CPP $CPPFLAGS'
11865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869
6dcfc289 11870 ac_ext=c
9273ffba
DE
11871ac_cpp='$CPP $CPPFLAGS'
11872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11877echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11878if test "${wx_cv_c_compiler_xlc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888int
11889main ()
11890{
11891#ifndef __xlC__
11892 choke me
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
6ebeb4c7 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 wx_compiler_xlc=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925wx_compiler_xlc=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11929
11930fi
11931echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11932echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11933
0e6fa1d9 11934XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11935ac_ext=c
11936ac_cpp='$CPP $CPPFLAGS'
11937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
11941
a848cd7e 11942
6dcfc289 11943
a9e5b1f0
MW
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11951echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11952if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
11962int
11963main ()
11964{
11965
11966 #ifndef __SUNPRO_C
11967 choke me
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
6ebeb4c7 11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 bakefile_cv_c_compiler___SUNPRO_C=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000bakefile_cv_c_compiler___SUNPRO_C=no
12001
12002fi
12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005
12006fi
12007echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12008echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12009 ac_ext=c
12010ac_cpp='$CPP $CPPFLAGS'
12011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
12015 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12016 :; SUNCC=yes
12017 else
12018 :;
12019 fi
12020
12021
12022
12023
a848cd7e
SC
12024ac_ext=c
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12031# On Suns, sometimes $CPP names a directory.
12032if test -n "$CPP" && test -d "$CPP"; then
12033 CPP=
12034fi
12035if test -z "$CPP"; then
12036 if test "${ac_cv_prog_CPP+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 # Double quotes because CPP needs to be expanded
12040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12041 do
12042 ac_preproc_ok=false
12043for ac_c_preproc_warn_flag in '' yes
12044do
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
ac1cb8d3 12062 Syntax error
a848cd7e
SC
12063_ACEOF
12064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } >/dev/null; then
12072 if test -s conftest.err; then
12073 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12075 else
12076 ac_cpp_err=
12077 fi
12078else
12079 ac_cpp_err=yes
12080fi
12081if test -z "$ac_cpp_err"; then
12082 :
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether non-existent headers
12093 # can be detected and how.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12113 else
12114 ac_cpp_err=
12115 fi
12116else
12117 ac_cpp_err=yes
12118fi
12119if test -z "$ac_cpp_err"; then
12120 # Broken: success on invalid input.
12121continue
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then
12136 break
12137fi
12138
12139 done
12140 ac_cv_prog_CPP=$CPP
12141
12142fi
12143 CPP=$ac_cv_prog_CPP
12144else
12145 ac_cv_prog_CPP=$CPP
12146fi
12147echo "$as_me:$LINENO: result: $CPP" >&5
12148echo "${ECHO_T}$CPP" >&6
12149ac_preproc_ok=false
12150for ac_c_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
ac1cb8d3 12169 Syntax error
a848cd7e
SC
12170_ACEOF
12171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } >/dev/null; then
12179 if test -s conftest.err; then
12180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12182 else
12183 ac_cpp_err=
12184 fi
12185else
12186 ac_cpp_err=yes
12187fi
12188if test -z "$ac_cpp_err"; then
12189 :
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 # Broken: fails on valid input.
12195continue
12196fi
12197rm -f conftest.err conftest.$ac_ext
12198
12199 # OK, works on sane cases. Now check whether non-existent headers
12200 # can be detected and how.
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207#include <ac_nonexistent.h>
12208_ACEOF
12209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 # Broken: success on invalid input.
12228continue
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Passes both tests.
12234ac_preproc_ok=:
12235break
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238
12239done
12240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12241rm -f conftest.err conftest.$ac_ext
12242if $ac_preproc_ok; then
12243 :
12244else
12245 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12246See \`config.log' for more details." >&5
12247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12248See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12250fi
12251
12252ac_ext=c
12253ac_cpp='$CPP $CPPFLAGS'
12254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258
12259echo "$as_me:$LINENO: checking for egrep" >&5
12260echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12261if test "${ac_cv_prog_egrep+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12265 then ac_cv_prog_egrep='grep -E'
12266 else ac_cv_prog_egrep='egrep'
12267 fi
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12270echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12271 EGREP=$ac_cv_prog_egrep
12272
12273
12274if test $ac_cv_c_compiler_gnu = yes; then
12275 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12276echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12277if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_pattern="Autoconf.*'x'"
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <sgtty.h>
12288Autoconf TIOCGETP
12289_ACEOF
12290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12292 ac_cv_prog_gcc_traditional=yes
12293else
12294 ac_cv_prog_gcc_traditional=no
12295fi
12296rm -f conftest*
12297
12298
12299 if test $ac_cv_prog_gcc_traditional = no; then
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#include <termio.h>
12307Autoconf TCGETA
12308_ACEOF
12309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12311 ac_cv_prog_gcc_traditional=yes
12312fi
12313rm -f conftest*
12314
12315 fi
12316fi
12317echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12318echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12319 if test $ac_cv_prog_gcc_traditional = yes; then
12320 CC="$CC -traditional"
12321 fi
12322fi
12323
12324
12325
12326
12327ac_ext=cc
12328ac_cpp='$CXXCPP $CPPFLAGS'
12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12332
12333
12334CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12335
12336
12337 ac_ext=cc
a848cd7e
SC
12338ac_cpp='$CXXCPP $CPPFLAGS'
12339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342if test -n "$ac_tool_prefix"; then
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344 do
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$CXX"; then
12353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371CXX=$ac_cv_prog_CXX
12372if test -n "$CXX"; then
12373 echo "$as_me:$LINENO: result: $CXX" >&5
12374echo "${ECHO_T}$CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$CXX" && break
12381 done
12382fi
12383if test -z "$CXX"; then
12384 ac_ct_CXX=$CXX
12385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12386do
12387 # Extract the first word of "$ac_prog", so it can be a program name with args.
12388set dummy $ac_prog; ac_word=$2
12389echo "$as_me:$LINENO: checking for $ac_word" >&5
12390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test -n "$ac_ct_CXX"; then
12395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_prog_ac_ct_CXX="$ac_prog"
12405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410
12411fi
12412fi
12413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12414if test -n "$ac_ct_CXX"; then
12415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12416echo "${ECHO_T}$ac_ct_CXX" >&6
12417else
12418 echo "$as_me:$LINENO: result: no" >&5
12419echo "${ECHO_T}no" >&6
12420fi
12421
12422 test -n "$ac_ct_CXX" && break
12423done
12424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12425
12426 CXX=$ac_ct_CXX
12427fi
12428
12429
12430# Provide some information about the compiler.
12431echo "$as_me:$LINENO:" \
12432 "checking for C++ compiler version" >&5
12433ac_compiler=`set X $ac_compile; echo $2`
12434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12435 (eval $ac_compiler --version </dev/null >&5) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12440 (eval $ac_compiler -v </dev/null >&5) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12445 (eval $ac_compiler -V </dev/null >&5) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }
12449
12450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __GNUC__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
6ebeb4c7 12482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_compiler_gnu=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_compiler_gnu=no
12500fi
ac1cb8d3 12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12507GXX=`test $ac_compiler_gnu = yes && echo yes`
12508ac_test_CXXFLAGS=${CXXFLAGS+set}
12509ac_save_CXXFLAGS=$CXXFLAGS
12510CXXFLAGS="-g"
12511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12513if test "${ac_cv_prog_cxx_g+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12533 (eval $ac_compile) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
6ebeb4c7 12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cxx_g=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_prog_cxx_g=no
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12560fi
12561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12563if test "$ac_test_CXXFLAGS" = set; then
12564 CXXFLAGS=$ac_save_CXXFLAGS
12565elif test $ac_cv_prog_cxx_g = yes; then
12566 if test "$GXX" = yes; then
1ff36a0a 12567 CXXFLAGS="$CXXFLAGS -g -O2"
a848cd7e 12568 else
1ff36a0a 12569 CXXFLAGS="$CXXFLAGS -g"
a848cd7e
SC
12570 fi
12571else
12572 if test "$GXX" = yes; then
12573 CXXFLAGS="-O2"
12574 else
12575 CXXFLAGS=
12576 fi
12577fi
12578for ac_declaration in \
ac1cb8d3 12579 '' \
a848cd7e
SC
12580 'extern "C" void std::exit (int) throw (); using std::exit;' \
12581 'extern "C" void std::exit (int); using std::exit;' \
12582 'extern "C" void exit (int) throw ();' \
12583 'extern "C" void exit (int);' \
12584 'void exit (int);'
12585do
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
de59c161 12592$ac_declaration
ac1cb8d3 12593#include <stdlib.h>
a848cd7e
SC
12594int
12595main ()
12596{
12597exit (42);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12604 (eval $ac_compile) 2>conftest.er1
a848cd7e 12605 ac_status=$?
ac1cb8d3
VS
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
a848cd7e
SC
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
6ebeb4c7 12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 :
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628continue
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_declaration
12638int
12639main ()
12640{
12641exit (42);
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12648 (eval $ac_compile) 2>conftest.er1
a848cd7e 12649 ac_status=$?
ac1cb8d3
VS
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
a848cd7e
SC
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
6ebeb4c7 12655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 break
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674done
12675rm -f conftest*
12676if test -n "$ac_declaration"; then
12677 echo '#ifdef __cplusplus' >>confdefs.h
12678 echo $ac_declaration >>confdefs.h
12679 echo '#endif' >>confdefs.h
12680fi
12681
12682ac_ext=cc
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
6dcfc289 12688 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12689echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12690if test "${wx_cv_cxx_exto+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext conftest.$ac_ext.o
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12715 case $ac_file in
12716 conftest.$ac_ext.o)
12717 wx_cv_cxx_exto="-ext o"
12718 ;;
12719 *)
12720 ;;
12721 esac
12722done
12723else
12724 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729
12730fi
12731
12732rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12733
12734fi
12735echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12736echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12737if test "x$wx_cv_cxx_exto" '!=' "x"; then
12738 if test "cxx" = "c"; then
12739 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12740 fi
12741 if test "cxx" = "cxx"; then
12742 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12743 fi
12744fi
12745
6dcfc289
DE
12746 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12747 unset ac_cv_prog_cxx_g
12748 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12749ac_save_CXXFLAGS=$CXXFLAGS
12750CXXFLAGS="-g"
12751echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12752echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12753if test "${ac_cv_prog_cxx_g+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763int
12764main ()
12765{
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
6ebeb4c7 12780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_prog_cxx_g=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797ac_cv_prog_cxx_g=no
12798fi
12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12803if test "$ac_test_CXXFLAGS" = set; then
12804 CXXFLAGS=$ac_save_CXXFLAGS
12805elif test $ac_cv_prog_cxx_g = yes; then
12806 if test "$GXX" = yes; then
1ff36a0a 12807 CXXFLAGS="$CXXFLAGS -g -O2"
480ccd21 12808 else
1ff36a0a 12809 CXXFLAGS="$CXXFLAGS -g"
480ccd21
DE
12810 fi
12811else
12812 if test "$GXX" = yes; then
12813 CXXFLAGS="-O2"
12814 else
12815 CXXFLAGS=
12816 fi
12817fi
6dcfc289
DE
12818 fi
12819 ac_ext=cc
95986553
DE
12820ac_cpp='$CXXCPP $CPPFLAGS'
12821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12824
12825echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12826echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12827if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837int
12838main ()
12839{
12840#ifndef __MWERKS__
12841 choke me
12842#endif
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
6ebeb4c7 12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bakefile_compiler_mwerks=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874bakefile_compiler_mwerks=no
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12878
12879fi
12880echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12881echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12882
0e6fa1d9 12883MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12884ac_ext=cc
12885ac_cpp='$CXXCPP $CPPFLAGS'
12886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889
12890
6dcfc289 12891 ac_ext=cc
9273ffba
DE
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896
12897echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12898echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12899if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909int
12910main ()
12911{
12912#ifndef __xlC__
12913 choke me
12914#endif
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
6ebeb4c7 12929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 wx_compiler_xlc=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946wx_compiler_xlc=no
12947fi
12948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12950
12951fi
12952echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12953echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12954
0e6fa1d9 12955XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12956ac_ext=cc
12957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961
12962
95986553 12963
6dcfc289 12964
a9e5b1f0
MW
12965 ac_ext=cc
12966ac_cpp='$CXXCPP $CPPFLAGS'
12967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970
12971 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12972echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12973if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983int
12984main ()
12985{
12986
12987 #ifndef __SUNPRO_CC
12988 choke me
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
6ebeb4c7 13004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021bakefile_cv_cxx_compiler___SUNPRO_CC=no
13022
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026
13027fi
13028echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13029echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13030 ac_ext=cc
13031ac_cpp='$CXXCPP $CPPFLAGS'
13032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035
13036 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13037 :; SUNCXX=yes
13038 else
13039 :;
13040 fi
13041
13042
13043
13044
a848cd7e
SC
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
a848cd7e
SC
13052if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_RANLIB+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$RANLIB"; then
13061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
13077fi
13078fi
13079RANLIB=$ac_cv_prog_RANLIB
13080if test -n "$RANLIB"; then
13081 echo "$as_me:$LINENO: result: $RANLIB" >&5
13082echo "${ECHO_T}$RANLIB" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
13088fi
13089if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092set dummy ranlib; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13116fi
13117fi
13118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119if test -n "$ac_ct_RANLIB"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13121echo "${ECHO_T}$ac_ct_RANLIB" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 RANLIB=$ac_ct_RANLIB
13128else
13129 RANLIB="$ac_cv_prog_RANLIB"
13130fi
13131
13132
13133# Extract the first word of "ar", so it can be a program name with args.
13134set dummy ar; ac_word=$2
13135echo "$as_me:$LINENO: checking for $ac_word" >&5
13136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13137if test "${ac_cv_prog_AR+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 if test -n "$AR"; then
13141 ac_cv_prog_AR="$AR" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_AR="ar"
13151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155done
13156
13157fi
13158fi
13159AR=$ac_cv_prog_AR
13160if test -n "$AR"; then
13161 echo "$as_me:$LINENO: result: $AR" >&5
13162echo "${ECHO_T}$AR" >&6
13163else
13164 echo "$as_me:$LINENO: result: no" >&5
13165echo "${ECHO_T}no" >&6
13166fi
13167
13168if test "x$AR" = "x" ; then
77ffb593
JS
13169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13171 { (exit 1); exit 1; }; }
13172fi
13173
13174# Find a good install program. We prefer a C program (faster),
13175# so one script is as good as another. But avoid the broken or
13176# incompatible versions:
13177# SysV /etc/install, /usr/sbin/install
13178# SunOS /usr/etc/install
13179# IRIX /sbin/install
13180# AIX /bin/install
13181# AmigaOS /C/install, which installs bootblocks on floppy discs
13182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13186# ./install, which can be erroneously created by make from ./install.sh.
13187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13189if test -z "$INSTALL"; then
13190if test "${ac_cv_path_install+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 # Account for people who put trailing slashes in PATH elements.
13199case $as_dir/ in
13200 ./ | .// | /cC/* | \
13201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13203 /usr/ucb/* ) ;;
13204 *)
13205 # OSF1 and SCO ODT 3.0 have their own names for install.
13206 # Don't use installbsd from OSF since it installs stuff as root
13207 # by default.
13208 for ac_prog in ginstall scoinst install; do
13209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13211 if test $ac_prog = install &&
13212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13213 # AIX install. It has an incompatible calling convention.
13214 :
13215 elif test $ac_prog = install &&
13216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13217 # program-specific install script used by HP pwplus--don't use.
13218 :
13219 else
13220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13221 break 3
13222 fi
13223 fi
a848cd7e
SC
13224 done
13225 done
13226 ;;
13227esac
13228done
13229
13230
13231fi
13232 if test "${ac_cv_path_install+set}" = set; then
13233 INSTALL=$ac_cv_path_install
13234 else
13235 # As a last resort, use the slow shell script. We don't cache a
13236 # path for INSTALL within a source directory, because that will
13237 # break other packages using the cache if that directory is
13238 # removed, or if the path is relative.
13239 INSTALL=$ac_install_sh
13240 fi
13241fi
13242echo "$as_me:$LINENO: result: $INSTALL" >&5
13243echo "${ECHO_T}$INSTALL" >&6
13244
13245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13246# It thinks the first close brace ends the variable substitution.
13247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13248
13249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13250
13251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13252
13253
13254case ${INSTALL} in
13255 /* ) # Absolute
13256 ;;
13257 ?:* ) # Drive letter, considered as absolute.
13258 ;;
13259 *)
13260 INSTALL=`pwd`/${INSTALL} ;;
13261esac
13262
a848cd7e
SC
13263
13264case "${host}" in
13265
13266 powerpc-*-darwin* )
13267 INSTALL_PROGRAM="cp -fp"
13268 INSTALL_DATA="cp -fp"
13269 ;;
13270 *)
13271 ;;
13272esac
13273
13274# Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_STRIP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_STRIP="strip"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13299fi
13300fi
13301STRIP=$ac_cv_prog_STRIP
13302if test -n "$STRIP"; then
13303 echo "$as_me:$LINENO: result: $STRIP" >&5
13304echo "${ECHO_T}$STRIP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310
13311echo "$as_me:$LINENO: checking if make is GNU make" >&5
13312echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13313if test "${wx_cv_prog_makeisgnu+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316
13317 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13318 egrep -s GNU > /dev/null); then
13319 wx_cv_prog_makeisgnu="yes"
13320 else
13321 wx_cv_prog_makeisgnu="no"
13322 fi
13323
13324fi
13325echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13326echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13327
13328if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13329 IF_GNU_MAKE=""
13330else
13331 IF_GNU_MAKE="#"
13332fi
13333
13334
13335
13336if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13337echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13338echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13339if test "${wx_cv_prog_makevpath+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342
13343cat - << EOF > confMake
13344check : file
13345 cp \$? \$@
13346 cp \$? final_file
13347EOF
13348
13349if test ! -d sub ; then
13350 mkdir sub
13351fi
13352echo dummy > sub/file
13353${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13354RESULT=$?
13355rm -f sub/file check final_file confMake
13356rmdir sub
13357if test "$RESULT" = 0; then
13358 wx_cv_prog_makevpath="yes"
13359else
13360 wx_cv_prog_makevpath="no"
13361fi
13362
13363fi
13364echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13365echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13366
13367if test "x$wx_cv_prog_makevpath" != "xyes"; then
13368{ { echo "$as_me:$LINENO: error:
13369You need a make-utility that is able to use the variable
13370VPATH correctly.
13371If your version of make does not support VPATH correctly,
13372please install GNU-make (possibly as gmake), and start
13373configure with the following command:
13374export MAKE=gmake; ./configure for sh-type shells
13375setenv MAKE gmake; ./configure for csh-type shells
13376Also please do remember to use gmake in this case every time
13377you are trying to compile.
13378" >&5
13379echo "$as_me: error:
13380You need a make-utility that is able to use the variable
13381VPATH correctly.
13382If your version of make does not support VPATH correctly,
13383please install GNU-make (possibly as gmake), and start
13384configure with the following command:
13385export MAKE=gmake; ./configure for sh-type shells
13386setenv MAKE gmake; ./configure for csh-type shells
13387Also please do remember to use gmake in this case every time
13388you are trying to compile.
13389" >&2;}
13390 { (exit 1); exit 1; }; }
13391fi fi
13392echo "$as_me:$LINENO: checking whether ln -s works" >&5
13393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13394LN_S=$as_ln_s
13395if test "$LN_S" = "ln -s"; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397echo "${ECHO_T}yes" >&6
13398else
13399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13400echo "${ECHO_T}no, using $LN_S" >&6
13401fi
13402
13403
13404
2113bc77 13405if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13406 CXXFLAGS="$CXXFLAGS -qunique"
13407fi
13408
13409
4d7ec9f1
DE
13410case "${host}" in
13411 powerpc-*-darwin* )
13412 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13413echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424#ifndef __POWERPC__
13425 choke me for lack of PowerPC
13426#endif
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
6ebeb4c7 13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 echo "$as_me:$LINENO: result: yes" >&5
13454echo "${ECHO_T}yes" >&6
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 cat >>confdefs.h <<\_ACEOF
13462#define __POWERPC__ 1
13463_ACEOF
13464
13465
13466fi
13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13469echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13470 cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h. */
13476#include <CoreFoundation/CFBase.h>
13477
13478int
13479main ()
13480{
13481
13482 ;
13483 return 0;
13484}
13485_ACEOF
13486rm -f conftest.$ac_objext
13487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
6ebeb4c7 13495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest.$ac_objext'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 echo "$as_me:$LINENO: result: yes" >&5
13508echo "${ECHO_T}yes" >&6
13509else
13510 echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
13513echo "$as_me:$LINENO: result: no" >&5
13514echo "${ECHO_T}no" >&6
13515 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13516echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
13523#define __CF_USE_FRAMEWORK_INCLUDES__
13524#include <CoreFoundation/CFBase.h>
13525
13526int
13527main ()
13528{
13529
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
6ebeb4c7 13543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 echo "$as_me:$LINENO: result: yes" >&5
13556echo "${ECHO_T}yes" >&6
13557 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13558else
13559 echo "$as_me: failed program was:" >&5
13560sed 's/^/| /' conftest.$ac_ext >&5
13561
13562{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13563See \`config.log' for more details." >&5
13564echo "$as_me: error: no. CoreFoundation not available.
13565See \`config.log' for more details." >&2;}
13566 { (exit 1); exit 1; }; }
13567
13568fi
13569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570
13571
13572fi
13573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13574 ;;
13575esac
13576
a848cd7e
SC
13577case "${host}" in
13578 *-pc-os2_emx | *-pc-os2-emx )
13579 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13580 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13581echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13582if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584else
13585 ac_check_lib_save_LIBS=$LIBS
13586LIBS="-lcExt $LIBS"
13587cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h. */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h. */
13593
13594/* Override any gcc2 internal prototype to avoid an error. */
13595#ifdef __cplusplus
13596extern "C"
13597#endif
13598/* We use char because int might match the return type of a gcc2
13599 builtin and then its argument prototype would still apply. */
13600char drand48 ();
13601int
13602main ()
13603{
13604drand48 ();
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext conftest$ac_exeext
13610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13611 (eval $ac_link) 2>conftest.er1
a848cd7e 13612 ac_status=$?
ac1cb8d3
VS
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
a848cd7e
SC
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
6ebeb4c7 13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_lib_cExt_drand48=yes
13631else
13632 echo "$as_me: failed program was:" >&5
13633sed 's/^/| /' conftest.$ac_ext >&5
13634
13635ac_cv_lib_cExt_drand48=no
13636fi
ac1cb8d3
VS
13637rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13639LIBS=$ac_check_lib_save_LIBS
13640fi
13641echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13642echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13643if test $ac_cv_lib_cExt_drand48 = yes; then
13644 LIBS="$LIBS -lcExt"
13645fi
13646
13647 else
13648 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13649 fi
69120ee4
VZ
13650 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13651echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13652if test "${wx_cv_gccversion+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654else
13655
391a765e
VS
13656 if test "$cross_compiling" = yes; then
13657 wx_cv_gccversion="EMX2"
13658
13659else
13660 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666
391a765e 13667 #include <stdio.h>
a848cd7e 13668
391a765e
VS
13669 int main()
13670 {
13671 FILE *f=fopen("conftestval", "w");
13672 if (!f) exit(1);
13673 fprintf(f,
a848cd7e 13674 #if (__GNUC__ < 3)
391a765e
VS
13675 "EMX2"
13676 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13677 "EMX3"
13678 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13679 "Innotek5"
13680 #else
13681 "Innotek6"
a848cd7e 13682 #endif
391a765e
VS
13683 );
13684 exit(0);
13685 }
a848cd7e 13686
a848cd7e 13687_ACEOF
391a765e
VS
13688rm -f conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
ac1cb8d3
VS
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
391a765e 13699 wx_cv_gccversion=`cat conftestval`
a848cd7e 13700else
391a765e
VS
13701 echo "$as_me: program exited with status $ac_status" >&5
13702echo "$as_me: failed program was:" >&5
a848cd7e
SC
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
391a765e
VS
13705( exit $ac_status )
13706wx_cv_gccversion="EMX2"
a848cd7e 13707fi
391a765e 13708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13709fi
a848cd7e
SC
13710
13711fi
13712echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13713echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13714 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13715 LIBS="$LIBS -lstdcpp"
13716 LDFLAGS="$LDFLAGS -Zsysv-signals"
13717 else
391a765e 13718 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13719 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13720 LDFLAGS="$LDFLAGS -Zsysv-signals"
13721 else
13722 LIBS="$LIBS -lstdc++"
13723 fi
13724 fi
94acd38e
DE
13725 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13726 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13727echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13728 wxUSE_OMF=yes
2da0c077 13729 enable_omf=yes
a848cd7e
SC
13730 fi
13731 ;;
13732 *)
13733
13734
13735
13736 ac_ext=cc
13737ac_cpp='$CXXCPP $CPPFLAGS'
13738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13741
13742
95986553 13743 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13744echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13745if test "${ac_cv_string_strcasecmp+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748
13749 cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755
13756 #include <string.h>
13757
13758int
13759main ()
13760{
13761
13762 strcasecmp("foo", "bar");
13763
13764 ;
13765 return 0;
13766}
13767_ACEOF
13768rm -f conftest.$ac_objext conftest$ac_exeext
13769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13770 (eval $ac_link) 2>conftest.er1
a848cd7e 13771 ac_status=$?
ac1cb8d3
VS
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
a848cd7e
SC
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
6ebeb4c7 13777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_cv_string_strcasecmp=yes
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794ac_cv_string_strcasecmp=no
13795
13796fi
ac1cb8d3
VS
13797rm -f conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13799
13800fi
13801echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13802echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13803
13804 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13805 cat >>confdefs.h <<\_ACEOF
13806#define HAVE_STRCASECMP_IN_STRING_H 1
13807_ACEOF
13808
13809 else
13810 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13811echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13812if test "${ac_cv_strings_strcasecmp+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
13815
13816 cat >conftest.$ac_ext <<_ACEOF
13817/* confdefs.h. */
13818_ACEOF
13819cat confdefs.h >>conftest.$ac_ext
13820cat >>conftest.$ac_ext <<_ACEOF
13821/* end confdefs.h. */
13822
13823 #include <strings.h>
13824
13825int
13826main ()
13827{
13828
13829 strcasecmp("foo", "bar");
13830
13831 ;
13832 return 0;
13833}
13834_ACEOF
13835rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13837 (eval $ac_link) 2>conftest.er1
a848cd7e 13838 ac_status=$?
ac1cb8d3
VS
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
a848cd7e
SC
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
6ebeb4c7 13844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_strings_strcasecmp=yes
13857else
13858 echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
13861ac_cv_strings_strcasecmp=no
13862
13863fi
ac1cb8d3
VS
13864rm -f conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13866
13867fi
13868echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13869echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13870
0c3c69fc 13871 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13872 cat >>confdefs.h <<\_ACEOF
13873#define HAVE_STRCASECMP_IN_STRINGS_H 1
13874_ACEOF
13875
13876 else
13877 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13878echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13879 { (exit 1); exit 1; }; }
13880 fi
13881 fi
13882
13883 ac_ext=c
13884ac_cpp='$CPP $CPPFLAGS'
13885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888
13889 ;;
13890esac
13891
13892
13893echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13894echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13895if test "${ac_cv_header_stdc+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897else
13898 cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904#include <stdlib.h>
13905#include <stdarg.h>
13906#include <string.h>
13907#include <float.h>
13908
13909int
13910main ()
13911{
13912
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13919 (eval $ac_compile) 2>conftest.er1
a848cd7e 13920 ac_status=$?
ac1cb8d3
VS
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
a848cd7e
SC
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
6ebeb4c7 13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_header_stdc=yes
13939else
13940 echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
13942
13943ac_cv_header_stdc=no
13944fi
ac1cb8d3 13945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13946
13947if test $ac_cv_header_stdc = yes; then
13948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
13956
13957_ACEOF
13958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13959 $EGREP "memchr" >/dev/null 2>&1; then
13960 :
13961else
13962 ac_cv_header_stdc=no
13963fi
13964rm -f conftest*
13965
13966fi
13967
13968if test $ac_cv_header_stdc = yes; then
13969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13970 cat >conftest.$ac_ext <<_ACEOF
13971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
13976#include <stdlib.h>
13977
13978_ACEOF
13979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 $EGREP "free" >/dev/null 2>&1; then
13981 :
13982else
13983 ac_cv_header_stdc=no
13984fi
13985rm -f conftest*
13986
13987fi
13988
13989if test $ac_cv_header_stdc = yes; then
13990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13991 if test "$cross_compiling" = yes; then
13992 :
13993else
13994 cat >conftest.$ac_ext <<_ACEOF
13995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000#include <ctype.h>
14001#if ((' ' & 0x0FF) == 0x020)
14002# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14003# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14004#else
14005# define ISLOWER(c) \
ac1cb8d3
VS
14006 (('a' <= (c) && (c) <= 'i') \
14007 || ('j' <= (c) && (c) <= 'r') \
14008 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14009# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14010#endif
14011
14012#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14013int
14014main ()
14015{
14016 int i;
14017 for (i = 0; i < 256; i++)
14018 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14019 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14020 exit(2);
14021 exit (0);
14022}
14023_ACEOF
14024rm -f conftest$ac_exeext
14025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026 (eval $ac_link) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 :
14036else
14037 echo "$as_me: program exited with status $ac_status" >&5
14038echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
14041( exit $ac_status )
14042ac_cv_header_stdc=no
14043fi
ac1cb8d3 14044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14045fi
14046fi
14047fi
14048echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14049echo "${ECHO_T}$ac_cv_header_stdc" >&6
14050if test $ac_cv_header_stdc = yes; then
14051
14052cat >>confdefs.h <<\_ACEOF
14053#define STDC_HEADERS 1
14054_ACEOF
14055
14056fi
14057
14058# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14069 inttypes.h stdint.h unistd.h
a848cd7e
SC
14070do
14071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14072echo "$as_me:$LINENO: checking for $ac_header" >&5
14073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14074if eval "test \"\${$as_ac_Header+set}\" = set"; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
14077 cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h. */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
14082/* end confdefs.h. */
14083$ac_includes_default
14084
14085#include <$ac_header>
14086_ACEOF
14087rm -f conftest.$ac_objext
14088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14089 (eval $ac_compile) 2>conftest.er1
a848cd7e 14090 ac_status=$?
ac1cb8d3
VS
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
a848cd7e
SC
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
6ebeb4c7 14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 eval "$as_ac_Header=yes"
14109else
14110 echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113eval "$as_ac_Header=no"
14114fi
ac1cb8d3 14115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14116fi
14117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14122_ACEOF
14123
14124fi
14125
14126done
14127
14128
14129
14130for ac_header in stdlib.h
14131do
14132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14133if eval "test \"\${$as_ac_Header+set}\" = set"; then
14134 echo "$as_me:$LINENO: checking for $ac_header" >&5
14135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14136if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138fi
14139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14141else
14142 # Is the header compilable?
14143echo "$as_me:$LINENO: checking $ac_header usability" >&5
14144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14145cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h. */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h. */
14151$ac_includes_default
14152#include <$ac_header>
14153_ACEOF
14154rm -f conftest.$ac_objext
14155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14156 (eval $ac_compile) 2>conftest.er1
a848cd7e 14157 ac_status=$?
ac1cb8d3
VS
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
a848cd7e
SC
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
6ebeb4c7 14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_header_compiler=yes
14176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180ac_header_compiler=no
14181fi
ac1cb8d3 14182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14184echo "${ECHO_T}$ac_header_compiler" >&6
14185
14186# Is the header present?
14187echo "$as_me:$LINENO: checking $ac_header presence" >&5
14188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14189cat >conftest.$ac_ext <<_ACEOF
14190/* confdefs.h. */
14191_ACEOF
14192cat confdefs.h >>conftest.$ac_ext
14193cat >>conftest.$ac_ext <<_ACEOF
14194/* end confdefs.h. */
14195#include <$ac_header>
14196_ACEOF
14197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } >/dev/null; then
14205 if test -s conftest.err; then
14206 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14208 else
14209 ac_cpp_err=
14210 fi
14211else
14212 ac_cpp_err=yes
14213fi
14214if test -z "$ac_cpp_err"; then
14215 ac_header_preproc=yes
14216else
14217 echo "$as_me: failed program was:" >&5
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_header_preproc=no
14221fi
14222rm -f conftest.err conftest.$ac_ext
14223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14224echo "${ECHO_T}$ac_header_preproc" >&6
14225
14226# So? What about this header?
ac1cb8d3
VS
14227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14228 yes:no: )
a848cd7e
SC
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14233 ac_header_preproc=yes
a848cd7e 14234 ;;
ac1cb8d3 14235 no:yes:* )
a848cd7e
SC
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14248 (
14249 cat <<\_ASBOX
ac1cb8d3
VS
14250## ----------------------------------------- ##
14251## Report this to wx-dev@lists.wxwidgets.org ##
14252## ----------------------------------------- ##
a848cd7e
SC
14253_ASBOX
14254 ) |
14255 sed "s/^/$as_me: WARNING: /" >&2
14256 ;;
14257esac
14258echo "$as_me:$LINENO: checking for $ac_header" >&5
14259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14260if eval "test \"\${$as_ac_Header+set}\" = set"; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
ac1cb8d3 14263 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14264fi
14265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14267
14268fi
14269if test `eval echo '${'$as_ac_Header'}'` = yes; then
14270 cat >>confdefs.h <<_ACEOF
14271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14272_ACEOF
14273
14274fi
14275
14276done
14277
14278
14279for ac_header in malloc.h
14280do
14281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282if eval "test \"\${$as_ac_Header+set}\" = set"; then
14283 echo "$as_me:$LINENO: checking for $ac_header" >&5
14284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14285if eval "test \"\${$as_ac_Header+set}\" = set"; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287fi
14288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290else
14291 # Is the header compilable?
14292echo "$as_me:$LINENO: checking $ac_header usability" >&5
14293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14294cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300$ac_includes_default
14301#include <$ac_header>
14302_ACEOF
14303rm -f conftest.$ac_objext
14304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14305 (eval $ac_compile) 2>conftest.er1
a848cd7e 14306 ac_status=$?
ac1cb8d3
VS
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
a848cd7e
SC
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
6ebeb4c7 14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_header_compiler=yes
14325else
14326 echo "$as_me: failed program was:" >&5
14327sed 's/^/| /' conftest.$ac_ext >&5
14328
14329ac_header_compiler=no
14330fi
ac1cb8d3 14331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333echo "${ECHO_T}$ac_header_compiler" >&6
14334
14335# Is the header present?
14336echo "$as_me:$LINENO: checking $ac_header presence" >&5
14337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14338cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344#include <$ac_header>
14345_ACEOF
14346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } >/dev/null; then
14354 if test -s conftest.err; then
14355 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14357 else
14358 ac_cpp_err=
14359 fi
14360else
14361 ac_cpp_err=yes
14362fi
14363if test -z "$ac_cpp_err"; then
14364 ac_header_preproc=yes
14365else
14366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ac_header_preproc=no
14370fi
14371rm -f conftest.err conftest.$ac_ext
14372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14373echo "${ECHO_T}$ac_header_preproc" >&6
14374
14375# So? What about this header?
ac1cb8d3
VS
14376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14377 yes:no: )
a848cd7e
SC
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14382 ac_header_preproc=yes
a848cd7e 14383 ;;
ac1cb8d3 14384 no:yes:* )
a848cd7e
SC
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14397 (
14398 cat <<\_ASBOX
ac1cb8d3
VS
14399## ----------------------------------------- ##
14400## Report this to wx-dev@lists.wxwidgets.org ##
14401## ----------------------------------------- ##
a848cd7e
SC
14402_ASBOX
14403 ) |
14404 sed "s/^/$as_me: WARNING: /" >&2
14405 ;;
14406esac
14407echo "$as_me:$LINENO: checking for $ac_header" >&5
14408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14409if eval "test \"\${$as_ac_Header+set}\" = set"; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
ac1cb8d3 14412 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14413fi
14414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14416
14417fi
14418if test `eval echo '${'$as_ac_Header'}'` = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14421_ACEOF
14422
14423fi
14424
14425done
14426
14427
14428for ac_header in unistd.h
14429do
14430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431if eval "test \"\${$as_ac_Header+set}\" = set"; then
14432 echo "$as_me:$LINENO: checking for $ac_header" >&5
14433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436fi
14437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14439else
14440 # Is the header compilable?
14441echo "$as_me:$LINENO: checking $ac_header usability" >&5
14442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14443cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449$ac_includes_default
14450#include <$ac_header>
14451_ACEOF
14452rm -f conftest.$ac_objext
14453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14454 (eval $ac_compile) 2>conftest.er1
a848cd7e 14455 ac_status=$?
ac1cb8d3
VS
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
a848cd7e
SC
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
6ebeb4c7 14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler=yes
14474else
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478ac_header_compiler=no
14479fi
ac1cb8d3 14480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14482echo "${ECHO_T}$ac_header_compiler" >&6
14483
14484# Is the header present?
14485echo "$as_me:$LINENO: checking $ac_header presence" >&5
14486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14487cat >conftest.$ac_ext <<_ACEOF
14488/* confdefs.h. */
14489_ACEOF
14490cat confdefs.h >>conftest.$ac_ext
14491cat >>conftest.$ac_ext <<_ACEOF
14492/* end confdefs.h. */
14493#include <$ac_header>
14494_ACEOF
14495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } >/dev/null; then
14503 if test -s conftest.err; then
14504 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14506 else
14507 ac_cpp_err=
14508 fi
14509else
14510 ac_cpp_err=yes
14511fi
14512if test -z "$ac_cpp_err"; then
14513 ac_header_preproc=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_header_preproc=no
14519fi
14520rm -f conftest.err conftest.$ac_ext
14521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14522echo "${ECHO_T}$ac_header_preproc" >&6
14523
14524# So? What about this header?
ac1cb8d3
VS
14525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14526 yes:no: )
a848cd7e
SC
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14531 ac_header_preproc=yes
a848cd7e 14532 ;;
ac1cb8d3 14533 no:yes:* )
a848cd7e
SC
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14546 (
14547 cat <<\_ASBOX
ac1cb8d3
VS
14548## ----------------------------------------- ##
14549## Report this to wx-dev@lists.wxwidgets.org ##
14550## ----------------------------------------- ##
a848cd7e
SC
14551_ASBOX
14552 ) |
14553 sed "s/^/$as_me: WARNING: /" >&2
14554 ;;
14555esac
14556echo "$as_me:$LINENO: checking for $ac_header" >&5
14557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14558if eval "test \"\${$as_ac_Header+set}\" = set"; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
ac1cb8d3 14561 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14562fi
14563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14565
14566fi
14567if test `eval echo '${'$as_ac_Header'}'` = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14570_ACEOF
14571
14572fi
14573
14574done
14575
14576
14577for ac_header in wchar.h
14578do
14579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14580if eval "test \"\${$as_ac_Header+set}\" = set"; then
14581 echo "$as_me:$LINENO: checking for $ac_header" >&5
14582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14583if eval "test \"\${$as_ac_Header+set}\" = set"; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585fi
14586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14588else
14589 # Is the header compilable?
14590echo "$as_me:$LINENO: checking $ac_header usability" >&5
14591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14592cat >conftest.$ac_ext <<_ACEOF
14593/* confdefs.h. */
14594_ACEOF
14595cat confdefs.h >>conftest.$ac_ext
14596cat >>conftest.$ac_ext <<_ACEOF
14597/* end confdefs.h. */
14598$ac_includes_default
14599#include <$ac_header>
14600_ACEOF
14601rm -f conftest.$ac_objext
14602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14603 (eval $ac_compile) 2>conftest.er1
a848cd7e 14604 ac_status=$?
ac1cb8d3
VS
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
a848cd7e
SC
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
6ebeb4c7 14610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_header_compiler=yes
14623else
14624 echo "$as_me: failed program was:" >&5
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
14627ac_header_compiler=no
14628fi
ac1cb8d3 14629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14631echo "${ECHO_T}$ac_header_compiler" >&6
14632
14633# Is the header present?
14634echo "$as_me:$LINENO: checking $ac_header presence" >&5
14635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14636cat >conftest.$ac_ext <<_ACEOF
14637/* confdefs.h. */
14638_ACEOF
14639cat confdefs.h >>conftest.$ac_ext
14640cat >>conftest.$ac_ext <<_ACEOF
14641/* end confdefs.h. */
14642#include <$ac_header>
14643_ACEOF
14644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } >/dev/null; then
14652 if test -s conftest.err; then
14653 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14655 else
14656 ac_cpp_err=
14657 fi
14658else
14659 ac_cpp_err=yes
14660fi
14661if test -z "$ac_cpp_err"; then
14662 ac_header_preproc=yes
14663else
14664 echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_header_preproc=no
14668fi
14669rm -f conftest.err conftest.$ac_ext
14670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671echo "${ECHO_T}$ac_header_preproc" >&6
14672
14673# So? What about this header?
ac1cb8d3
VS
14674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675 yes:no: )
a848cd7e
SC
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14680 ac_header_preproc=yes
a848cd7e 14681 ;;
ac1cb8d3 14682 no:yes:* )
a848cd7e
SC
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14695 (
14696 cat <<\_ASBOX
ac1cb8d3
VS
14697## ----------------------------------------- ##
14698## Report this to wx-dev@lists.wxwidgets.org ##
14699## ----------------------------------------- ##
a848cd7e
SC
14700_ASBOX
14701 ) |
14702 sed "s/^/$as_me: WARNING: /" >&2
14703 ;;
14704esac
14705echo "$as_me:$LINENO: checking for $ac_header" >&5
14706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14707if eval "test \"\${$as_ac_Header+set}\" = set"; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
ac1cb8d3 14710 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14711fi
14712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14714
14715fi
14716if test `eval echo '${'$as_ac_Header'}'` = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14719_ACEOF
14720
14721fi
14722
14723done
14724
14725
14726if test "$ac_cv_header_wchar_h" != "yes"; then
14727
14728for ac_header in wcstr.h
14729do
14730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14731if eval "test \"\${$as_ac_Header+set}\" = set"; then
14732 echo "$as_me:$LINENO: checking for $ac_header" >&5
14733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14734if eval "test \"\${$as_ac_Header+set}\" = set"; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736fi
14737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14739else
14740 # Is the header compilable?
14741echo "$as_me:$LINENO: checking $ac_header usability" >&5
14742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14743cat >conftest.$ac_ext <<_ACEOF
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749$ac_includes_default
14750#include <$ac_header>
14751_ACEOF
14752rm -f conftest.$ac_objext
14753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14754 (eval $ac_compile) 2>conftest.er1
a848cd7e 14755 ac_status=$?
ac1cb8d3
VS
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
a848cd7e
SC
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
6ebeb4c7 14761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_header_compiler=yes
14774else
14775 echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778ac_header_compiler=no
14779fi
ac1cb8d3 14780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14782echo "${ECHO_T}$ac_header_compiler" >&6
14783
14784# Is the header present?
14785echo "$as_me:$LINENO: checking $ac_header presence" >&5
14786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793#include <$ac_header>
14794_ACEOF
14795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14806 else
14807 ac_cpp_err=
14808 fi
14809else
14810 ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_header_preproc=no
14819fi
14820rm -f conftest.err conftest.$ac_ext
14821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14822echo "${ECHO_T}$ac_header_preproc" >&6
14823
14824# So? What about this header?
ac1cb8d3
VS
14825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826 yes:no: )
a848cd7e
SC
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14831 ac_header_preproc=yes
a848cd7e 14832 ;;
ac1cb8d3 14833 no:yes:* )
a848cd7e
SC
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14846 (
14847 cat <<\_ASBOX
ac1cb8d3
VS
14848## ----------------------------------------- ##
14849## Report this to wx-dev@lists.wxwidgets.org ##
14850## ----------------------------------------- ##
a848cd7e
SC
14851_ASBOX
14852 ) |
14853 sed "s/^/$as_me: WARNING: /" >&2
14854 ;;
14855esac
14856echo "$as_me:$LINENO: checking for $ac_header" >&5
14857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14858if eval "test \"\${$as_ac_Header+set}\" = set"; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14860else
ac1cb8d3 14861 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14862fi
14863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14865
14866fi
14867if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14870_ACEOF
14871
14872fi
14873
14874done
14875
14876fi
14877
14878
14879for ac_header in fnmatch.h
14880do
14881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882if eval "test \"\${$as_ac_Header+set}\" = set"; then
14883 echo "$as_me:$LINENO: checking for $ac_header" >&5
14884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14885if eval "test \"\${$as_ac_Header+set}\" = set"; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887fi
14888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14890else
14891 # Is the header compilable?
14892echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14894cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
14900$ac_includes_default
14901#include <$ac_header>
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14905 (eval $ac_compile) 2>conftest.er1
a848cd7e 14906 ac_status=$?
ac1cb8d3
VS
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
a848cd7e
SC
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
6ebeb4c7 14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_header_compiler=yes
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929ac_header_compiler=no
14930fi
ac1cb8d3 14931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933echo "${ECHO_T}$ac_header_compiler" >&6
14934
14935# Is the header present?
14936echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14938cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944#include <$ac_header>
14945_ACEOF
14946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } >/dev/null; then
14954 if test -s conftest.err; then
14955 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14957 else
14958 ac_cpp_err=
14959 fi
14960else
14961 ac_cpp_err=yes
14962fi
14963if test -z "$ac_cpp_err"; then
14964 ac_header_preproc=yes
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_header_preproc=no
14970fi
14971rm -f conftest.err conftest.$ac_ext
14972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973echo "${ECHO_T}$ac_header_preproc" >&6
14974
14975# So? What about this header?
ac1cb8d3
VS
14976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
a848cd7e
SC
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
a848cd7e 14983 ;;
ac1cb8d3 14984 no:yes:* )
a848cd7e
SC
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14997 (
14998 cat <<\_ASBOX
ac1cb8d3
VS
14999## ----------------------------------------- ##
15000## Report this to wx-dev@lists.wxwidgets.org ##
15001## ----------------------------------------- ##
a848cd7e
SC
15002_ASBOX
15003 ) |
15004 sed "s/^/$as_me: WARNING: /" >&2
15005 ;;
15006esac
15007echo "$as_me:$LINENO: checking for $ac_header" >&5
15008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15009if eval "test \"\${$as_ac_Header+set}\" = set"; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011else
ac1cb8d3 15012 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15013fi
15014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15016
15017fi
15018if test `eval echo '${'$as_ac_Header'}'` = yes; then
15019 cat >>confdefs.h <<_ACEOF
15020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15021_ACEOF
15022
15023fi
15024
15025done
15026
15027
a848cd7e
SC
15028
15029for ac_header in langinfo.h
15030do
15031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032if eval "test \"\${$as_ac_Header+set}\" = set"; then
15033 echo "$as_me:$LINENO: checking for $ac_header" >&5
15034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15035if eval "test \"\${$as_ac_Header+set}\" = set"; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037fi
15038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15040else
15041 # Is the header compilable?
15042echo "$as_me:$LINENO: checking $ac_header usability" >&5
15043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15044cat >conftest.$ac_ext <<_ACEOF
15045/* confdefs.h. */
15046_ACEOF
15047cat confdefs.h >>conftest.$ac_ext
15048cat >>conftest.$ac_ext <<_ACEOF
15049/* end confdefs.h. */
15050$ac_includes_default
15051#include <$ac_header>
15052_ACEOF
15053rm -f conftest.$ac_objext
15054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15055 (eval $ac_compile) 2>conftest.er1
a848cd7e 15056 ac_status=$?
ac1cb8d3
VS
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
a848cd7e
SC
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
6ebeb4c7 15062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_header_compiler=yes
15075else
15076 echo "$as_me: failed program was:" >&5
15077sed 's/^/| /' conftest.$ac_ext >&5
15078
15079ac_header_compiler=no
15080fi
ac1cb8d3 15081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15083echo "${ECHO_T}$ac_header_compiler" >&6
15084
15085# Is the header present?
15086echo "$as_me:$LINENO: checking $ac_header presence" >&5
15087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15088cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094#include <$ac_header>
15095_ACEOF
15096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } >/dev/null; then
15104 if test -s conftest.err; then
15105 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15107 else
15108 ac_cpp_err=
15109 fi
15110else
15111 ac_cpp_err=yes
15112fi
15113if test -z "$ac_cpp_err"; then
15114 ac_header_preproc=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 ac_header_preproc=no
15120fi
15121rm -f conftest.err conftest.$ac_ext
15122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15123echo "${ECHO_T}$ac_header_preproc" >&6
15124
15125# So? What about this header?
ac1cb8d3
VS
15126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15127 yes:no: )
a848cd7e
SC
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15132 ac_header_preproc=yes
a848cd7e 15133 ;;
ac1cb8d3 15134 no:yes:* )
a848cd7e
SC
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15147 (
15148 cat <<\_ASBOX
ac1cb8d3
VS
15149## ----------------------------------------- ##
15150## Report this to wx-dev@lists.wxwidgets.org ##
15151## ----------------------------------------- ##
a848cd7e
SC
15152_ASBOX
15153 ) |
15154 sed "s/^/$as_me: WARNING: /" >&2
15155 ;;
15156esac
15157echo "$as_me:$LINENO: checking for $ac_header" >&5
15158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15159if eval "test \"\${$as_ac_Header+set}\" = set"; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
ac1cb8d3 15162 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15163fi
15164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15166
15167fi
15168if test `eval echo '${'$as_ac_Header'}'` = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15171_ACEOF
15172
15173fi
15174
15175done
15176
15177
15178case "${host}" in
15179 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15180 if test $ac_cv_header_langinfo_h = "yes" \
15181 -a \( "$wx_cv_gccversion" = "EMX2" \
15182 -o "$wx_cv_gccversion" = "EMX3" \
15183 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15184 LIBS="$LIBS -lintl"
15185 fi
15186 ;;
15187esac
15188
15189if test "$wxUSE_GUI" = "yes"; then
15190 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15191
15192for ac_header in X11/Xlib.h
15193do
15194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195if eval "test \"\${$as_ac_Header+set}\" = set"; then
15196 echo "$as_me:$LINENO: checking for $ac_header" >&5
15197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200fi
15201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15203else
15204 # Is the header compilable?
15205echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214#include <$ac_header>
15215_ACEOF
15216rm -f conftest.$ac_objext
15217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15218 (eval $ac_compile) 2>conftest.er1
a848cd7e 15219 ac_status=$?
ac1cb8d3
VS
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
a848cd7e
SC
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
6ebeb4c7 15225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15238else
15239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242ac_header_compiler=no
15243fi
ac1cb8d3 15244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15246echo "${ECHO_T}$ac_header_compiler" >&6
15247
15248# Is the header present?
15249echo "$as_me:$LINENO: checking $ac_header presence" >&5
15250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15251cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257#include <$ac_header>
15258_ACEOF
15259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } >/dev/null; then
15267 if test -s conftest.err; then
15268 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15270 else
15271 ac_cpp_err=
15272 fi
15273else
15274 ac_cpp_err=yes
15275fi
15276if test -z "$ac_cpp_err"; then
15277 ac_header_preproc=yes
15278else
15279 echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_header_preproc=no
15283fi
15284rm -f conftest.err conftest.$ac_ext
15285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15286echo "${ECHO_T}$ac_header_preproc" >&6
15287
15288# So? What about this header?
ac1cb8d3
VS
15289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15290 yes:no: )
a848cd7e
SC
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15295 ac_header_preproc=yes
a848cd7e 15296 ;;
ac1cb8d3 15297 no:yes:* )
a848cd7e
SC
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15310 (
15311 cat <<\_ASBOX
ac1cb8d3
VS
15312## ----------------------------------------- ##
15313## Report this to wx-dev@lists.wxwidgets.org ##
15314## ----------------------------------------- ##
a848cd7e
SC
15315_ASBOX
15316 ) |
15317 sed "s/^/$as_me: WARNING: /" >&2
15318 ;;
15319esac
15320echo "$as_me:$LINENO: checking for $ac_header" >&5
15321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324else
ac1cb8d3 15325 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15326fi
15327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15329
15330fi
15331if test `eval echo '${'$as_ac_Header'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15334_ACEOF
15335
15336fi
15337
15338done
15339
15340
15341for ac_header in X11/XKBlib.h
15342do
15343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15344echo "$as_me:$LINENO: checking for $ac_header" >&5
15345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15346if eval "test \"\${$as_ac_Header+set}\" = set"; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348else
15349 cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355
15356 #if HAVE_X11_XLIB_H
15357 #include <X11/Xlib.h>
15358 #endif
15359
15360
15361#include <$ac_header>
15362_ACEOF
15363rm -f conftest.$ac_objext
15364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15365 (eval $ac_compile) 2>conftest.er1
a848cd7e 15366 ac_status=$?
ac1cb8d3
VS
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
a848cd7e
SC
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
6ebeb4c7 15372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_Header=yes"
15385else
15386 echo "$as_me: failed program was:" >&5
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
15389eval "$as_ac_Header=no"
15390fi
ac1cb8d3 15391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15392fi
15393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15395if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398_ACEOF
15399
15400fi
15401
15402done
15403
15404 fi
15405fi
15406
15407
15408echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15409echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15410if test "${ac_cv_c_const+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412else
15413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419
15420int
15421main ()
15422{
15423/* FIXME: Include the comments suggested by Paul. */
15424#ifndef __cplusplus
15425 /* Ultrix mips cc rejects this. */
15426 typedef int charset[2];
15427 const charset x;
15428 /* SunOS 4.1.1 cc rejects this. */
15429 char const *const *ccp;
15430 char **p;
15431 /* NEC SVR4.0.2 mips cc rejects this. */
15432 struct point {int x, y;};
15433 static struct point const zero = {0,0};
15434 /* AIX XL C 1.02.0.0 rejects this.
15435 It does not let you subtract one const X* pointer from another in
15436 an arm of an if-expression whose if-part is not a constant
15437 expression */
15438 const char *g = "string";
15439 ccp = &g + (g ? g-g : 0);
15440 /* HPUX 7.0 cc rejects these. */
15441 ++ccp;
15442 p = (char**) ccp;
15443 ccp = (char const *const *) p;
15444 { /* SCO 3.2v4 cc rejects this. */
15445 char *t;
15446 char const *s = 0 ? (char *) 0 : (char const *) 0;
15447
15448 *t++ = 0;
15449 }
15450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15451 int x[] = {25, 17};
15452 const int *foo = &x[0];
15453 ++foo;
15454 }
15455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15456 typedef const int *iptr;
15457 iptr p = 0;
15458 ++p;
15459 }
15460 { /* AIX XL C 1.02.0.0 rejects this saying
15461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15462 struct s { int j; const int *ap[3]; };
15463 struct s *b; b->j = 5;
15464 }
15465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15466 const int foo = 10;
15467 }
15468#endif
15469
15470 ;
15471 return 0;
15472}
15473_ACEOF
15474rm -f conftest.$ac_objext
15475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15476 (eval $ac_compile) 2>conftest.er1
a848cd7e 15477 ac_status=$?
ac1cb8d3
VS
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
a848cd7e
SC
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
6ebeb4c7 15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_cv_c_const=yes
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500ac_cv_c_const=no
15501fi
ac1cb8d3 15502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15503fi
15504echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15505echo "${ECHO_T}$ac_cv_c_const" >&6
15506if test $ac_cv_c_const = no; then
15507
15508cat >>confdefs.h <<\_ACEOF
15509#define const
15510_ACEOF
15511
15512fi
15513
15514echo "$as_me:$LINENO: checking for inline" >&5
15515echo $ECHO_N "checking for inline... $ECHO_C" >&6
15516if test "${ac_cv_c_inline+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518else
15519 ac_cv_c_inline=no
15520for ac_kw in inline __inline__ __inline; do
15521 cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h. */
15527#ifndef __cplusplus
15528typedef int foo_t;
15529static $ac_kw foo_t static_foo () {return 0; }
15530$ac_kw foo_t foo () {return 0; }
15531#endif
15532
15533_ACEOF
15534rm -f conftest.$ac_objext
15535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15536 (eval $ac_compile) 2>conftest.er1
a848cd7e 15537 ac_status=$?
ac1cb8d3
VS
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
a848cd7e
SC
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
6ebeb4c7 15543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_c_inline=$ac_kw; break
15556else
15557 echo "$as_me: failed program was:" >&5
15558sed 's/^/| /' conftest.$ac_ext >&5
15559
15560fi
ac1cb8d3 15561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15562done
15563
15564fi
15565echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15566echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15567
15568
a848cd7e
SC
15569case $ac_cv_c_inline in
15570 inline | yes) ;;
ac1cb8d3
VS
15571 *)
15572 case $ac_cv_c_inline in
15573 no) ac_val=;;
15574 *) ac_val=$ac_cv_c_inline;;
15575 esac
15576 cat >>confdefs.h <<_ACEOF
15577#ifndef __cplusplus
15578#define inline $ac_val
15579#endif
de59c161 15580_ACEOF
ac1cb8d3 15581 ;;
a848cd7e
SC
15582esac
15583
15584
15585echo "$as_me:$LINENO: checking for char" >&5
15586echo $ECHO_N "checking for char... $ECHO_C" >&6
15587if test "${ac_cv_type_char+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589else
15590 cat >conftest.$ac_ext <<_ACEOF
15591/* confdefs.h. */
15592_ACEOF
15593cat confdefs.h >>conftest.$ac_ext
15594cat >>conftest.$ac_ext <<_ACEOF
15595/* end confdefs.h. */
15596$ac_includes_default
15597int
15598main ()
15599{
15600if ((char *) 0)
15601 return 0;
15602if (sizeof (char))
15603 return 0;
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15610 (eval $ac_compile) 2>conftest.er1
a848cd7e 15611 ac_status=$?
ac1cb8d3
VS
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
a848cd7e
SC
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
6ebeb4c7 15617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_type_char=yes
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634ac_cv_type_char=no
15635fi
ac1cb8d3 15636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15637fi
15638echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15639echo "${ECHO_T}$ac_cv_type_char" >&6
15640
15641echo "$as_me:$LINENO: checking size of char" >&5
15642echo $ECHO_N "checking size of char... $ECHO_C" >&6
15643if test "${ac_cv_sizeof_char+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645else
15646 if test "$ac_cv_type_char" = yes; then
15647 # The cast to unsigned long works around a bug in the HP C Compiler
15648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15650 # This bug is HP SR number 8606223364.
15651 if test "$cross_compiling" = yes; then
15652 # Depending upon the size, compute the lo and hi bounds.
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660int
15661main ()
15662{
15663static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15664test_array [0] = 0
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15672 (eval $ac_compile) 2>conftest.er1
a848cd7e 15673 ac_status=$?
ac1cb8d3
VS
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
6ebeb4c7 15679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_lo=0 ac_mid=0
15692 while :; do
15693 cat >conftest.$ac_ext <<_ACEOF
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699$ac_includes_default
15700int
15701main ()
15702{
15703static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15704test_array [0] = 0
15705
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710rm -f conftest.$ac_objext
15711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15712 (eval $ac_compile) 2>conftest.er1
a848cd7e 15713 ac_status=$?
ac1cb8d3
VS
15714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
a848cd7e
SC
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
6ebeb4c7 15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_hi=$ac_mid; break
15732else
15733 echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15737 if test $ac_lo -le $ac_mid; then
15738 ac_lo= ac_hi=
15739 break
15740 fi
15741 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15742fi
ac1cb8d3 15743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15744 done
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749cat >conftest.$ac_ext <<_ACEOF
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
15755$ac_includes_default
15756int
15757main ()
15758{
15759static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15760test_array [0] = 0
15761
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15768 (eval $ac_compile) 2>conftest.er1
a848cd7e 15769 ac_status=$?
ac1cb8d3
VS
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
a848cd7e
SC
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
6ebeb4c7 15775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_hi=-1 ac_mid=-1
15788 while :; do
15789 cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795$ac_includes_default
15796int
15797main ()
15798{
15799static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15800test_array [0] = 0
15801
15802 ;
15803 return 0;
15804}
15805_ACEOF
15806rm -f conftest.$ac_objext
15807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15808 (eval $ac_compile) 2>conftest.er1
a848cd7e 15809 ac_status=$?
ac1cb8d3
VS
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
a848cd7e
SC
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
6ebeb4c7 15815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_lo=$ac_mid; break
15828else
15829 echo "$as_me: failed program was:" >&5
15830sed 's/^/| /' conftest.$ac_ext >&5
15831
15832ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15833 if test $ac_mid -le $ac_hi; then
15834 ac_lo= ac_hi=
15835 break
15836 fi
15837 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15838fi
ac1cb8d3 15839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15840 done
15841else
15842 echo "$as_me: failed program was:" >&5
15843sed 's/^/| /' conftest.$ac_ext >&5
15844
15845ac_lo= ac_hi=
15846fi
ac1cb8d3 15847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15848fi
ac1cb8d3 15849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15850# Binary search between lo and hi bounds.
15851while test "x$ac_lo" != "x$ac_hi"; do
15852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15853 cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859$ac_includes_default
15860int
15861main ()
15862{
15863static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15864test_array [0] = 0
15865
15866 ;
15867 return 0;
15868}
15869_ACEOF
15870rm -f conftest.$ac_objext
15871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15872 (eval $ac_compile) 2>conftest.er1
a848cd7e 15873 ac_status=$?
ac1cb8d3
VS
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
a848cd7e
SC
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
6ebeb4c7 15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_hi=$ac_mid
15892else
15893 echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
15896ac_lo=`expr '(' $ac_mid ')' + 1`
15897fi
ac1cb8d3 15898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15899done
15900case $ac_lo in
15901?*) ac_cv_sizeof_char=$ac_lo;;
15902'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15903See \`config.log' for more details." >&5
15904echo "$as_me: error: cannot compute sizeof (char), 77
15905See \`config.log' for more details." >&2;}
15906 { (exit 1); exit 1; }; } ;;
15907esac
15908else
15909 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15910 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15911echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15912 { (exit 1); exit 1; }; }
15913else
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921long longval () { return (long) (sizeof (char)); }
15922unsigned long ulongval () { return (long) (sizeof (char)); }
15923#include <stdio.h>
15924#include <stdlib.h>
15925int
15926main ()
15927{
15928
15929 FILE *f = fopen ("conftest.val", "w");
15930 if (! f)
15931 exit (1);
15932 if (((long) (sizeof (char))) < 0)
15933 {
15934 long i = longval ();
15935 if (i != ((long) (sizeof (char))))
15936 exit (1);
15937 fprintf (f, "%ld\n", i);
15938 }
15939 else
15940 {
15941 unsigned long i = ulongval ();
15942 if (i != ((long) (sizeof (char))))
15943 exit (1);
15944 fprintf (f, "%lu\n", i);
15945 }
15946 exit (ferror (f) || fclose (f) != 0);
15947
15948 ;
15949 return 0;
15950}
15951_ACEOF
15952rm -f conftest$ac_exeext
15953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15954 (eval $ac_link) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_sizeof_char=`cat conftest.val`
15964else
15965 echo "$as_me: program exited with status $ac_status" >&5
15966echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969( exit $ac_status )
15970{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15971See \`config.log' for more details." >&5
15972echo "$as_me: error: cannot compute sizeof (char), 77
15973See \`config.log' for more details." >&2;}
15974 { (exit 1); exit 1; }; }
15975fi
ac1cb8d3 15976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15977fi
15978fi
15979rm -f conftest.val
15980else
15981 ac_cv_sizeof_char=0
15982fi
15983fi
15984echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15985echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15986cat >>confdefs.h <<_ACEOF
15987#define SIZEOF_CHAR $ac_cv_sizeof_char
15988_ACEOF
15989
15990
15991echo "$as_me:$LINENO: checking for short" >&5
15992echo $ECHO_N "checking for short... $ECHO_C" >&6
15993if test "${ac_cv_type_short+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995else
15996 cat >conftest.$ac_ext <<_ACEOF
15997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
16002$ac_includes_default
16003int
16004main ()
16005{
16006if ((short *) 0)
16007 return 0;
16008if (sizeof (short))
16009 return 0;
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014rm -f conftest.$ac_objext
16015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16016 (eval $ac_compile) 2>conftest.er1
a848cd7e 16017 ac_status=$?
ac1cb8d3
VS
16018 grep -v '^ *+' conftest.er1 >conftest.err
16019 rm -f conftest.er1
16020 cat conftest.err >&5
a848cd7e
SC
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
6ebeb4c7 16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_type_short=yes
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040ac_cv_type_short=no
16041fi
ac1cb8d3 16042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16043fi
16044echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16045echo "${ECHO_T}$ac_cv_type_short" >&6
16046
16047echo "$as_me:$LINENO: checking size of short" >&5
16048echo $ECHO_N "checking size of short... $ECHO_C" >&6
16049if test "${ac_cv_sizeof_short+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051else
16052 if test "$ac_cv_type_short" = yes; then
16053 # The cast to unsigned long works around a bug in the HP C Compiler
16054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16056 # This bug is HP SR number 8606223364.
16057 if test "$cross_compiling" = yes; then
16058 # Depending upon the size, compute the lo and hi bounds.
16059cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065$ac_includes_default
16066int
16067main ()
16068{
16069static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16070test_array [0] = 0
16071
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16078 (eval $ac_compile) 2>conftest.er1
a848cd7e 16079 ac_status=$?
ac1cb8d3
VS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
a848cd7e
SC
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
6ebeb4c7 16085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_lo=0 ac_mid=0
16098 while :; do
16099 cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h. */
16105$ac_includes_default
16106int
16107main ()
16108{
16109static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16110test_array [0] = 0
16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16118 (eval $ac_compile) 2>conftest.er1
a848cd7e 16119 ac_status=$?
ac1cb8d3
VS
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
a848cd7e
SC
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
6ebeb4c7 16125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_hi=$ac_mid; break
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16143 if test $ac_lo -le $ac_mid; then
16144 ac_lo= ac_hi=
16145 break
16146 fi
16147 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16148fi
ac1cb8d3 16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16150 done
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162int
16163main ()
16164{
16165static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16166test_array [0] = 0
16167
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16174 (eval $ac_compile) 2>conftest.er1
a848cd7e 16175 ac_status=$?
ac1cb8d3
VS
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
a848cd7e
SC
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
6ebeb4c7 16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_hi=-1 ac_mid=-1
16194 while :; do
16195 cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h. */
16201$ac_includes_default
16202int
16203main ()
16204{
16205static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16206test_array [0] = 0
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext
16213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16214 (eval $ac_compile) 2>conftest.er1
a848cd7e 16215 ac_status=$?
ac1cb8d3
VS
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
a848cd7e
SC
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
6ebeb4c7 16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_lo=$ac_mid; break
16234else
16235 echo "$as_me: failed program was:" >&5
16236sed 's/^/| /' conftest.$ac_ext >&5
16237
16238ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16239 if test $ac_mid -le $ac_hi; then
16240 ac_lo= ac_hi=
16241 break
16242 fi
16243 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16244fi
ac1cb8d3 16245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16246 done
16247else
16248 echo "$as_me: failed program was:" >&5
16249sed 's/^/| /' conftest.$ac_ext >&5
16250
16251ac_lo= ac_hi=
16252fi
ac1cb8d3 16253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16254fi
ac1cb8d3 16255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16256# Binary search between lo and hi bounds.
16257while test "x$ac_lo" != "x$ac_hi"; do
16258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16259 cat >conftest.$ac_ext <<_ACEOF
16260/* confdefs.h. */
16261_ACEOF
16262cat confdefs.h >>conftest.$ac_ext
16263cat >>conftest.$ac_ext <<_ACEOF
16264/* end confdefs.h. */
16265$ac_includes_default
16266int
16267main ()
16268{
16269static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16270test_array [0] = 0
16271
16272 ;
16273 return 0;
16274}
16275_ACEOF
16276rm -f conftest.$ac_objext
16277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16278 (eval $ac_compile) 2>conftest.er1
a848cd7e 16279 ac_status=$?
ac1cb8d3
VS
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
a848cd7e
SC
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
6ebeb4c7 16285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_hi=$ac_mid
16298else
16299 echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
16302ac_lo=`expr '(' $ac_mid ')' + 1`
16303fi
ac1cb8d3 16304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16305done
16306case $ac_lo in
16307?*) ac_cv_sizeof_short=$ac_lo;;
16308'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16309See \`config.log' for more details." >&5
16310echo "$as_me: error: cannot compute sizeof (short), 77
16311See \`config.log' for more details." >&2;}
16312 { (exit 1); exit 1; }; } ;;
16313esac
16314else
16315 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16316 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16317echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16318 { (exit 1); exit 1; }; }
16319else
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327long longval () { return (long) (sizeof (short)); }
16328unsigned long ulongval () { return (long) (sizeof (short)); }
16329#include <stdio.h>
16330#include <stdlib.h>
16331int
16332main ()
16333{
16334
16335 FILE *f = fopen ("conftest.val", "w");
16336 if (! f)
16337 exit (1);
16338 if (((long) (sizeof (short))) < 0)
16339 {
16340 long i = longval ();
16341 if (i != ((long) (sizeof (short))))
16342 exit (1);
16343 fprintf (f, "%ld\n", i);
16344 }
16345 else
16346 {
16347 unsigned long i = ulongval ();
16348 if (i != ((long) (sizeof (short))))
16349 exit (1);
16350 fprintf (f, "%lu\n", i);
16351 }
16352 exit (ferror (f) || fclose (f) != 0);
16353
16354 ;
16355 return 0;
16356}
16357_ACEOF
16358rm -f conftest$ac_exeext
16359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16360 (eval $ac_link) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_sizeof_short=`cat conftest.val`
16370else
16371 echo "$as_me: program exited with status $ac_status" >&5
16372echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
16375( exit $ac_status )
16376{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16377See \`config.log' for more details." >&5
16378echo "$as_me: error: cannot compute sizeof (short), 77
16379See \`config.log' for more details." >&2;}
16380 { (exit 1); exit 1; }; }
16381fi
ac1cb8d3 16382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16383fi
16384fi
16385rm -f conftest.val
16386else
16387 ac_cv_sizeof_short=0
16388fi
16389fi
16390echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16391echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16392cat >>confdefs.h <<_ACEOF
16393#define SIZEOF_SHORT $ac_cv_sizeof_short
16394_ACEOF
16395
16396
16397echo "$as_me:$LINENO: checking for void *" >&5
16398echo $ECHO_N "checking for void *... $ECHO_C" >&6
16399if test "${ac_cv_type_void_p+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16401else
16402 cat >conftest.$ac_ext <<_ACEOF
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
16407/* end confdefs.h. */
16408$ac_includes_default
16409int
16410main ()
16411{
16412if ((void * *) 0)
16413 return 0;
16414if (sizeof (void *))
16415 return 0;
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16422 (eval $ac_compile) 2>conftest.er1
a848cd7e 16423 ac_status=$?
ac1cb8d3
VS
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
a848cd7e
SC
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
6ebeb4c7 16429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; } &&
16435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_cv_type_void_p=yes
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446ac_cv_type_void_p=no
16447fi
ac1cb8d3 16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16449fi
16450echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16451echo "${ECHO_T}$ac_cv_type_void_p" >&6
16452
16453echo "$as_me:$LINENO: checking size of void *" >&5
16454echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16455if test "${ac_cv_sizeof_void_p+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457else
16458 if test "$ac_cv_type_void_p" = yes; then
16459 # The cast to unsigned long works around a bug in the HP C Compiler
16460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16462 # This bug is HP SR number 8606223364.
16463 if test "$cross_compiling" = yes; then
16464 # Depending upon the size, compute the lo and hi bounds.
16465cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472int
16473main ()
16474{
16475static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16476test_array [0] = 0
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16484 (eval $ac_compile) 2>conftest.er1
a848cd7e 16485 ac_status=$?
ac1cb8d3
VS
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
a848cd7e
SC
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
6ebeb4c7 16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_lo=0 ac_mid=0
16504 while :; do
16505 cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512int
16513main ()
16514{
16515static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16516test_array [0] = 0
16517
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16524 (eval $ac_compile) 2>conftest.er1
a848cd7e 16525 ac_status=$?
ac1cb8d3
VS
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
a848cd7e
SC
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
6ebeb4c7 16531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_hi=$ac_mid; break
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16549 if test $ac_lo -le $ac_mid; then
16550 ac_lo= ac_hi=
16551 break
16552 fi
16553 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16554fi
ac1cb8d3 16555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16556 done
16557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567$ac_includes_default
16568int
16569main ()
16570{
16571static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16572test_array [0] = 0
16573
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16580 (eval $ac_compile) 2>conftest.er1
a848cd7e 16581 ac_status=$?
ac1cb8d3
VS
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
a848cd7e
SC
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
6ebeb4c7 16587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_hi=-1 ac_mid=-1
16600 while :; do
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608int
16609main ()
16610{
16611static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16612test_array [0] = 0
16613
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16620 (eval $ac_compile) 2>conftest.er1
a848cd7e 16621 ac_status=$?
ac1cb8d3
VS
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
a848cd7e
SC
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
6ebeb4c7 16627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_lo=$ac_mid; break
16640else
16641 echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16645 if test $ac_mid -le $ac_hi; then
16646 ac_lo= ac_hi=
16647 break
16648 fi
16649 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16650fi
ac1cb8d3 16651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16652 done
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657ac_lo= ac_hi=
16658fi
ac1cb8d3 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16660fi
ac1cb8d3 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16662# Binary search between lo and hi bounds.
16663while test "x$ac_lo" != "x$ac_hi"; do
16664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16665 cat >conftest.$ac_ext <<_ACEOF
16666/* confdefs.h. */
16667_ACEOF
16668cat confdefs.h >>conftest.$ac_ext
16669cat >>conftest.$ac_ext <<_ACEOF
16670/* end confdefs.h. */
16671$ac_includes_default
16672int
16673main ()
16674{
16675static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16676test_array [0] = 0
16677
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext
16683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16684 (eval $ac_compile) 2>conftest.er1
a848cd7e 16685 ac_status=$?
ac1cb8d3
VS
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
a848cd7e
SC
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
6ebeb4c7 16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_hi=$ac_mid
16704else
16705 echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708ac_lo=`expr '(' $ac_mid ')' + 1`
16709fi
ac1cb8d3 16710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16711done
16712case $ac_lo in
16713?*) ac_cv_sizeof_void_p=$ac_lo;;
16714'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16715See \`config.log' for more details." >&5
16716echo "$as_me: error: cannot compute sizeof (void *), 77
16717See \`config.log' for more details." >&2;}
16718 { (exit 1); exit 1; }; } ;;
16719esac
16720else
16721 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16722 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16723echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16724 { (exit 1); exit 1; }; }
16725else
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733long longval () { return (long) (sizeof (void *)); }
16734unsigned long ulongval () { return (long) (sizeof (void *)); }
16735#include <stdio.h>
16736#include <stdlib.h>
16737int
16738main ()
16739{
16740
16741 FILE *f = fopen ("conftest.val", "w");
16742 if (! f)
16743 exit (1);
16744 if (((long) (sizeof (void *))) < 0)
16745 {
16746 long i = longval ();
16747 if (i != ((long) (sizeof (void *))))
16748 exit (1);
16749 fprintf (f, "%ld\n", i);
16750 }
16751 else
16752 {
16753 unsigned long i = ulongval ();
16754 if (i != ((long) (sizeof (void *))))
16755 exit (1);
16756 fprintf (f, "%lu\n", i);
16757 }
16758 exit (ferror (f) || fclose (f) != 0);
16759
16760 ;
16761 return 0;
16762}
16763_ACEOF
16764rm -f conftest$ac_exeext
16765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766 (eval $ac_link) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_cv_sizeof_void_p=`cat conftest.val`
16776else
16777 echo "$as_me: program exited with status $ac_status" >&5
16778echo "$as_me: failed program was:" >&5
16779sed 's/^/| /' conftest.$ac_ext >&5
16780
16781( exit $ac_status )
16782{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16783See \`config.log' for more details." >&5
16784echo "$as_me: error: cannot compute sizeof (void *), 77
16785See \`config.log' for more details." >&2;}
16786 { (exit 1); exit 1; }; }
16787fi
ac1cb8d3 16788rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16789fi
16790fi
16791rm -f conftest.val
16792else
16793 ac_cv_sizeof_void_p=0
16794fi
16795fi
16796echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16797echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16798cat >>confdefs.h <<_ACEOF
16799#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16800_ACEOF
16801
16802
16803echo "$as_me:$LINENO: checking for int" >&5
16804echo $ECHO_N "checking for int... $ECHO_C" >&6
16805if test "${ac_cv_type_int+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807else
16808 cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814$ac_includes_default
16815int
16816main ()
16817{
16818if ((int *) 0)
16819 return 0;
16820if (sizeof (int))
16821 return 0;
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16828 (eval $ac_compile) 2>conftest.er1
a848cd7e 16829 ac_status=$?
ac1cb8d3
VS
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
a848cd7e
SC
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
6ebeb4c7 16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_cv_type_int=yes
16848else
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
16852ac_cv_type_int=no
16853fi
ac1cb8d3 16854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16855fi
16856echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16857echo "${ECHO_T}$ac_cv_type_int" >&6
16858
16859echo "$as_me:$LINENO: checking size of int" >&5
16860echo $ECHO_N "checking size of int... $ECHO_C" >&6
16861if test "${ac_cv_sizeof_int+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 if test "$ac_cv_type_int" = yes; then
16865 # The cast to unsigned long works around a bug in the HP C Compiler
16866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16868 # This bug is HP SR number 8606223364.
16869 if test "$cross_compiling" = yes; then
16870 # Depending upon the size, compute the lo and hi bounds.
16871cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877$ac_includes_default
16878int
16879main ()
16880{
16881static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16882test_array [0] = 0
16883
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16890 (eval $ac_compile) 2>conftest.er1
a848cd7e 16891 ac_status=$?
ac1cb8d3
VS
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
a848cd7e
SC
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
6ebeb4c7 16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_lo=0 ac_mid=0
16910 while :; do
16911 cat >conftest.$ac_ext <<_ACEOF
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
16917$ac_includes_default
16918int
16919main ()
16920{
16921static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16922test_array [0] = 0
16923
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext
16929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16930 (eval $ac_compile) 2>conftest.er1
a848cd7e 16931 ac_status=$?
ac1cb8d3
VS
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
a848cd7e
SC
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
6ebeb4c7 16937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_hi=$ac_mid; break
16950else
16951 echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16955 if test $ac_lo -le $ac_mid; then
16956 ac_lo= ac_hi=
16957 break
16958 fi
16959 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16960fi
ac1cb8d3 16961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16962 done
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973$ac_includes_default
16974int
16975main ()
16976{
16977static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16978test_array [0] = 0
16979
16980 ;
16981 return 0;
16982}
16983_ACEOF
16984rm -f conftest.$ac_objext
16985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16986 (eval $ac_compile) 2>conftest.er1
a848cd7e 16987 ac_status=$?
ac1cb8d3
VS
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
a848cd7e
SC
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
6ebeb4c7 16993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_hi=-1 ac_mid=-1
17006 while :; do
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014int
17015main ()
17016{
17017static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17018test_array [0] = 0
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024rm -f conftest.$ac_objext
17025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17026 (eval $ac_compile) 2>conftest.er1
a848cd7e 17027 ac_status=$?
ac1cb8d3
VS
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
a848cd7e
SC
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
6ebeb4c7 17033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_lo=$ac_mid; break
17046else
17047 echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
17050ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17051 if test $ac_mid -le $ac_hi; then
17052 ac_lo= ac_hi=
17053 break
17054 fi
17055 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17056fi
ac1cb8d3 17057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17058 done
17059else
17060 echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063ac_lo= ac_hi=
17064fi
ac1cb8d3 17065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17066fi
ac1cb8d3 17067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17068# Binary search between lo and hi bounds.
17069while test "x$ac_lo" != "x$ac_hi"; do
17070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077$ac_includes_default
17078int
17079main ()
17080{
17081static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17082test_array [0] = 0
17083
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext
17089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17090 (eval $ac_compile) 2>conftest.er1
a848cd7e 17091 ac_status=$?
ac1cb8d3
VS
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
a848cd7e
SC
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
6ebeb4c7 17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_hi=$ac_mid
17110else
17111 echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114ac_lo=`expr '(' $ac_mid ')' + 1`
17115fi
ac1cb8d3 17116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17117done
17118case $ac_lo in
17119?*) ac_cv_sizeof_int=$ac_lo;;
17120'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17121See \`config.log' for more details." >&5
17122echo "$as_me: error: cannot compute sizeof (int), 77
17123See \`config.log' for more details." >&2;}
17124 { (exit 1); exit 1; }; } ;;
17125esac
17126else
17127 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17128 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17129echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17130 { (exit 1); exit 1; }; }
17131else
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139long longval () { return (long) (sizeof (int)); }
17140unsigned long ulongval () { return (long) (sizeof (int)); }
17141#include <stdio.h>
17142#include <stdlib.h>
17143int
17144main ()
17145{
17146
17147 FILE *f = fopen ("conftest.val", "w");
17148 if (! f)
17149 exit (1);
17150 if (((long) (sizeof (int))) < 0)
17151 {
17152 long i = longval ();
17153 if (i != ((long) (sizeof (int))))
17154 exit (1);
17155 fprintf (f, "%ld\n", i);
17156 }
17157 else
17158 {
17159 unsigned long i = ulongval ();
17160 if (i != ((long) (sizeof (int))))
17161 exit (1);
17162 fprintf (f, "%lu\n", i);
17163 }
17164 exit (ferror (f) || fclose (f) != 0);
17165
17166 ;
17167 return 0;
17168}
17169_ACEOF
17170rm -f conftest$ac_exeext
17171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_cv_sizeof_int=`cat conftest.val`
17182else
17183 echo "$as_me: program exited with status $ac_status" >&5
17184echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187( exit $ac_status )
17188{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17189See \`config.log' for more details." >&5
17190echo "$as_me: error: cannot compute sizeof (int), 77
17191See \`config.log' for more details." >&2;}
17192 { (exit 1); exit 1; }; }
17193fi
ac1cb8d3 17194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17195fi
17196fi
17197rm -f conftest.val
17198else
17199 ac_cv_sizeof_int=0
17200fi
17201fi
17202echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17203echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17204cat >>confdefs.h <<_ACEOF
17205#define SIZEOF_INT $ac_cv_sizeof_int
17206_ACEOF
17207
17208
17209echo "$as_me:$LINENO: checking for long" >&5
17210echo $ECHO_N "checking for long... $ECHO_C" >&6
17211if test "${ac_cv_type_long+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 cat >conftest.$ac_ext <<_ACEOF
17215/* confdefs.h. */
17216_ACEOF
17217cat confdefs.h >>conftest.$ac_ext
17218cat >>conftest.$ac_ext <<_ACEOF
17219/* end confdefs.h. */
17220$ac_includes_default
17221int
17222main ()
17223{
17224if ((long *) 0)
17225 return 0;
17226if (sizeof (long))
17227 return 0;
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext
17233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17234 (eval $ac_compile) 2>conftest.er1
a848cd7e 17235 ac_status=$?
ac1cb8d3
VS
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
a848cd7e
SC
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
6ebeb4c7 17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_type_long=yes
17254else
17255 echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258ac_cv_type_long=no
17259fi
ac1cb8d3 17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17261fi
17262echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17263echo "${ECHO_T}$ac_cv_type_long" >&6
17264
17265echo "$as_me:$LINENO: checking size of long" >&5
17266echo $ECHO_N "checking size of long... $ECHO_C" >&6
17267if test "${ac_cv_sizeof_long+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269else
17270 if test "$ac_cv_type_long" = yes; then
17271 # The cast to unsigned long works around a bug in the HP C Compiler
17272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17274 # This bug is HP SR number 8606223364.
17275 if test "$cross_compiling" = yes; then
17276 # Depending upon the size, compute the lo and hi bounds.
17277cat >conftest.$ac_ext <<_ACEOF
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283$ac_includes_default
17284int
17285main ()
17286{
17287static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17288test_array [0] = 0
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17296 (eval $ac_compile) 2>conftest.er1
a848cd7e 17297 ac_status=$?
ac1cb8d3
VS
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
a848cd7e
SC
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
6ebeb4c7 17303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_lo=0 ac_mid=0
17316 while :; do
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324int
17325main ()
17326{
17327static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17328test_array [0] = 0
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17336 (eval $ac_compile) 2>conftest.er1
a848cd7e 17337 ac_status=$?
ac1cb8d3
VS
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
a848cd7e
SC
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
6ebeb4c7 17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_hi=$ac_mid; break
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17361 if test $ac_lo -le $ac_mid; then
17362 ac_lo= ac_hi=
17363 break
17364 fi
17365 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17366fi
ac1cb8d3 17367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17368 done
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373cat >conftest.$ac_ext <<_ACEOF
17374/* confdefs.h. */
17375_ACEOF
17376cat confdefs.h >>conftest.$ac_ext
17377cat >>conftest.$ac_ext <<_ACEOF
17378/* end confdefs.h. */
17379$ac_includes_default
17380int
17381main ()
17382{
17383static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17384test_array [0] = 0
17385
17386 ;
17387 return 0;
17388}
17389_ACEOF
17390rm -f conftest.$ac_objext
17391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17392 (eval $ac_compile) 2>conftest.er1
a848cd7e 17393 ac_status=$?
ac1cb8d3
VS
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
a848cd7e
SC
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
6ebeb4c7 17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_hi=-1 ac_mid=-1
17412 while :; do
17413 cat >conftest.$ac_ext <<_ACEOF
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
17419$ac_includes_default
17420int
17421main ()
17422{
17423static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17424test_array [0] = 0
17425
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext
17431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17432 (eval $ac_compile) 2>conftest.er1
a848cd7e 17433 ac_status=$?
ac1cb8d3
VS
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
a848cd7e
SC
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
6ebeb4c7 17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_lo=$ac_mid; break
17452else
17453 echo "$as_me: failed program was:" >&5
17454sed 's/^/| /' conftest.$ac_ext >&5
17455
17456ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17457 if test $ac_mid -le $ac_hi; then
17458 ac_lo= ac_hi=
17459 break
17460 fi
17461 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17462fi
ac1cb8d3 17463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17464 done
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469ac_lo= ac_hi=
17470fi
ac1cb8d3 17471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17472fi
ac1cb8d3 17473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17474# Binary search between lo and hi bounds.
17475while test "x$ac_lo" != "x$ac_hi"; do
17476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17477 cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483$ac_includes_default
17484int
17485main ()
17486{
17487static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17488test_array [0] = 0
17489
17490 ;
17491 return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext
17495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17496 (eval $ac_compile) 2>conftest.er1
a848cd7e 17497 ac_status=$?
ac1cb8d3
VS
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
a848cd7e
SC
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
6ebeb4c7 17503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 ac_hi=$ac_mid
17516else
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
17520ac_lo=`expr '(' $ac_mid ')' + 1`
17521fi
ac1cb8d3 17522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17523done
17524case $ac_lo in
17525?*) ac_cv_sizeof_long=$ac_lo;;
17526'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17527See \`config.log' for more details." >&5
17528echo "$as_me: error: cannot compute sizeof (long), 77
17529See \`config.log' for more details." >&2;}
17530 { (exit 1); exit 1; }; } ;;
17531esac
17532else
17533 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17534 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17535echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17536 { (exit 1); exit 1; }; }
17537else
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545long longval () { return (long) (sizeof (long)); }
17546unsigned long ulongval () { return (long) (sizeof (long)); }
17547#include <stdio.h>
17548#include <stdlib.h>
17549int
17550main ()
17551{
17552
17553 FILE *f = fopen ("conftest.val", "w");
17554 if (! f)
17555 exit (1);
17556 if (((long) (sizeof (long))) < 0)
17557 {
17558 long i = longval ();
17559 if (i != ((long) (sizeof (long))))
17560 exit (1);
17561 fprintf (f, "%ld\n", i);
17562 }
17563 else
17564 {
17565 unsigned long i = ulongval ();
17566 if (i != ((long) (sizeof (long))))
17567 exit (1);
17568 fprintf (f, "%lu\n", i);
17569 }
17570 exit (ferror (f) || fclose (f) != 0);
17571
17572 ;
17573 return 0;
17574}
17575_ACEOF
17576rm -f conftest$ac_exeext
17577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578 (eval $ac_link) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_sizeof_long=`cat conftest.val`
17588else
17589 echo "$as_me: program exited with status $ac_status" >&5
17590echo "$as_me: failed program was:" >&5
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
17593( exit $ac_status )
17594{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17595See \`config.log' for more details." >&5
17596echo "$as_me: error: cannot compute sizeof (long), 77
17597See \`config.log' for more details." >&2;}
17598 { (exit 1); exit 1; }; }
17599fi
ac1cb8d3 17600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17601fi
17602fi
17603rm -f conftest.val
17604else
17605 ac_cv_sizeof_long=0
17606fi
17607fi
17608echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17609echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17610cat >>confdefs.h <<_ACEOF
17611#define SIZEOF_LONG $ac_cv_sizeof_long
17612_ACEOF
17613
17614
17615echo "$as_me:$LINENO: checking for size_t" >&5
17616echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17617if test "${ac_cv_type_size_t+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619else
17620 cat >conftest.$ac_ext <<_ACEOF
17621/* confdefs.h. */
17622_ACEOF
17623cat confdefs.h >>conftest.$ac_ext
17624cat >>conftest.$ac_ext <<_ACEOF
17625/* end confdefs.h. */
17626$ac_includes_default
17627int
17628main ()
17629{
17630if ((size_t *) 0)
17631 return 0;
17632if (sizeof (size_t))
17633 return 0;
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext
17639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17640 (eval $ac_compile) 2>conftest.er1
a848cd7e 17641 ac_status=$?
ac1cb8d3
VS
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
a848cd7e
SC
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
6ebeb4c7 17647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_type_size_t=yes
17660else
17661 echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
17664ac_cv_type_size_t=no
17665fi
ac1cb8d3 17666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17667fi
17668echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17669echo "${ECHO_T}$ac_cv_type_size_t" >&6
17670
17671echo "$as_me:$LINENO: checking size of size_t" >&5
17672echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17673if test "${ac_cv_sizeof_size_t+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675else
17676 if test "$ac_cv_type_size_t" = yes; then
17677 # The cast to unsigned long works around a bug in the HP C Compiler
17678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17680 # This bug is HP SR number 8606223364.
17681 if test "$cross_compiling" = yes; then
17682 # Depending upon the size, compute the lo and hi bounds.
17683cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690int
17691main ()
17692{
17693static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17694test_array [0] = 0
17695
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext
17701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17702 (eval $ac_compile) 2>conftest.er1
a848cd7e 17703 ac_status=$?
ac1cb8d3
VS
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
a848cd7e
SC
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
6ebeb4c7 17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_lo=0 ac_mid=0
17722 while :; do
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17742 (eval $ac_compile) 2>conftest.er1
a848cd7e 17743 ac_status=$?
ac1cb8d3
VS
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
a848cd7e
SC
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
6ebeb4c7 17749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_hi=$ac_mid; break
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17767 if test $ac_lo -le $ac_mid; then
17768 ac_lo= ac_hi=
17769 break
17770 fi
17771 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17772fi
ac1cb8d3 17773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17774 done
17775else
17776 echo "$as_me: failed program was:" >&5
17777sed 's/^/| /' conftest.$ac_ext >&5
17778
17779cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785$ac_includes_default
17786int
17787main ()
17788{
17789static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17790test_array [0] = 0
17791
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext
17797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17798 (eval $ac_compile) 2>conftest.er1
a848cd7e 17799 ac_status=$?
ac1cb8d3
VS
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
a848cd7e
SC
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
6ebeb4c7 17805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_hi=-1 ac_mid=-1
17818 while :; do
17819 cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
17825$ac_includes_default
17826int
17827main ()
17828{
17829static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17830test_array [0] = 0
17831
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
17837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17838 (eval $ac_compile) 2>conftest.er1
a848cd7e 17839 ac_status=$?
ac1cb8d3
VS
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
a848cd7e
SC
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
6ebeb4c7 17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_lo=$ac_mid; break
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17863 if test $ac_mid -le $ac_hi; then
17864 ac_lo= ac_hi=
17865 break
17866 fi
17867 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17868fi
ac1cb8d3 17869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17870 done
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875ac_lo= ac_hi=
17876fi
ac1cb8d3 17877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17878fi
ac1cb8d3 17879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17880# Binary search between lo and hi bounds.
17881while test "x$ac_lo" != "x$ac_hi"; do
17882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17883 cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
17889$ac_includes_default
17890int
17891main ()
17892{
17893static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17894test_array [0] = 0
17895
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext
17901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17902 (eval $ac_compile) 2>conftest.er1
a848cd7e 17903 ac_status=$?
ac1cb8d3
VS
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
a848cd7e
SC
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
6ebeb4c7 17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_hi=$ac_mid
17922else
17923 echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926ac_lo=`expr '(' $ac_mid ')' + 1`
17927fi
ac1cb8d3 17928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17929done
17930case $ac_lo in
17931?*) ac_cv_sizeof_size_t=$ac_lo;;
17932'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17933See \`config.log' for more details." >&5
17934echo "$as_me: error: cannot compute sizeof (size_t), 77
17935See \`config.log' for more details." >&2;}
17936 { (exit 1); exit 1; }; } ;;
17937esac
17938else
17939 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17940 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17941echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17942 { (exit 1); exit 1; }; }
17943else
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950$ac_includes_default
17951long longval () { return (long) (sizeof (size_t)); }
17952unsigned long ulongval () { return (long) (sizeof (size_t)); }
17953#include <stdio.h>
17954#include <stdlib.h>
17955int
17956main ()
17957{
17958
17959 FILE *f = fopen ("conftest.val", "w");
17960 if (! f)
17961 exit (1);
17962 if (((long) (sizeof (size_t))) < 0)
17963 {
17964 long i = longval ();
17965 if (i != ((long) (sizeof (size_t))))
17966 exit (1);
17967 fprintf (f, "%ld\n", i);
17968 }
17969 else
17970 {
17971 unsigned long i = ulongval ();
17972 if (i != ((long) (sizeof (size_t))))
17973 exit (1);
17974 fprintf (f, "%lu\n", i);
17975 }
17976 exit (ferror (f) || fclose (f) != 0);
17977
17978 ;
17979 return 0;
17980}
17981_ACEOF
17982rm -f conftest$ac_exeext
17983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984 (eval $ac_link) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_sizeof_size_t=`cat conftest.val`
17994else
17995 echo "$as_me: program exited with status $ac_status" >&5
17996echo "$as_me: failed program was:" >&5
17997sed 's/^/| /' conftest.$ac_ext >&5
17998
17999( exit $ac_status )
18000{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18001See \`config.log' for more details." >&5
18002echo "$as_me: error: cannot compute sizeof (size_t), 77
18003See \`config.log' for more details." >&2;}
18004 { (exit 1); exit 1; }; }
18005fi
ac1cb8d3 18006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18007fi
18008fi
18009rm -f conftest.val
18010else
18011 ac_cv_sizeof_size_t=0
18012fi
18013fi
18014echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18015echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18016cat >>confdefs.h <<_ACEOF
18017#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18018_ACEOF
18019
18020
18021
18022case "${host}" in
18023 arm-*-linux* )
18024 echo "$as_me:$LINENO: checking for long long" >&5
18025echo $ECHO_N "checking for long long... $ECHO_C" >&6
18026if test "${ac_cv_type_long_long+set}" = set; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028else
18029 cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035$ac_includes_default
18036int
18037main ()
18038{
18039if ((long long *) 0)
18040 return 0;
18041if (sizeof (long long))
18042 return 0;
18043 ;
18044 return 0;
18045}
18046_ACEOF
18047rm -f conftest.$ac_objext
18048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18049 (eval $ac_compile) 2>conftest.er1
a848cd7e 18050 ac_status=$?
ac1cb8d3
VS
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
a848cd7e
SC
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
6ebeb4c7 18056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 ac_cv_type_long_long=yes
18069else
18070 echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073ac_cv_type_long_long=no
18074fi
ac1cb8d3 18075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18076fi
18077echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18078echo "${ECHO_T}$ac_cv_type_long_long" >&6
18079
18080echo "$as_me:$LINENO: checking size of long long" >&5
18081echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18082if test "${ac_cv_sizeof_long_long+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084else
18085 if test "$ac_cv_type_long_long" = yes; then
18086 # The cast to unsigned long works around a bug in the HP C Compiler
18087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18089 # This bug is HP SR number 8606223364.
18090 if test "$cross_compiling" = yes; then
18091 # Depending upon the size, compute the lo and hi bounds.
18092cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18103test_array [0] = 0
18104
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
6ebeb4c7 18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_lo=0 ac_mid=0
18131 while :; do
18132 cat >conftest.$ac_ext <<_ACEOF
18133/* confdefs.h. */
18134_ACEOF
18135cat confdefs.h >>conftest.$ac_ext
18136cat >>conftest.$ac_ext <<_ACEOF
18137/* end confdefs.h. */
18138$ac_includes_default
18139int
18140main ()
18141{
18142static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18143test_array [0] = 0
18144
18145 ;
18146 return 0;
18147}
18148_ACEOF
18149rm -f conftest.$ac_objext
18150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18151 (eval $ac_compile) 2>conftest.er1
a848cd7e 18152 ac_status=$?
ac1cb8d3
VS
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
a848cd7e
SC
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
6ebeb4c7 18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_hi=$ac_mid; break
18171else
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18176 if test $ac_lo -le $ac_mid; then
18177 ac_lo= ac_hi=
18178 break
18179 fi
18180 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18181fi
ac1cb8d3 18182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18183 done
18184else
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194$ac_includes_default
18195int
18196main ()
18197{
18198static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18199test_array [0] = 0
18200
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205rm -f conftest.$ac_objext
18206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18207 (eval $ac_compile) 2>conftest.er1
a848cd7e 18208 ac_status=$?
ac1cb8d3
VS
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
a848cd7e
SC
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
6ebeb4c7 18214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 ac_hi=-1 ac_mid=-1
18227 while :; do
18228 cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
18234$ac_includes_default
18235int
18236main ()
18237{
18238static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18239test_array [0] = 0
18240
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18247 (eval $ac_compile) 2>conftest.er1
a848cd7e 18248 ac_status=$?
ac1cb8d3
VS
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
a848cd7e
SC
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
6ebeb4c7 18254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_lo=$ac_mid; break
18267else
18268 echo "$as_me: failed program was:" >&5
18269sed 's/^/| /' conftest.$ac_ext >&5
18270
18271ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18272 if test $ac_mid -le $ac_hi; then
18273 ac_lo= ac_hi=
18274 break
18275 fi
18276 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18279 done
18280else
18281 echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
18284ac_lo= ac_hi=
18285fi
ac1cb8d3 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18287fi
ac1cb8d3 18288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18289# Binary search between lo and hi bounds.
18290while test "x$ac_lo" != "x$ac_hi"; do
18291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18292 cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
18298$ac_includes_default
18299int
18300main ()
18301{
18302static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18303test_array [0] = 0
18304
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18311 (eval $ac_compile) 2>conftest.er1
a848cd7e 18312 ac_status=$?
ac1cb8d3
VS
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
a848cd7e
SC
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
6ebeb4c7 18318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_hi=$ac_mid
18331else
18332 echo "$as_me: failed program was:" >&5
18333sed 's/^/| /' conftest.$ac_ext >&5
18334
18335ac_lo=`expr '(' $ac_mid ')' + 1`
18336fi
ac1cb8d3 18337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18338done
18339case $ac_lo in
18340?*) ac_cv_sizeof_long_long=$ac_lo;;
18341'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18342See \`config.log' for more details." >&5
18343echo "$as_me: error: cannot compute sizeof (long long), 77
18344See \`config.log' for more details." >&2;}
18345 { (exit 1); exit 1; }; } ;;
18346esac
18347else
18348 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18349 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18350echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18351 { (exit 1); exit 1; }; }
18352else
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359$ac_includes_default
18360long longval () { return (long) (sizeof (long long)); }
18361unsigned long ulongval () { return (long) (sizeof (long long)); }
18362#include <stdio.h>
18363#include <stdlib.h>
18364int
18365main ()
18366{
18367
18368 FILE *f = fopen ("conftest.val", "w");
18369 if (! f)
18370 exit (1);
18371 if (((long) (sizeof (long long))) < 0)
18372 {
18373 long i = longval ();
18374 if (i != ((long) (sizeof (long long))))
18375 exit (1);
18376 fprintf (f, "%ld\n", i);
18377 }
18378 else
18379 {
18380 unsigned long i = ulongval ();
18381 if (i != ((long) (sizeof (long long))))
18382 exit (1);
18383 fprintf (f, "%lu\n", i);
18384 }
18385 exit (ferror (f) || fclose (f) != 0);
18386
18387 ;
18388 return 0;
18389}
18390_ACEOF
18391rm -f conftest$ac_exeext
18392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18393 (eval $ac_link) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_cv_sizeof_long_long=`cat conftest.val`
18403else
18404 echo "$as_me: program exited with status $ac_status" >&5
18405echo "$as_me: failed program was:" >&5
18406sed 's/^/| /' conftest.$ac_ext >&5
18407
18408( exit $ac_status )
18409{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18410See \`config.log' for more details." >&5
18411echo "$as_me: error: cannot compute sizeof (long long), 77
18412See \`config.log' for more details." >&2;}
18413 { (exit 1); exit 1; }; }
18414fi
ac1cb8d3 18415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18416fi
18417fi
18418rm -f conftest.val
18419else
18420 ac_cv_sizeof_long_long=0
18421fi
18422fi
18423echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18424echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18425cat >>confdefs.h <<_ACEOF
18426#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18427_ACEOF
18428
18429
18430 ;;
18431 *-hp-hpux* )
18432 echo "$as_me:$LINENO: checking for long long" >&5
18433echo $ECHO_N "checking for long long... $ECHO_C" >&6
18434if test "${ac_cv_type_long_long+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436else
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443$ac_includes_default
18444int
18445main ()
18446{
18447if ((long long *) 0)
18448 return 0;
18449if (sizeof (long long))
18450 return 0;
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext
18456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18457 (eval $ac_compile) 2>conftest.er1
a848cd7e 18458 ac_status=$?
ac1cb8d3
VS
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
a848cd7e
SC
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
6ebeb4c7 18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_type_long_long=yes
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_cv_type_long_long=no
18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484fi
18485echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18486echo "${ECHO_T}$ac_cv_type_long_long" >&6
18487
18488echo "$as_me:$LINENO: checking size of long long" >&5
18489echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18490if test "${ac_cv_sizeof_long_long+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18492else
18493 if test "$ac_cv_type_long_long" = yes; then
18494 # The cast to unsigned long works around a bug in the HP C Compiler
18495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18497 # This bug is HP SR number 8606223364.
18498 if test "$cross_compiling" = yes; then
18499 # Depending upon the size, compute the lo and hi bounds.
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506$ac_includes_default
18507int
18508main ()
18509{
18510static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18511test_array [0] = 0
18512
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18519 (eval $ac_compile) 2>conftest.er1
a848cd7e 18520 ac_status=$?
ac1cb8d3
VS
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
a848cd7e
SC
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
6ebeb4c7 18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_lo=0 ac_mid=0
18539 while :; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547int
18548main ()
18549{
18550static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18551test_array [0] = 0
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
6ebeb4c7 18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_hi=$ac_mid; break
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18584 if test $ac_lo -le $ac_mid; then
18585 ac_lo= ac_hi=
18586 break
18587 fi
18588 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18589fi
ac1cb8d3 18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18591 done
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h. */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
18601/* end confdefs.h. */
18602$ac_includes_default
18603int
18604main ()
18605{
18606static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18607test_array [0] = 0
18608
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18615 (eval $ac_compile) 2>conftest.er1
a848cd7e 18616 ac_status=$?
ac1cb8d3
VS
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
a848cd7e
SC
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
6ebeb4c7 18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_hi=-1 ac_mid=-1
18635 while :; do
18636 cat >conftest.$ac_ext <<_ACEOF
18637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
18642$ac_includes_default
18643int
18644main ()
18645{
18646static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18647test_array [0] = 0
18648
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext
18654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18655 (eval $ac_compile) 2>conftest.er1
a848cd7e 18656 ac_status=$?
ac1cb8d3
VS
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
a848cd7e
SC
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
6ebeb4c7 18662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_lo=$ac_mid; break
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18680 if test $ac_mid -le $ac_hi; then
18681 ac_lo= ac_hi=
18682 break
18683 fi
18684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18685fi
ac1cb8d3 18686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18687 done
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692ac_lo= ac_hi=
18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18695fi
ac1cb8d3 18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18697# Binary search between lo and hi bounds.
18698while test "x$ac_lo" != "x$ac_hi"; do
18699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706$ac_includes_default
18707int
18708main ()
18709{
18710static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18711test_array [0] = 0
18712
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18719 (eval $ac_compile) 2>conftest.er1
a848cd7e 18720 ac_status=$?
ac1cb8d3
VS
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
a848cd7e
SC
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
6ebeb4c7 18726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_hi=$ac_mid
18739else
18740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743ac_lo=`expr '(' $ac_mid ')' + 1`
18744fi
ac1cb8d3 18745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18746done
18747case $ac_lo in
18748?*) ac_cv_sizeof_long_long=$ac_lo;;
18749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18750See \`config.log' for more details." >&5
18751echo "$as_me: error: cannot compute sizeof (long long), 77
18752See \`config.log' for more details." >&2;}
18753 { (exit 1); exit 1; }; } ;;
18754esac
18755else
18756 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18759 { (exit 1); exit 1; }; }
18760else
18761 cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767$ac_includes_default
18768long longval () { return (long) (sizeof (long long)); }
18769unsigned long ulongval () { return (long) (sizeof (long long)); }
18770#include <stdio.h>
18771#include <stdlib.h>
18772int
18773main ()
18774{
18775
18776 FILE *f = fopen ("conftest.val", "w");
18777 if (! f)
18778 exit (1);
18779 if (((long) (sizeof (long long))) < 0)
18780 {
18781 long i = longval ();
18782 if (i != ((long) (sizeof (long long))))
18783 exit (1);
18784 fprintf (f, "%ld\n", i);
18785 }
18786 else
18787 {
18788 unsigned long i = ulongval ();
18789 if (i != ((long) (sizeof (long long))))
18790 exit (1);
18791 fprintf (f, "%lu\n", i);
18792 }
18793 exit (ferror (f) || fclose (f) != 0);
18794
18795 ;
18796 return 0;
18797}
18798_ACEOF
18799rm -f conftest$ac_exeext
18800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18801 (eval $ac_link) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_sizeof_long_long=`cat conftest.val`
18811else
18812 echo "$as_me: program exited with status $ac_status" >&5
18813echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816( exit $ac_status )
18817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18818See \`config.log' for more details." >&5
18819echo "$as_me: error: cannot compute sizeof (long long), 77
18820See \`config.log' for more details." >&2;}
18821 { (exit 1); exit 1; }; }
18822fi
ac1cb8d3 18823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18824fi
18825fi
18826rm -f conftest.val
18827else
18828 ac_cv_sizeof_long_long=0
18829fi
18830fi
18831echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18832echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18833cat >>confdefs.h <<_ACEOF
18834#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18835_ACEOF
18836
18837
18838 if test "$ac_cv_sizeof_long_long" != "0"; then
18839 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18840 fi
18841 ;;
18842 * )
18843 echo "$as_me:$LINENO: checking for long long" >&5
18844echo $ECHO_N "checking for long long... $ECHO_C" >&6
18845if test "${ac_cv_type_long_long+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847else
18848 cat >conftest.$ac_ext <<_ACEOF
18849/* confdefs.h. */
18850_ACEOF
18851cat confdefs.h >>conftest.$ac_ext
18852cat >>conftest.$ac_ext <<_ACEOF
18853/* end confdefs.h. */
18854$ac_includes_default
18855int
18856main ()
18857{
18858if ((long long *) 0)
18859 return 0;
18860if (sizeof (long long))
18861 return 0;
18862 ;
18863 return 0;
18864}
18865_ACEOF
18866rm -f conftest.$ac_objext
18867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18868 (eval $ac_compile) 2>conftest.er1
a848cd7e 18869 ac_status=$?
ac1cb8d3
VS
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
a848cd7e
SC
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
6ebeb4c7 18875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_type_long_long=yes
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
18892ac_cv_type_long_long=no
18893fi
ac1cb8d3 18894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18895fi
18896echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18897echo "${ECHO_T}$ac_cv_type_long_long" >&6
18898
18899echo "$as_me:$LINENO: checking size of long long" >&5
18900echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18901if test "${ac_cv_sizeof_long_long+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 if test "$ac_cv_type_long_long" = yes; then
18905 # The cast to unsigned long works around a bug in the HP C Compiler
18906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18908 # This bug is HP SR number 8606223364.
18909 if test "$cross_compiling" = yes; then
18910 # Depending upon the size, compute the lo and hi bounds.
18911cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917$ac_includes_default
18918int
18919main ()
18920{
18921static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18922test_array [0] = 0
18923
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
6ebeb4c7 18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_lo=0 ac_mid=0
18950 while :; do
18951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957$ac_includes_default
18958int
18959main ()
18960{
18961static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18962test_array [0] = 0
18963
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext
18969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18970 (eval $ac_compile) 2>conftest.er1
a848cd7e 18971 ac_status=$?
ac1cb8d3
VS
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
a848cd7e
SC
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
6ebeb4c7 18977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_hi=$ac_mid; break
18990else
18991 echo "$as_me: failed program was:" >&5
18992sed 's/^/| /' conftest.$ac_ext >&5
18993
18994ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18995 if test $ac_lo -le $ac_mid; then
18996 ac_lo= ac_hi=
18997 break
18998 fi
18999 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19000fi
ac1cb8d3 19001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19002 done
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007cat >conftest.$ac_ext <<_ACEOF
19008/* confdefs.h. */
19009_ACEOF
19010cat confdefs.h >>conftest.$ac_ext
19011cat >>conftest.$ac_ext <<_ACEOF
19012/* end confdefs.h. */
19013$ac_includes_default
19014int
19015main ()
19016{
19017static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19018test_array [0] = 0
19019
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19026 (eval $ac_compile) 2>conftest.er1
a848cd7e 19027 ac_status=$?
ac1cb8d3
VS
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
a848cd7e
SC
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
6ebeb4c7 19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_hi=-1 ac_mid=-1
19046 while :; do
19047 cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053$ac_includes_default
19054int
19055main ()
19056{
19057static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19058test_array [0] = 0
19059
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064rm -f conftest.$ac_objext
19065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19066 (eval $ac_compile) 2>conftest.er1
a848cd7e 19067 ac_status=$?
ac1cb8d3
VS
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
a848cd7e
SC
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
6ebeb4c7 19073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_lo=$ac_mid; break
19086else
19087 echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
19090ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19091 if test $ac_mid -le $ac_hi; then
19092 ac_lo= ac_hi=
19093 break
19094 fi
19095 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19096fi
ac1cb8d3 19097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19098 done
19099else
19100 echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103ac_lo= ac_hi=
19104fi
ac1cb8d3 19105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19106fi
ac1cb8d3 19107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19108# Binary search between lo and hi bounds.
19109while test "x$ac_lo" != "x$ac_hi"; do
19110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19111 cat >conftest.$ac_ext <<_ACEOF
19112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117$ac_includes_default
19118int
19119main ()
19120{
19121static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19122test_array [0] = 0
19123
19124 ;
19125 return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext
19129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19130 (eval $ac_compile) 2>conftest.er1
a848cd7e 19131 ac_status=$?
ac1cb8d3
VS
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
a848cd7e
SC
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
6ebeb4c7 19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_hi=$ac_mid
19150else
19151 echo "$as_me: failed program was:" >&5
19152sed 's/^/| /' conftest.$ac_ext >&5
19153
19154ac_lo=`expr '(' $ac_mid ')' + 1`
19155fi
ac1cb8d3 19156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19157done
19158case $ac_lo in
19159?*) ac_cv_sizeof_long_long=$ac_lo;;
19160'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19161See \`config.log' for more details." >&5
19162echo "$as_me: error: cannot compute sizeof (long long), 77
19163See \`config.log' for more details." >&2;}
19164 { (exit 1); exit 1; }; } ;;
19165esac
19166else
19167 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19168 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19169echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19170 { (exit 1); exit 1; }; }
19171else
19172 cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178$ac_includes_default
19179long longval () { return (long) (sizeof (long long)); }
19180unsigned long ulongval () { return (long) (sizeof (long long)); }
19181#include <stdio.h>
19182#include <stdlib.h>
19183int
19184main ()
19185{
19186
19187 FILE *f = fopen ("conftest.val", "w");
19188 if (! f)
19189 exit (1);
19190 if (((long) (sizeof (long long))) < 0)
19191 {
19192 long i = longval ();
19193 if (i != ((long) (sizeof (long long))))
19194 exit (1);
19195 fprintf (f, "%ld\n", i);
19196 }
19197 else
19198 {
19199 unsigned long i = ulongval ();
19200 if (i != ((long) (sizeof (long long))))
19201 exit (1);
19202 fprintf (f, "%lu\n", i);
19203 }
19204 exit (ferror (f) || fclose (f) != 0);
19205
19206 ;
19207 return 0;
19208}
19209_ACEOF
19210rm -f conftest$ac_exeext
19211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19212 (eval $ac_link) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_sizeof_long_long=`cat conftest.val`
19222else
19223 echo "$as_me: program exited with status $ac_status" >&5
19224echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227( exit $ac_status )
19228{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19229See \`config.log' for more details." >&5
19230echo "$as_me: error: cannot compute sizeof (long long), 77
19231See \`config.log' for more details." >&2;}
19232 { (exit 1); exit 1; }; }
19233fi
ac1cb8d3 19234rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19235fi
19236fi
19237rm -f conftest.val
19238else
19239 ac_cv_sizeof_long_long=0
19240fi
19241fi
19242echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19243echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19244cat >>confdefs.h <<_ACEOF
19245#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19246_ACEOF
19247
19248
19249esac
19250
238ecede
MW
19251echo "$as_me:$LINENO: checking for wchar_t" >&5
19252echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19253if test "${ac_cv_type_wchar_t+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255else
19256 cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262
83d8eb47
MW
19263 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19264 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19265 # error "fake wchar_t"
19266 #endif
19267 #ifdef HAVE_WCHAR_H
19268 # ifdef __CYGWIN__
19269 # include <stddef.h>
19270 # endif
19271 # include <wchar.h>
19272 #endif
19273 #ifdef HAVE_STDLIB_H
19274 # include <stdlib.h>
19275 #endif
19276 #include <stdio.h>
19277
19278
19279
19280int
19281main ()
19282{
19283if ((wchar_t *) 0)
19284 return 0;
19285if (sizeof (wchar_t))
19286 return 0;
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19293 (eval $ac_compile) 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
6ebeb4c7 19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_type_wchar_t=yes
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317ac_cv_type_wchar_t=no
19318fi
19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320fi
19321echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19322echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19323
a848cd7e
SC
19324echo "$as_me:$LINENO: checking size of wchar_t" >&5
19325echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19326if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
238ecede
MW
19329 if test "$ac_cv_type_wchar_t" = yes; then
19330 # The cast to unsigned long works around a bug in the HP C Compiler
19331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19333 # This bug is HP SR number 8606223364.
19334 if test "$cross_compiling" = yes; then
19335 # Depending upon the size, compute the lo and hi bounds.
19336cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
19342
83d8eb47
MW
19343 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19344 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19345 # error "fake wchar_t"
19346 #endif
19347 #ifdef HAVE_WCHAR_H
19348 # ifdef __CYGWIN__
19349 # include <stddef.h>
19350 # endif
19351 # include <wchar.h>
19352 #endif
19353 #ifdef HAVE_STDLIB_H
19354 # include <stdlib.h>
19355 #endif
19356 #include <stdio.h>
19357
19358
19359
19360int
19361main ()
19362{
19363static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19364test_array [0] = 0
19365
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
6ebeb4c7 19379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_lo=0 ac_mid=0
19392 while :; do
19393 cat >conftest.$ac_ext <<_ACEOF
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399
83d8eb47
MW
19400 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19401 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19402 # error "fake wchar_t"
19403 #endif
19404 #ifdef HAVE_WCHAR_H
19405 # ifdef __CYGWIN__
19406 # include <stddef.h>
19407 # endif
19408 # include <wchar.h>
19409 #endif
19410 #ifdef HAVE_STDLIB_H
19411 # include <stdlib.h>
19412 #endif
19413 #include <stdio.h>
19414
19415
19416
19417int
19418main ()
19419{
19420static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19421test_array [0] = 0
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
6ebeb4c7 19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_hi=$ac_mid; break
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453ac_lo=`expr $ac_mid + 1`
19454 if test $ac_lo -le $ac_mid; then
19455 ac_lo= ac_hi=
19456 break
19457 fi
19458 ac_mid=`expr 2 '*' $ac_mid + 1`
19459fi
19460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19461 done
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472
83d8eb47
MW
19473 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19474 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19475 # error "fake wchar_t"
19476 #endif
19477 #ifdef HAVE_WCHAR_H
19478 # ifdef __CYGWIN__
19479 # include <stddef.h>
19480 # endif
19481 # include <wchar.h>
19482 #endif
19483 #ifdef HAVE_STDLIB_H
19484 # include <stdlib.h>
19485 #endif
19486 #include <stdio.h>
19487
19488
19489
19490int
19491main ()
19492{
19493static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19494test_array [0] = 0
19495
19496 ;
19497 return 0;
19498}
19499_ACEOF
19500rm -f conftest.$ac_objext
19501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19502 (eval $ac_compile) 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } &&
6ebeb4c7 19509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_hi=-1 ac_mid=-1
19522 while :; do
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529
83d8eb47
MW
19530 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19531 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19532 # error "fake wchar_t"
19533 #endif
19534 #ifdef HAVE_WCHAR_H
19535 # ifdef __CYGWIN__
19536 # include <stddef.h>
19537 # endif
19538 # include <wchar.h>
19539 #endif
19540 #ifdef HAVE_STDLIB_H
19541 # include <stdlib.h>
19542 #endif
19543 #include <stdio.h>
19544
19545
19546
19547int
19548main ()
19549{
19550static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19551test_array [0] = 0
19552
19553 ;
19554 return 0;
19555}
19556_ACEOF
19557rm -f conftest.$ac_objext
19558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19559 (eval $ac_compile) 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
6ebeb4c7 19566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_lo=$ac_mid; break
19579else
19580 echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583ac_hi=`expr '(' $ac_mid ')' - 1`
19584 if test $ac_mid -le $ac_hi; then
19585 ac_lo= ac_hi=
19586 break
19587 fi
19588 ac_mid=`expr 2 '*' $ac_mid`
19589fi
19590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591 done
19592else
19593 echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596ac_lo= ac_hi=
19597fi
19598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599fi
19600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601# Binary search between lo and hi bounds.
19602while test "x$ac_lo" != "x$ac_hi"; do
19603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19604 cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610
83d8eb47
MW
19611 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19612 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19613 # error "fake wchar_t"
19614 #endif
19615 #ifdef HAVE_WCHAR_H
19616 # ifdef __CYGWIN__
19617 # include <stddef.h>
19618 # endif
19619 # include <wchar.h>
19620 #endif
19621 #ifdef HAVE_STDLIB_H
19622 # include <stdlib.h>
19623 #endif
19624 #include <stdio.h>
a848cd7e 19625
a848cd7e 19626
a848cd7e 19627
238ecede
MW
19628int
19629main ()
19630{
19631static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19632test_array [0] = 0
a848cd7e 19633
238ecede
MW
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext
19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
6ebeb4c7 19647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_hi=$ac_mid
19660else
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664ac_lo=`expr '(' $ac_mid ')' + 1`
19665fi
19666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19667done
19668case $ac_lo in
19669?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19670'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19671See \`config.log' for more details." >&5
19672echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19673See \`config.log' for more details." >&2;}
19674 { (exit 1); exit 1; }; } ;;
19675esac
19676else
19677 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19678 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19679echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19680 { (exit 1); exit 1; }; }
a848cd7e
SC
19681else
19682 cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h. */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h. */
19688
83d8eb47
MW
19689 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19690 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19691 # error "fake wchar_t"
19692 #endif
19693 #ifdef HAVE_WCHAR_H
19694 # ifdef __CYGWIN__
19695 # include <stddef.h>
19696 # endif
19697 # include <wchar.h>
19698 #endif
19699 #ifdef HAVE_STDLIB_H
19700 # include <stdlib.h>
19701 #endif
19702 #include <stdio.h>
19703
19704
19705
19706long longval () { return (long) (sizeof (wchar_t)); }
19707unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19708#include <stdio.h>
19709#include <stdlib.h>
19710int
19711main ()
19712{
a848cd7e 19713
238ecede
MW
19714 FILE *f = fopen ("conftest.val", "w");
19715 if (! f)
19716 exit (1);
19717 if (((long) (sizeof (wchar_t))) < 0)
19718 {
19719 long i = longval ();
19720 if (i != ((long) (sizeof (wchar_t))))
19721 exit (1);
19722 fprintf (f, "%ld\n", i);
19723 }
19724 else
19725 {
19726 unsigned long i = ulongval ();
19727 if (i != ((long) (sizeof (wchar_t))))
19728 exit (1);
19729 fprintf (f, "%lu\n", i);
19730 }
19731 exit (ferror (f) || fclose (f) != 0);
19732
19733 ;
19734 return 0;
19735}
a848cd7e
SC
19736_ACEOF
19737rm -f conftest$ac_exeext
19738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739 (eval $ac_link) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
238ecede 19748 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19749else
19750 echo "$as_me: program exited with status $ac_status" >&5
19751echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754( exit $ac_status )
238ecede
MW
19755{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19756See \`config.log' for more details." >&5
19757echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19758See \`config.log' for more details." >&2;}
19759 { (exit 1); exit 1; }; }
a848cd7e 19760fi
ac1cb8d3 19761rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19762fi
a848cd7e 19763fi
238ecede
MW
19764rm -f conftest.val
19765else
19766 ac_cv_sizeof_wchar_t=0
19767fi
19768fi
19769echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19770echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19771cat >>confdefs.h <<_ACEOF
238ecede 19772#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19773_ACEOF
19774
19775
47a7e797
MW
19776if test "$ac_cv_sizeof_wchar_t" != "0"; then
19777 wxUSE_WCHAR_T=yes
19778else
19779 wxUSE_WCHAR_T=no
19780fi
238ecede 19781
ba3d13e1
VZ
19782echo "$as_me:$LINENO: checking for va_copy" >&5
19783echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19784if test "${wx_cv_func_va_copy+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786else
19787
19788 cat >conftest.$ac_ext <<_ACEOF
19789
19790 #include <stdarg.h>
19791 void foo(char *f, ...)
19792 {
19793 va_list ap1, ap2;
19794 va_start(ap1, f);
19795 va_copy(ap2, ap1);
19796 va_end(ap2);
19797 va_end(ap1);
19798 }
5886b072
VZ
19799 int main()
19800 {
b902e639
VZ
19801 foo("hi", 17);
19802 return 0;
5886b072 19803 }
ba3d13e1
VZ
19804_ACEOF
19805rm -f conftest.$ac_objext conftest$ac_exeext
19806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
6ebeb4c7 19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest$ac_exeext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 wx_cv_func_va_copy=yes
19827else
19828 echo "$as_me: failed program was:" >&5
19829sed 's/^/| /' conftest.$ac_ext >&5
19830
19831wx_cv_func_va_copy=no
19832
19833fi
19834rm -f conftest.err conftest.$ac_objext \
19835 conftest$ac_exeext conftest.$ac_ext
19836
19837
19838fi
19839echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19840echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19841
19842if test $wx_cv_func_va_copy = "yes"; then
19843 cat >>confdefs.h <<\_ACEOF
19844#define HAVE_VA_COPY 1
19845_ACEOF
19846
19847else
19848 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19849echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19850if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852else
19853
19854 if test "$cross_compiling" = yes; then
19855 wx_cv_type_va_list_lvalue=yes
19856
19857else
19858 cat >conftest.$ac_ext <<_ACEOF
19859
19860 #include <stdarg.h>
19861 int foo(char *f, ...)
19862 {
19863 va_list ap1, ap2;
19864 va_start(ap1, f);
19865 ap2 = ap1;
19866 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19867 return 1;
19868 va_end(ap2);
19869 va_end(ap1);
19870 return 0;
19871 }
19872 int main()
19873 {
19874 return foo("hi", 17);
19875 }
19876_ACEOF
19877rm -f conftest$ac_exeext
19878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879 (eval $ac_link) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 wx_cv_type_va_list_lvalue=yes
19889else
19890 echo "$as_me: program exited with status $ac_status" >&5
19891echo "$as_me: failed program was:" >&5
19892sed 's/^/| /' conftest.$ac_ext >&5
19893
19894( exit $ac_status )
19895wx_cv_type_va_list_lvalue=no
19896fi
19897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19898fi
19899
19900
19901fi
19902echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19903echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19904
19905 if test $wx_cv_type_va_list_lvalue != "yes"; then
19906 cat >>confdefs.h <<\_ACEOF
19907#define VA_LIST_IS_ARRAY 1
19908_ACEOF
19909
19910 fi
19911fi
19912
a848cd7e
SC
19913# Check whether --enable-largefile or --disable-largefile was given.
19914if test "${enable_largefile+set}" = set; then
19915 enableval="$enable_largefile"
19916
19917fi;
19918if test "$enable_largefile" != no; then
19919 wx_largefile=no
19920
19921 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19922echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19923if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926
19927 cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933#define _FILE_OFFSET_BITS 64
19934 #include <sys/types.h>
19935int
19936main ()
19937{
19938typedef struct {
19939 unsigned int field: sizeof(off_t) == 8;
19940} wxlf;
19941
19942 ;
19943 return 0;
19944}
19945_ACEOF
19946rm -f conftest.$ac_objext
19947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19948 (eval $ac_compile) 2>conftest.er1
a848cd7e 19949 ac_status=$?
ac1cb8d3
VS
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
a848cd7e
SC
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
6ebeb4c7 19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_sys_file_offset_bits=64
19968else
19969 echo "$as_me: failed program was:" >&5
19970sed 's/^/| /' conftest.$ac_ext >&5
19971
19972ac_cv_sys_file_offset_bits=no
19973fi
ac1cb8d3 19974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19975
19976
19977fi
19978echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19979echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19980
19981 if test "$ac_cv_sys_file_offset_bits" != no; then
19982 wx_largefile=yes
19983 cat >>confdefs.h <<_ACEOF
19984#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19985_ACEOF
19986
19987 fi
19988
19989 if test "x$wx_largefile" != "xyes"; then
19990
19991 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19992echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19993if test "${ac_cv_sys_large_files+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995else
19996
19997 cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003#define _LARGE_FILES 1
20004 #include <sys/types.h>
20005int
20006main ()
20007{
20008typedef struct {
20009 unsigned int field: sizeof(off_t) == 8;
20010} wxlf;
20011
20012 ;
20013 return 0;
20014}
20015_ACEOF
20016rm -f conftest.$ac_objext
20017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20018 (eval $ac_compile) 2>conftest.er1
a848cd7e 20019 ac_status=$?
ac1cb8d3
VS
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
a848cd7e
SC
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
6ebeb4c7 20025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_sys_large_files=1
20038else
20039 echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042ac_cv_sys_large_files=no
20043fi
ac1cb8d3 20044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20045
20046
20047fi
20048echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20049echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20050
20051 if test "$ac_cv_sys_large_files" != no; then
20052 wx_largefile=yes
20053 cat >>confdefs.h <<_ACEOF
20054#define _LARGE_FILES $ac_cv_sys_large_files
20055_ACEOF
20056
20057 fi
20058
20059 fi
20060
20061 echo "$as_me:$LINENO: checking if large file support is available" >&5
20062echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20063 if test "x$wx_largefile" = "xyes"; then
20064 cat >>confdefs.h <<\_ACEOF
20065#define HAVE_LARGEFILE_SUPPORT 1
20066_ACEOF
20067
20068 fi
20069 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20070echo "${ECHO_T}$wx_largefile" >&6
20071fi
20072
5b674b9d
DE
20073
20074if test "x$wx_largefile" = "xyes"; then
20075 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20076 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20077 else
20078 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20079 fi
20080 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20081echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20082if test "${ac_cv_sys_largefile_source+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 while :; do
20086 ac_cv_sys_largefile_source=no
20087 cat >conftest.$ac_ext <<_ACEOF
20088/* confdefs.h. */
20089_ACEOF
20090cat confdefs.h >>conftest.$ac_ext
20091cat >>conftest.$ac_ext <<_ACEOF
20092/* end confdefs.h. */
20093#include <stdio.h>
20094int
20095main ()
20096{
20097return !fseeko;
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>conftest.er1
20105 ac_status=$?
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
6ebeb4c7 20111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 break
20124else
20125 echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
20128fi
20129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130 cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h. */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */
20136#define _LARGEFILE_SOURCE 1
20137#include <stdio.h>
20138int
20139main ()
20140{
20141return !fseeko;
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext
20147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148 (eval $ac_compile) 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
6ebeb4c7 20155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_sys_largefile_source=1; break
20168else
20169 echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172fi
20173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174 break
20175done
20176fi
20177echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20178echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20179if test "$ac_cv_sys_largefile_source" != no; then
20180
20181cat >>confdefs.h <<_ACEOF
20182#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20183_ACEOF
20184
20185fi
20186rm -f conftest*
20187
20188# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20189# in glibc 2.1.3, but that breaks too many other things.
20190# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20191echo "$as_me:$LINENO: checking for fseeko" >&5
20192echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20193if test "${ac_cv_func_fseeko+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195else
20196 cat >conftest.$ac_ext <<_ACEOF
20197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
20202#include <stdio.h>
20203int
20204main ()
20205{
20206return fseeko && fseeko (stdin, 0, 0);
20207 ;
20208 return 0;
20209}
20210_ACEOF
20211rm -f conftest.$ac_objext conftest$ac_exeext
20212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20213 (eval $ac_link) 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
6ebeb4c7 20220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest$ac_exeext'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_cv_func_fseeko=yes
20233else
20234 echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237ac_cv_func_fseeko=no
20238fi
20239rm -f conftest.err conftest.$ac_objext \
20240 conftest$ac_exeext conftest.$ac_ext
20241fi
20242echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20243echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20244if test $ac_cv_func_fseeko = yes; then
20245
20246cat >>confdefs.h <<\_ACEOF
20247#define HAVE_FSEEKO 1
20248_ACEOF
20249
20250fi
20251
5b674b9d
DE
20252 if test "$ac_cv_sys_largefile_source" != no; then
20253 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20254 fi
20255 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20256fi
20257
20258echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20259echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20260if test "${ac_cv_c_bigendian+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262else
20263 ac_cv_c_bigendian=unknown
20264# See if sys/param.h defines the BYTE_ORDER macro.
20265cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271#include <sys/types.h>
20272#include <sys/param.h>
20273int
20274main ()
20275{
20276
20277#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20278 bogus endian macros
20279#endif
20280 ;
20281 return 0;
20282}
20283_ACEOF
20284rm -f conftest.$ac_objext
20285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20286 (eval $ac_compile) 2>conftest.er1
a848cd7e 20287 ac_status=$?
ac1cb8d3
VS
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
a848cd7e
SC
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
6ebeb4c7 20293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 # It does; now see whether it defined to BIG_ENDIAN or not.
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312#include <sys/types.h>
20313#include <sys/param.h>
20314int
20315main ()
20316{
20317
20318#if BYTE_ORDER != BIG_ENDIAN
20319 not big endian
20320#endif
20321 ;
20322 return 0;
20323}
20324_ACEOF
20325rm -f conftest.$ac_objext
20326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20327 (eval $ac_compile) 2>conftest.er1
a848cd7e 20328 ac_status=$?
ac1cb8d3
VS
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
a848cd7e
SC
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
6ebeb4c7 20334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; } &&
20340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_c_bigendian=yes
20347else
20348 echo "$as_me: failed program was:" >&5
20349sed 's/^/| /' conftest.$ac_ext >&5
20350
20351ac_cv_c_bigendian=no
20352fi
ac1cb8d3 20353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358fi
ac1cb8d3 20359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20360if test $ac_cv_c_bigendian = unknown; then
20361if test "$cross_compiling" = yes; then
20362 ac_cv_c_bigendian=unknown
20363else
20364 cat >conftest.$ac_ext <<_ACEOF
20365/* confdefs.h. */
20366_ACEOF
20367cat confdefs.h >>conftest.$ac_ext
20368cat >>conftest.$ac_ext <<_ACEOF
20369/* end confdefs.h. */
20370main () {
20371 /* Are we little or big endian? From Harbison&Steele. */
20372 union
20373 {
20374 long l;
20375 char c[sizeof (long)];
20376 } u;
20377 u.l = 1;
20378 exit (u.c[sizeof (long) - 1] == 1);
20379}
20380_ACEOF
20381rm -f conftest$ac_exeext
20382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383 (eval $ac_link) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_c_bigendian=no
20393else
20394 echo "$as_me: program exited with status $ac_status" >&5
20395echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398( exit $ac_status )
20399ac_cv_c_bigendian=yes
20400fi
ac1cb8d3 20401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20402fi
20403fi
20404fi
20405echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20406echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20407if test $ac_cv_c_bigendian = unknown; then
20408 { 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
20409echo "$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;}
20410fi
20411if test $ac_cv_c_bigendian = yes; then
20412 cat >>confdefs.h <<\_ACEOF
20413#define WORDS_BIGENDIAN 1
20414_ACEOF
20415
20416fi
20417
20418
20419ac_ext=cc
20420ac_cpp='$CXXCPP $CPPFLAGS'
20421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20424echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20425echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20426if test -z "$CXXCPP"; then
20427 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 # Double quotes because CXXCPP needs to be expanded
20431 for CXXCPP in "$CXX -E" "/lib/cpp"
20432 do
20433 ac_preproc_ok=false
20434for ac_cxx_preproc_warn_flag in '' yes
20435do
20436 # Use a header file that comes with gcc, so configuring glibc
20437 # with a fresh cross-compiler works.
20438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20439 # <limits.h> exists even on freestanding compilers.
20440 # On the NeXT, cc -E runs the code through the compiler's parser,
20441 # not just through cpp. "Syntax error" is here to catch this case.
20442 cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448#ifdef __STDC__
20449# include <limits.h>
20450#else
20451# include <assert.h>
20452#endif
ac1cb8d3 20453 Syntax error
a848cd7e
SC
20454_ACEOF
20455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } >/dev/null; then
20463 if test -s conftest.err; then
20464 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20465 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20466 else
20467 ac_cpp_err=
20468 fi
20469else
20470 ac_cpp_err=yes
20471fi
20472if test -z "$ac_cpp_err"; then
20473 :
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 # Broken: fails on valid input.
20479continue
20480fi
20481rm -f conftest.err conftest.$ac_ext
20482
20483 # OK, works on sane cases. Now check whether non-existent headers
20484 # can be detected and how.
20485 cat >conftest.$ac_ext <<_ACEOF
20486/* confdefs.h. */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h. */
20491#include <ac_nonexistent.h>
20492_ACEOF
20493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } >/dev/null; then
20501 if test -s conftest.err; then
20502 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20504 else
20505 ac_cpp_err=
20506 fi
20507else
20508 ac_cpp_err=yes
20509fi
20510if test -z "$ac_cpp_err"; then
20511 # Broken: success on invalid input.
20512continue
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 # Passes both tests.
20518ac_preproc_ok=:
20519break
20520fi
20521rm -f conftest.err conftest.$ac_ext
20522
20523done
20524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20525rm -f conftest.err conftest.$ac_ext
20526if $ac_preproc_ok; then
20527 break
20528fi
20529
20530 done
20531 ac_cv_prog_CXXCPP=$CXXCPP
20532
20533fi
20534 CXXCPP=$ac_cv_prog_CXXCPP
20535else
20536 ac_cv_prog_CXXCPP=$CXXCPP
20537fi
20538echo "$as_me:$LINENO: result: $CXXCPP" >&5
20539echo "${ECHO_T}$CXXCPP" >&6
20540ac_preproc_ok=false
20541for ac_cxx_preproc_warn_flag in '' yes
20542do
20543 # Use a header file that comes with gcc, so configuring glibc
20544 # with a fresh cross-compiler works.
20545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20546 # <limits.h> exists even on freestanding compilers.
20547 # On the NeXT, cc -E runs the code through the compiler's parser,
20548 # not just through cpp. "Syntax error" is here to catch this case.
20549 cat >conftest.$ac_ext <<_ACEOF
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555#ifdef __STDC__
20556# include <limits.h>
20557#else
20558# include <assert.h>
20559#endif
ac1cb8d3 20560 Syntax error
a848cd7e
SC
20561_ACEOF
20562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } >/dev/null; then
20570 if test -s conftest.err; then
20571 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20572 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20573 else
20574 ac_cpp_err=
20575 fi
20576else
20577 ac_cpp_err=yes
20578fi
20579if test -z "$ac_cpp_err"; then
20580 :
20581else
20582 echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585 # Broken: fails on valid input.
20586continue
20587fi
20588rm -f conftest.err conftest.$ac_ext
20589
20590 # OK, works on sane cases. Now check whether non-existent headers
20591 # can be detected and how.
20592 cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h. */
20598#include <ac_nonexistent.h>
20599_ACEOF
20600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } >/dev/null; then
20608 if test -s conftest.err; then
20609 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20611 else
20612 ac_cpp_err=
20613 fi
20614else
20615 ac_cpp_err=yes
20616fi
20617if test -z "$ac_cpp_err"; then
20618 # Broken: success on invalid input.
20619continue
20620else
20621 echo "$as_me: failed program was:" >&5
20622sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 # Passes both tests.
20625ac_preproc_ok=:
20626break
20627fi
20628rm -f conftest.err conftest.$ac_ext
20629
20630done
20631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20632rm -f conftest.err conftest.$ac_ext
20633if $ac_preproc_ok; then
20634 :
20635else
20636 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20637See \`config.log' for more details." >&5
20638echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20639See \`config.log' for more details." >&2;}
20640 { (exit 1); exit 1; }; }
20641fi
20642
20643ac_ext=cc
20644ac_cpp='$CXXCPP $CPPFLAGS'
20645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20648
20649
20650
20651
20652
20653 ac_ext=cc
20654ac_cpp='$CXXCPP $CPPFLAGS'
20655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658
20659
20660
20661for ac_header in iostream
20662do
20663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20664if eval "test \"\${$as_ac_Header+set}\" = set"; then
20665 echo "$as_me:$LINENO: checking for $ac_header" >&5
20666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20667if eval "test \"\${$as_ac_Header+set}\" = set"; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669fi
20670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20672else
20673 # Is the header compilable?
20674echo "$as_me:$LINENO: checking $ac_header usability" >&5
20675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20676cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h. */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h. */
20682$ac_includes_default
20683#include <$ac_header>
20684_ACEOF
20685rm -f conftest.$ac_objext
20686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20687 (eval $ac_compile) 2>conftest.er1
a848cd7e 20688 ac_status=$?
ac1cb8d3
VS
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
a848cd7e
SC
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
6ebeb4c7 20694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_header_compiler=yes
20707else
20708 echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
20711ac_header_compiler=no
20712fi
ac1cb8d3 20713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20715echo "${ECHO_T}$ac_header_compiler" >&6
20716
20717# Is the header present?
20718echo "$as_me:$LINENO: checking $ac_header presence" >&5
20719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20720cat >conftest.$ac_ext <<_ACEOF
20721/* confdefs.h. */
20722_ACEOF
20723cat confdefs.h >>conftest.$ac_ext
20724cat >>conftest.$ac_ext <<_ACEOF
20725/* end confdefs.h. */
20726#include <$ac_header>
20727_ACEOF
20728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } >/dev/null; then
20736 if test -s conftest.err; then
20737 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20738 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20739 else
20740 ac_cpp_err=
20741 fi
20742else
20743 ac_cpp_err=yes
20744fi
20745if test -z "$ac_cpp_err"; then
20746 ac_header_preproc=yes
20747else
20748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_header_preproc=no
20752fi
20753rm -f conftest.err conftest.$ac_ext
20754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20755echo "${ECHO_T}$ac_header_preproc" >&6
20756
20757# So? What about this header?
ac1cb8d3
VS
20758case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20759 yes:no: )
a848cd7e
SC
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20764 ac_header_preproc=yes
a848cd7e 20765 ;;
ac1cb8d3 20766 no:yes:* )
a848cd7e
SC
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20779 (
20780 cat <<\_ASBOX
ac1cb8d3
VS
20781## ----------------------------------------- ##
20782## Report this to wx-dev@lists.wxwidgets.org ##
20783## ----------------------------------------- ##
a848cd7e
SC
20784_ASBOX
20785 ) |
20786 sed "s/^/$as_me: WARNING: /" >&2
20787 ;;
20788esac
20789echo "$as_me:$LINENO: checking for $ac_header" >&5
20790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20791if eval "test \"\${$as_ac_Header+set}\" = set"; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793else
ac1cb8d3 20794 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20795fi
20796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20798
20799fi
20800if test `eval echo '${'$as_ac_Header'}'` = yes; then
20801 cat >>confdefs.h <<_ACEOF
20802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20803_ACEOF
20804
20805fi
20806
20807done
20808
20809
20810 if test "$ac_cv_header_iostream" = "yes" ; then
20811 :
20812 else
20813 cat >>confdefs.h <<\_ACEOF
20814#define wxUSE_IOSTREAMH 1
20815_ACEOF
20816
20817 fi
20818
20819 ac_ext=c
20820ac_cpp='$CPP $CPPFLAGS'
20821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826
20827
20828 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20829echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20830if test "${wx_cv_cpp_bool+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833
20834
20835
20836 ac_ext=cc
20837ac_cpp='$CXXCPP $CPPFLAGS'
20838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841
20842
20843 cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849
20850
20851int
20852main ()
20853{
20854
20855 bool b = true;
20856
20857 return 0;
20858
20859 ;
20860 return 0;
20861}
20862_ACEOF
20863rm -f conftest.$ac_objext
20864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20865 (eval $ac_compile) 2>conftest.er1
a848cd7e 20866 ac_status=$?
ac1cb8d3
VS
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
a848cd7e
SC
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
6ebeb4c7 20872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884
20885 wx_cv_cpp_bool=yes
20886
20887else
20888 echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
20890
20891
20892 wx_cv_cpp_bool=no
20893
20894
20895fi
ac1cb8d3 20896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20897
20898 ac_ext=c
20899ac_cpp='$CPP $CPPFLAGS'
20900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904
20905fi
20906echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20907echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20908
20909 if test "$wx_cv_cpp_bool" = "yes"; then
20910 cat >>confdefs.h <<\_ACEOF
20911#define HAVE_BOOL 1
20912_ACEOF
20913
20914 fi
20915
20916
20917
20918 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20919echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20920if test "${wx_cv_explicit+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20922else
20923
20924
20925
20926 ac_ext=cc
20927ac_cpp='$CXXCPP $CPPFLAGS'
20928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20931
20932
20933 cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939
20940 class Foo { public: explicit Foo(int) {} };
20941
20942int
20943main ()
20944{
20945
20946 return 0;
20947
20948 ;
20949 return 0;
20950}
20951_ACEOF
20952rm -f conftest.$ac_objext
20953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20954 (eval $ac_compile) 2>conftest.er1
a848cd7e 20955 ac_status=$?
ac1cb8d3
VS
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
a848cd7e
SC
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
6ebeb4c7 20961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; } &&
20967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969 (eval $ac_try) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973
20974 cat >conftest.$ac_ext <<_ACEOF
20975/* confdefs.h. */
20976_ACEOF
20977cat confdefs.h >>conftest.$ac_ext
20978cat >>conftest.$ac_ext <<_ACEOF
20979/* end confdefs.h. */
20980
20981 class Foo { public: explicit Foo(int) {} };
20982 static void TakeFoo(const Foo& foo) { }
20983
20984int
20985main ()
20986{
20987
20988 TakeFoo(17);
20989 return 0;
20990
20991 ;
20992 return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20997 (eval $ac_compile) 2>conftest.er1
a848cd7e 20998 ac_status=$?
ac1cb8d3
VS
20999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
a848cd7e
SC
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
6ebeb4c7 21004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 wx_cv_explicit=no
21017else
21018 echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021wx_cv_explicit=yes
21022
21023fi
ac1cb8d3 21024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21025
21026else
21027 echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030wx_cv_explicit=no
21031
21032fi
ac1cb8d3 21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21034
21035 ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042fi
21043echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21044echo "${ECHO_T}$wx_cv_explicit" >&6
21045
21046 if test "$wx_cv_explicit" = "yes"; then
21047 cat >>confdefs.h <<\_ACEOF
21048#define HAVE_EXPLICIT 1
21049_ACEOF
21050
21051 fi
21052
21053
21054echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21055echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21056if test "${ac_cv_cxx_const_cast+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058else
21059
21060
21061 ac_ext=cc
21062ac_cpp='$CXXCPP $CPPFLAGS'
21063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21066
21067 cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
21073
21074int
21075main ()
21076{
21077int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21078 ;
21079 return 0;
21080}
21081_ACEOF
21082rm -f conftest.$ac_objext
21083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21084 (eval $ac_compile) 2>conftest.er1
a848cd7e 21085 ac_status=$?
ac1cb8d3
VS
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
a848cd7e
SC
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
6ebeb4c7 21091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 ac_cv_cxx_const_cast=yes
21104else
21105 echo "$as_me: failed program was:" >&5
21106sed 's/^/| /' conftest.$ac_ext >&5
21107
21108ac_cv_cxx_const_cast=no
21109fi
ac1cb8d3 21110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21111 ac_ext=c
21112ac_cpp='$CPP $CPPFLAGS'
21113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115ac_compiler_gnu=$ac_cv_c_compiler_gnu
21116
21117
21118fi
21119echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21120echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21121if test "$ac_cv_cxx_const_cast" = yes; then
21122
21123cat >>confdefs.h <<\_ACEOF
21124#define HAVE_CONST_CAST
21125_ACEOF
21126
21127fi
21128
7714864e
RL
21129echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21130echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21131if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133else
21134
21135
21136 ac_ext=cc
21137ac_cpp='$CXXCPP $CPPFLAGS'
21138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
21142 cat >conftest.$ac_ext <<_ACEOF
21143/* confdefs.h. */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
21147/* end confdefs.h. */
21148#include <typeinfo>
21149class Base { public : Base () {} virtual void f () = 0;};
21150class Derived : public Base { public : Derived () {} virtual void f () {} };
21151class Unrelated { public : Unrelated () {} };
21152int g (Unrelated&) { return 0; }
21153int
21154main ()
21155{
21156
21157Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21158 ;
21159 return 0;
21160}
21161_ACEOF
21162rm -f conftest.$ac_objext
21163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
6ebeb4c7 21171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_cxx_reinterpret_cast=yes
21184else
21185 echo "$as_me: failed program was:" >&5
21186sed 's/^/| /' conftest.$ac_ext >&5
21187
21188ac_cv_cxx_reinterpret_cast=no
21189fi
21190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21191 ac_ext=c
21192ac_cpp='$CPP $CPPFLAGS'
21193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197
21198fi
21199echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21200echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21201if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21202
21203cat >>confdefs.h <<\_ACEOF
21204#define HAVE_REINTERPRET_CAST
21205_ACEOF
21206
21207fi
21208
a848cd7e
SC
21209echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21210echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21211if test "${ac_cv_cxx_static_cast+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213else
21214
21215
21216 ac_ext=cc
21217ac_cpp='$CXXCPP $CPPFLAGS'
21218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
21222 cat >conftest.$ac_ext <<_ACEOF
21223/* confdefs.h. */
21224_ACEOF
21225cat confdefs.h >>conftest.$ac_ext
21226cat >>conftest.$ac_ext <<_ACEOF
21227/* end confdefs.h. */
21228#include <typeinfo>
21229class Base { public : Base () {} virtual void f () = 0; };
21230class Derived : public Base { public : Derived () {} virtual void f () {} };
21231int g (Derived&) { return 0; }
21232int
21233main ()
21234{
21235
21236Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21243 (eval $ac_compile) 2>conftest.er1
a848cd7e 21244 ac_status=$?
ac1cb8d3
VS
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
a848cd7e
SC
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
6ebeb4c7 21250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
21256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
21262 ac_cv_cxx_static_cast=yes
21263else
21264 echo "$as_me: failed program was:" >&5
21265sed 's/^/| /' conftest.$ac_ext >&5
21266
21267ac_cv_cxx_static_cast=no
21268fi
ac1cb8d3 21269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21270 ac_ext=c
21271ac_cpp='$CPP $CPPFLAGS'
21272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274ac_compiler_gnu=$ac_cv_c_compiler_gnu
21275
21276
21277fi
21278echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21279echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21280if test "$ac_cv_cxx_static_cast" = yes; then
21281
21282cat >>confdefs.h <<\_ACEOF
21283#define HAVE_STATIC_CAST
21284_ACEOF
21285
21286fi
21287
21288
3c28b7cb
MW
21289if test "x$SUNCXX" = xyes; then
21290 CXXFLAGS="$CXXFLAGS -features=tmplife"
21291fi
21292
f56c22b4 21293if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21294 ac_ext=cc
21295ac_cpp='$CXXCPP $CPPFLAGS'
21296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21299
21300
f56c22b4
MW
21301 if test "$wxUSE_UNICODE" = "yes"; then
21302 std_string="std::wstring"
21303 char_type="wchar_t"
21304 else
21305 std_string="std::string"
21306 char_type="char"
21307 fi
21308
21309 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21310echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21311 cat >conftest.$ac_ext <<_ACEOF
21312/* confdefs.h. */
21313_ACEOF
21314cat confdefs.h >>conftest.$ac_ext
21315cat >>conftest.$ac_ext <<_ACEOF
21316/* end confdefs.h. */
21317#include <string>
a848cd7e
SC
21318int
21319main ()
21320{
f56c22b4 21321$std_string foo;
a848cd7e
SC
21322 ;
21323 return 0;
21324}
21325_ACEOF
21326rm -f conftest.$ac_objext
21327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21328 (eval $ac_compile) 2>conftest.er1
a848cd7e 21329 ac_status=$?
ac1cb8d3
VS
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
a848cd7e
SC
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
6ebeb4c7 21335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 echo "$as_me:$LINENO: result: yes" >&5
21348echo "${ECHO_T}yes" >&6
0a08f02a
MB
21349 cat >>confdefs.h <<\_ACEOF
21350#define HAVE_STD_WSTRING 1
21351_ACEOF
21352
a848cd7e
SC
21353else
21354 echo "$as_me: failed program was:" >&5
21355sed 's/^/| /' conftest.$ac_ext >&5
21356
21357echo "$as_me:$LINENO: result: no" >&5
21358echo "${ECHO_T}no" >&6
f56c22b4
MW
21359 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21360echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21361 cat >conftest.$ac_ext <<_ACEOF
21362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
21367
21368 #ifdef HAVE_WCHAR_H
21369 # ifdef __CYGWIN__
21370 # include <stddef.h>
21371 # endif
21372 # include <wchar.h>
21373 #endif
21374 #ifdef HAVE_STDLIB_H
21375 # include <stdlib.h>
21376 #endif
21377 #include <stdio.h>
21378 #include <string>
21379
21380int
21381main ()
21382{
f56c22b4
MW
21383std::basic_string<$char_type> foo;
21384 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21385 ;
21386 return 0;
21387}
21388_ACEOF
21389rm -f conftest.$ac_objext
21390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391 (eval $ac_compile) 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
6ebeb4c7 21398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; } &&
21404 { ac_try='test -s conftest.$ac_objext'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; }; then
21410 echo "$as_me:$LINENO: result: yes" >&5
21411echo "${ECHO_T}yes" >&6
21412else
21413 echo "$as_me: failed program was:" >&5
21414sed 's/^/| /' conftest.$ac_ext >&5
21415
21416echo "$as_me:$LINENO: result: no" >&5
21417echo "${ECHO_T}no" >&6
f56c22b4 21418 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21419 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21420echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21421 { (exit 1); exit 1; }; }
21422 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21423 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21424echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21425 { (exit 1); exit 1; }; }
f56c22b4
MW
21426 else
21427 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21428echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21429 wxUSE_STD_STRING=no
21430 fi
21431
0a08f02a 21432
a848cd7e 21433fi
ac1cb8d3 21434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21435
0a08f02a
MB
21436fi
21437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21438
21439 ac_ext=c
21440ac_cpp='$CPP $CPPFLAGS'
21441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21443ac_compiler_gnu=$ac_cv_c_compiler_gnu
21444
21445fi
21446
21447if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21448 ac_ext=cc
21449ac_cpp='$CXXCPP $CPPFLAGS'
21450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21453
21454
21455 echo "$as_me:$LINENO: checking for std::istream" >&5
21456echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21457if test "${ac_cv_type_std__istream+set}" = set; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459else
21460 cat >conftest.$ac_ext <<_ACEOF
21461/* confdefs.h. */
21462_ACEOF
21463cat confdefs.h >>conftest.$ac_ext
21464cat >>conftest.$ac_ext <<_ACEOF
21465/* end confdefs.h. */
21466#include <iostream>
21467
21468int
21469main ()
21470{
21471if ((std::istream *) 0)
21472 return 0;
21473if (sizeof (std::istream))
21474 return 0;
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
6ebeb4c7 21488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest.$ac_objext'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_cv_type_std__istream=yes
21501else
21502 echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505ac_cv_type_std__istream=no
21506fi
21507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21508fi
21509echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21510echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21511if test $ac_cv_type_std__istream = yes; then
21512
21513cat >>confdefs.h <<_ACEOF
21514#define HAVE_STD__ISTREAM 1
21515_ACEOF
21516
21517
21518else
21519 wxUSE_STD_IOSTREAM=no
21520fi
21521echo "$as_me:$LINENO: checking for std::ostream" >&5
21522echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21523if test "${ac_cv_type_std__ostream+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525else
21526 cat >conftest.$ac_ext <<_ACEOF
21527/* confdefs.h. */
21528_ACEOF
21529cat confdefs.h >>conftest.$ac_ext
21530cat >>conftest.$ac_ext <<_ACEOF
21531/* end confdefs.h. */
21532#include <iostream>
21533
21534int
21535main ()
21536{
21537if ((std::ostream *) 0)
21538 return 0;
21539if (sizeof (std::ostream))
21540 return 0;
21541 ;
21542 return 0;
21543}
21544_ACEOF
21545rm -f conftest.$ac_objext
21546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547 (eval $ac_compile) 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
6ebeb4c7 21554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; } &&
21560 { ac_try='test -s conftest.$ac_objext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_type_std__ostream=yes
21567else
21568 echo "$as_me: failed program was:" >&5
21569sed 's/^/| /' conftest.$ac_ext >&5
21570
21571ac_cv_type_std__ostream=no
21572fi
21573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21576echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21577if test $ac_cv_type_std__ostream = yes; then
21578
21579cat >>confdefs.h <<_ACEOF
21580#define HAVE_STD__OSTREAM 1
21581_ACEOF
21582
21583
21584else
21585 wxUSE_STD_IOSTREAM=no
21586fi
21587
21588
21589 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21590 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21591 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21592echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21593 { (exit 1); exit 1; }; }
21594 else
21595 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21596echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21597 fi
f56c22b4
MW
21598 fi
21599
21600 ac_ext=c
21601ac_cpp='$CPP $CPPFLAGS'
21602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21604ac_compiler_gnu=$ac_cv_c_compiler_gnu
21605
21606fi
21607
21608if test "$wxUSE_STL" = "yes"; then
21609 ac_ext=cc
21610ac_cpp='$CXXCPP $CPPFLAGS'
21611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21614
21615
21616 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21617echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21618 cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
21624#include <string>
0a08f02a
MB
21625 #include <functional>
21626 #include <algorithm>
21627 #include <vector>
21628 #include <list>
a848cd7e
SC
21629int
21630main ()
21631{
0a08f02a
MB
21632std::vector<int> moo;
21633 std::list<int> foo;
21634 std::vector<int>::iterator it =
21635 std::find_if(moo.begin(), moo.end(),
21636 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21637 ;
21638 return 0;
21639}
21640_ACEOF
21641rm -f conftest.$ac_objext
21642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21643 (eval $ac_compile) 2>conftest.er1
a848cd7e 21644 ac_status=$?
ac1cb8d3
VS
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
a848cd7e
SC
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
6ebeb4c7 21650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; }; then
21662 echo "$as_me:$LINENO: result: yes" >&5
21663echo "${ECHO_T}yes" >&6
a848cd7e
SC
21664else
21665 echo "$as_me: failed program was:" >&5
21666sed 's/^/| /' conftest.$ac_ext >&5
21667
21668echo "$as_me:$LINENO: result: no" >&5
21669echo "${ECHO_T}no" >&6
0a08f02a
MB
21670 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21671echo "$as_me: error: Basic STL functionality missing" >&2;}
21672 { (exit 1); exit 1; }; }
a848cd7e 21673fi
ac1cb8d3 21674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21675
21676 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21677echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21678 cat >conftest.$ac_ext <<_ACEOF
21679/* confdefs.h. */
21680_ACEOF
21681cat confdefs.h >>conftest.$ac_ext
21682cat >>conftest.$ac_ext <<_ACEOF
21683/* end confdefs.h. */
21684#include <string>
21685int
21686main ()
21687{
21688std::string foo, bar;
21689 foo.compare(bar);
21690 foo.compare(1, 1, bar);
21691 foo.compare(1, 1, bar, 1, 1);
21692 foo.compare("");
21693 foo.compare(1, 1, "");
21694 foo.compare(1, 1, "", 2);
21695 ;
21696 return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21701 (eval $ac_compile) 2>conftest.er1
a848cd7e 21702 ac_status=$?
ac1cb8d3
VS
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
a848cd7e
SC
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
6ebeb4c7 21708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; }; then
21720 echo "$as_me:$LINENO: result: yes" >&5
21721echo "${ECHO_T}yes" >&6
21722 cat >>confdefs.h <<\_ACEOF
21723#define HAVE_STD_STRING_COMPARE 1
21724_ACEOF
21725
21726else
21727 echo "$as_me: failed program was:" >&5
21728sed 's/^/| /' conftest.$ac_ext >&5
21729
21730echo "$as_me:$LINENO: result: no" >&5
21731echo "${ECHO_T}no" >&6
21732fi
ac1cb8d3 21733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21734
21735 if test "${ac_cv_header_hash_map+set}" = set; then
21736 echo "$as_me:$LINENO: checking for hash_map" >&5
21737echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21738if test "${ac_cv_header_hash_map+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740fi
21741echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21742echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21743else
21744 # Is the header compilable?
21745echo "$as_me:$LINENO: checking hash_map usability" >&5
21746echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21747cat >conftest.$ac_ext <<_ACEOF
21748/* confdefs.h. */
21749_ACEOF
21750cat confdefs.h >>conftest.$ac_ext
21751cat >>conftest.$ac_ext <<_ACEOF
21752/* end confdefs.h. */
21753$ac_includes_default
21754#include <hash_map>
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21758 (eval $ac_compile) 2>conftest.er1
bdcade0a 21759 ac_status=$?
ac1cb8d3
VS
21760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
bdcade0a
MB
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
6ebeb4c7 21765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; } &&
21771 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; }; then
21777 ac_header_compiler=yes
21778else
21779 echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
21781
21782ac_header_compiler=no
21783fi
ac1cb8d3 21784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21786echo "${ECHO_T}$ac_header_compiler" >&6
21787
21788# Is the header present?
21789echo "$as_me:$LINENO: checking hash_map presence" >&5
21790echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21791cat >conftest.$ac_ext <<_ACEOF
21792/* confdefs.h. */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h. */
21797#include <hash_map>
21798_ACEOF
21799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } >/dev/null; then
21807 if test -s conftest.err; then
21808 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21809 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21810 else
21811 ac_cpp_err=
21812 fi
21813else
21814 ac_cpp_err=yes
21815fi
21816if test -z "$ac_cpp_err"; then
21817 ac_header_preproc=yes
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 ac_header_preproc=no
21823fi
21824rm -f conftest.err conftest.$ac_ext
21825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21826echo "${ECHO_T}$ac_header_preproc" >&6
21827
21828# So? What about this header?
ac1cb8d3
VS
21829case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21830 yes:no: )
bdcade0a
MB
21831 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21832echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21833 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21834echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21835 ac_header_preproc=yes
bdcade0a 21836 ;;
ac1cb8d3 21837 no:yes:* )
bdcade0a
MB
21838 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21839echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21840 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21841echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21843echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21844 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21845echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21846 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21847echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21848 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21849echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21850 (
21851 cat <<\_ASBOX
ac1cb8d3
VS
21852## ----------------------------------------- ##
21853## Report this to wx-dev@lists.wxwidgets.org ##
21854## ----------------------------------------- ##
bdcade0a
MB
21855_ASBOX
21856 ) |
21857 sed "s/^/$as_me: WARNING: /" >&2
21858 ;;
21859esac
21860echo "$as_me:$LINENO: checking for hash_map" >&5
21861echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21862if test "${ac_cv_header_hash_map+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865 ac_cv_header_hash_map=$ac_header_preproc
21866fi
21867echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21868echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21869
21870fi
21871if test $ac_cv_header_hash_map = yes; then
21872 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21873echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21874 cat >conftest.$ac_ext <<_ACEOF
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
21880#include <hash_map>
21881 #include <hash_set>
21882int
21883main ()
21884{
21885std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21886 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21887 ;
21888 return 0;
21889}
21890_ACEOF
21891rm -f conftest.$ac_objext
21892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21893 (eval $ac_compile) 2>conftest.er1
bdcade0a 21894 ac_status=$?
ac1cb8d3
VS
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
bdcade0a
MB
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
6ebeb4c7 21900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 echo "$as_me:$LINENO: result: yes" >&5
21913echo "${ECHO_T}yes" >&6
21914 cat >>confdefs.h <<\_ACEOF
21915#define HAVE_HASH_MAP 1
21916_ACEOF
21917
21918 cat >>confdefs.h <<\_ACEOF
21919#define HAVE_STD_HASH_MAP 1
21920_ACEOF
21921
21922else
21923 echo "$as_me: failed program was:" >&5
21924sed 's/^/| /' conftest.$ac_ext >&5
21925
21926echo "$as_me:$LINENO: result: no" >&5
21927echo "${ECHO_T}no" >&6
21928fi
ac1cb8d3 21929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21930
21931fi
21932
21933
21934
21935 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21936 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21937echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21938if test "${ac_cv_header_ext_hash_map+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940fi
21941echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21942echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21943else
21944 # Is the header compilable?
21945echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21946echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21947cat >conftest.$ac_ext <<_ACEOF
21948/* confdefs.h. */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h. */
21953$ac_includes_default
21954#include <ext/hash_map>
21955_ACEOF
21956rm -f conftest.$ac_objext
21957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21958 (eval $ac_compile) 2>conftest.er1
bdcade0a 21959 ac_status=$?
ac1cb8d3
VS
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
bdcade0a
MB
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
6ebeb4c7 21965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ac_header_compiler=yes
21978else
21979 echo "$as_me: failed program was:" >&5
21980sed 's/^/| /' conftest.$ac_ext >&5
21981
21982ac_header_compiler=no
21983fi
ac1cb8d3 21984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21986echo "${ECHO_T}$ac_header_compiler" >&6
21987
21988# Is the header present?
21989echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21990echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21991cat >conftest.$ac_ext <<_ACEOF
21992/* confdefs.h. */
21993_ACEOF
21994cat confdefs.h >>conftest.$ac_ext
21995cat >>conftest.$ac_ext <<_ACEOF
21996/* end confdefs.h. */
21997#include <ext/hash_map>
21998_ACEOF
21999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22001 ac_status=$?
22002 grep -v '^ *+' conftest.er1 >conftest.err
22003 rm -f conftest.er1
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } >/dev/null; then
22007 if test -s conftest.err; then
22008 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22009 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22010 else
22011 ac_cpp_err=
22012 fi
22013else
22014 ac_cpp_err=yes
22015fi
22016if test -z "$ac_cpp_err"; then
22017 ac_header_preproc=yes
22018else
22019 echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 ac_header_preproc=no
22023fi
22024rm -f conftest.err conftest.$ac_ext
22025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22026echo "${ECHO_T}$ac_header_preproc" >&6
22027
22028# So? What about this header?
ac1cb8d3
VS
22029case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22030 yes:no: )
bdcade0a
MB
22031 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22032echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22033 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22034echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22035 ac_header_preproc=yes
bdcade0a 22036 ;;
ac1cb8d3 22037 no:yes:* )
bdcade0a
MB
22038 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22039echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22040 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22041echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22043echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22045echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22046 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22047echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22048 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22049echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22050 (
22051 cat <<\_ASBOX
ac1cb8d3
VS
22052## ----------------------------------------- ##
22053## Report this to wx-dev@lists.wxwidgets.org ##
22054## ----------------------------------------- ##
bdcade0a
MB
22055_ASBOX
22056 ) |
22057 sed "s/^/$as_me: WARNING: /" >&2
22058 ;;
22059esac
22060echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22061echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22062if test "${ac_cv_header_ext_hash_map+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22064else
22065 ac_cv_header_ext_hash_map=$ac_header_preproc
22066fi
22067echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22068echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22069
22070fi
22071if test $ac_cv_header_ext_hash_map = yes; then
22072 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22073echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22074 cat >conftest.$ac_ext <<_ACEOF
22075/* confdefs.h. */
22076_ACEOF
22077cat confdefs.h >>conftest.$ac_ext
22078cat >>conftest.$ac_ext <<_ACEOF
22079/* end confdefs.h. */
22080#include <ext/hash_map>
22081 #include <ext/hash_set>
22082int
22083main ()
22084{
22085__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22086 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext
22092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22093 (eval $ac_compile) 2>conftest.er1
bdcade0a 22094 ac_status=$?
ac1cb8d3
VS
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
bdcade0a
MB
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
6ebeb4c7 22100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 echo "$as_me:$LINENO: result: yes" >&5
22113echo "${ECHO_T}yes" >&6
22114 cat >>confdefs.h <<\_ACEOF
22115#define HAVE_EXT_HASH_MAP 1
22116_ACEOF
22117
22118 cat >>confdefs.h <<\_ACEOF
22119#define HAVE_GNU_CXX_HASH_MAP 1
22120_ACEOF
22121
22122else
22123 echo "$as_me: failed program was:" >&5
22124sed 's/^/| /' conftest.$ac_ext >&5
22125
22126echo "$as_me:$LINENO: result: no" >&5
22127echo "${ECHO_T}no" >&6
22128fi
ac1cb8d3 22129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22130
22131fi
22132
22133
a848cd7e
SC
22134
22135 ac_ext=c
22136ac_cpp='$CPP $CPPFLAGS'
22137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139ac_compiler_gnu=$ac_cv_c_compiler_gnu
22140
22141fi
22142
22143
22144SEARCH_INCLUDE="\
22145 /usr/local/include \
22146 \
22147 /usr/Motif-2.1/include \
22148 /usr/Motif-1.2/include \
22149 /usr/include/Motif1.2 \
22150 /opt/xpm/include/X11 \
22151 /opt/GBxpm/include/ \
22152 /opt/GBxpm/X11/include/ \
22153 \
22154 /usr/dt/include \
22155 /usr/openwin/include \
22156 \
22157 /usr/include/Xm \
22158 \
22159 /usr/X11R6/include \
22160 /usr/X11R6.4/include \
22161 /usr/X11R5/include \
22162 /usr/X11R4/include \
22163 \
22164 /usr/include/X11R6 \
22165 /usr/include/X11R5 \
22166 /usr/include/X11R4 \
22167 \
22168 /usr/local/X11R6/include \
22169 /usr/local/X11R5/include \
22170 /usr/local/X11R4/include \
22171 \
22172 /usr/local/include/X11R6 \
22173 /usr/local/include/X11R5 \
22174 /usr/local/include/X11R4 \
22175 \
22176 /usr/X11/include \
22177 /usr/include/X11 \
22178 /usr/local/X11/include \
22179 /usr/local/include/X11 \
22180 \
22181 /usr/X386/include \
22182 /usr/x386/include \
22183 /usr/XFree86/include/X11 \
22184 \
22185 X:/XFree86/include \
22186 X:/XFree86/include/X11 \
22187 \
22188 /usr/include/gtk \
22189 /usr/local/include/gtk \
22190 /usr/include/glib \
22191 /usr/local/include/glib \
22192 \
22193 /usr/include/qt \
22194 /usr/local/include/qt \
22195 \
22196 /usr/local/arm/3.3.2/include \
22197 \
22198 /usr/include/windows \
22199 /usr/include/wine \
22200 /usr/local/include/wine \
22201 \
22202 /usr/unsupported/include \
22203 /usr/athena/include \
22204 /usr/local/x11r5/include \
22205 /usr/lpp/Xamples/include \
22206 \
22207 /usr/openwin/share/include"
22208
07158944 22209SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22210
3eca31dc
MW
22211if test "$build" != "$host" -a "$GCC" = yes; then
22212 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22213 cross_root=`dirname $cross_root`
22214 cross_root=`dirname $cross_root`
22215
22216 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22217 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22218
22219 if test -z "$PKG_CONFIG_PATH"; then
22220 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22221 export PKG_CONFIG_PATH
22222 fi
22223
22224 if test -z "$x_includes" -o "$x_includes" = NONE; then
22225
22226ac_find_includes=
22227for ac_dir in $SEARCH_INCLUDE /usr/include;
22228 do
22229 if test -f "$ac_dir/X11/Intrinsic.h"; then
22230 ac_find_includes=$ac_dir
22231 break
22232 fi
22233 done
22234
22235 x_includes=$ac_find_includes
22236 fi
22237 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22238
22239ac_find_libraries=
22240for ac_dir in $SEARCH_LIB /usr/lib;
22241 do
22242 for ac_extension in a so sl dylib dll.a; do
22243 if test -f "$ac_dir/libXt.$ac_extension"; then
22244 ac_find_libraries=$ac_dir
22245 break 2
22246 fi
22247 done
22248 done
22249
22250 x_libraries=$ac_find_libraries
22251 fi
22252 fi
22253fi
22254
a848cd7e
SC
22255
22256cat >confcache <<\_ACEOF
22257# This file is a shell script that caches the results of configure
22258# tests run on this system so they can be shared between configure
22259# scripts and configure runs, see configure's option --config-cache.
22260# It is not useful on other systems. If it contains results you don't
22261# want to keep, you may remove or edit it.
22262#
22263# config.status only pays attention to the cache file if you give it
22264# the --recheck option to rerun configure.
22265#
22266# `ac_cv_env_foo' variables (set or unset) will be overridden when
22267# loading this file, other *unset* `ac_cv_foo' will be assigned the
22268# following values.
22269
22270_ACEOF
22271
22272# The following way of writing the cache mishandles newlines in values,
22273# but we know of no workaround that is simple, portable, and efficient.
22274# So, don't put newlines in cache variables' values.
22275# Ultrix sh set writes to stderr and can't be redirected directly,
22276# and sets the high bit in the cache file unless we assign to the vars.
22277{
22278 (set) 2>&1 |
22279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22280 *ac_space=\ *)
22281 # `set' does not quote correctly, so add quotes (double-quote
22282 # substitution turns \\\\ into \\, and sed turns \\ into \).
22283 sed -n \
ac1cb8d3
VS
22284 "s/'/'\\\\''/g;
22285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22286 ;;
22287 *)
22288 # `set' quotes correctly as required by POSIX, so do not add quotes.
22289 sed -n \
ac1cb8d3 22290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22291 ;;
22292 esac;
22293} |
22294 sed '
22295 t clear
22296 : clear
22297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22298 t end
22299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22300 : end' >>confcache
22301if diff $cache_file confcache >/dev/null 2>&1; then :; else
22302 if test -w $cache_file; then
22303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22304 cat confcache >$cache_file
22305 else
22306 echo "not updating unwritable cache $cache_file"
22307 fi
22308fi
22309rm -f confcache
22310
22311if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22312 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22313echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22314if test "${wx_cv_lib_glibc21+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22316else
22317
22318 cat >conftest.$ac_ext <<_ACEOF
22319/* confdefs.h. */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h. */
22324#include <features.h>
22325int
22326main ()
22327{
22328
22329 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22330 #error not glibc2.1
22331 #endif
22332
22333 ;
22334 return 0;
22335}
22336_ACEOF
22337rm -f conftest.$ac_objext
22338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22339 (eval $ac_compile) 2>conftest.er1
a848cd7e 22340 ac_status=$?
ac1cb8d3
VS
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
a848cd7e
SC
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } &&
6ebeb4c7 22346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; } &&
22352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358
22359 wx_cv_lib_glibc21=yes
22360
22361else
22362 echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
22365
22366 wx_cv_lib_glibc21=no
22367
22368
22369fi
ac1cb8d3 22370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22371
22372fi
22373echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22374echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22375 if test "$wx_cv_lib_glibc21" = "yes"; then
22376 cat >>confdefs.h <<\_ACEOF
22377#define wxHAVE_GLIBC2 1
22378_ACEOF
22379
22380 fi
22381fi
22382
22383if test "x$wx_cv_lib_glibc21" = "xyes"; then
22384 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22385 cat >>confdefs.h <<\_ACEOF
22386#define _GNU_SOURCE 1
22387_ACEOF
22388
22389 fi
22390fi
22391
22392
22393
22394if test "$wxUSE_REGEX" != "no"; then
22395 cat >>confdefs.h <<\_ACEOF
22396#define wxUSE_REGEX 1
22397_ACEOF
22398
22399
22400 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22401 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22402echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22403 wxUSE_REGEX=builtin
22404 fi
22405
22406 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22407 if test "${ac_cv_header_regex_h+set}" = set; then
22408 echo "$as_me:$LINENO: checking for regex.h" >&5
22409echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22410if test "${ac_cv_header_regex_h+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412fi
22413echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22414echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22415else
22416 # Is the header compilable?
22417echo "$as_me:$LINENO: checking regex.h usability" >&5
22418echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22419cat >conftest.$ac_ext <<_ACEOF
22420/* confdefs.h. */
22421_ACEOF
22422cat confdefs.h >>conftest.$ac_ext
22423cat >>conftest.$ac_ext <<_ACEOF
22424/* end confdefs.h. */
22425$ac_includes_default
22426#include <regex.h>
22427_ACEOF
22428rm -f conftest.$ac_objext
22429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22430 (eval $ac_compile) 2>conftest.er1
a848cd7e 22431 ac_status=$?
ac1cb8d3
VS
22432 grep -v '^ *+' conftest.er1 >conftest.err
22433 rm -f conftest.er1
22434 cat conftest.err >&5
a848cd7e
SC
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } &&
6ebeb4c7 22437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 ac_header_compiler=yes
22450else
22451 echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454ac_header_compiler=no
22455fi
ac1cb8d3 22456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22458echo "${ECHO_T}$ac_header_compiler" >&6
22459
22460# Is the header present?
22461echo "$as_me:$LINENO: checking regex.h presence" >&5
22462echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22463cat >conftest.$ac_ext <<_ACEOF
22464/* confdefs.h. */
22465_ACEOF
22466cat confdefs.h >>conftest.$ac_ext
22467cat >>conftest.$ac_ext <<_ACEOF
22468/* end confdefs.h. */
22469#include <regex.h>
22470_ACEOF
22471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } >/dev/null; then
22479 if test -s conftest.err; then
22480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22482 else
22483 ac_cpp_err=
22484 fi
22485else
22486 ac_cpp_err=yes
22487fi
22488if test -z "$ac_cpp_err"; then
22489 ac_header_preproc=yes
22490else
22491 echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 ac_header_preproc=no
22495fi
22496rm -f conftest.err conftest.$ac_ext
22497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22498echo "${ECHO_T}$ac_header_preproc" >&6
22499
22500# So? What about this header?
ac1cb8d3
VS
22501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22502 yes:no: )
a848cd7e
SC
22503 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22504echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22505 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22506echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22507 ac_header_preproc=yes
a848cd7e 22508 ;;
ac1cb8d3 22509 no:yes:* )
a848cd7e
SC
22510 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22511echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22512 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22513echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22515echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22517echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22518 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22519echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22520 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22521echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22522 (
22523 cat <<\_ASBOX
ac1cb8d3
VS
22524## ----------------------------------------- ##
22525## Report this to wx-dev@lists.wxwidgets.org ##
22526## ----------------------------------------- ##
a848cd7e
SC
22527_ASBOX
22528 ) |
22529 sed "s/^/$as_me: WARNING: /" >&2
22530 ;;
22531esac
22532echo "$as_me:$LINENO: checking for regex.h" >&5
22533echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22534if test "${ac_cv_header_regex_h+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22536else
22537 ac_cv_header_regex_h=$ac_header_preproc
22538fi
22539echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22540echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22541
22542fi
22543if test $ac_cv_header_regex_h = yes; then
22544
22545for ac_func in regcomp
22546do
22547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22548echo "$as_me:$LINENO: checking for $ac_func" >&5
22549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22550if eval "test \"\${$as_ac_var+set}\" = set"; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552else
22553 cat >conftest.$ac_ext <<_ACEOF
22554/* confdefs.h. */
22555_ACEOF
22556cat confdefs.h >>conftest.$ac_ext
22557cat >>conftest.$ac_ext <<_ACEOF
22558/* end confdefs.h. */
ac1cb8d3
VS
22559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22561#define $ac_func innocuous_$ac_func
22562
a848cd7e
SC
22563/* System header to define __stub macros and hopefully few prototypes,
22564 which can conflict with char $ac_func (); below.
22565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22566 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22567
a848cd7e
SC
22568#ifdef __STDC__
22569# include <limits.h>
22570#else
22571# include <assert.h>
22572#endif
ac1cb8d3
VS
22573
22574#undef $ac_func
22575
a848cd7e
SC
22576/* Override any gcc2 internal prototype to avoid an error. */
22577#ifdef __cplusplus
22578extern "C"
22579{
22580#endif
22581/* We use char because int might match the return type of a gcc2
22582 builtin and then its argument prototype would still apply. */
22583char $ac_func ();
22584/* The GNU C library defines this for functions which it implements
22585 to always fail with ENOSYS. Some functions are actually named
22586 something starting with __ and the normal name is an alias. */
22587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22588choke me
22589#else
22590char (*f) () = $ac_func;
22591#endif
22592#ifdef __cplusplus
22593}
22594#endif
22595
22596int
22597main ()
22598{
22599return f != $ac_func;
22600 ;
22601 return 0;
22602}
22603_ACEOF
22604rm -f conftest.$ac_objext conftest$ac_exeext
22605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22606 (eval $ac_link) 2>conftest.er1
a848cd7e 22607 ac_status=$?
ac1cb8d3
VS
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
a848cd7e
SC
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } &&
6ebeb4c7 22613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; } &&
22619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 eval "$as_ac_var=yes"
22626else
22627 echo "$as_me: failed program was:" >&5
22628sed 's/^/| /' conftest.$ac_ext >&5
22629
22630eval "$as_ac_var=no"
22631fi
ac1cb8d3
VS
22632rm -f conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22634fi
22635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22637if test `eval echo '${'$as_ac_var'}'` = yes; then
22638 cat >>confdefs.h <<_ACEOF
22639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22640_ACEOF
22641
22642fi
22643done
22644
22645fi
22646
22647
22648
22649 if test "x$ac_cv_func_regcomp" != "xyes"; then
22650 if test "$wxUSE_REGEX" = "sys" ; then
22651 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22652echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22653 { (exit 1); exit 1; }; }
22654 else
22655 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22656echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22657 wxUSE_REGEX=builtin
22658 fi
22659 else
22660 wxUSE_REGEX=sys
22661 cat >>confdefs.h <<\_ACEOF
22662#define WX_NO_REGEX_ADVANCED 1
22663_ACEOF
22664
22665 fi
22666 fi
22667fi
22668
22669
22670ZLIB_LINK=
22671if test "$wxUSE_ZLIB" != "no" ; then
22672 cat >>confdefs.h <<\_ACEOF
22673#define wxUSE_ZLIB 1
22674_ACEOF
22675
22676
22677 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22678 if test "$USE_DARWIN" = 1; then
22679 system_zlib_h_ok="yes"
22680 else
22681 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22682echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22683if test "${ac_cv_header_zlib_h+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22685else
22686 if test "$cross_compiling" = yes; then
22687 unset ac_cv_header_zlib_h
22688
22689else
22690 cat >conftest.$ac_ext <<_ACEOF
22691/* confdefs.h. */
22692_ACEOF
22693cat confdefs.h >>conftest.$ac_ext
22694cat >>conftest.$ac_ext <<_ACEOF
22695/* end confdefs.h. */
22696
22697 #include <zlib.h>
22698 #include <stdio.h>
22699
22700 int main()
22701 {
22702 FILE *f=fopen("conftestval", "w");
22703 if (!f) exit(1);
22704 fprintf(f, "%s",
22705 ZLIB_VERSION[0] == '1' &&
22706 (ZLIB_VERSION[2] > '1' ||
22707 (ZLIB_VERSION[2] == '1' &&
22708 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22709 exit(0);
22710 }
22711
22712_ACEOF
22713rm -f conftest$ac_exeext
22714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22715 (eval $ac_link) 2>&5
22716 ac_status=$?
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_cv_header_zlib_h=`cat conftestval`
22725else
22726 echo "$as_me: program exited with status $ac_status" >&5
22727echo "$as_me: failed program was:" >&5
22728sed 's/^/| /' conftest.$ac_ext >&5
22729
22730( exit $ac_status )
22731ac_cv_header_zlib_h=no
22732fi
ac1cb8d3 22733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22734fi
22735
22736fi
22737echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22738echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22739 if test "${ac_cv_header_zlib_h+set}" = set; then
22740 echo "$as_me:$LINENO: checking for zlib.h" >&5
22741echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22742if test "${ac_cv_header_zlib_h+set}" = set; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22744fi
22745echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22746echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22747else
22748 # Is the header compilable?
22749echo "$as_me:$LINENO: checking zlib.h usability" >&5
22750echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22751cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h. */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h. */
22757$ac_includes_default
22758#include <zlib.h>
22759_ACEOF
22760rm -f conftest.$ac_objext
22761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22762 (eval $ac_compile) 2>conftest.er1
a848cd7e 22763 ac_status=$?
ac1cb8d3
VS
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
a848cd7e
SC
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } &&
6ebeb4c7 22769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; } &&
22775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 ac_header_compiler=yes
22782else
22783 echo "$as_me: failed program was:" >&5
22784sed 's/^/| /' conftest.$ac_ext >&5
22785
22786ac_header_compiler=no
22787fi
ac1cb8d3 22788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22790echo "${ECHO_T}$ac_header_compiler" >&6
22791
22792# Is the header present?
22793echo "$as_me:$LINENO: checking zlib.h presence" >&5
22794echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22795cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801#include <zlib.h>
22802_ACEOF
22803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } >/dev/null; then
22811 if test -s conftest.err; then
22812 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22814 else
22815 ac_cpp_err=
22816 fi
22817else
22818 ac_cpp_err=yes
22819fi
22820if test -z "$ac_cpp_err"; then
22821 ac_header_preproc=yes
22822else
22823 echo "$as_me: failed program was:" >&5
22824sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ac_header_preproc=no
22827fi
22828rm -f conftest.err conftest.$ac_ext
22829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22830echo "${ECHO_T}$ac_header_preproc" >&6
22831
22832# So? What about this header?
ac1cb8d3
VS
22833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22834 yes:no: )
a848cd7e
SC
22835 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22836echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22837 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22838echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22839 ac_header_preproc=yes
a848cd7e 22840 ;;
ac1cb8d3 22841 no:yes:* )
a848cd7e
SC
22842 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22843echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22844 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22845echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22847echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22849echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22850 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22851echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22852 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22853echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22854 (
22855 cat <<\_ASBOX
ac1cb8d3
VS
22856## ----------------------------------------- ##
22857## Report this to wx-dev@lists.wxwidgets.org ##
22858## ----------------------------------------- ##
a848cd7e
SC
22859_ASBOX
22860 ) |
22861 sed "s/^/$as_me: WARNING: /" >&2
22862 ;;
22863esac
22864echo "$as_me:$LINENO: checking for zlib.h" >&5
22865echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22866if test "${ac_cv_header_zlib_h+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22868else
22869 ac_cv_header_zlib_h=$ac_header_preproc
22870fi
22871echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22872echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22873
22874fi
22875
22876
22877
22878 system_zlib_h_ok=$ac_cv_header_zlib_h
22879 fi
22880
22881 if test "$system_zlib_h_ok" = "yes"; then
22882 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22883echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22884if test "${ac_cv_lib_z_deflate+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886else
22887 ac_check_lib_save_LIBS=$LIBS
22888LIBS="-lz $LIBS"
22889cat >conftest.$ac_ext <<_ACEOF
22890/* confdefs.h. */
22891_ACEOF
22892cat confdefs.h >>conftest.$ac_ext
22893cat >>conftest.$ac_ext <<_ACEOF
22894/* end confdefs.h. */
22895
22896/* Override any gcc2 internal prototype to avoid an error. */
22897#ifdef __cplusplus
22898extern "C"
22899#endif
22900/* We use char because int might match the return type of a gcc2
22901 builtin and then its argument prototype would still apply. */
22902char deflate ();
22903int
22904main ()
22905{
22906deflate ();
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911rm -f conftest.$ac_objext conftest$ac_exeext
22912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22913 (eval $ac_link) 2>conftest.er1
a848cd7e 22914 ac_status=$?
ac1cb8d3
VS
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
a848cd7e
SC
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
6ebeb4c7 22920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 ac_cv_lib_z_deflate=yes
22933else
22934 echo "$as_me: failed program was:" >&5
22935sed 's/^/| /' conftest.$ac_ext >&5
22936
22937ac_cv_lib_z_deflate=no
22938fi
ac1cb8d3
VS
22939rm -f conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22941LIBS=$ac_check_lib_save_LIBS
22942fi
22943echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22944echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22945if test $ac_cv_lib_z_deflate = yes; then
22946 ZLIB_LINK=" -lz"
22947fi
22948
22949 fi
22950
22951 if test "x$ZLIB_LINK" = "x" ; then
22952 if test "$wxUSE_ZLIB" = "sys" ; then
22953 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22954echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22955 { (exit 1); exit 1; }; }
22956 else
22957 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22958echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22959 wxUSE_ZLIB=builtin
22960 fi
22961 else
22962 wxUSE_ZLIB=sys
22963 fi
22964 fi
22965fi
22966
22967
22968PNG_LINK=
22969if test "$wxUSE_LIBPNG" != "no" ; then
22970 cat >>confdefs.h <<\_ACEOF
22971#define wxUSE_LIBPNG 1
22972_ACEOF
22973
22974
22975 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22976 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22977echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22978 wxUSE_LIBPNG=sys
22979 fi
22980
22981 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22982 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22983echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22984 wxUSE_LIBPNG=builtin
22985 fi
22986
22987 if test "$wxUSE_MGL" != 1 ; then
22988 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22989 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22990echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22991if test "${ac_cv_header_png_h+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22993else
22994 if test "$cross_compiling" = yes; then
22995 unset ac_cv_header_png_h
22996
22997else
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004
23005 #include <png.h>
23006 #include <stdio.h>
23007
23008 int main()
23009 {
23010 FILE *f=fopen("conftestval", "w");
23011 if (!f) exit(1);
23012 fprintf(f, "%s",
23013 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23014 exit(0);
23015 }
23016
23017_ACEOF
23018rm -f conftest$ac_exeext
23019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_header_png_h=`cat conftestval`
23030else
23031 echo "$as_me: program exited with status $ac_status" >&5
23032echo "$as_me: failed program was:" >&5
23033sed 's/^/| /' conftest.$ac_ext >&5
23034
23035( exit $ac_status )
23036ac_cv_header_png_h=no
23037fi
ac1cb8d3 23038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23039fi
23040
23041fi
23042echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23043echo "${ECHO_T}$ac_cv_header_png_h" >&6
23044 if test "${ac_cv_header_png_h+set}" = set; then
23045 echo "$as_me:$LINENO: checking for png.h" >&5
23046echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23047if test "${ac_cv_header_png_h+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23049fi
23050echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23051echo "${ECHO_T}$ac_cv_header_png_h" >&6
23052else
23053 # Is the header compilable?
23054echo "$as_me:$LINENO: checking png.h usability" >&5
23055echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23056cat >conftest.$ac_ext <<_ACEOF
23057/* confdefs.h. */
23058_ACEOF
23059cat confdefs.h >>conftest.$ac_ext
23060cat >>conftest.$ac_ext <<_ACEOF
23061/* end confdefs.h. */
23062$ac_includes_default
23063#include <png.h>
23064_ACEOF
23065rm -f conftest.$ac_objext
23066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23067 (eval $ac_compile) 2>conftest.er1
a848cd7e 23068 ac_status=$?
ac1cb8d3
VS
23069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
a848cd7e
SC
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
6ebeb4c7 23074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_header_compiler=yes
23087else
23088 echo "$as_me: failed program was:" >&5
23089sed 's/^/| /' conftest.$ac_ext >&5
23090
23091ac_header_compiler=no
23092fi
ac1cb8d3 23093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23095echo "${ECHO_T}$ac_header_compiler" >&6
23096
23097# Is the header present?
23098echo "$as_me:$LINENO: checking png.h presence" >&5
23099echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23100cat >conftest.$ac_ext <<_ACEOF
23101/* confdefs.h. */
23102_ACEOF
23103cat confdefs.h >>conftest.$ac_ext
23104cat >>conftest.$ac_ext <<_ACEOF
23105/* end confdefs.h. */
23106#include <png.h>
23107_ACEOF
23108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } >/dev/null; then
23116 if test -s conftest.err; then
23117 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23119 else
23120 ac_cpp_err=
23121 fi
23122else
23123 ac_cpp_err=yes
23124fi
23125if test -z "$ac_cpp_err"; then
23126 ac_header_preproc=yes
23127else
23128 echo "$as_me: failed program was:" >&5
23129sed 's/^/| /' conftest.$ac_ext >&5
23130
23131 ac_header_preproc=no
23132fi
23133rm -f conftest.err conftest.$ac_ext
23134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23135echo "${ECHO_T}$ac_header_preproc" >&6
23136
23137# So? What about this header?
ac1cb8d3
VS
23138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23139 yes:no: )
a848cd7e
SC
23140 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23141echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23142 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23143echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23144 ac_header_preproc=yes
a848cd7e 23145 ;;
ac1cb8d3 23146 no:yes:* )
a848cd7e
SC
23147 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23148echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23149 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23150echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23151 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23152echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23153 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23154echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23155 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23156echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23157 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23158echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23159 (
23160 cat <<\_ASBOX
ac1cb8d3
VS
23161## ----------------------------------------- ##
23162## Report this to wx-dev@lists.wxwidgets.org ##
23163## ----------------------------------------- ##
a848cd7e
SC
23164_ASBOX
23165 ) |
23166 sed "s/^/$as_me: WARNING: /" >&2
23167 ;;
23168esac
23169echo "$as_me:$LINENO: checking for png.h" >&5
23170echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23171if test "${ac_cv_header_png_h+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174 ac_cv_header_png_h=$ac_header_preproc
23175fi
23176echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23177echo "${ECHO_T}$ac_cv_header_png_h" >&6
23178
23179fi
23180
23181
23182
23183 if test "$ac_cv_header_png_h" = "yes"; then
23184 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23185echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23186if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188else
23189 ac_check_lib_save_LIBS=$LIBS
23190LIBS="-lpng -lz -lm $LIBS"
23191cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h. */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h. */
23197
23198/* Override any gcc2 internal prototype to avoid an error. */
23199#ifdef __cplusplus
23200extern "C"
23201#endif
23202/* We use char because int might match the return type of a gcc2
23203 builtin and then its argument prototype would still apply. */
23204char png_check_sig ();
23205int
23206main ()
23207{
23208png_check_sig ();
23209 ;
23210 return 0;
23211}
23212_ACEOF
23213rm -f conftest.$ac_objext conftest$ac_exeext
23214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23215 (eval $ac_link) 2>conftest.er1
a848cd7e 23216 ac_status=$?
ac1cb8d3
VS
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
a848cd7e
SC
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
6ebeb4c7 23222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_png_png_check_sig=yes
23235else
23236 echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239ac_cv_lib_png_png_check_sig=no
23240fi
ac1cb8d3
VS
23241rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23243LIBS=$ac_check_lib_save_LIBS
23244fi
23245echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23246echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23247if test $ac_cv_lib_png_png_check_sig = yes; then
23248 PNG_LINK=" -lpng -lz"
23249fi
23250
23251 fi
23252
23253 if test "x$PNG_LINK" = "x" ; then
23254 if test "$wxUSE_LIBPNG" = "sys" ; then
23255 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23256echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23257 { (exit 1); exit 1; }; }
23258 else
23259 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23260echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23261 wxUSE_LIBPNG=builtin
23262 fi
23263 else
23264 wxUSE_LIBPNG=sys
23265 fi
23266 fi
23267 fi
23268
23269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23270fi
23271
23272
23273JPEG_LINK=
23274if test "$wxUSE_LIBJPEG" != "no" ; then
23275 cat >>confdefs.h <<\_ACEOF
23276#define wxUSE_LIBJPEG 1
23277_ACEOF
23278
23279
23280 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23281 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23282echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23283 wxUSE_LIBJPEG=sys
23284 fi
23285
23286 if test "$wxUSE_MGL" != 1 ; then
23287 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23288 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23289echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23290 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292else
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299
23300 #undef HAVE_STDLIB_H
23301 #include <stdio.h>
23302 #include <jpeglib.h>
23303
23304int
23305main ()
23306{
23307
23308
23309 ;
23310 return 0;
23311}
23312_ACEOF
23313rm -f conftest.$ac_objext
23314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23315 (eval $ac_compile) 2>conftest.er1
a848cd7e 23316 ac_status=$?
ac1cb8d3
VS
23317 grep -v '^ *+' conftest.er1 >conftest.err
23318 rm -f conftest.er1
23319 cat conftest.err >&5
a848cd7e
SC
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } &&
6ebeb4c7 23322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; } &&
23328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ac_cv_header_jpeglib_h=yes
23335else
23336 echo "$as_me: failed program was:" >&5
23337sed 's/^/| /' conftest.$ac_ext >&5
23338
23339ac_cv_header_jpeglib_h=no
23340
23341fi
ac1cb8d3 23342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23343
23344fi
23345
23346 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23347echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23348
23349 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23350 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23351echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23352if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23354else
23355 ac_check_lib_save_LIBS=$LIBS
23356LIBS="-ljpeg $LIBS"
23357cat >conftest.$ac_ext <<_ACEOF
23358/* confdefs.h. */
23359_ACEOF
23360cat confdefs.h >>conftest.$ac_ext
23361cat >>conftest.$ac_ext <<_ACEOF
23362/* end confdefs.h. */
23363
23364/* Override any gcc2 internal prototype to avoid an error. */
23365#ifdef __cplusplus
23366extern "C"
23367#endif
23368/* We use char because int might match the return type of a gcc2
23369 builtin and then its argument prototype would still apply. */
23370char jpeg_read_header ();
23371int
23372main ()
23373{
23374jpeg_read_header ();
23375 ;
23376 return 0;
23377}
23378_ACEOF
23379rm -f conftest.$ac_objext conftest$ac_exeext
23380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23381 (eval $ac_link) 2>conftest.er1
a848cd7e 23382 ac_status=$?
ac1cb8d3
VS
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
a848cd7e
SC
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
6ebeb4c7 23388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 ac_cv_lib_jpeg_jpeg_read_header=yes
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405ac_cv_lib_jpeg_jpeg_read_header=no
23406fi
ac1cb8d3
VS
23407rm -f conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23409LIBS=$ac_check_lib_save_LIBS
23410fi
23411echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23412echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23413if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23414 JPEG_LINK=" -ljpeg"
23415fi
23416
23417 fi
23418
23419 if test "x$JPEG_LINK" = "x" ; then
23420 if test "$wxUSE_LIBJPEG" = "sys" ; then
23421 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23422echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23423 { (exit 1); exit 1; }; }
23424 else
23425 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23426echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23427 wxUSE_LIBJPEG=builtin
23428 fi
23429 else
23430 wxUSE_LIBJPEG=sys
23431 fi
23432 fi
23433 fi
23434fi
23435
23436
23437TIFF_LINK=
23438TIFF_PREREQ_LINKS=-lm
23439if test "$wxUSE_LIBTIFF" != "no" ; then
23440 cat >>confdefs.h <<\_ACEOF
23441#define wxUSE_LIBTIFF 1
23442_ACEOF
23443
23444
23445 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23446 if test "$wxUSE_LIBJPEG" = "sys"; then
23447 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23448 fi
23449 if test "$wxUSE_ZLIB" = "sys"; then
23450 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23451 fi
23452 if test "${ac_cv_header_tiffio_h+set}" = set; then
23453 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23454echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23455if test "${ac_cv_header_tiffio_h+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23457fi
23458echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23459echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23460else
23461 # Is the header compilable?
23462echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23463echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23464cat >conftest.$ac_ext <<_ACEOF
23465/* confdefs.h. */
23466_ACEOF
23467cat confdefs.h >>conftest.$ac_ext
23468cat >>conftest.$ac_ext <<_ACEOF
23469/* end confdefs.h. */
23470$ac_includes_default
23471#include <tiffio.h>
23472_ACEOF
23473rm -f conftest.$ac_objext
23474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23475 (eval $ac_compile) 2>conftest.er1
a848cd7e 23476 ac_status=$?
ac1cb8d3
VS
23477 grep -v '^ *+' conftest.er1 >conftest.err
23478 rm -f conftest.er1
23479 cat conftest.err >&5
a848cd7e
SC
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); } &&
6ebeb4c7 23482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; }; then
23494 ac_header_compiler=yes
23495else
23496 echo "$as_me: failed program was:" >&5
23497sed 's/^/| /' conftest.$ac_ext >&5
23498
23499ac_header_compiler=no
23500fi
ac1cb8d3 23501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23503echo "${ECHO_T}$ac_header_compiler" >&6
23504
23505# Is the header present?
23506echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23507echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23508cat >conftest.$ac_ext <<_ACEOF
23509/* confdefs.h. */
23510_ACEOF
23511cat confdefs.h >>conftest.$ac_ext
23512cat >>conftest.$ac_ext <<_ACEOF
23513/* end confdefs.h. */
23514#include <tiffio.h>
23515_ACEOF
23516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } >/dev/null; then
23524 if test -s conftest.err; then
23525 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23527 else
23528 ac_cpp_err=
23529 fi
23530else
23531 ac_cpp_err=yes
23532fi
23533if test -z "$ac_cpp_err"; then
23534 ac_header_preproc=yes
23535else
23536 echo "$as_me: failed program was:" >&5
23537sed 's/^/| /' conftest.$ac_ext >&5
23538
23539 ac_header_preproc=no
23540fi
23541rm -f conftest.err conftest.$ac_ext
23542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23543echo "${ECHO_T}$ac_header_preproc" >&6
23544
23545# So? What about this header?
ac1cb8d3
VS
23546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23547 yes:no: )
a848cd7e
SC
23548 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23549echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23550 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23551echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23552 ac_header_preproc=yes
a848cd7e 23553 ;;
ac1cb8d3 23554 no:yes:* )
a848cd7e
SC
23555 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23556echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23557 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23558echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23559 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23560echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23562echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23563 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23564echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23565 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23566echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23567 (
23568 cat <<\_ASBOX
ac1cb8d3
VS
23569## ----------------------------------------- ##
23570## Report this to wx-dev@lists.wxwidgets.org ##
23571## ----------------------------------------- ##
a848cd7e
SC
23572_ASBOX
23573 ) |
23574 sed "s/^/$as_me: WARNING: /" >&2
23575 ;;
23576esac
23577echo "$as_me:$LINENO: checking for tiffio.h" >&5
23578echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23579if test "${ac_cv_header_tiffio_h+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23581else
23582 ac_cv_header_tiffio_h=$ac_header_preproc
23583fi
23584echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23585echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23586
23587fi
23588if test $ac_cv_header_tiffio_h = yes; then
23589
23590 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23591echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23592if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23594else
23595 ac_check_lib_save_LIBS=$LIBS
23596LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23597cat >conftest.$ac_ext <<_ACEOF
23598/* confdefs.h. */
23599_ACEOF
23600cat confdefs.h >>conftest.$ac_ext
23601cat >>conftest.$ac_ext <<_ACEOF
23602/* end confdefs.h. */
23603
23604/* Override any gcc2 internal prototype to avoid an error. */
23605#ifdef __cplusplus
23606extern "C"
23607#endif
23608/* We use char because int might match the return type of a gcc2
23609 builtin and then its argument prototype would still apply. */
23610char TIFFError ();
23611int
23612main ()
23613{
23614TIFFError ();
23615 ;
23616 return 0;
23617}
23618_ACEOF
23619rm -f conftest.$ac_objext conftest$ac_exeext
23620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23621 (eval $ac_link) 2>conftest.er1
a848cd7e 23622 ac_status=$?
ac1cb8d3
VS
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
a848cd7e
SC
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
6ebeb4c7 23628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ac_cv_lib_tiff_TIFFError=yes
23641else
23642 echo "$as_me: failed program was:" >&5
23643sed 's/^/| /' conftest.$ac_ext >&5
23644
23645ac_cv_lib_tiff_TIFFError=no
23646fi
ac1cb8d3
VS
23647rm -f conftest.err conftest.$ac_objext \
23648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23649LIBS=$ac_check_lib_save_LIBS
23650fi
23651echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23652echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23653if test $ac_cv_lib_tiff_TIFFError = yes; then
23654 TIFF_LINK=" -ltiff"
23655fi
23656
23657
23658
23659fi
23660
23661
23662
23663 if test "x$TIFF_LINK" = "x" ; then
23664 if test "$wxUSE_LIBTIFF" = "sys" ; then
23665 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23666echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23667 { (exit 1); exit 1; }; }
23668 else
23669 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23670echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23671 wxUSE_LIBTIFF=builtin
23672 fi
23673 else
23674 wxUSE_LIBTIFF=sys
23675 fi
23676 fi
23677fi
23678
23679
47a7e797
MW
23680if test "$wxUSE_WCHAR_T" != "yes"; then
23681 if test "$wxUSE_EXPAT" != "no"; then
23682 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23683echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23684 wxUSE_EXPAT=no
23685 fi
23686 if test "$wxUSE_XML" != "no"; then
23687 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23688echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23689 wxUSE_XML=no
23690 fi
23691fi
23692
a848cd7e
SC
23693if test "$wxUSE_EXPAT" != "no"; then
23694 wxUSE_XML=yes
23695 cat >>confdefs.h <<\_ACEOF
23696#define wxUSE_EXPAT 1
23697_ACEOF
23698
23699 cat >>confdefs.h <<\_ACEOF
23700#define wxUSE_XML 1
23701_ACEOF
23702
23703
23704 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23705 if test "${ac_cv_header_expat_h+set}" = set; then
23706 echo "$as_me:$LINENO: checking for expat.h" >&5
23707echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23708if test "${ac_cv_header_expat_h+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710fi
23711echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23712echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23713else
23714 # Is the header compilable?
23715echo "$as_me:$LINENO: checking expat.h usability" >&5
23716echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23717cat >conftest.$ac_ext <<_ACEOF
23718/* confdefs.h. */
23719_ACEOF
23720cat confdefs.h >>conftest.$ac_ext
23721cat >>conftest.$ac_ext <<_ACEOF
23722/* end confdefs.h. */
23723$ac_includes_default
23724#include <expat.h>
23725_ACEOF
23726rm -f conftest.$ac_objext
23727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23728 (eval $ac_compile) 2>conftest.er1
a848cd7e 23729 ac_status=$?
ac1cb8d3
VS
23730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
a848cd7e
SC
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
6ebeb4c7 23735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; } &&
23741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23743 (eval $ac_try) 2>&5
23744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23747 ac_header_compiler=yes
23748else
23749 echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
23752ac_header_compiler=no
23753fi
ac1cb8d3 23754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23756echo "${ECHO_T}$ac_header_compiler" >&6
23757
23758# Is the header present?
23759echo "$as_me:$LINENO: checking expat.h presence" >&5
23760echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23761cat >conftest.$ac_ext <<_ACEOF
23762/* confdefs.h. */
23763_ACEOF
23764cat confdefs.h >>conftest.$ac_ext
23765cat >>conftest.$ac_ext <<_ACEOF
23766/* end confdefs.h. */
23767#include <expat.h>
23768_ACEOF
23769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23771 ac_status=$?
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } >/dev/null; then
23777 if test -s conftest.err; then
23778 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23780 else
23781 ac_cpp_err=
23782 fi
23783else
23784 ac_cpp_err=yes
23785fi
23786if test -z "$ac_cpp_err"; then
23787 ac_header_preproc=yes
23788else
23789 echo "$as_me: failed program was:" >&5
23790sed 's/^/| /' conftest.$ac_ext >&5
23791
23792 ac_header_preproc=no
23793fi
23794rm -f conftest.err conftest.$ac_ext
23795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23796echo "${ECHO_T}$ac_header_preproc" >&6
23797
23798# So? What about this header?
ac1cb8d3
VS
23799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23800 yes:no: )
a848cd7e
SC
23801 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23802echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23803 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23804echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23805 ac_header_preproc=yes
a848cd7e 23806 ;;
ac1cb8d3 23807 no:yes:* )
a848cd7e
SC
23808 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23809echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23810 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23811echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23812 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23813echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23815echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23816 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23817echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23818 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23819echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23820 (
23821 cat <<\_ASBOX
ac1cb8d3
VS
23822## ----------------------------------------- ##
23823## Report this to wx-dev@lists.wxwidgets.org ##
23824## ----------------------------------------- ##
a848cd7e
SC
23825_ASBOX
23826 ) |
23827 sed "s/^/$as_me: WARNING: /" >&2
23828 ;;
23829esac
23830echo "$as_me:$LINENO: checking for expat.h" >&5
23831echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23832if test "${ac_cv_header_expat_h+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23834else
23835 ac_cv_header_expat_h=$ac_header_preproc
23836fi
23837echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23838echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23839
23840fi
23841if test $ac_cv_header_expat_h = yes; then
23842 found_expat_h=1
23843fi
23844
23845
23846 if test "x$found_expat_h" = "x1"; then
23847 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23848echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23849if test "${wx_cv_expat_is_not_broken+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852
23853
23854
23855 ac_ext=cc
23856ac_cpp='$CXXCPP $CPPFLAGS'
23857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23860
23861 cat >conftest.$ac_ext <<_ACEOF
23862/* confdefs.h. */
23863_ACEOF
23864cat confdefs.h >>conftest.$ac_ext
23865cat >>conftest.$ac_ext <<_ACEOF
23866/* end confdefs.h. */
23867#include <expat.h>
23868int
23869main ()
23870{
23871
23872 ;
23873 return 0;
23874}
23875_ACEOF
23876rm -f conftest.$ac_objext
23877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23878 (eval $ac_compile) 2>conftest.er1
a848cd7e 23879 ac_status=$?
ac1cb8d3
VS
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
a848cd7e
SC
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
6ebeb4c7 23885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; } &&
23891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; }; then
23897 wx_cv_expat_is_not_broken=yes
23898else
23899 echo "$as_me: failed program was:" >&5
23900sed 's/^/| /' conftest.$ac_ext >&5
23901
23902wx_cv_expat_is_not_broken=no
23903
23904fi
ac1cb8d3 23905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23906 ac_ext=c
23907ac_cpp='$CPP $CPPFLAGS'
23908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23910ac_compiler_gnu=$ac_cv_c_compiler_gnu
23911
23912
23913
23914fi
23915echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23916echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23917 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23918 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23919echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23920if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23921 echo $ECHO_N "(cached) $ECHO_C" >&6
23922else
23923 ac_check_lib_save_LIBS=$LIBS
23924LIBS="-lexpat $LIBS"
23925cat >conftest.$ac_ext <<_ACEOF
23926/* confdefs.h. */
23927_ACEOF
23928cat confdefs.h >>conftest.$ac_ext
23929cat >>conftest.$ac_ext <<_ACEOF
23930/* end confdefs.h. */
23931
23932/* Override any gcc2 internal prototype to avoid an error. */
23933#ifdef __cplusplus
23934extern "C"
23935#endif
23936/* We use char because int might match the return type of a gcc2
23937 builtin and then its argument prototype would still apply. */
23938char XML_ParserCreate ();
23939int
23940main ()
23941{
23942XML_ParserCreate ();
23943 ;
23944 return 0;
23945}
23946_ACEOF
23947rm -f conftest.$ac_objext conftest$ac_exeext
23948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23949 (eval $ac_link) 2>conftest.er1
a848cd7e 23950 ac_status=$?
ac1cb8d3
VS
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
a848cd7e
SC
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } &&
6ebeb4c7 23956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; } &&
23962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23965 ac_status=$?
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; }; then
23968 ac_cv_lib_expat_XML_ParserCreate=yes
23969else
23970 echo "$as_me: failed program was:" >&5
23971sed 's/^/| /' conftest.$ac_ext >&5
23972
23973ac_cv_lib_expat_XML_ParserCreate=no
23974fi
ac1cb8d3
VS
23975rm -f conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23977LIBS=$ac_check_lib_save_LIBS
23978fi
23979echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23980echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23981if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23982 EXPAT_LINK=" -lexpat"
23983fi
23984
23985 fi
23986 fi
23987 if test "x$EXPAT_LINK" = "x" ; then
23988 if test "$wxUSE_EXPAT" = "sys" ; then
23989 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23990echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23991 { (exit 1); exit 1; }; }
23992 else
23993 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23994echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23995 wxUSE_EXPAT=builtin
23996 fi
23997 else
23998 wxUSE_EXPAT=sys
23999 fi
24000 fi
24001 if test "$wxUSE_EXPAT" = "builtin" ; then
24002
24003
24004subdirs="$subdirs src/expat"
24005
24006 fi
24007fi
24008
24009
24010
24011if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24012 if test "${ac_cv_header_mspack_h+set}" = set; then
24013 echo "$as_me:$LINENO: checking for mspack.h" >&5
24014echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24015if test "${ac_cv_header_mspack_h+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24017fi
24018echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24019echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24020else
24021 # Is the header compilable?
24022echo "$as_me:$LINENO: checking mspack.h usability" >&5
24023echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24024cat >conftest.$ac_ext <<_ACEOF
24025/* confdefs.h. */
24026_ACEOF
24027cat confdefs.h >>conftest.$ac_ext
24028cat >>conftest.$ac_ext <<_ACEOF
24029/* end confdefs.h. */
24030$ac_includes_default
24031#include <mspack.h>
24032_ACEOF
24033rm -f conftest.$ac_objext
24034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24035 (eval $ac_compile) 2>conftest.er1
a848cd7e 24036 ac_status=$?
ac1cb8d3
VS
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
a848cd7e
SC
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } &&
6ebeb4c7 24042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; } &&
24048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24051 ac_status=$?
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; }; then
24054 ac_header_compiler=yes
24055else
24056 echo "$as_me: failed program was:" >&5
24057sed 's/^/| /' conftest.$ac_ext >&5
24058
24059ac_header_compiler=no
24060fi
ac1cb8d3 24061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24063echo "${ECHO_T}$ac_header_compiler" >&6
24064
24065# Is the header present?
24066echo "$as_me:$LINENO: checking mspack.h presence" >&5
24067echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24068cat >conftest.$ac_ext <<_ACEOF
24069/* confdefs.h. */
24070_ACEOF
24071cat confdefs.h >>conftest.$ac_ext
24072cat >>conftest.$ac_ext <<_ACEOF
24073/* end confdefs.h. */
24074#include <mspack.h>
24075_ACEOF
24076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24078 ac_status=$?
24079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } >/dev/null; then
24084 if test -s conftest.err; then
24085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24087 else
24088 ac_cpp_err=
24089 fi
24090else
24091 ac_cpp_err=yes
24092fi
24093if test -z "$ac_cpp_err"; then
24094 ac_header_preproc=yes
24095else
24096 echo "$as_me: failed program was:" >&5
24097sed 's/^/| /' conftest.$ac_ext >&5
24098
24099 ac_header_preproc=no
24100fi
24101rm -f conftest.err conftest.$ac_ext
24102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24103echo "${ECHO_T}$ac_header_preproc" >&6
24104
24105# So? What about this header?
ac1cb8d3
VS
24106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24107 yes:no: )
a848cd7e
SC
24108 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24109echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24110 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24111echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24112 ac_header_preproc=yes
a848cd7e 24113 ;;
ac1cb8d3 24114 no:yes:* )
a848cd7e
SC
24115 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24116echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24117 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24118echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24119 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24120echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24121 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24122echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24123 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24124echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24125 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24126echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24127 (
24128 cat <<\_ASBOX
ac1cb8d3
VS
24129## ----------------------------------------- ##
24130## Report this to wx-dev@lists.wxwidgets.org ##
24131## ----------------------------------------- ##
a848cd7e
SC
24132_ASBOX
24133 ) |
24134 sed "s/^/$as_me: WARNING: /" >&2
24135 ;;
24136esac
24137echo "$as_me:$LINENO: checking for mspack.h" >&5
24138echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24139if test "${ac_cv_header_mspack_h+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24141else
24142 ac_cv_header_mspack_h=$ac_header_preproc
24143fi
24144echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24145echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24146
24147fi
24148if test $ac_cv_header_mspack_h = yes; then
24149 found_mspack_h=1
24150fi
24151
24152
24153 if test "x$found_mspack_h" = "x1"; then
24154 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24155echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24156if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 ac_check_lib_save_LIBS=$LIBS
24160LIBS="-lmspack $LIBS"
24161cat >conftest.$ac_ext <<_ACEOF
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
24167
24168/* Override any gcc2 internal prototype to avoid an error. */
24169#ifdef __cplusplus
24170extern "C"
24171#endif
24172/* We use char because int might match the return type of a gcc2
24173 builtin and then its argument prototype would still apply. */
24174char mspack_create_chm_decompressor ();
24175int
24176main ()
24177{
24178mspack_create_chm_decompressor ();
24179 ;
24180 return 0;
24181}
24182_ACEOF
24183rm -f conftest.$ac_objext conftest$ac_exeext
24184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24185 (eval $ac_link) 2>conftest.er1
a848cd7e 24186 ac_status=$?
ac1cb8d3
VS
24187 grep -v '^ *+' conftest.er1 >conftest.err
24188 rm -f conftest.er1
24189 cat conftest.err >&5
a848cd7e
SC
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } &&
6ebeb4c7 24192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24205else
24206 echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
24209ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24210fi
ac1cb8d3
VS
24211rm -f conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24213LIBS=$ac_check_lib_save_LIBS
24214fi
24215echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24216echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24217if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24218 MSPACK_LINK=" -lmspack"
24219fi
24220
24221 fi
24222 if test "x$MSPACK_LINK" = "x" ; then
24223 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24224 fi
24225fi
24226
24227if test "$wxUSE_LIBMSPACK" != "no"; then
24228 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24229#define wxUSE_LIBMSPACK 1
24230_ACEOF
24231
a848cd7e
SC
24232fi
24233
24234
24235
24236AFMINSTALL=
24237WIN32INSTALL=
24238
24239TOOLKIT=
24240TOOLKIT_INCLUDE=
24241WIDGET_SET=
24242
24243if test "$USE_WIN32" = 1 ; then
24244
24245for ac_header in w32api.h
24246do
24247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24248if eval "test \"\${$as_ac_Header+set}\" = set"; then
24249 echo "$as_me:$LINENO: checking for $ac_header" >&5
24250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24251if eval "test \"\${$as_ac_Header+set}\" = set"; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253fi
24254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24256else
24257 # Is the header compilable?
24258echo "$as_me:$LINENO: checking $ac_header usability" >&5
24259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24260cat >conftest.$ac_ext <<_ACEOF
24261/* confdefs.h. */
24262_ACEOF
24263cat confdefs.h >>conftest.$ac_ext
24264cat >>conftest.$ac_ext <<_ACEOF
24265/* end confdefs.h. */
24266$ac_includes_default
24267#include <$ac_header>
24268_ACEOF
24269rm -f conftest.$ac_objext
24270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24271 (eval $ac_compile) 2>conftest.er1
a848cd7e 24272 ac_status=$?
ac1cb8d3
VS
24273 grep -v '^ *+' conftest.er1 >conftest.err
24274 rm -f conftest.er1
24275 cat conftest.err >&5
a848cd7e
SC
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } &&
6ebeb4c7 24278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; } &&
24284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 ac_header_compiler=yes
24291else
24292 echo "$as_me: failed program was:" >&5
24293sed 's/^/| /' conftest.$ac_ext >&5
24294
24295ac_header_compiler=no
24296fi
ac1cb8d3 24297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24299echo "${ECHO_T}$ac_header_compiler" >&6
24300
24301# Is the header present?
24302echo "$as_me:$LINENO: checking $ac_header presence" >&5
24303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24304cat >conftest.$ac_ext <<_ACEOF
24305/* confdefs.h. */
24306_ACEOF
24307cat confdefs.h >>conftest.$ac_ext
24308cat >>conftest.$ac_ext <<_ACEOF
24309/* end confdefs.h. */
24310#include <$ac_header>
24311_ACEOF
24312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24314 ac_status=$?
24315 grep -v '^ *+' conftest.er1 >conftest.err
24316 rm -f conftest.er1
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } >/dev/null; then
24320 if test -s conftest.err; then
24321 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24323 else
24324 ac_cpp_err=
24325 fi
24326else
24327 ac_cpp_err=yes
24328fi
24329if test -z "$ac_cpp_err"; then
24330 ac_header_preproc=yes
24331else
24332 echo "$as_me: failed program was:" >&5
24333sed 's/^/| /' conftest.$ac_ext >&5
24334
24335 ac_header_preproc=no
24336fi
24337rm -f conftest.err conftest.$ac_ext
24338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24339echo "${ECHO_T}$ac_header_preproc" >&6
24340
24341# So? What about this header?
ac1cb8d3
VS
24342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24343 yes:no: )
a848cd7e
SC
24344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24348 ac_header_preproc=yes
a848cd7e 24349 ;;
ac1cb8d3 24350 no:yes:* )
a848cd7e
SC
24351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24363 (
24364 cat <<\_ASBOX
ac1cb8d3
VS
24365## ----------------------------------------- ##
24366## Report this to wx-dev@lists.wxwidgets.org ##
24367## ----------------------------------------- ##
a848cd7e
SC
24368_ASBOX
24369 ) |
24370 sed "s/^/$as_me: WARNING: /" >&2
24371 ;;
24372esac
24373echo "$as_me:$LINENO: checking for $ac_header" >&5
24374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24375if eval "test \"\${$as_ac_Header+set}\" = set"; then
24376 echo $ECHO_N "(cached) $ECHO_C" >&6
24377else
ac1cb8d3 24378 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24379fi
24380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24382
24383fi
24384if test `eval echo '${'$as_ac_Header'}'` = yes; then
24385 cat >>confdefs.h <<_ACEOF
24386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24387_ACEOF
24388
24389fi
24390
24391done
24392
24393 if test "${ac_cv_header_windows_h+set}" = set; then
24394 echo "$as_me:$LINENO: checking for windows.h" >&5
24395echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24396if test "${ac_cv_header_windows_h+set}" = set; then
24397 echo $ECHO_N "(cached) $ECHO_C" >&6
24398fi
24399echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24400echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24401else
24402 # Is the header compilable?
24403echo "$as_me:$LINENO: checking windows.h usability" >&5
24404echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24405cat >conftest.$ac_ext <<_ACEOF
24406/* confdefs.h. */
24407_ACEOF
24408cat confdefs.h >>conftest.$ac_ext
24409cat >>conftest.$ac_ext <<_ACEOF
24410/* end confdefs.h. */
24411$ac_includes_default
24412#include <windows.h>
24413_ACEOF
24414rm -f conftest.$ac_objext
24415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24416 (eval $ac_compile) 2>conftest.er1
a848cd7e 24417 ac_status=$?
ac1cb8d3
VS
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
a848cd7e
SC
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } &&
6ebeb4c7 24423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; } &&
24429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24432 ac_status=$?
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; }; then
24435 ac_header_compiler=yes
24436else
24437 echo "$as_me: failed program was:" >&5
24438sed 's/^/| /' conftest.$ac_ext >&5
24439
24440ac_header_compiler=no
24441fi
ac1cb8d3 24442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24444echo "${ECHO_T}$ac_header_compiler" >&6
24445
24446# Is the header present?
24447echo "$as_me:$LINENO: checking windows.h presence" >&5
24448echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24449cat >conftest.$ac_ext <<_ACEOF
24450/* confdefs.h. */
24451_ACEOF
24452cat confdefs.h >>conftest.$ac_ext
24453cat >>conftest.$ac_ext <<_ACEOF
24454/* end confdefs.h. */
24455#include <windows.h>
24456_ACEOF
24457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24459 ac_status=$?
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } >/dev/null; then
24465 if test -s conftest.err; then
24466 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24468 else
24469 ac_cpp_err=
24470 fi
24471else
24472 ac_cpp_err=yes
24473fi
24474if test -z "$ac_cpp_err"; then
24475 ac_header_preproc=yes
24476else
24477 echo "$as_me: failed program was:" >&5
24478sed 's/^/| /' conftest.$ac_ext >&5
24479
24480 ac_header_preproc=no
24481fi
24482rm -f conftest.err conftest.$ac_ext
24483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24484echo "${ECHO_T}$ac_header_preproc" >&6
24485
24486# So? What about this header?
ac1cb8d3
VS
24487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24488 yes:no: )
a848cd7e
SC
24489 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24490echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24491 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24492echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24493 ac_header_preproc=yes
a848cd7e 24494 ;;
ac1cb8d3 24495 no:yes:* )
a848cd7e
SC
24496 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24497echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24498 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24499echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24500 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24501echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24502 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24503echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24504 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24505echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24506 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24507echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24508 (
24509 cat <<\_ASBOX
ac1cb8d3
VS
24510## ----------------------------------------- ##
24511## Report this to wx-dev@lists.wxwidgets.org ##
24512## ----------------------------------------- ##
a848cd7e
SC
24513_ASBOX
24514 ) |
24515 sed "s/^/$as_me: WARNING: /" >&2
24516 ;;
24517esac
24518echo "$as_me:$LINENO: checking for windows.h" >&5
24519echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24520if test "${ac_cv_header_windows_h+set}" = set; then
24521 echo $ECHO_N "(cached) $ECHO_C" >&6
24522else
24523 ac_cv_header_windows_h=$ac_header_preproc
24524fi
24525echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24526echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24527
24528fi
24529if test $ac_cv_header_windows_h = yes; then
24530 :
24531else
24532
24533 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24534echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24535 { (exit 1); exit 1; }; }
24536
24537fi
24538
24539
24540
24541 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24542
24543 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24544 LIBS="$LIBS -loleacc"
24545 fi
24546
24547 case "${host}" in
24548 *-*-cygwin* )
24549 LIBS="$LIBS -lkernel32 -luser32"
24550 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24551 esac
24552
24553 if test "$wxUSE_ODBC" = "sys" ; then
24554 wxUSE_ODBC = "yes"
24555 fi
24556 if test "$wxUSE_ODBC" = "yes" ; then
24557 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24558 cat >>confdefs.h <<\_ACEOF
24559#define wxUSE_ODBC 1
24560_ACEOF
24561
24562 fi
24563
24564 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24565 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24566
24567 WIN32INSTALL=win32install
24568fi
24569
24570if test "$wxUSE_GUI" = "yes"; then
24571 USE_GUI=1
24572
24573 GUI_TK_LIBRARY=
24574
24575 WXGTK12=
24576 WXGTK127=
24577 WXGTK20=
24578 WXGPE=
24579
207bc66c
RN
24580 if test "$wxUSE_COCOA" = 1 ; then
24581 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24582 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24583echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24584 wxUSE_PRINTING_ARCHITECTURE=no
24585 fi
24586 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24587 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24588echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24589 wxUSE_DRAG_AND_DROP=no
24590 fi
24591 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24592 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24593echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24594 wxUSE_DRAGIMAGE=no
24595 fi
24596 fi
24597
a848cd7e
SC
24598 if test "$wxUSE_MSW" = 1 ; then
24599 TOOLKIT=MSW
24600 GUIDIST=MSW_DIST
24601
ceec2216 24602 case "${host}" in
a848cd7e
SC
24603 *-*-mingw32* )
24604 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24605 esac
24606 fi
24607
24608 if test "$wxUSE_GTK" = 1; then
24609 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24610echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24611
24612 gtk_version_cached=1
24613 if test "${wx_cv_lib_gtk+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615else
24616
24617 gtk_version_cached=0
24618 echo "$as_me:$LINENO: result: " >&5
24619echo "${ECHO_T}" >&6
24620
24621 GTK_MODULES=
24622 if test "$wxUSE_THREADS" = "yes"; then
24623 GTK_MODULES=gthread
24624 fi
24625
f597b41c 24626 wx_cv_lib_gtk=
f34ca037 24627 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24628 # Check whether --enable-gtktest or --disable-gtktest was given.
24629if test "${enable_gtktest+set}" = set; then
24630 enableval="$enable_gtktest"
24631
24632else
24633 enable_gtktest=yes
24634fi;
24635
24636 pkg_config_args=gtk+-2.0
24637 for module in . $GTK_MODULES
24638 do
24639 case "$module" in
24640 gthread)
24641 pkg_config_args="$pkg_config_args gthread-2.0"
24642 ;;
24643 esac
24644 done
24645
24646 no_gtk=""
24647
24648 # Extract the first word of "pkg-config", so it can be a program name with args.
24649set dummy pkg-config; ac_word=$2
24650echo "$as_me:$LINENO: checking for $ac_word" >&5
24651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24652if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24654else
24655 case $PKG_CONFIG in
24656 [\\/]* | ?:[\\/]*)
24657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24658 ;;
24659 *)
24660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24661for as_dir in $PATH
24662do
24663 IFS=$as_save_IFS
24664 test -z "$as_dir" && as_dir=.
24665 for ac_exec_ext in '' $ac_executable_extensions; do
24666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24669 break 2
24670 fi
24671done
24672done
24673
24674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24675 ;;
24676esac
24677fi
24678PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24679
24680if test -n "$PKG_CONFIG"; then
24681 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24682echo "${ECHO_T}$PKG_CONFIG" >&6
24683else
24684 echo "$as_me:$LINENO: result: no" >&5
24685echo "${ECHO_T}no" >&6
24686fi
24687
24688
24689 if test x$PKG_CONFIG != xno ; then
24690 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24691 :
24692 else
c2218763 24693 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24694 no_gtk=yes
24695 PKG_CONFIG=no
24696 fi
24697 else
24698 no_gtk=yes
24699 fi
24700
24701 min_gtk_version=2.0.0
24702 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24703echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24704
24705 if test x$PKG_CONFIG != xno ; then
24706 ## don't try to run the test against uninstalled libtool libs
24707 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24708 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24709 enable_gtktest=no
24710 fi
24711
24712 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24713 :
24714 else
24715 no_gtk=yes
24716 fi
24717 fi
24718
24719 if test x"$no_gtk" = x ; then
24720 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24721 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24722 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24724 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24725 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24726 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24727 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24728 if test "x$enable_gtktest" = "xyes" ; then
24729 ac_save_CFLAGS="$CFLAGS"
24730 ac_save_LIBS="$LIBS"
24731 CFLAGS="$CFLAGS $GTK_CFLAGS"
24732 LIBS="$GTK_LIBS $LIBS"
24733 rm -f conf.gtktest
24734 if test "$cross_compiling" = yes; then
24735 echo $ac_n "cross compiling; assumed OK... $ac_c"
24736else
24737 cat >conftest.$ac_ext <<_ACEOF
24738/* confdefs.h. */
24739_ACEOF
24740cat confdefs.h >>conftest.$ac_ext
24741cat >>conftest.$ac_ext <<_ACEOF
24742/* end confdefs.h. */
24743
24744#include <gtk/gtk.h>
24745#include <stdio.h>
24746#include <stdlib.h>
24747
24748int
24749main ()
24750{
24751 int major, minor, micro;
24752 char *tmp_version;
24753
24754 system ("touch conf.gtktest");
24755
24756 /* HP/UX 9 (%@#!) writes to sscanf strings */
24757 tmp_version = g_strdup("$min_gtk_version");
24758 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24759 printf("%s, bad version string\n", "$min_gtk_version");
24760 exit(1);
24761 }
24762
24763 if ((gtk_major_version != $gtk_config_major_version) ||
24764 (gtk_minor_version != $gtk_config_minor_version) ||
24765 (gtk_micro_version != $gtk_config_micro_version))
24766 {
24767 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24768 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24769 gtk_major_version, gtk_minor_version, gtk_micro_version);
24770 printf ("*** was found! If pkg-config was correct, then it is best\n");
24771 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24772 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24773 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24774 printf("*** required on your system.\n");
24775 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24776 printf("*** to point to the correct configuration files\n");
24777 }
24778 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24779 (gtk_minor_version != GTK_MINOR_VERSION) ||
24780 (gtk_micro_version != GTK_MICRO_VERSION))
24781 {
24782 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24783 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24784 printf("*** library (version %d.%d.%d)\n",
24785 gtk_major_version, gtk_minor_version, gtk_micro_version);
24786 }
24787 else
24788 {
24789 if ((gtk_major_version > major) ||
24790 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24791 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24792 {
24793 return 0;
24794 }
24795 else
24796 {
24797 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24798 gtk_major_version, gtk_minor_version, gtk_micro_version);
24799 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24800 major, minor, micro);
24801 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24802 printf("***\n");
24803 printf("*** If you have already installed a sufficiently new version, this error\n");
24804 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24805 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24806 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24807 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24808 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24809 printf("*** so that the correct libraries are found at run-time))\n");
24810 }
24811 }
24812 return 1;
24813}
24814
24815_ACEOF
24816rm -f conftest$ac_exeext
24817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24824 ac_status=$?
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; }; then
24827 :
24828else
24829 echo "$as_me: program exited with status $ac_status" >&5
24830echo "$as_me: failed program was:" >&5
24831sed 's/^/| /' conftest.$ac_ext >&5
24832
24833( exit $ac_status )
24834no_gtk=yes
24835fi
ac1cb8d3 24836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24837fi
24838 CFLAGS="$ac_save_CFLAGS"
24839 LIBS="$ac_save_LIBS"
24840 fi
24841 fi
24842 if test "x$no_gtk" = x ; then
24843 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24844echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24845 wx_cv_lib_gtk=2.0
24846 else
24847 echo "$as_me:$LINENO: result: no" >&5
24848echo "${ECHO_T}no" >&6
24849 if test "$PKG_CONFIG" = "no" ; then
24850 echo "*** A new enough version of pkg-config was not found."
24851 echo "*** See http://pkgconfig.sourceforge.net"
24852 else
24853 if test -f conf.gtktest ; then
24854 :
24855 else
24856 echo "*** Could not run GTK+ test program, checking why..."
24857 ac_save_CFLAGS="$CFLAGS"
24858 ac_save_LIBS="$LIBS"
24859 CFLAGS="$CFLAGS $GTK_CFLAGS"
24860 LIBS="$LIBS $GTK_LIBS"
24861 cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867
24868#include <gtk/gtk.h>
24869#include <stdio.h>
24870
24871int
24872main ()
24873{
24874 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24875 ;
24876 return 0;
24877}
24878_ACEOF
24879rm -f conftest.$ac_objext conftest$ac_exeext
24880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24881 (eval $ac_link) 2>conftest.er1
a848cd7e 24882 ac_status=$?
ac1cb8d3
VS
24883 grep -v '^ *+' conftest.er1 >conftest.err
24884 rm -f conftest.er1
24885 cat conftest.err >&5
a848cd7e
SC
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); } &&
6ebeb4c7 24888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 echo "*** The test program compiled, but did not run. This usually means"
24901 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24902 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24903 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24904 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24905 echo "*** is required on your system"
24906 echo "***"
24907 echo "*** If you have an old version installed, it is best to remove it, although"
24908 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24909else
24910 echo "$as_me: failed program was:" >&5
24911sed 's/^/| /' conftest.$ac_ext >&5
24912
24913 echo "*** The test program failed to compile or link. See the file config.log for the"
24914 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24915fi
ac1cb8d3
VS
24916rm -f conftest.err conftest.$ac_objext \
24917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24918 CFLAGS="$ac_save_CFLAGS"
24919 LIBS="$ac_save_LIBS"
24920 fi
24921 fi
24922 GTK_CFLAGS=""
24923 GTK_LIBS=""
24924 :
24925 fi
24926
24927
24928 rm -f conf.gtktest
24929
f597b41c
MW
24930 fi
24931
f34ca037
MW
24932 if test -z "$wx_cv_lib_gtk"; then
24933 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24934
24935# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24936if test "${with_gtk_prefix+set}" = set; then
24937 withval="$with_gtk_prefix"
24938 gtk_config_prefix="$withval"
24939else
24940 gtk_config_prefix=""
24941fi;
24942
24943# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24944if test "${with_gtk_exec_prefix+set}" = set; then
24945 withval="$with_gtk_exec_prefix"
24946 gtk_config_exec_prefix="$withval"
24947else
24948 gtk_config_exec_prefix=""
24949fi;
24950# Check whether --enable-gtktest or --disable-gtktest was given.
24951if test "${enable_gtktest+set}" = set; then
24952 enableval="$enable_gtktest"
24953
24954else
24955 enable_gtktest=yes
24956fi;
24957
24958 for module in . $GTK_MODULES
24959 do
24960 case "$module" in
24961 gthread)
24962 gtk_config_args="$gtk_config_args gthread"
24963 ;;
24964 esac
24965 done
24966
24967 if test x$gtk_config_exec_prefix != x ; then
24968 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24969 if test x${GTK_CONFIG+set} != xset ; then
24970 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24971 fi
24972 fi
24973 if test x$gtk_config_prefix != x ; then
24974 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24975 if test x${GTK_CONFIG+set} != xset ; then
24976 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24977 fi
24978 fi
24979
24980 # Extract the first word of "gtk-config", so it can be a program name with args.
24981set dummy gtk-config; ac_word=$2
24982echo "$as_me:$LINENO: checking for $ac_word" >&5
24983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24984if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24986else
24987 case $GTK_CONFIG in
24988 [\\/]* | ?:[\\/]*)
24989 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24990 ;;
24991 *)
24992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24993for as_dir in $PATH
24994do
24995 IFS=$as_save_IFS
24996 test -z "$as_dir" && as_dir=.
24997 for ac_exec_ext in '' $ac_executable_extensions; do
24998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24999 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25001 break 2
25002 fi
25003done
25004done
25005
25006 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25007 ;;
25008esac
25009fi
25010GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25011
25012if test -n "$GTK_CONFIG"; then
25013 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25014echo "${ECHO_T}$GTK_CONFIG" >&6
25015else
25016 echo "$as_me:$LINENO: result: no" >&5
25017echo "${ECHO_T}no" >&6
25018fi
25019
25020 min_gtk_version=1.2.7
25021 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25022echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25023 no_gtk=""
25024 if test "$GTK_CONFIG" = "no" ; then
25025 no_gtk=yes
25026 else
25027 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25028 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25029 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25031 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25033 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25035 if test "x$enable_gtktest" = "xyes" ; then
25036 ac_save_CFLAGS="$CFLAGS"
25037 ac_save_LIBS="$LIBS"
25038 CFLAGS="$CFLAGS $GTK_CFLAGS"
25039 LIBS="$GTK_LIBS $LIBS"
25040 rm -f conf.gtktest
25041 if test "$cross_compiling" = yes; then
25042 echo $ac_n "cross compiling; assumed OK... $ac_c"
25043else
25044 cat >conftest.$ac_ext <<_ACEOF
25045/* confdefs.h. */
25046_ACEOF
25047cat confdefs.h >>conftest.$ac_ext
25048cat >>conftest.$ac_ext <<_ACEOF
25049/* end confdefs.h. */
25050
25051#include <gtk/gtk.h>
25052#include <stdio.h>
25053#include <stdlib.h>
25054
25055int
25056main ()
25057{
25058 int major, minor, micro;
25059 char *tmp_version;
25060
25061 system ("touch conf.gtktest");
25062
25063 /* HP/UX 9 (%@#!) writes to sscanf strings */
25064 tmp_version = g_strdup("$min_gtk_version");
25065 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25066 printf("%s, bad version string\n", "$min_gtk_version");
25067 exit(1);
25068 }
25069
25070 if ((gtk_major_version != $gtk_config_major_version) ||
25071 (gtk_minor_version != $gtk_config_minor_version) ||
25072 (gtk_micro_version != $gtk_config_micro_version))
25073 {
25074 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25075 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25076 gtk_major_version, gtk_minor_version, gtk_micro_version);
25077 printf ("*** was found! If gtk-config was correct, then it is best\n");
25078 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25079 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25080 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25081 printf("*** required on your system.\n");
25082 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25083 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25084 printf("*** before re-running configure\n");
25085 }
25086#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25087 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25088 (gtk_minor_version != GTK_MINOR_VERSION) ||
25089 (gtk_micro_version != GTK_MICRO_VERSION))
25090 {
25091 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25092 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25093 printf("*** library (version %d.%d.%d)\n",
25094 gtk_major_version, gtk_minor_version, gtk_micro_version);
25095 }
25096#endif /* defined (GTK_MAJOR_VERSION) ... */
25097 else
25098 {
25099 if ((gtk_major_version > major) ||
25100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25102 {
25103 return 0;
25104 }
25105 else
25106 {
25107 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25108 gtk_major_version, gtk_minor_version, gtk_micro_version);
25109 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25110 major, minor, micro);
25111 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25112 printf("***\n");
25113 printf("*** If you have already installed a sufficiently new version, this error\n");
25114 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25115 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25116 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25117 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25118 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25119 printf("*** so that the correct libraries are found at run-time))\n");
25120 }
25121 }
25122 return 1;
25123}
25124
25125_ACEOF
25126rm -f conftest$ac_exeext
25127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25128 (eval $ac_link) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; }; then
25137 :
25138else
25139 echo "$as_me: program exited with status $ac_status" >&5
25140echo "$as_me: failed program was:" >&5
25141sed 's/^/| /' conftest.$ac_ext >&5
25142
25143( exit $ac_status )
25144no_gtk=yes
25145fi
ac1cb8d3 25146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25147fi
25148 CFLAGS="$ac_save_CFLAGS"
25149 LIBS="$ac_save_LIBS"
25150 fi
25151 fi
25152 if test "x$no_gtk" = x ; then
25153 echo "$as_me:$LINENO: result: yes" >&5
25154echo "${ECHO_T}yes" >&6
25155 wx_cv_lib_gtk=1.2.7
25156 else
25157 echo "$as_me:$LINENO: result: no" >&5
25158echo "${ECHO_T}no" >&6
25159 if test "$GTK_CONFIG" = "no" ; then
25160 echo "*** The gtk-config script installed by GTK could not be found"
25161 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25162 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25163 echo "*** full path to gtk-config."
25164 else
25165 if test -f conf.gtktest ; then
25166 :
25167 else
25168 echo "*** Could not run GTK test program, checking why..."
25169 CFLAGS="$CFLAGS $GTK_CFLAGS"
25170 LIBS="$LIBS $GTK_LIBS"
25171 cat >conftest.$ac_ext <<_ACEOF
25172/* confdefs.h. */
25173_ACEOF
25174cat confdefs.h >>conftest.$ac_ext
25175cat >>conftest.$ac_ext <<_ACEOF
25176/* end confdefs.h. */
25177
25178#include <gtk/gtk.h>
25179#include <stdio.h>
25180
25181int
25182main ()
25183{
25184 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25185 ;
25186 return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
25190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25191 (eval $ac_link) 2>conftest.er1
a848cd7e 25192 ac_status=$?
ac1cb8d3
VS
25193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
a848cd7e
SC
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
6ebeb4c7 25198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 echo "*** The test program compiled, but did not run. This usually means"
25211 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25212 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25213 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25214 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25215 echo "*** is required on your system"
25216 echo "***"
25217 echo "*** If you have an old version installed, it is best to remove it, although"
25218 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25219 echo "***"
25220 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25221 echo "*** came with the system with the command"
25222 echo "***"
25223 echo "*** rpm --erase --nodeps gtk gtk-devel"
25224else
25225 echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228 echo "*** The test program failed to compile or link. See the file config.log for the"
25229 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25230 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25231 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25232fi
ac1cb8d3
VS
25233rm -f conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25235 CFLAGS="$ac_save_CFLAGS"
25236 LIBS="$ac_save_LIBS"
25237 fi
25238 fi
25239 GTK_CFLAGS=""
25240 GTK_LIBS=""
25241 :
25242 fi
25243
25244
25245 rm -f conf.gtktest
25246
25247
f34ca037 25248 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25249
25250# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25251if test "${with_gtk_prefix+set}" = set; then
25252 withval="$with_gtk_prefix"
25253 gtk_config_prefix="$withval"
25254else
25255 gtk_config_prefix=""
25256fi;
25257
25258# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25259if test "${with_gtk_exec_prefix+set}" = set; then
25260 withval="$with_gtk_exec_prefix"
25261 gtk_config_exec_prefix="$withval"
25262else
25263 gtk_config_exec_prefix=""
25264fi;
25265# Check whether --enable-gtktest or --disable-gtktest was given.
25266if test "${enable_gtktest+set}" = set; then
25267 enableval="$enable_gtktest"
25268
25269else
25270 enable_gtktest=yes
25271fi;
25272
25273 for module in . $GTK_MODULES
25274 do
25275 case "$module" in
25276 gthread)
25277 gtk_config_args="$gtk_config_args gthread"
25278 ;;
25279 esac
25280 done
25281
25282 if test x$gtk_config_exec_prefix != x ; then
25283 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25284 if test x${GTK_CONFIG+set} != xset ; then
25285 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25286 fi
25287 fi
25288 if test x$gtk_config_prefix != x ; then
25289 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25290 if test x${GTK_CONFIG+set} != xset ; then
25291 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25292 fi
25293 fi
25294
25295 # Extract the first word of "gtk-config", so it can be a program name with args.
25296set dummy gtk-config; ac_word=$2
25297echo "$as_me:$LINENO: checking for $ac_word" >&5
25298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25299if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25301else
25302 case $GTK_CONFIG in
25303 [\\/]* | ?:[\\/]*)
25304 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25305 ;;
25306 *)
25307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25308for as_dir in $PATH
25309do
25310 IFS=$as_save_IFS
25311 test -z "$as_dir" && as_dir=.
25312 for ac_exec_ext in '' $ac_executable_extensions; do
25313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25314 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25316 break 2
25317 fi
25318done
25319done
25320
25321 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25322 ;;
25323esac
25324fi
25325GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25326
25327if test -n "$GTK_CONFIG"; then
25328 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25329echo "${ECHO_T}$GTK_CONFIG" >&6
25330else
25331 echo "$as_me:$LINENO: result: no" >&5
25332echo "${ECHO_T}no" >&6
25333fi
25334
25335 min_gtk_version=1.2.3
25336 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25337echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25338 no_gtk=""
25339 if test "$GTK_CONFIG" = "no" ; then
25340 no_gtk=yes
25341 else
25342 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25343 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25344 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25345 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25346 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25347 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25348 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25349 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25350 if test "x$enable_gtktest" = "xyes" ; then
25351 ac_save_CFLAGS="$CFLAGS"
25352 ac_save_LIBS="$LIBS"
25353 CFLAGS="$CFLAGS $GTK_CFLAGS"
25354 LIBS="$GTK_LIBS $LIBS"
25355 rm -f conf.gtktest
25356 if test "$cross_compiling" = yes; then
25357 echo $ac_n "cross compiling; assumed OK... $ac_c"
25358else
25359 cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
25365
25366#include <gtk/gtk.h>
25367#include <stdio.h>
25368#include <stdlib.h>
25369
25370int
25371main ()
25372{
25373 int major, minor, micro;
25374 char *tmp_version;
25375
25376 system ("touch conf.gtktest");
25377
25378 /* HP/UX 9 (%@#!) writes to sscanf strings */
25379 tmp_version = g_strdup("$min_gtk_version");
25380 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25381 printf("%s, bad version string\n", "$min_gtk_version");
25382 exit(1);
25383 }
25384
25385 if ((gtk_major_version != $gtk_config_major_version) ||
25386 (gtk_minor_version != $gtk_config_minor_version) ||
25387 (gtk_micro_version != $gtk_config_micro_version))
25388 {
25389 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25390 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25391 gtk_major_version, gtk_minor_version, gtk_micro_version);
25392 printf ("*** was found! If gtk-config was correct, then it is best\n");
25393 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25394 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25395 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25396 printf("*** required on your system.\n");
25397 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25398 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25399 printf("*** before re-running configure\n");
25400 }
25401#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25402 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25403 (gtk_minor_version != GTK_MINOR_VERSION) ||
25404 (gtk_micro_version != GTK_MICRO_VERSION))
25405 {
25406 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25407 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25408 printf("*** library (version %d.%d.%d)\n",
25409 gtk_major_version, gtk_minor_version, gtk_micro_version);
25410 }
25411#endif /* defined (GTK_MAJOR_VERSION) ... */
25412 else
25413 {
25414 if ((gtk_major_version > major) ||
25415 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25416 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25417 {
25418 return 0;
25419 }
25420 else
25421 {
25422 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25423 gtk_major_version, gtk_minor_version, gtk_micro_version);
25424 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25425 major, minor, micro);
25426 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25427 printf("***\n");
25428 printf("*** If you have already installed a sufficiently new version, this error\n");
25429 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25430 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25431 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25432 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25433 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25434 printf("*** so that the correct libraries are found at run-time))\n");
25435 }
25436 }
25437 return 1;
25438}
25439
25440_ACEOF
25441rm -f conftest$ac_exeext
25442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25443 (eval $ac_link) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25449 ac_status=$?
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25452 :
25453else
25454 echo "$as_me: program exited with status $ac_status" >&5
25455echo "$as_me: failed program was:" >&5
25456sed 's/^/| /' conftest.$ac_ext >&5
25457
25458( exit $ac_status )
25459no_gtk=yes
25460fi
ac1cb8d3 25461rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25462fi
25463 CFLAGS="$ac_save_CFLAGS"
25464 LIBS="$ac_save_LIBS"
25465 fi
25466 fi
25467 if test "x$no_gtk" = x ; then
25468 echo "$as_me:$LINENO: result: yes" >&5
25469echo "${ECHO_T}yes" >&6
25470 wx_cv_lib_gtk=1.2.3
25471 else
25472 echo "$as_me:$LINENO: result: no" >&5
25473echo "${ECHO_T}no" >&6
25474 if test "$GTK_CONFIG" = "no" ; then
25475 echo "*** The gtk-config script installed by GTK could not be found"
25476 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25477 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25478 echo "*** full path to gtk-config."
25479 else
25480 if test -f conf.gtktest ; then
25481 :
25482 else
25483 echo "*** Could not run GTK test program, checking why..."
25484 CFLAGS="$CFLAGS $GTK_CFLAGS"
25485 LIBS="$LIBS $GTK_LIBS"
25486 cat >conftest.$ac_ext <<_ACEOF
25487/* confdefs.h. */
25488_ACEOF
25489cat confdefs.h >>conftest.$ac_ext
25490cat >>conftest.$ac_ext <<_ACEOF
25491/* end confdefs.h. */
25492
25493#include <gtk/gtk.h>
25494#include <stdio.h>
25495
25496int
25497main ()
25498{
25499 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504rm -f conftest.$ac_objext conftest$ac_exeext
25505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25506 (eval $ac_link) 2>conftest.er1
a848cd7e 25507 ac_status=$?
ac1cb8d3
VS
25508 grep -v '^ *+' conftest.er1 >conftest.err
25509 rm -f conftest.er1
25510 cat conftest.err >&5
a848cd7e
SC
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } &&
6ebeb4c7 25513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; } &&
25519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25525 echo "*** The test program compiled, but did not run. This usually means"
25526 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25527 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25528 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25529 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25530 echo "*** is required on your system"
25531 echo "***"
25532 echo "*** If you have an old version installed, it is best to remove it, although"
25533 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25534 echo "***"
25535 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25536 echo "*** came with the system with the command"
25537 echo "***"
25538 echo "*** rpm --erase --nodeps gtk gtk-devel"
25539else
25540 echo "$as_me: failed program was:" >&5
25541sed 's/^/| /' conftest.$ac_ext >&5
25542
25543 echo "*** The test program failed to compile or link. See the file config.log for the"
25544 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25545 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25546 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25547fi
ac1cb8d3
VS
25548rm -f conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25550 CFLAGS="$ac_save_CFLAGS"
25551 LIBS="$ac_save_LIBS"
25552 fi
25553 fi
25554 GTK_CFLAGS=""
25555 GTK_LIBS=""
25556 :
25557 fi
25558
25559
25560 rm -f conf.gtktest
25561
f34ca037 25562 fi
a848cd7e
SC
25563 fi
25564 fi
25565
25566 if test -z "$wx_cv_lib_gtk"; then
25567 wx_cv_lib_gtk=none
25568 else
25569 wx_cv_cflags_gtk=$GTK_CFLAGS
25570 wx_cv_libs_gtk=$GTK_LIBS
25571 fi
25572
25573
25574fi
25575
25576
25577 if test "$gtk_version_cached" = 1; then
25578 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25579echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25580 fi
25581
25582 case "$wx_cv_lib_gtk" in
25583 2.0) WXGTK20=1
25584 TOOLKIT_VERSION=2
25585 ;;
25586 1.2.7) WXGTK127=1
25587 WXGTK12=1
25588 ;;
25589 1.2.3) WXGTK12=1
25590 ;;
25591 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25592The development files for GTK+ were not found. For GTK+ 2, please
25593ensure that pkg-config is in the path and that gtk+-2.0.pc is
25594installed. For GTK+ 1.2 please check that gtk-config is in the path,
25595and that the version is 1.2.3 or above. Also check that the
25596libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25597--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25598 " >&5
25599echo "$as_me: error:
f597b41c
MW
25600The development files for GTK+ were not found. For GTK+ 2, please
25601ensure that pkg-config is in the path and that gtk+-2.0.pc is
25602installed. For GTK+ 1.2 please check that gtk-config is in the path,
25603and that the version is 1.2.3 or above. Also check that the
25604libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25605--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25606 " >&2;}
25607 { (exit 1); exit 1; }; }
25608 ;;
25609 esac
25610
25611 if test "$WXGTK20" = 1; then
304205f1
VS
25612 save_CFLAGS="$CFLAGS"
25613 save_LIBS="$LIBS"
9d271838 25614 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25615 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25616
9755e73b 25617
304205f1
VS
25618for ac_func in pango_font_family_is_monospace
25619do
25620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25621echo "$as_me:$LINENO: checking for $ac_func" >&5
25622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25623if eval "test \"\${$as_ac_var+set}\" = set"; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625else
25626 cat >conftest.$ac_ext <<_ACEOF
25627/* confdefs.h. */
25628_ACEOF
25629cat confdefs.h >>conftest.$ac_ext
25630cat >>conftest.$ac_ext <<_ACEOF
25631/* end confdefs.h. */
25632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25634#define $ac_func innocuous_$ac_func
25635
25636/* System header to define __stub macros and hopefully few prototypes,
25637 which can conflict with char $ac_func (); below.
25638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25639 <limits.h> exists even on freestanding compilers. */
25640
25641#ifdef __STDC__
25642# include <limits.h>
25643#else
25644# include <assert.h>
25645#endif
25646
25647#undef $ac_func
25648
25649/* Override any gcc2 internal prototype to avoid an error. */
25650#ifdef __cplusplus
25651extern "C"
25652{
25653#endif
25654/* We use char because int might match the return type of a gcc2
25655 builtin and then its argument prototype would still apply. */
25656char $ac_func ();
25657/* The GNU C library defines this for functions which it implements
25658 to always fail with ENOSYS. Some functions are actually named
25659 something starting with __ and the normal name is an alias. */
25660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25661choke me
25662#else
25663char (*f) () = $ac_func;
25664#endif
25665#ifdef __cplusplus
25666}
25667#endif
25668
25669int
25670main ()
25671{
25672return f != $ac_func;
25673 ;
25674 return 0;
25675}
25676_ACEOF
25677rm -f conftest.$ac_objext conftest$ac_exeext
25678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679 (eval $ac_link) 2>conftest.er1
25680 ac_status=$?
25681 grep -v '^ *+' conftest.er1 >conftest.err
25682 rm -f conftest.er1
25683 cat conftest.err >&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } &&
6ebeb4c7 25686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; } &&
25692 { ac_try='test -s conftest$ac_exeext'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25695 ac_status=$?
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; }; then
25698 eval "$as_ac_var=yes"
25699else
25700 echo "$as_me: failed program was:" >&5
25701sed 's/^/| /' conftest.$ac_ext >&5
25702
25703eval "$as_ac_var=no"
25704fi
25705rm -f conftest.err conftest.$ac_objext \
25706 conftest$ac_exeext conftest.$ac_ext
25707fi
25708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25710if test `eval echo '${'$as_ac_var'}'` = yes; then
25711 cat >>confdefs.h <<_ACEOF
25712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25713_ACEOF
25714
25715fi
25716done
25717
9755e73b 25718
abc736fd
MW
25719 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25720echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25721 cat >conftest.$ac_ext <<_ACEOF
25722/* confdefs.h. */
25723_ACEOF
25724cat confdefs.h >>conftest.$ac_ext
25725cat >>conftest.$ac_ext <<_ACEOF
25726/* end confdefs.h. */
25727
25728 #include <gtk/gtk.h>
25729
25730int
25731main ()
25732{
25733
25734 void *f = gtk_icon_size_lookup;
25735
25736 ;
25737 return 0;
25738}
25739_ACEOF
25740rm -f conftest.$ac_objext
25741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742 (eval $ac_compile) 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
6ebeb4c7 25749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; } &&
25755 { ac_try='test -s conftest.$ac_objext'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; }; then
25761
25762 echo "$as_me:$LINENO: result: no" >&5
25763echo "${ECHO_T}no" >&6
25764
25765else
25766 echo "$as_me: failed program was:" >&5
25767sed 's/^/| /' conftest.$ac_ext >&5
25768
25769
25770 cat >>confdefs.h <<\_ACEOF
25771#define NEED_GTK_ICON_SIZE_LOOKUP 1
25772_ACEOF
25773
25774 echo "$as_me:$LINENO: result: yes" >&5
25775echo "${ECHO_T}yes" >&6
25776
25777fi
25778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779
9755e73b
VS
25780 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25781echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25782 cat >conftest.$ac_ext <<_ACEOF
25783/* confdefs.h. */
25784_ACEOF
25785cat confdefs.h >>conftest.$ac_ext
25786cat >>conftest.$ac_ext <<_ACEOF
25787/* end confdefs.h. */
25788
25789 #include <gtk/gtk.h>
25790
25791int
25792main ()
25793{
25794
25795 #if !GTK_CHECK_VERSION(2,4,0)
25796 #error "Not GTK+ 2.4"
25797 #endif
25798
25799 ;
25800 return 0;
25801}
25802_ACEOF
25803rm -f conftest.$ac_objext
25804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25805 (eval $ac_compile) 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } &&
6ebeb4c7 25812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; } &&
25818 { ac_try='test -s conftest.$ac_objext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824
25825 cat >>confdefs.h <<\_ACEOF
25826#define __WXGTK24__ 1
25827_ACEOF
25828
25829 echo "$as_me:$LINENO: result: yes" >&5
25830echo "${ECHO_T}yes" >&6
25831
25832else
25833 echo "$as_me: failed program was:" >&5
25834sed 's/^/| /' conftest.$ac_ext >&5
25835
25836
25837 echo "$as_me:$LINENO: result: no" >&5
25838echo "${ECHO_T}no" >&6
25839
25840fi
25841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25842
304205f1
VS
25843 CFLAGS="$save_CFLAGS"
25844 LIBS="$save_LIBS"
a848cd7e
SC
25845 else
25846 if test "$wxUSE_UNICODE" = "yes"; then
25847 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25848echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25849 wxUSE_UNICODE=no
25850 fi
25851 fi
25852
25853 if test "$USE_DARWIN" != 1; then
25854
25855for ac_func in poll
25856do
25857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25858echo "$as_me:$LINENO: checking for $ac_func" >&5
25859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25860if eval "test \"\${$as_ac_var+set}\" = set"; then
25861 echo $ECHO_N "(cached) $ECHO_C" >&6
25862else
25863 cat >conftest.$ac_ext <<_ACEOF
25864/* confdefs.h. */
25865_ACEOF
25866cat confdefs.h >>conftest.$ac_ext
25867cat >>conftest.$ac_ext <<_ACEOF
25868/* end confdefs.h. */
ac1cb8d3
VS
25869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25871#define $ac_func innocuous_$ac_func
25872
a848cd7e
SC
25873/* System header to define __stub macros and hopefully few prototypes,
25874 which can conflict with char $ac_func (); below.
25875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25876 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25877
a848cd7e
SC
25878#ifdef __STDC__
25879# include <limits.h>
25880#else
25881# include <assert.h>
25882#endif
ac1cb8d3
VS
25883
25884#undef $ac_func
25885
a848cd7e
SC
25886/* Override any gcc2 internal prototype to avoid an error. */
25887#ifdef __cplusplus
25888extern "C"
25889{
25890#endif
25891/* We use char because int might match the return type of a gcc2
25892 builtin and then its argument prototype would still apply. */
25893char $ac_func ();
25894/* The GNU C library defines this for functions which it implements
25895 to always fail with ENOSYS. Some functions are actually named
25896 something starting with __ and the normal name is an alias. */
25897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25898choke me
25899#else
25900char (*f) () = $ac_func;
25901#endif
25902#ifdef __cplusplus
25903}
25904#endif
25905
25906int
25907main ()
25908{
25909return f != $ac_func;
25910 ;
25911 return 0;
25912}
25913_ACEOF
25914rm -f conftest.$ac_objext conftest$ac_exeext
25915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25916 (eval $ac_link) 2>conftest.er1
a848cd7e 25917 ac_status=$?
ac1cb8d3
VS
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
a848cd7e
SC
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } &&
6ebeb4c7 25923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; } &&
25929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; }; then
25935 eval "$as_ac_var=yes"
25936else
25937 echo "$as_me: failed program was:" >&5
25938sed 's/^/| /' conftest.$ac_ext >&5
25939
25940eval "$as_ac_var=no"
25941fi
ac1cb8d3
VS
25942rm -f conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25944fi
25945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25947if test `eval echo '${'$as_ac_var'}'` = yes; then
25948 cat >>confdefs.h <<_ACEOF
25949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25950_ACEOF
25951
25952fi
25953done
25954
25955 fi
25956
25957 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25958 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25959
25960 AFMINSTALL=afminstall
25961 TOOLKIT=GTK
25962 GUIDIST=GTK_DIST
25963
25964 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25965echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25966if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25968else
25969 ac_check_lib_save_LIBS=$LIBS
25970LIBS="-lgdk $LIBS"
25971cat >conftest.$ac_ext <<_ACEOF
25972/* confdefs.h. */
25973_ACEOF
25974cat confdefs.h >>conftest.$ac_ext
25975cat >>conftest.$ac_ext <<_ACEOF
25976/* end confdefs.h. */
25977
25978/* Override any gcc2 internal prototype to avoid an error. */
25979#ifdef __cplusplus
25980extern "C"
25981#endif
25982/* We use char because int might match the return type of a gcc2
25983 builtin and then its argument prototype would still apply. */
25984char gdk_im_open ();
25985int
25986main ()
25987{
25988gdk_im_open ();
25989 ;
25990 return 0;
25991}
25992_ACEOF
25993rm -f conftest.$ac_objext conftest$ac_exeext
25994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25995 (eval $ac_link) 2>conftest.er1
a848cd7e 25996 ac_status=$?
ac1cb8d3
VS
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
a848cd7e
SC
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } &&
6ebeb4c7 26002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } &&
26008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; }; then
26014 ac_cv_lib_gdk_gdk_im_open=yes
26015else
26016 echo "$as_me: failed program was:" >&5
26017sed 's/^/| /' conftest.$ac_ext >&5
26018
26019ac_cv_lib_gdk_gdk_im_open=no
26020fi
ac1cb8d3
VS
26021rm -f conftest.err conftest.$ac_objext \
26022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26023LIBS=$ac_check_lib_save_LIBS
26024fi
26025echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26026echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26027if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26028 cat >>confdefs.h <<\_ACEOF
26029#define HAVE_XIM 1
26030_ACEOF
26031
26032fi
26033
26034
26035
26036 if test "$wxUSE_GPE" = "yes"; then
26037 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26038echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26039
26040ac_find_libraries=
26041for ac_dir in $SEARCH_LIB /usr/lib;
26042 do
3eca31dc 26043 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26044 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26045 ac_find_libraries=$ac_dir
26046 break 2
26047 fi
26048 done
26049 done
26050
26051 if test "$ac_find_libraries" != "" ; then
26052
26053 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26054 result=$?
26055 if test $result = 0; then
26056 ac_path_to_link=""
26057 else
26058 ac_path_to_link=" -L$ac_find_libraries"
26059 fi
26060
26061 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26062 WXGPE=1
26063 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26064echo "${ECHO_T}found at $ac_find_libraries" >&6
26065 else
26066 echo "$as_me:$LINENO: result: not found" >&5
26067echo "${ECHO_T}not found" >&6
26068 fi
26069
26070 fi
26071 fi
26072
26073 if test "$wxUSE_MGL" = 1; then
26074 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26075echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26076 if test "x$MGL_ROOT" = x ; then
26077 echo "$as_me:$LINENO: result: not found" >&5
26078echo "${ECHO_T}not found" >&6
26079 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26080echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26081 { (exit 1); exit 1; }; }
26082 else
26083 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26084echo "${ECHO_T}$MGL_ROOT" >&6
26085 fi
26086
26087 echo "$as_me:$LINENO: checking for libmgl location" >&5
26088echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26089 case "${host}" in
26090 *-*-linux* )
26091 if test "x$wxUSE_SHARED" = xyes ; then
26092 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26093 else
26094 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26095 fi
26096 ;;
26097 *-pc-msdosdjgpp )
26098 mgl_os_candidates="dos32/dj2"
26099 ;;
26100 *)
26101 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26102echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26103 { (exit 1); exit 1; }; }
26104 esac
26105
26106 mgl_lib_type=""
26107 mgl_os=""
26108
26109 for mgl_os_i in $mgl_os_candidates ; do
26110 if test "x$mgl_os" = x ; then
26111 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26112 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26113 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26114 mgl_lib_type=debug
26115 mgl_os=$mgl_os_i
26116 fi
26117 fi
26118 if test "x$mgl_lib_type" = x ; then
26119 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26120 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26121 mgl_lib_type=release
26122 mgl_os=$mgl_os_i
26123 fi
26124 fi
26125 fi
26126 done
26127
26128 if test "x$mgl_os" = x ; then
26129 echo "$as_me:$LINENO: result: not found" >&5
26130echo "${ECHO_T}not found" >&6
26131 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26132echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26133 { (exit 1); exit 1; }; }
26134 fi
26135 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26136echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26137
26138 wxUSE_UNIVERSAL="yes"
26139
26140 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26141 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26142
26143 AFMINSTALL=afminstall
26144 TOOLKIT=MGL
26145 GUIDIST=MGL_DIST
26146 fi
26147
26148 if test "$wxUSE_MICROWIN" = 1; then
26149 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26150echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26151 if test "x$MICROWINDOWS" = x ; then
26152 echo "$as_me:$LINENO: result: not found" >&5
26153echo "${ECHO_T}not found" >&6
26154 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26155echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26156 { (exit 1); exit 1; }; }
26157 else
26158 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26159echo "${ECHO_T}$MICROWINDOWS" >&6
26160 fi
26161
26162 if test -f $MICROWINDOWS/lib/libmwin.a; then
26163 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26164echo "${ECHO_T}MicroWindows' libraries found." >&6
26165 else
26166 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26167echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26168 { (exit 1); exit 1; }; }
26169 fi
26170
26171 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26172 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26173
26174 wxUSE_UNIVERSAL="yes"
26175
26176 AFMINSTALL=afminstall
26177 TOOLKIT=MICROWIN
26178 GUIDIST=MICROWIN_DIST
26179
26180 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26181 fi
26182
74b84332 26183 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26184
26185if test "x$ac_path_x_has_been_run" != xyes; then
26186 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26187echo $ECHO_N "checking for X... $ECHO_C" >&6
26188
6ebeb4c7 26189ac_path_x_has_been_run=yes
a848cd7e
SC
26190
26191# Check whether --with-x or --without-x was given.
26192if test "${with_x+set}" = set; then
26193 withval="$with_x"
26194
26195fi;
26196# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26197if test "x$with_x" = xno; then
26198 # The user explicitly disabled X.
26199 have_x=disabled
26200else
26201 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26202 # Both variables are already set.
26203 have_x=yes
26204 else
26205 if test "${ac_cv_have_x+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26207else
26208 # One or both of the vars are not set, and there is no cached value.
26209ac_x_includes=no ac_x_libraries=no
26210rm -fr conftest.dir
26211if mkdir conftest.dir; then
26212 cd conftest.dir
26213 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26214 cat >Imakefile <<'_ACEOF'
26215acfindx:
26216 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26217_ACEOF
26218 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26220 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26221 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26222 for ac_extension in a so sl; do
26223 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26224 test -f $ac_im_libdir/libX11.$ac_extension; then
26225 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26226 fi
26227 done
26228 # Screen out bogus values from the imake configuration. They are
26229 # bogus both because they are the default anyway, and because
26230 # using them would break gcc on systems where it needs fixed includes.
26231 case $ac_im_incroot in
26232 /usr/include) ;;
26233 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26234 esac
26235 case $ac_im_usrlibdir in
26236 /usr/lib | /lib) ;;
26237 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26238 esac
26239 fi
26240 cd ..
26241 rm -fr conftest.dir
26242fi
26243
26244# Standard set of common directories for X headers.
26245# Check X11 before X11Rn because it is often a symlink to the current release.
26246ac_x_header_dirs='
26247/usr/X11/include
26248/usr/X11R6/include
26249/usr/X11R5/include
26250/usr/X11R4/include
26251
26252/usr/include/X11
26253/usr/include/X11R6
26254/usr/include/X11R5
26255/usr/include/X11R4
26256
26257/usr/local/X11/include
26258/usr/local/X11R6/include
26259/usr/local/X11R5/include
26260/usr/local/X11R4/include
26261
26262/usr/local/include/X11
26263/usr/local/include/X11R6
26264/usr/local/include/X11R5
26265/usr/local/include/X11R4
26266
26267/usr/X386/include
26268/usr/x386/include
26269/usr/XFree86/include/X11
26270
26271/usr/include
26272/usr/local/include
26273/usr/unsupported/include
26274/usr/athena/include
26275/usr/local/x11r5/include
26276/usr/lpp/Xamples/include
26277
26278/usr/openwin/include
26279/usr/openwin/share/include'
26280
26281if test "$ac_x_includes" = no; then
6ebeb4c7 26282 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26283 # First, try using that file with no special directory specified.
26284 cat >conftest.$ac_ext <<_ACEOF
26285/* confdefs.h. */
26286_ACEOF
26287cat confdefs.h >>conftest.$ac_ext
26288cat >>conftest.$ac_ext <<_ACEOF
26289/* end confdefs.h. */
26290#include <X11/Intrinsic.h>
26291_ACEOF
26292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26294 ac_status=$?
26295 grep -v '^ *+' conftest.er1 >conftest.err
26296 rm -f conftest.er1
26297 cat conftest.err >&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } >/dev/null; then
26300 if test -s conftest.err; then
26301 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26303 else
26304 ac_cpp_err=
26305 fi
26306else
26307 ac_cpp_err=yes
26308fi
26309if test -z "$ac_cpp_err"; then
26310 # We can compile using X headers with no special include directory.
26311ac_x_includes=
26312else
26313 echo "$as_me: failed program was:" >&5
26314sed 's/^/| /' conftest.$ac_ext >&5
26315
26316 for ac_dir in $ac_x_header_dirs; do
26317 if test -r "$ac_dir/X11/Intrinsic.h"; then
26318 ac_x_includes=$ac_dir
26319 break
26320 fi
26321done
26322fi
26323rm -f conftest.err conftest.$ac_ext
26324fi # $ac_x_includes = no
26325
26326if test "$ac_x_libraries" = no; then
26327 # Check for the libraries.
26328 # See if we find them without any special options.
26329 # Don't add to $LIBS permanently.
26330 ac_save_LIBS=$LIBS
26331 LIBS="-lXt $LIBS"
26332 cat >conftest.$ac_ext <<_ACEOF
26333/* confdefs.h. */
26334_ACEOF
26335cat confdefs.h >>conftest.$ac_ext
26336cat >>conftest.$ac_ext <<_ACEOF
26337/* end confdefs.h. */
26338#include <X11/Intrinsic.h>
26339int
26340main ()
26341{
26342XtMalloc (0)
26343 ;
26344 return 0;
26345}
26346_ACEOF
26347rm -f conftest.$ac_objext conftest$ac_exeext
26348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26349 (eval $ac_link) 2>conftest.er1
a848cd7e 26350 ac_status=$?
ac1cb8d3
VS
26351 grep -v '^ *+' conftest.er1 >conftest.err
26352 rm -f conftest.er1
26353 cat conftest.err >&5
a848cd7e
SC
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
6ebeb4c7 26356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; } &&
26362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; }; then
26368 LIBS=$ac_save_LIBS
26369# We can link X programs with no special library path.
26370ac_x_libraries=
26371else
26372 echo "$as_me: failed program was:" >&5
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
26375LIBS=$ac_save_LIBS
26376for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26377do
26378 # Don't even attempt the hair of trying to link an X program!
26379 for ac_extension in a so sl; do
26380 if test -r $ac_dir/libXt.$ac_extension; then
26381 ac_x_libraries=$ac_dir
26382 break 2
26383 fi
26384 done
26385done
26386fi
ac1cb8d3
VS
26387rm -f conftest.err conftest.$ac_objext \
26388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26389fi # $ac_x_libraries = no
26390
26391if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26392 # Didn't find X anywhere. Cache the known absence of X.
26393 ac_cv_have_x="have_x=no"
26394else
26395 # Record where we found X for the cache.
26396 ac_cv_have_x="have_x=yes \
ac1cb8d3 26397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26398fi
26399fi
26400
26401 fi
26402 eval "$ac_cv_have_x"
26403fi # $with_x != no
26404
26405if test "$have_x" != yes; then
26406 echo "$as_me:$LINENO: result: $have_x" >&5
26407echo "${ECHO_T}$have_x" >&6
26408 no_x=yes
26409else
26410 # If each of the values was on the command line, it overrides each guess.
26411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26413 # Update the cache value to reflect the command line values.
26414 ac_cv_have_x="have_x=yes \
26415 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26416 # It might be that x_includes is empty (headers are found in the
26417 # standard search path. Then output the corresponding message
26418 ac_out_x_includes=$x_includes
26419 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26420 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26421echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26422fi
26423
6ebeb4c7 26424fi
a848cd7e
SC
26425if test "$no_x" = yes; then
26426 # Not all programs may use this symbol, but it does not hurt to define it.
26427
26428cat >>confdefs.h <<\_ACEOF
26429#define X_DISPLAY_MISSING 1
26430_ACEOF
26431
26432 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26433else
26434 if test -n "$x_includes"; then
26435 X_CFLAGS="$X_CFLAGS -I$x_includes"
26436 fi
26437
26438 # It would also be nice to do this for all -L options, not just this one.
26439 if test -n "$x_libraries"; then
26440 X_LIBS="$X_LIBS -L$x_libraries"
26441 # For Solaris; some versions of Sun CC require a space after -R and
26442 # others require no space. Words are not sufficient . . . .
26443 case `(uname -sr) 2>/dev/null` in
26444 "SunOS 5"*)
26445 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26446echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26447 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26448 cat >conftest.$ac_ext <<_ACEOF
26449/* confdefs.h. */
26450_ACEOF
26451cat confdefs.h >>conftest.$ac_ext
26452cat >>conftest.$ac_ext <<_ACEOF
26453/* end confdefs.h. */
26454
26455int
26456main ()
26457{
26458
26459 ;
26460 return 0;
26461}
26462_ACEOF
26463rm -f conftest.$ac_objext conftest$ac_exeext
26464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26465 (eval $ac_link) 2>conftest.er1
a848cd7e 26466 ac_status=$?
ac1cb8d3
VS
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
a848cd7e
SC
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
6ebeb4c7 26472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; } &&
26478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; }; then
26484 ac_R_nospace=yes
26485else
26486 echo "$as_me: failed program was:" >&5
26487sed 's/^/| /' conftest.$ac_ext >&5
26488
26489ac_R_nospace=no
26490fi
ac1cb8d3
VS
26491rm -f conftest.err conftest.$ac_objext \
26492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26493 if test $ac_R_nospace = yes; then
26494 echo "$as_me:$LINENO: result: no" >&5
26495echo "${ECHO_T}no" >&6
26496 X_LIBS="$X_LIBS -R$x_libraries"
26497 else
26498 LIBS="$ac_xsave_LIBS -R $x_libraries"
26499 cat >conftest.$ac_ext <<_ACEOF
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505
26506int
26507main ()
26508{
26509
26510 ;
26511 return 0;
26512}
26513_ACEOF
26514rm -f conftest.$ac_objext conftest$ac_exeext
26515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26516 (eval $ac_link) 2>conftest.er1
a848cd7e 26517 ac_status=$?
ac1cb8d3
VS
26518 grep -v '^ *+' conftest.er1 >conftest.err
26519 rm -f conftest.er1
26520 cat conftest.err >&5
a848cd7e
SC
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } &&
6ebeb4c7 26523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); }; } &&
26529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531 (eval $ac_try) 2>&5
26532 ac_status=$?
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); }; }; then
26535 ac_R_space=yes
26536else
26537 echo "$as_me: failed program was:" >&5
26538sed 's/^/| /' conftest.$ac_ext >&5
26539
26540ac_R_space=no
26541fi
ac1cb8d3
VS
26542rm -f conftest.err conftest.$ac_objext \
26543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26544 if test $ac_R_space = yes; then
26545 echo "$as_me:$LINENO: result: yes" >&5
26546echo "${ECHO_T}yes" >&6
26547 X_LIBS="$X_LIBS -R $x_libraries"
26548 else
26549 echo "$as_me:$LINENO: result: neither works" >&5
26550echo "${ECHO_T}neither works" >&6
26551 fi
26552 fi
26553 LIBS=$ac_xsave_LIBS
26554 esac
26555 fi
26556
26557 # Check for system-dependent libraries X programs must link with.
26558 # Do this before checking for the system-independent R6 libraries
26559 # (-lICE), since we may need -lsocket or whatever for X linking.
26560
26561 if test "$ISC" = yes; then
26562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26563 else
26564 # Martyn Johnson says this is needed for Ultrix, if the X
26565 # libraries were built with DECnet support. And Karl Berry says
26566 # the Alpha needs dnet_stub (dnet does not exist).
26567 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26568 cat >conftest.$ac_ext <<_ACEOF
26569/* confdefs.h. */
26570_ACEOF
26571cat confdefs.h >>conftest.$ac_ext
26572cat >>conftest.$ac_ext <<_ACEOF
26573/* end confdefs.h. */
26574
26575/* Override any gcc2 internal prototype to avoid an error. */
26576#ifdef __cplusplus
26577extern "C"
26578#endif
26579/* We use char because int might match the return type of a gcc2
26580 builtin and then its argument prototype would still apply. */
26581char XOpenDisplay ();
26582int
26583main ()
26584{
26585XOpenDisplay ();
26586 ;
26587 return 0;
26588}
26589_ACEOF
26590rm -f conftest.$ac_objext conftest$ac_exeext
26591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26592 (eval $ac_link) 2>conftest.er1
a848cd7e 26593 ac_status=$?
ac1cb8d3
VS
26594 grep -v '^ *+' conftest.er1 >conftest.err
26595 rm -f conftest.er1
26596 cat conftest.err >&5
a848cd7e
SC
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } &&
6ebeb4c7 26599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; } &&
26605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26611 :
26612else
26613 echo "$as_me: failed program was:" >&5
26614sed 's/^/| /' conftest.$ac_ext >&5
26615
26616echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26617echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26618if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620else
26621 ac_check_lib_save_LIBS=$LIBS
26622LIBS="-ldnet $LIBS"
26623cat >conftest.$ac_ext <<_ACEOF
26624/* confdefs.h. */
26625_ACEOF
26626cat confdefs.h >>conftest.$ac_ext
26627cat >>conftest.$ac_ext <<_ACEOF
26628/* end confdefs.h. */
26629
26630/* Override any gcc2 internal prototype to avoid an error. */
26631#ifdef __cplusplus
26632extern "C"
26633#endif
26634/* We use char because int might match the return type of a gcc2
26635 builtin and then its argument prototype would still apply. */
26636char dnet_ntoa ();
26637int
26638main ()
26639{
26640dnet_ntoa ();
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645rm -f conftest.$ac_objext conftest$ac_exeext
26646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26647 (eval $ac_link) 2>conftest.er1
a848cd7e 26648 ac_status=$?
ac1cb8d3
VS
26649 grep -v '^ *+' conftest.er1 >conftest.err
26650 rm -f conftest.er1
26651 cat conftest.err >&5
a848cd7e
SC
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } &&
6ebeb4c7 26654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 ac_cv_lib_dnet_dnet_ntoa=yes
26667else
26668 echo "$as_me: failed program was:" >&5
26669sed 's/^/| /' conftest.$ac_ext >&5
26670
26671ac_cv_lib_dnet_dnet_ntoa=no
26672fi
ac1cb8d3
VS
26673rm -f conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26675LIBS=$ac_check_lib_save_LIBS
26676fi
26677echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26678echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26679if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26680 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26681fi
26682
26683 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26684 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26685echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26686if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689 ac_check_lib_save_LIBS=$LIBS
26690LIBS="-ldnet_stub $LIBS"
26691cat >conftest.$ac_ext <<_ACEOF
26692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
26696/* end confdefs.h. */
26697
26698/* Override any gcc2 internal prototype to avoid an error. */
26699#ifdef __cplusplus
26700extern "C"
26701#endif
26702/* We use char because int might match the return type of a gcc2
26703 builtin and then its argument prototype would still apply. */
26704char dnet_ntoa ();
26705int
26706main ()
26707{
26708dnet_ntoa ();
26709 ;
26710 return 0;
26711}
26712_ACEOF
26713rm -f conftest.$ac_objext conftest$ac_exeext
26714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26715 (eval $ac_link) 2>conftest.er1
a848cd7e 26716 ac_status=$?
ac1cb8d3
VS
26717 grep -v '^ *+' conftest.er1 >conftest.err
26718 rm -f conftest.er1
26719 cat conftest.err >&5
a848cd7e
SC
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } &&
6ebeb4c7 26722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; } &&
26728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26735else
26736 echo "$as_me: failed program was:" >&5
26737sed 's/^/| /' conftest.$ac_ext >&5
26738
26739ac_cv_lib_dnet_stub_dnet_ntoa=no
26740fi
ac1cb8d3
VS
26741rm -f conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26743LIBS=$ac_check_lib_save_LIBS
26744fi
26745echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26746echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26747if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26748 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26749fi
26750
26751 fi
26752fi
ac1cb8d3
VS
26753rm -f conftest.err conftest.$ac_objext \
26754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26755 LIBS="$ac_xsave_LIBS"
26756
26757 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26758 # to get the SysV transport functions.
26759 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26760 # needs -lnsl.
26761 # The nsl library prevents programs from opening the X display
26762 # on Irix 5.2, according to T.E. Dickey.
26763 # The functions gethostbyname, getservbyname, and inet_addr are
26764 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26765 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26766echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26767if test "${ac_cv_func_gethostbyname+set}" = set; then
26768 echo $ECHO_N "(cached) $ECHO_C" >&6
26769else
26770 cat >conftest.$ac_ext <<_ACEOF
26771/* confdefs.h. */
26772_ACEOF
26773cat confdefs.h >>conftest.$ac_ext
26774cat >>conftest.$ac_ext <<_ACEOF
26775/* end confdefs.h. */
ac1cb8d3
VS
26776/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26778#define gethostbyname innocuous_gethostbyname
26779
a848cd7e
SC
26780/* System header to define __stub macros and hopefully few prototypes,
26781 which can conflict with char gethostbyname (); below.
26782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26784
a848cd7e
SC
26785#ifdef __STDC__
26786# include <limits.h>
26787#else
26788# include <assert.h>
26789#endif
ac1cb8d3
VS
26790
26791#undef gethostbyname
26792
a848cd7e
SC
26793/* Override any gcc2 internal prototype to avoid an error. */
26794#ifdef __cplusplus
26795extern "C"
26796{
26797#endif
26798/* We use char because int might match the return type of a gcc2
26799 builtin and then its argument prototype would still apply. */
26800char gethostbyname ();
26801/* The GNU C library defines this for functions which it implements
26802 to always fail with ENOSYS. Some functions are actually named
26803 something starting with __ and the normal name is an alias. */
26804#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26805choke me
26806#else
26807char (*f) () = gethostbyname;
26808#endif
26809#ifdef __cplusplus
26810}
26811#endif
26812
26813int
26814main ()
26815{
26816return f != gethostbyname;
26817 ;
26818 return 0;
26819}
26820_ACEOF
26821rm -f conftest.$ac_objext conftest$ac_exeext
26822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26823 (eval $ac_link) 2>conftest.er1
a848cd7e 26824 ac_status=$?
ac1cb8d3
VS
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
a848cd7e
SC
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
6ebeb4c7 26830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26833 ac_status=$?
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; } &&
26836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; }; then
26842 ac_cv_func_gethostbyname=yes
26843else
26844 echo "$as_me: failed program was:" >&5
26845sed 's/^/| /' conftest.$ac_ext >&5
26846
26847ac_cv_func_gethostbyname=no
26848fi
ac1cb8d3
VS
26849rm -f conftest.err conftest.$ac_objext \
26850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26851fi
26852echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26853echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26854
26855 if test $ac_cv_func_gethostbyname = no; then
26856 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26857echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26858if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26860else
26861 ac_check_lib_save_LIBS=$LIBS
26862LIBS="-lnsl $LIBS"
26863cat >conftest.$ac_ext <<_ACEOF
26864/* confdefs.h. */
26865_ACEOF
26866cat confdefs.h >>conftest.$ac_ext
26867cat >>conftest.$ac_ext <<_ACEOF
26868/* end confdefs.h. */
26869
26870/* Override any gcc2 internal prototype to avoid an error. */
26871#ifdef __cplusplus
26872extern "C"
26873#endif
26874/* We use char because int might match the return type of a gcc2
26875 builtin and then its argument prototype would still apply. */
26876char gethostbyname ();
26877int
26878main ()
26879{
26880gethostbyname ();
26881 ;
26882 return 0;
26883}
26884_ACEOF
26885rm -f conftest.$ac_objext conftest$ac_exeext
26886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26887 (eval $ac_link) 2>conftest.er1
26888 ac_status=$?
26889 grep -v '^ *+' conftest.er1 >conftest.err
26890 rm -f conftest.er1
26891 cat conftest.err >&5
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); } &&
6ebeb4c7 26894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26896 (eval $ac_try) 2>&5
26897 ac_status=$?
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); }; } &&
26900 { ac_try='test -s conftest$ac_exeext'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; }; then
26906 ac_cv_lib_nsl_gethostbyname=yes
26907else
26908 echo "$as_me: failed program was:" >&5
26909sed 's/^/| /' conftest.$ac_ext >&5
26910
26911ac_cv_lib_nsl_gethostbyname=no
26912fi
26913rm -f conftest.err conftest.$ac_objext \
26914 conftest$ac_exeext conftest.$ac_ext
26915LIBS=$ac_check_lib_save_LIBS
26916fi
26917echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26918echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26919if test $ac_cv_lib_nsl_gethostbyname = yes; then
26920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26921fi
26922
26923 if test $ac_cv_lib_nsl_gethostbyname = no; then
26924 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26925echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26926if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26928else
26929 ac_check_lib_save_LIBS=$LIBS
26930LIBS="-lbsd $LIBS"
26931cat >conftest.$ac_ext <<_ACEOF
26932/* confdefs.h. */
26933_ACEOF
26934cat confdefs.h >>conftest.$ac_ext
26935cat >>conftest.$ac_ext <<_ACEOF
26936/* end confdefs.h. */
26937
26938/* Override any gcc2 internal prototype to avoid an error. */
26939#ifdef __cplusplus
26940extern "C"
26941#endif
26942/* We use char because int might match the return type of a gcc2
26943 builtin and then its argument prototype would still apply. */
26944char gethostbyname ();
26945int
26946main ()
26947{
26948gethostbyname ();
26949 ;
26950 return 0;
26951}
26952_ACEOF
26953rm -f conftest.$ac_objext conftest$ac_exeext
26954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26955 (eval $ac_link) 2>conftest.er1
a848cd7e 26956 ac_status=$?
ac1cb8d3
VS
26957 grep -v '^ *+' conftest.er1 >conftest.err
26958 rm -f conftest.er1
26959 cat conftest.err >&5
a848cd7e
SC
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } &&
6ebeb4c7 26962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26965 ac_status=$?
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26967 (exit $ac_status); }; } &&
26968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26971 ac_status=$?
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974 ac_cv_lib_bsd_gethostbyname=yes
26975else
26976 echo "$as_me: failed program was:" >&5
26977sed 's/^/| /' conftest.$ac_ext >&5
26978
26979ac_cv_lib_bsd_gethostbyname=no
26980fi
ac1cb8d3
VS
26981rm -f conftest.err conftest.$ac_objext \
26982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26983LIBS=$ac_check_lib_save_LIBS
26984fi
26985echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26986echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26987if test $ac_cv_lib_bsd_gethostbyname = yes; then
26988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26989fi
26990
26991 fi
26992 fi
26993
26994 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26995 # socket/setsockopt and other routines are undefined under SCO ODT
26996 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26997 # on later versions), says Simon Leinen: it contains gethostby*
26998 # variants that don't use the name server (or something). -lsocket
26999 # must be given before -lnsl if both are needed. We assume that
27000 # if connect needs -lnsl, so does gethostbyname.
27001 echo "$as_me:$LINENO: checking for connect" >&5
27002echo $ECHO_N "checking for connect... $ECHO_C" >&6
27003if test "${ac_cv_func_connect+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005else
27006 cat >conftest.$ac_ext <<_ACEOF
27007/* confdefs.h. */
27008_ACEOF
27009cat confdefs.h >>conftest.$ac_ext
27010cat >>conftest.$ac_ext <<_ACEOF
27011/* end confdefs.h. */
ac1cb8d3
VS
27012/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27014#define connect innocuous_connect
27015
a848cd7e
SC
27016/* System header to define __stub macros and hopefully few prototypes,
27017 which can conflict with char connect (); below.
27018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27019 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27020
a848cd7e
SC
27021#ifdef __STDC__
27022# include <limits.h>
27023#else
27024# include <assert.h>
27025#endif
ac1cb8d3
VS
27026
27027#undef connect
27028
a848cd7e
SC
27029/* Override any gcc2 internal prototype to avoid an error. */
27030#ifdef __cplusplus
27031extern "C"
27032{
27033#endif
27034/* We use char because int might match the return type of a gcc2
27035 builtin and then its argument prototype would still apply. */
27036char connect ();
27037/* The GNU C library defines this for functions which it implements
27038 to always fail with ENOSYS. Some functions are actually named
27039 something starting with __ and the normal name is an alias. */
27040#if defined (__stub_connect) || defined (__stub___connect)
27041choke me
27042#else
27043char (*f) () = connect;
27044#endif
27045#ifdef __cplusplus
27046}
27047#endif
27048
27049int
27050main ()
27051{
27052return f != connect;
27053 ;
27054 return 0;
27055}
27056_ACEOF
27057rm -f conftest.$ac_objext conftest$ac_exeext
27058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27059 (eval $ac_link) 2>conftest.er1
a848cd7e 27060 ac_status=$?
ac1cb8d3
VS
27061 grep -v '^ *+' conftest.er1 >conftest.err
27062 rm -f conftest.er1
27063 cat conftest.err >&5
a848cd7e
SC
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
6ebeb4c7 27066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; } &&
27072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 ac_cv_func_connect=yes
27079else
27080 echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
27083ac_cv_func_connect=no
27084fi
ac1cb8d3
VS
27085rm -f conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27087fi
27088echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27089echo "${ECHO_T}$ac_cv_func_connect" >&6
27090
27091 if test $ac_cv_func_connect = no; then
27092 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27093echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27094if test "${ac_cv_lib_socket_connect+set}" = set; then
27095 echo $ECHO_N "(cached) $ECHO_C" >&6
27096else
27097 ac_check_lib_save_LIBS=$LIBS
27098LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27099cat >conftest.$ac_ext <<_ACEOF
27100/* confdefs.h. */
27101_ACEOF
27102cat confdefs.h >>conftest.$ac_ext
27103cat >>conftest.$ac_ext <<_ACEOF
27104/* end confdefs.h. */
27105
27106/* Override any gcc2 internal prototype to avoid an error. */
27107#ifdef __cplusplus
27108extern "C"
27109#endif
27110/* We use char because int might match the return type of a gcc2
27111 builtin and then its argument prototype would still apply. */
27112char connect ();
27113int
27114main ()
27115{
27116connect ();
27117 ;
27118 return 0;
27119}
27120_ACEOF
27121rm -f conftest.$ac_objext conftest$ac_exeext
27122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27123 (eval $ac_link) 2>conftest.er1
a848cd7e 27124 ac_status=$?
ac1cb8d3
VS
27125 grep -v '^ *+' conftest.er1 >conftest.err
27126 rm -f conftest.er1
27127 cat conftest.err >&5
a848cd7e
SC
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } &&
6ebeb4c7 27130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; } &&
27136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; }; then
27142 ac_cv_lib_socket_connect=yes
27143else
27144 echo "$as_me: failed program was:" >&5
27145sed 's/^/| /' conftest.$ac_ext >&5
27146
27147ac_cv_lib_socket_connect=no
27148fi
ac1cb8d3
VS
27149rm -f conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27151LIBS=$ac_check_lib_save_LIBS
27152fi
27153echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27154echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27155if test $ac_cv_lib_socket_connect = yes; then
27156 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27157fi
27158
27159 fi
27160
27161 # Guillermo Gomez says -lposix is necessary on A/UX.
27162 echo "$as_me:$LINENO: checking for remove" >&5
27163echo $ECHO_N "checking for remove... $ECHO_C" >&6
27164if test "${ac_cv_func_remove+set}" = set; then
27165 echo $ECHO_N "(cached) $ECHO_C" >&6
27166else
27167 cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
ac1cb8d3
VS
27173/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27175#define remove innocuous_remove
27176
a848cd7e
SC
27177/* System header to define __stub macros and hopefully few prototypes,
27178 which can conflict with char remove (); below.
27179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27181
a848cd7e
SC
27182#ifdef __STDC__
27183# include <limits.h>
27184#else
27185# include <assert.h>
27186#endif
ac1cb8d3
VS
27187
27188#undef remove
27189
a848cd7e
SC
27190/* Override any gcc2 internal prototype to avoid an error. */
27191#ifdef __cplusplus
27192extern "C"
27193{
27194#endif
27195/* We use char because int might match the return type of a gcc2
27196 builtin and then its argument prototype would still apply. */
27197char remove ();
27198/* The GNU C library defines this for functions which it implements
27199 to always fail with ENOSYS. Some functions are actually named
27200 something starting with __ and the normal name is an alias. */
27201#if defined (__stub_remove) || defined (__stub___remove)
27202choke me
27203#else
27204char (*f) () = remove;
27205#endif
27206#ifdef __cplusplus
27207}
27208#endif
27209
27210int
27211main ()
27212{
27213return f != remove;
27214 ;
27215 return 0;
27216}
27217_ACEOF
27218rm -f conftest.$ac_objext conftest$ac_exeext
27219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27220 (eval $ac_link) 2>conftest.er1
a848cd7e 27221 ac_status=$?
ac1cb8d3
VS
27222 grep -v '^ *+' conftest.er1 >conftest.err
27223 rm -f conftest.er1
27224 cat conftest.err >&5
a848cd7e
SC
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
6ebeb4c7 27227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 ac_cv_func_remove=yes
27240else
27241 echo "$as_me: failed program was:" >&5
27242sed 's/^/| /' conftest.$ac_ext >&5
27243
27244ac_cv_func_remove=no
27245fi
ac1cb8d3
VS
27246rm -f conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27248fi
27249echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27250echo "${ECHO_T}$ac_cv_func_remove" >&6
27251
27252 if test $ac_cv_func_remove = no; then
27253 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27254echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27255if test "${ac_cv_lib_posix_remove+set}" = set; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27257else
27258 ac_check_lib_save_LIBS=$LIBS
27259LIBS="-lposix $LIBS"
27260cat >conftest.$ac_ext <<_ACEOF
27261/* confdefs.h. */
27262_ACEOF
27263cat confdefs.h >>conftest.$ac_ext
27264cat >>conftest.$ac_ext <<_ACEOF
27265/* end confdefs.h. */
27266
27267/* Override any gcc2 internal prototype to avoid an error. */
27268#ifdef __cplusplus
27269extern "C"
27270#endif
27271/* We use char because int might match the return type of a gcc2
27272 builtin and then its argument prototype would still apply. */
27273char remove ();
27274int
27275main ()
27276{
27277remove ();
27278 ;
27279 return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext conftest$ac_exeext
27283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27284 (eval $ac_link) 2>conftest.er1
a848cd7e 27285 ac_status=$?
ac1cb8d3
VS
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
a848cd7e
SC
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
6ebeb4c7 27291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; } &&
27297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
27303 ac_cv_lib_posix_remove=yes
27304else
27305 echo "$as_me: failed program was:" >&5
27306sed 's/^/| /' conftest.$ac_ext >&5
27307
27308ac_cv_lib_posix_remove=no
27309fi
ac1cb8d3
VS
27310rm -f conftest.err conftest.$ac_objext \
27311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27312LIBS=$ac_check_lib_save_LIBS
27313fi
27314echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27315echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27316if test $ac_cv_lib_posix_remove = yes; then
27317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27318fi
27319
27320 fi
27321
27322 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27323 echo "$as_me:$LINENO: checking for shmat" >&5
27324echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27325if test "${ac_cv_func_shmat+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27327else
27328 cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
ac1cb8d3
VS
27334/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27336#define shmat innocuous_shmat
27337
a848cd7e
SC
27338/* System header to define __stub macros and hopefully few prototypes,
27339 which can conflict with char shmat (); below.
27340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27342
a848cd7e
SC
27343#ifdef __STDC__
27344# include <limits.h>
27345#else
27346# include <assert.h>
27347#endif
ac1cb8d3
VS
27348
27349#undef shmat
27350
a848cd7e
SC
27351/* Override any gcc2 internal prototype to avoid an error. */
27352#ifdef __cplusplus
27353extern "C"
27354{
27355#endif
27356/* We use char because int might match the return type of a gcc2
27357 builtin and then its argument prototype would still apply. */
27358char shmat ();
27359/* The GNU C library defines this for functions which it implements
27360 to always fail with ENOSYS. Some functions are actually named
27361 something starting with __ and the normal name is an alias. */
27362#if defined (__stub_shmat) || defined (__stub___shmat)
27363choke me
27364#else
27365char (*f) () = shmat;
27366#endif
27367#ifdef __cplusplus
27368}
27369#endif
27370
27371int
27372main ()
27373{
27374return f != shmat;
27375 ;
27376 return 0;
27377}
27378_ACEOF
27379rm -f conftest.$ac_objext conftest$ac_exeext
27380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27381 (eval $ac_link) 2>conftest.er1
a848cd7e 27382 ac_status=$?
ac1cb8d3
VS
27383 grep -v '^ *+' conftest.er1 >conftest.err
27384 rm -f conftest.er1
27385 cat conftest.err >&5
a848cd7e
SC
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
6ebeb4c7 27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; } &&
27394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_func_shmat=yes
27401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
27405ac_cv_func_shmat=no
27406fi
ac1cb8d3
VS
27407rm -f conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27409fi
27410echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27411echo "${ECHO_T}$ac_cv_func_shmat" >&6
27412
27413 if test $ac_cv_func_shmat = no; then
27414 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27415echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27416if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27418else
27419 ac_check_lib_save_LIBS=$LIBS
27420LIBS="-lipc $LIBS"
27421cat >conftest.$ac_ext <<_ACEOF
27422/* confdefs.h. */
27423_ACEOF
27424cat confdefs.h >>conftest.$ac_ext
27425cat >>conftest.$ac_ext <<_ACEOF
27426/* end confdefs.h. */
27427
27428/* Override any gcc2 internal prototype to avoid an error. */
27429#ifdef __cplusplus
27430extern "C"
27431#endif
27432/* We use char because int might match the return type of a gcc2
27433 builtin and then its argument prototype would still apply. */
27434char shmat ();
27435int
27436main ()
27437{
27438shmat ();
27439 ;
27440 return 0;
27441}
27442_ACEOF
27443rm -f conftest.$ac_objext conftest$ac_exeext
27444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27445 (eval $ac_link) 2>conftest.er1
a848cd7e 27446 ac_status=$?
ac1cb8d3
VS
27447 grep -v '^ *+' conftest.er1 >conftest.err
27448 rm -f conftest.er1
27449 cat conftest.err >&5
a848cd7e
SC
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } &&
6ebeb4c7 27452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; } &&
27458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; }; then
27464 ac_cv_lib_ipc_shmat=yes
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469ac_cv_lib_ipc_shmat=no
27470fi
ac1cb8d3
VS
27471rm -f conftest.err conftest.$ac_objext \
27472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27473LIBS=$ac_check_lib_save_LIBS
27474fi
27475echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27476echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27477if test $ac_cv_lib_ipc_shmat = yes; then
27478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27479fi
27480
27481 fi
27482 fi
27483
27484 # Check for libraries that X11R6 Xt/Xaw programs need.
27485 ac_save_LDFLAGS=$LDFLAGS
27486 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27487 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27488 # check for ICE first), but we must link in the order -lSM -lICE or
27489 # we get undefined symbols. So assume we have SM if we have ICE.
27490 # These have to be linked with before -lX11, unlike the other
27491 # libraries we check for below, so use a different variable.
27492 # John Interrante, Karl Berry
27493 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27494echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27495if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27500cat >conftest.$ac_ext <<_ACEOF
27501/* confdefs.h. */
27502_ACEOF
27503cat confdefs.h >>conftest.$ac_ext
27504cat >>conftest.$ac_ext <<_ACEOF
27505/* end confdefs.h. */
27506
27507/* Override any gcc2 internal prototype to avoid an error. */
27508#ifdef __cplusplus
27509extern "C"
27510#endif
27511/* We use char because int might match the return type of a gcc2
27512 builtin and then its argument prototype would still apply. */
27513char IceConnectionNumber ();
27514int
27515main ()
27516{
27517IceConnectionNumber ();
27518 ;
27519 return 0;
27520}
27521_ACEOF
27522rm -f conftest.$ac_objext conftest$ac_exeext
27523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27524 (eval $ac_link) 2>conftest.er1
a848cd7e 27525 ac_status=$?
ac1cb8d3
VS
27526 grep -v '^ *+' conftest.er1 >conftest.err
27527 rm -f conftest.er1
27528 cat conftest.err >&5
a848cd7e
SC
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } &&
6ebeb4c7 27531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27534 ac_status=$?
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; } &&
27537 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; }; then
27543 ac_cv_lib_ICE_IceConnectionNumber=yes
27544else
27545 echo "$as_me: failed program was:" >&5
27546sed 's/^/| /' conftest.$ac_ext >&5
27547
27548ac_cv_lib_ICE_IceConnectionNumber=no
27549fi
ac1cb8d3
VS
27550rm -f conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27552LIBS=$ac_check_lib_save_LIBS
27553fi
27554echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27555echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27556if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27557 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27558fi
27559
27560 LDFLAGS=$ac_save_LDFLAGS
27561
27562fi
27563
27564
27565 if test "$no_x" = "yes"; then
27566 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27567echo "$as_me: error: X11 not found" >&2;}
27568 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27569 fi
27570
74b84332
VS
27571 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27572 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27573 AFMINSTALL=afminstall
27574 COMPILED_X_PROGRAM=0
27575
74b84332
VS
27576 fi
27577
27578 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27579 if test "$wxUSE_NANOX" = "yes"; then
27580 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27581echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27582 if test "x$MICROWIN" = x ; then
27583 echo "$as_me:$LINENO: result: not found" >&5
27584echo "${ECHO_T}not found" >&6
27585 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27586echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27587 { (exit 1); exit 1; }; }
27588 else
27589 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27590echo "${ECHO_T}$MICROWIN" >&6
27591 cat >>confdefs.h <<\_ACEOF
27592#define wxUSE_NANOX 1
27593_ACEOF
27594
27595 fi
27596 fi
27597
27598 if test "$wxUSE_UNICODE" = "yes"; then
27599
27600 succeeded=no
27601
27602 if test -z "$PKG_CONFIG"; then
27603 # Extract the first word of "pkg-config", so it can be a program name with args.
27604set dummy pkg-config; ac_word=$2
27605echo "$as_me:$LINENO: checking for $ac_word" >&5
27606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27607if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27609else
27610 case $PKG_CONFIG in
27611 [\\/]* | ?:[\\/]*)
27612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27613 ;;
27614 *)
27615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27616for as_dir in $PATH
27617do
27618 IFS=$as_save_IFS
27619 test -z "$as_dir" && as_dir=.
27620 for ac_exec_ext in '' $ac_executable_extensions; do
27621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27624 break 2
27625 fi
27626done
27627done
27628
27629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27630 ;;
27631esac
27632fi
27633PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27634
27635if test -n "$PKG_CONFIG"; then
27636 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27637echo "${ECHO_T}$PKG_CONFIG" >&6
27638else
27639 echo "$as_me:$LINENO: result: no" >&5
27640echo "${ECHO_T}no" >&6
27641fi
27642
27643 fi
27644
27645 if test "$PKG_CONFIG" = "no" ; then
27646 echo "*** The pkg-config script could not be found. Make sure it is"
27647 echo "*** in your path, or set the PKG_CONFIG environment variable"
27648 echo "*** to the full path to pkg-config."
27649 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27650 else
27651 PKG_CONFIG_MIN_VERSION=0.9.0
27652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27653 echo "$as_me:$LINENO: checking for pangox" >&5
27654echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27655
27656 if $PKG_CONFIG --exists "pangox" ; then
27657 echo "$as_me:$LINENO: result: yes" >&5
27658echo "${ECHO_T}yes" >&6
27659 succeeded=yes
27660
27661 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27662echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27663 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27664 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27665echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27666
27667 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27668echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27669 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27670 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27671echo "${ECHO_T}$PANGOX_LIBS" >&6
27672 else
27673 PANGOX_CFLAGS=""
27674 PANGOX_LIBS=""
27675 ## If we have a custom action on failure, don't print errors, but
27676 ## do set a variable so people can do so.
27677 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27678
27679 fi
27680
27681
27682
27683 else
27684 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27685 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27686 fi
27687 fi
27688
27689 if test $succeeded = yes; then
27690
27691 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27692 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27693
27694 else
27695
27696 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27697echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27698 { (exit 1); exit 1; }; }
27699
27700
27701 fi
27702
27703
27704 succeeded=no
27705
27706 if test -z "$PKG_CONFIG"; then
27707 # Extract the first word of "pkg-config", so it can be a program name with args.
27708set dummy pkg-config; ac_word=$2
27709echo "$as_me:$LINENO: checking for $ac_word" >&5
27710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27711if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27712 echo $ECHO_N "(cached) $ECHO_C" >&6
27713else
27714 case $PKG_CONFIG in
27715 [\\/]* | ?:[\\/]*)
27716 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27717 ;;
27718 *)
27719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27720for as_dir in $PATH
27721do
27722 IFS=$as_save_IFS
27723 test -z "$as_dir" && as_dir=.
27724 for ac_exec_ext in '' $ac_executable_extensions; do
27725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27726 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27728 break 2
27729 fi
27730done
27731done
27732
27733 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27734 ;;
27735esac
27736fi
27737PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27738
27739if test -n "$PKG_CONFIG"; then
27740 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27741echo "${ECHO_T}$PKG_CONFIG" >&6
27742else
27743 echo "$as_me:$LINENO: result: no" >&5
27744echo "${ECHO_T}no" >&6
27745fi
27746
27747 fi
27748
27749 if test "$PKG_CONFIG" = "no" ; then
27750 echo "*** The pkg-config script could not be found. Make sure it is"
27751 echo "*** in your path, or set the PKG_CONFIG environment variable"
27752 echo "*** to the full path to pkg-config."
27753 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27754 else
27755 PKG_CONFIG_MIN_VERSION=0.9.0
27756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27757 echo "$as_me:$LINENO: checking for pangoft2" >&5
27758echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27759
27760 if $PKG_CONFIG --exists "pangoft2" ; then
27761 echo "$as_me:$LINENO: result: yes" >&5
27762echo "${ECHO_T}yes" >&6
27763 succeeded=yes
27764
27765 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27766echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27767 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27768 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27769echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27770
27771 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27772echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27773 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27774 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27775echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27776 else
27777 PANGOFT2_CFLAGS=""
27778 PANGOFT2_LIBS=""
27779 ## If we have a custom action on failure, don't print errors, but
27780 ## do set a variable so people can do so.
27781 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27782
27783 fi
27784
27785
27786
27787 else
27788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27790 fi
27791 fi
27792
27793 if test $succeeded = yes; then
27794
27795 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27796 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27797
27798 else
27799
27800 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27801echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27802 wxUSE_PRINTING_ARCHITECTURE="no"
27803
27804
27805 fi
27806
27807
27808 succeeded=no
27809
27810 if test -z "$PKG_CONFIG"; then
27811 # Extract the first word of "pkg-config", so it can be a program name with args.
27812set dummy pkg-config; ac_word=$2
27813echo "$as_me:$LINENO: checking for $ac_word" >&5
27814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27815if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27817else
27818 case $PKG_CONFIG in
27819 [\\/]* | ?:[\\/]*)
27820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27821 ;;
27822 *)
27823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27824for as_dir in $PATH
27825do
27826 IFS=$as_save_IFS
27827 test -z "$as_dir" && as_dir=.
27828 for ac_exec_ext in '' $ac_executable_extensions; do
27829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27832 break 2
27833 fi
27834done
27835done
27836
27837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27838 ;;
27839esac
27840fi
27841PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27842
27843if test -n "$PKG_CONFIG"; then
27844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27845echo "${ECHO_T}$PKG_CONFIG" >&6
27846else
27847 echo "$as_me:$LINENO: result: no" >&5
27848echo "${ECHO_T}no" >&6
27849fi
27850
27851 fi
27852
27853 if test "$PKG_CONFIG" = "no" ; then
27854 echo "*** The pkg-config script could not be found. Make sure it is"
27855 echo "*** in your path, or set the PKG_CONFIG environment variable"
27856 echo "*** to the full path to pkg-config."
27857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27858 else
27859 PKG_CONFIG_MIN_VERSION=0.9.0
27860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27861 echo "$as_me:$LINENO: checking for pangoxft" >&5
27862echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27863
27864 if $PKG_CONFIG --exists "pangoxft" ; then
27865 echo "$as_me:$LINENO: result: yes" >&5
27866echo "${ECHO_T}yes" >&6
27867 succeeded=yes
27868
27869 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27870echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27871 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27872 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27873echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27874
27875 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27876echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27877 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27878 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27879echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27880 else
27881 PANGOXFT_CFLAGS=""
27882 PANGOXFT_LIBS=""
27883 ## If we have a custom action on failure, don't print errors, but
27884 ## do set a variable so people can do so.
27885 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27886
27887 fi
27888
27889
27890
27891 else
27892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27894 fi
27895 fi
27896
27897 if test $succeeded = yes; then
27898
4ae1af05
MB
27899 cat >>confdefs.h <<\_ACEOF
27900#define HAVE_PANGO_XFT 1
27901_ACEOF
27902
a848cd7e
SC
27903 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27904 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27905
27906 else
27907
27908 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27909echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27910
27911
27912 fi
27913
304205f1
VS
27914 save_CFLAGS="$CFLAGS"
27915 save_LIBS="$LIBS"
27916 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27917 LIBS="$LIBS $PANGOX_LIBS"
27918
27919for ac_func in pango_font_family_is_monospace
27920do
27921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27922echo "$as_me:$LINENO: checking for $ac_func" >&5
27923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27924if eval "test \"\${$as_ac_var+set}\" = set"; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27926else
27927 cat >conftest.$ac_ext <<_ACEOF
27928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
27933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27935#define $ac_func innocuous_$ac_func
27936
27937/* System header to define __stub macros and hopefully few prototypes,
27938 which can conflict with char $ac_func (); below.
27939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27940 <limits.h> exists even on freestanding compilers. */
27941
27942#ifdef __STDC__
27943# include <limits.h>
27944#else
27945# include <assert.h>
27946#endif
27947
27948#undef $ac_func
27949
27950/* Override any gcc2 internal prototype to avoid an error. */
27951#ifdef __cplusplus
27952extern "C"
27953{
27954#endif
27955/* We use char because int might match the return type of a gcc2
27956 builtin and then its argument prototype would still apply. */
27957char $ac_func ();
27958/* The GNU C library defines this for functions which it implements
27959 to always fail with ENOSYS. Some functions are actually named
27960 something starting with __ and the normal name is an alias. */
27961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27962choke me
27963#else
27964char (*f) () = $ac_func;
27965#endif
27966#ifdef __cplusplus
27967}
27968#endif
27969
27970int
27971main ()
27972{
27973return f != $ac_func;
27974 ;
27975 return 0;
27976}
27977_ACEOF
27978rm -f conftest.$ac_objext conftest$ac_exeext
27979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27980 (eval $ac_link) 2>conftest.er1
27981 ac_status=$?
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
6ebeb4c7 27987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 eval "$as_ac_var=yes"
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
28004eval "$as_ac_var=no"
28005fi
28006rm -f conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
28008fi
28009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28011if test `eval echo '${'$as_ac_var'}'` = yes; then
28012 cat >>confdefs.h <<_ACEOF
28013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28014_ACEOF
28015
28016fi
28017done
28018
28019 CFLAGS="$save_CFLAGS"
28020 LIBS="$save_LIBS"
a848cd7e
SC
28021 fi
28022
28023 wxUSE_UNIVERSAL="yes"
28024
28025 if test "$wxUSE_NANOX" = "yes"; then
28026 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28027 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"
28028 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28029 else
28030 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28031 fi
28032
a848cd7e
SC
28033 TOOLKIT=X11
28034 GUIDIST=X11_DIST
28035 fi
28036
28037 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28038 if test "$wxUSE_UNICODE" = "yes"; then
28039 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28040echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28041 { (exit 1); exit 1; }; }
28042 fi
28043
74b84332
VS
28044 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28045echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28046
74b84332
VS
28047ac_find_includes=
28048for ac_dir in $SEARCH_INCLUDE /usr/include;
28049 do
28050 if test -f "$ac_dir/Xm/Xm.h"; then
28051 ac_find_includes=$ac_dir
28052 break
28053 fi
28054 done
a848cd7e 28055
74b84332
VS
28056 if test "$ac_find_includes" != "" ; then
28057 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28058echo "${ECHO_T}found in $ac_find_includes" >&6
28059
28060 if test "x$ac_find_includes" = "x/usr/include"; then
28061 ac_path_to_include=""
28062 else
28063 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28064 result=$?
28065 if test $result = 0; then
28066 ac_path_to_include=""
28067 else
28068 ac_path_to_include=" -I$ac_find_includes"
28069 fi
a848cd7e
SC
28070 fi
28071
74b84332
VS
28072 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28073 else
28074 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28075/* confdefs.h. */
28076_ACEOF
28077cat confdefs.h >>conftest.$ac_ext
28078cat >>conftest.$ac_ext <<_ACEOF
28079/* end confdefs.h. */
28080
74b84332
VS
28081 #include <Xm/Xm.h>
28082
a848cd7e
SC
28083int
28084main ()
28085{
28086
74b84332
VS
28087 int version;
28088 version = xmUseVersion;
28089
a848cd7e
SC
28090 ;
28091 return 0;
28092}
28093_ACEOF
74b84332
VS
28094rm -f conftest.$ac_objext
28095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28096 (eval $ac_compile) 2>conftest.er1
a848cd7e 28097 ac_status=$?
ac1cb8d3
VS
28098 grep -v '^ *+' conftest.er1 >conftest.err
28099 rm -f conftest.er1
28100 cat conftest.err >&5
a848cd7e
SC
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } &&
6ebeb4c7 28103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; } &&
74b84332 28109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111 (eval $ac_try) 2>&5
28112 ac_status=$?
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
74b84332
VS
28115
28116 echo "$as_me:$LINENO: result: found in default search path" >&5
28117echo "${ECHO_T}found in default search path" >&6
28118 COMPILED_X_PROGRAM=1
28119
a848cd7e
SC
28120else
28121 echo "$as_me: failed program was:" >&5
28122sed 's/^/| /' conftest.$ac_ext >&5
28123
a848cd7e 28124
74b84332
VS
28125 echo "$as_me:$LINENO: result: no" >&5
28126echo "${ECHO_T}no" >&6
28127 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28128echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28129 { (exit 1); exit 1; }; }
a848cd7e 28130
a848cd7e 28131
a848cd7e 28132fi
74b84332
VS
28133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28134 fi
28135
28136 if test "$COMPILED_X_PROGRAM" = 0; then
28137 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28138echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28139
28140ac_find_libraries=
28141for ac_dir in $SEARCH_LIB /usr/lib;
28142 do
3eca31dc 28143 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28144 if test -f "$ac_dir/libXm.$ac_extension"; then
28145 ac_find_libraries=$ac_dir
28146 break 2
a848cd7e 28147 fi
74b84332
VS
28148 done
28149 done
a848cd7e 28150
74b84332
VS
28151 if test "$ac_find_libraries" != "" ; then
28152 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28153echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28154
74b84332
VS
28155
28156 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28157 result=$?
28158 if test $result = 0; then
28159 ac_path_to_link=""
a848cd7e 28160 else
74b84332
VS
28161 ac_path_to_link=" -L$ac_find_libraries"
28162 fi
28163
28164 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28165 else
28166 save_CFLAGS=$CFLAGS
28167 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28168
28169 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28170/* confdefs.h. */
28171_ACEOF
28172cat confdefs.h >>conftest.$ac_ext
28173cat >>conftest.$ac_ext <<_ACEOF
28174/* end confdefs.h. */
28175
74b84332
VS
28176 #include <Xm/Xm.h>
28177
a848cd7e
SC
28178int
28179main ()
28180{
74b84332
VS
28181
28182 int version;
28183 version = xmUseVersion;
28184
a848cd7e
SC
28185 ;
28186 return 0;
28187}
28188_ACEOF
74b84332
VS
28189rm -f conftest.$ac_objext
28190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28191 (eval $ac_compile) 2>conftest.er1
a848cd7e 28192 ac_status=$?
ac1cb8d3
VS
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
a848cd7e
SC
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
6ebeb4c7 28198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
74b84332 28204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
74b84332
VS
28210
28211 echo "$as_me:$LINENO: result: found in default search path" >&5
28212echo "${ECHO_T}found in default search path" >&6
28213 COMPILED_X_PROGRAM=1
28214
a848cd7e
SC
28215else
28216 echo "$as_me: failed program was:" >&5
28217sed 's/^/| /' conftest.$ac_ext >&5
28218
74b84332
VS
28219
28220 echo "$as_me:$LINENO: result: no" >&5
28221echo "${ECHO_T}no" >&6
28222 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28223echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28224 { (exit 1); exit 1; }; }
28225
28226
28227fi
28228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28229
28230 CFLAGS=$save_CFLAGS
28231 fi
28232 fi
28233
28234 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28235echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28236 libp_link=""
28237 libsm_ice_link=""
28238 libs_found=0
28239 for libp in "" " -lXp"; do
28240 if test "$libs_found" = "0"; then
28241 for libsm_ice in "" " -lSM -lICE"; do
28242 if test "$libs_found" = "0"; then
28243 save_LIBS="$LIBS"
28244 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28245 save_CFLAGS=$CFLAGS
28246 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28247
28248 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254
74b84332
VS
28255 #include <Xm/Xm.h>
28256 #include <Xm/List.h>
28257
a848cd7e
SC
28258int
28259main ()
28260{
74b84332
VS
28261
28262 XmString string = NULL;
28263 Widget w = NULL;
28264 int position = 0;
28265 XmListAddItem(w, string, position);
28266
a848cd7e
SC
28267 ;
28268 return 0;
28269}
28270_ACEOF
28271rm -f conftest.$ac_objext conftest$ac_exeext
28272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28273 (eval $ac_link) 2>conftest.er1
a848cd7e 28274 ac_status=$?
ac1cb8d3
VS
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
a848cd7e
SC
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
6ebeb4c7 28280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; } &&
28286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292
28293 libp_link="$libp"
28294 libsm_ice_link="$libsm_ice"
28295 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28296echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28297 libs_found=1
28298
28299else
28300 echo "$as_me: failed program was:" >&5
28301sed 's/^/| /' conftest.$ac_ext >&5
28302
28303
28304
28305fi
ac1cb8d3
VS
28306rm -f conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28308
28309 LIBS="$save_LIBS"
28310 CFLAGS=$save_CFLAGS
28311 fi
28312 done
28313 fi
28314 done
28315
28316 if test "$libs_found" = "0"; then
28317 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28318echo "${ECHO_T}can't find the right libraries" >&6
28319 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28320echo "$as_me: error: can't link a simple motif program" >&2;}
28321 { (exit 1); exit 1; }; }
28322 fi
28323
28324 save_CFLAGS=$CFLAGS
28325 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28326 echo "$as_me:$LINENO: checking for Motif 2" >&5
28327echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28328 cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h. */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h. */
28334
28335 #include <Xm/Xm.h>
28336
28337int
28338main ()
28339{
28340
28341 #if XmVersion < 2000
28342 #error "Not Motif 2"
28343 #endif
28344
28345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest.$ac_objext
28350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28351 (eval $ac_compile) 2>conftest.er1
a848cd7e 28352 ac_status=$?
ac1cb8d3
VS
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
a848cd7e
SC
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
6ebeb4c7 28358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28361 ac_status=$?
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; } &&
28364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28367 ac_status=$?
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370
28371 cat >>confdefs.h <<\_ACEOF
28372#define __WXMOTIF20__ 1
28373_ACEOF
28374
28375 echo "$as_me:$LINENO: result: found" >&5
28376echo "${ECHO_T}found" >&6
28377
28378else
28379 echo "$as_me: failed program was:" >&5
28380sed 's/^/| /' conftest.$ac_ext >&5
28381
28382
28383 cat >>confdefs.h <<\_ACEOF
28384#define __WXMOTIF20__ 0
28385_ACEOF
28386
28387 echo "$as_me:$LINENO: result: not found" >&5
28388echo "${ECHO_T}not found" >&6
28389
2113bc77
MW
28390fi
28391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392
28393 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28394echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28395 cat >conftest.$ac_ext <<_ACEOF
28396/* confdefs.h. */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h. */
28401
28402 #include <Xm/Xm.h>
28403
28404int
28405main ()
28406{
28407
28408 #if !defined(LesstifVersion) || LesstifVersion <= 0
28409 #error "Not Lesstif"
28410 #endif
28411
28412 ;
28413 return 0;
28414}
28415_ACEOF
28416rm -f conftest.$ac_objext
28417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28418 (eval $ac_compile) 2>conftest.er1
28419 ac_status=$?
28420 grep -v '^ *+' conftest.er1 >conftest.err
28421 rm -f conftest.er1
28422 cat conftest.err >&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } &&
6ebeb4c7 28425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427 (eval $ac_try) 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; } &&
28431 { ac_try='test -s conftest.$ac_objext'
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28437
28438 cat >>confdefs.h <<\_ACEOF
28439#define __WXLESSTIF__ 1
28440_ACEOF
28441
28442 echo "$as_me:$LINENO: result: yes" >&5
28443echo "${ECHO_T}yes" >&6
28444
28445else
28446 echo "$as_me: failed program was:" >&5
28447sed 's/^/| /' conftest.$ac_ext >&5
28448
28449
28450 cat >>confdefs.h <<\_ACEOF
28451#define __WXLESSTIF__ 0
28452_ACEOF
28453
28454 echo "$as_me:$LINENO: result: no" >&5
28455echo "${ECHO_T}no" >&6
28456
a848cd7e 28457fi
ac1cb8d3 28458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28459 CFLAGS=$save_CFLAGS
28460
28461 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28462 TOOLKIT=MOTIF
28463 GUIDIST=MOTIF_DIST
28464 fi
28465
74b84332 28466 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28467 if test "$wxUSE_LIBXPM" = "sys"; then
28468 echo "$as_me:$LINENO: checking for Xpm library" >&5
28469echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28470
28471ac_find_libraries=
28472for ac_dir in $SEARCH_LIB /usr/lib;
28473 do
3eca31dc 28474 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28475 if test -f "$ac_dir/libXpm.$ac_extension"; then
28476 ac_find_libraries=$ac_dir
28477 break 2
28478 fi
28479 done
28480 done
28481
28482 if test "$ac_find_libraries" != "" ; then
28483
28484 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28485 result=$?
28486 if test $result = 0; then
28487 ac_path_to_link=""
28488 else
28489 ac_path_to_link=" -L$ac_find_libraries"
28490 fi
28491
28492 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28493 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28494echo "${ECHO_T}found at $ac_find_libraries" >&6
28495
28496 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28497echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28498if test "${wx_cv_x11_xpm_h+set}" = set; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500else
28501
28502 save_CFLAGS=$CFLAGS
28503 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28504
28505 cat >conftest.$ac_ext <<_ACEOF
28506/* confdefs.h. */
28507_ACEOF
28508cat confdefs.h >>conftest.$ac_ext
28509cat >>conftest.$ac_ext <<_ACEOF
28510/* end confdefs.h. */
28511
28512 #include <X11/xpm.h>
28513
28514int
28515main ()
28516{
28517
28518 int version;
28519 version = XpmLibraryVersion();
28520
28521 ;
28522 return 0;
28523}
28524_ACEOF
28525rm -f conftest.$ac_objext
28526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28527 (eval $ac_compile) 2>conftest.er1
a848cd7e 28528 ac_status=$?
ac1cb8d3
VS
28529 grep -v '^ *+' conftest.er1 >conftest.err
28530 rm -f conftest.er1
28531 cat conftest.err >&5
a848cd7e
SC
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
6ebeb4c7 28534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; }; then
28546 wx_cv_x11_xpm_h=yes
28547else
28548 echo "$as_me: failed program was:" >&5
28549sed 's/^/| /' conftest.$ac_ext >&5
28550
28551wx_cv_x11_xpm_h=no
28552
28553fi
ac1cb8d3 28554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28555
28556 CFLAGS=$save_CFLAGS
28557
28558
28559fi
28560echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28561echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28562
28563 if test $wx_cv_x11_xpm_h = "yes"; then
28564 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28565 cat >>confdefs.h <<\_ACEOF
28566#define wxHAVE_LIB_XPM 1
28567_ACEOF
28568
28569 else
28570 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28571echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28572 fi
28573 fi
28574
28575 fi
28576
28577 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28578echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28579if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28580 echo $ECHO_N "(cached) $ECHO_C" >&6
28581else
28582 ac_check_lib_save_LIBS=$LIBS
28583LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28584cat >conftest.$ac_ext <<_ACEOF
28585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
28590
28591/* Override any gcc2 internal prototype to avoid an error. */
28592#ifdef __cplusplus
28593extern "C"
28594#endif
28595/* We use char because int might match the return type of a gcc2
28596 builtin and then its argument prototype would still apply. */
28597char XShapeQueryExtension ();
28598int
28599main ()
28600{
28601XShapeQueryExtension ();
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext conftest$ac_exeext
28607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28608 (eval $ac_link) 2>conftest.er1
a848cd7e 28609 ac_status=$?
ac1cb8d3
VS
28610 grep -v '^ *+' conftest.er1 >conftest.err
28611 rm -f conftest.er1
28612 cat conftest.err >&5
a848cd7e
SC
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } &&
6ebeb4c7 28615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; } &&
28621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; }; then
28627 ac_cv_lib_Xext_XShapeQueryExtension=yes
28628else
28629 echo "$as_me: failed program was:" >&5
28630sed 's/^/| /' conftest.$ac_ext >&5
28631
28632ac_cv_lib_Xext_XShapeQueryExtension=no
28633fi
ac1cb8d3
VS
28634rm -f conftest.err conftest.$ac_objext \
28635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28636LIBS=$ac_check_lib_save_LIBS
28637fi
28638echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28639echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28640if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28641
28642 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28643 wxHAVE_XEXT_LIB=1
28644
28645fi
28646
28647
28648 if test "$wxHAVE_XEXT_LIB" = 1; then
28649 save_CFLAGS="$CFLAGS"
28650 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28651
28652 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28653echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28654 cat >conftest.$ac_ext <<_ACEOF
28655/* confdefs.h. */
28656_ACEOF
28657cat confdefs.h >>conftest.$ac_ext
28658cat >>conftest.$ac_ext <<_ACEOF
28659/* end confdefs.h. */
28660
28661 #include <X11/Xlib.h>
28662 #include <X11/extensions/shape.h>
28663
28664int
28665main ()
28666{
28667
28668 int dummy1, dummy2;
28669 XShapeQueryExtension((Display*)NULL,
28670 (int*)NULL, (int*)NULL);
28671
28672 ;
28673 return 0;
28674}
28675_ACEOF
28676rm -f conftest.$ac_objext
28677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28678 (eval $ac_compile) 2>conftest.er1
a848cd7e 28679 ac_status=$?
ac1cb8d3
VS
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
a848cd7e
SC
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
6ebeb4c7 28685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; } &&
28691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697
28698 cat >>confdefs.h <<\_ACEOF
28699#define HAVE_XSHAPE 1
28700_ACEOF
28701
28702 echo "$as_me:$LINENO: result: found" >&5
28703echo "${ECHO_T}found" >&6
28704
28705else
28706 echo "$as_me: failed program was:" >&5
28707sed 's/^/| /' conftest.$ac_ext >&5
28708
28709
28710 echo "$as_me:$LINENO: result: not found" >&5
28711echo "${ECHO_T}not found" >&6
28712
28713fi
ac1cb8d3 28714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28715 CFLAGS="$save_CFLAGS"
28716
28717 fi
28718 fi
28719
28720 if test "$wxUSE_MAC" = 1; then
28721 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28722echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28723 if test "$GCC" = yes; then
28724 echo "$as_me:$LINENO: result: gcc" >&5
28725echo "${ECHO_T}gcc" >&6
28726 CPPFLAGS_PASCAL="-fpascal-strings"
28727 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28728 echo "$as_me:$LINENO: result: xlc" >&5
28729echo "${ECHO_T}xlc" >&6
28730 CPPFLAGS_PASCAL="-qmacpstr"
28731 else
28732 echo "$as_me:$LINENO: result: none" >&5
28733echo "${ECHO_T}none" >&6
28734 fi
28735
1e9e8aba
DE
28736 if test "x$wxUSE_UNIX" = "xyes"; then
28737 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28738 else
28739 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28740 fi
a848cd7e 28741
a848cd7e
SC
28742 TOOLKIT=MAC
28743 GUIDIST=MACX_DIST
dd21ced8 28744 WXBASEPORT="_carbon"
a848cd7e
SC
28745 fi
28746
28747 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28748 TOOLKIT=COCOA
28749 GUIDIST=COCOA_DIST
28750 fi
28751
28752 if test "$wxUSE_PM" = 1; then
28753 TOOLKIT=PM
de59c161
RD
28754 GUIDIST=PM_DIST
28755 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28756echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28757if test "${wx_cv_spbcdata+set}" = set; then
28758 echo $ECHO_N "(cached) $ECHO_C" >&6
28759else
28760
28761 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
28767
28768 #define INCL_PM
28769 #include <os2.h>
28770
28771int
28772main ()
28773{
28774
28775 SPBCDATA test;
28776
28777 ;
28778 return 0;
28779}
28780_ACEOF
28781rm -f conftest.$ac_objext
28782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28783 (eval $ac_compile) 2>conftest.er1
de59c161 28784 ac_status=$?
ac1cb8d3
VS
28785 grep -v '^ *+' conftest.er1 >conftest.err
28786 rm -f conftest.er1
28787 cat conftest.err >&5
de59c161
RD
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); } &&
6ebeb4c7 28790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; } &&
28796 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 wx_cv_spbcdata=yes
28803else
28804 echo "$as_me: failed program was:" >&5
28805sed 's/^/| /' conftest.$ac_ext >&5
28806
28807wx_cv_spbcdata=no
28808
28809fi
ac1cb8d3 28810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28811
28812
28813fi
28814echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28815echo "${ECHO_T}$wx_cv_spbcdata" >&6
28816
28817 if test $wx_cv_spbcdata = "yes"; then
28818 cat >>confdefs.h <<\_ACEOF
28819#define HAVE_SPBCDATA 1
28820_ACEOF
28821
28822 fi
a848cd7e
SC
28823 fi
28824
28825 if test "$TOOLKIT" = "PM" ; then
28826 TOOLKIT_DIR="os2"
28827 else
28828 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28829 fi
28830
a848cd7e 28831 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28832 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28833 WIDGET_SET=univ
a848cd7e
SC
28834 fi
28835
28836 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28837 DISTDIR="wx\$(TOOLKIT)"
28838else
28839 USE_GUI=0
28840
28841 TOOLKIT_DIR="base"
28842
28843 if test "$USE_WIN32" = 1 ; then
a848cd7e 28844 TOOLKIT="MSW"
a848cd7e
SC
28845 fi
28846
a848cd7e
SC
28847 GUIDIST="BASE_DIST"
28848 DISTDIR="wxBase"
28849fi
28850
28851
28852
28853
28854IODBC_C_SRC=""
28855
28856
28857if test "$TOOLKIT" != "MSW" ; then
28858
28859 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28860
28861 if test "${ac_cv_header_sql_h+set}" = set; then
28862 echo "$as_me:$LINENO: checking for sql.h" >&5
28863echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28864if test "${ac_cv_header_sql_h+set}" = set; then
28865 echo $ECHO_N "(cached) $ECHO_C" >&6
28866fi
28867echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28868echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28869else
28870 # Is the header compilable?
28871echo "$as_me:$LINENO: checking sql.h usability" >&5
28872echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28873cat >conftest.$ac_ext <<_ACEOF
28874/* confdefs.h. */
28875_ACEOF
28876cat confdefs.h >>conftest.$ac_ext
28877cat >>conftest.$ac_ext <<_ACEOF
28878/* end confdefs.h. */
28879$ac_includes_default
28880#include <sql.h>
28881_ACEOF
28882rm -f conftest.$ac_objext
28883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28884 (eval $ac_compile) 2>conftest.er1
a848cd7e 28885 ac_status=$?
ac1cb8d3
VS
28886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
a848cd7e
SC
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
6ebeb4c7 28891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; } &&
28897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28903 ac_header_compiler=yes
28904else
28905 echo "$as_me: failed program was:" >&5
28906sed 's/^/| /' conftest.$ac_ext >&5
28907
28908ac_header_compiler=no
28909fi
ac1cb8d3 28910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28912echo "${ECHO_T}$ac_header_compiler" >&6
28913
28914# Is the header present?
28915echo "$as_me:$LINENO: checking sql.h presence" >&5
28916echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28917cat >conftest.$ac_ext <<_ACEOF
28918/* confdefs.h. */
28919_ACEOF
28920cat confdefs.h >>conftest.$ac_ext
28921cat >>conftest.$ac_ext <<_ACEOF
28922/* end confdefs.h. */
28923#include <sql.h>
28924_ACEOF
28925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28927 ac_status=$?
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28936 else
28937 ac_cpp_err=
28938 fi
28939else
28940 ac_cpp_err=yes
28941fi
28942if test -z "$ac_cpp_err"; then
28943 ac_header_preproc=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_header_preproc=no
28949fi
28950rm -f conftest.err conftest.$ac_ext
28951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28952echo "${ECHO_T}$ac_header_preproc" >&6
28953
28954# So? What about this header?
ac1cb8d3
VS
28955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28956 yes:no: )
a848cd7e
SC
28957 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28958echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28959 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28960echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28961 ac_header_preproc=yes
a848cd7e 28962 ;;
ac1cb8d3 28963 no:yes:* )
a848cd7e
SC
28964 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28965echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28966 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28967echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28969echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28971echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28972 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28973echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28974 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28975echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28976 (
28977 cat <<\_ASBOX
ac1cb8d3
VS
28978## ----------------------------------------- ##
28979## Report this to wx-dev@lists.wxwidgets.org ##
28980## ----------------------------------------- ##
a848cd7e
SC
28981_ASBOX
28982 ) |
28983 sed "s/^/$as_me: WARNING: /" >&2
28984 ;;
28985esac
28986echo "$as_me:$LINENO: checking for sql.h" >&5
28987echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28988if test "${ac_cv_header_sql_h+set}" = set; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28990else
28991 ac_cv_header_sql_h=$ac_header_preproc
28992fi
28993echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28994echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28995
28996fi
28997if test $ac_cv_header_sql_h = yes; then
28998 found_sql_h=1
28999fi
29000
29001
29002 if test "x$found_sql_h" = "x1" ; then
29003 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29004echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29005if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007else
29008 ac_check_lib_save_LIBS=$LIBS
29009LIBS="-liodbc $LIBS"
29010cat >conftest.$ac_ext <<_ACEOF
29011/* confdefs.h. */
29012_ACEOF
29013cat confdefs.h >>conftest.$ac_ext
29014cat >>conftest.$ac_ext <<_ACEOF
29015/* end confdefs.h. */
29016
29017/* Override any gcc2 internal prototype to avoid an error. */
29018#ifdef __cplusplus
29019extern "C"
29020#endif
29021/* We use char because int might match the return type of a gcc2
29022 builtin and then its argument prototype would still apply. */
29023char SQLAllocEnv ();
29024int
29025main ()
29026{
29027SQLAllocEnv ();
29028 ;
29029 return 0;
29030}
29031_ACEOF
29032rm -f conftest.$ac_objext conftest$ac_exeext
29033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29034 (eval $ac_link) 2>conftest.er1
a848cd7e 29035 ac_status=$?
ac1cb8d3
VS
29036 grep -v '^ *+' conftest.er1 >conftest.err
29037 rm -f conftest.er1
29038 cat conftest.err >&5
a848cd7e
SC
29039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); } &&
6ebeb4c7 29041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); }; } &&
29047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29050 ac_status=$?
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; }; then
29053 ac_cv_lib_iodbc_SQLAllocEnv=yes
29054else
29055 echo "$as_me: failed program was:" >&5
29056sed 's/^/| /' conftest.$ac_ext >&5
29057
29058ac_cv_lib_iodbc_SQLAllocEnv=no
29059fi
ac1cb8d3
VS
29060rm -f conftest.err conftest.$ac_objext \
29061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29062LIBS=$ac_check_lib_save_LIBS
29063fi
29064echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29065echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29066if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29067 ODBC_LINK=" -liodbc"
29068else
29069
29070 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29071echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29072if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29074else
29075 ac_check_lib_save_LIBS=$LIBS
29076LIBS="-lunixodbc $LIBS"
29077cat >conftest.$ac_ext <<_ACEOF
29078/* confdefs.h. */
29079_ACEOF
29080cat confdefs.h >>conftest.$ac_ext
29081cat >>conftest.$ac_ext <<_ACEOF
29082/* end confdefs.h. */
29083
29084/* Override any gcc2 internal prototype to avoid an error. */
29085#ifdef __cplusplus
29086extern "C"
29087#endif
29088/* We use char because int might match the return type of a gcc2
29089 builtin and then its argument prototype would still apply. */
29090char SQLAllocEnv ();
29091int
29092main ()
29093{
29094SQLAllocEnv ();
29095 ;
29096 return 0;
29097}
29098_ACEOF
29099rm -f conftest.$ac_objext conftest$ac_exeext
29100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29101 (eval $ac_link) 2>conftest.er1
a848cd7e 29102 ac_status=$?
ac1cb8d3
VS
29103 grep -v '^ *+' conftest.er1 >conftest.err
29104 rm -f conftest.er1
29105 cat conftest.err >&5
a848cd7e
SC
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } &&
6ebeb4c7 29108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29110 (eval $ac_try) 2>&5
29111 ac_status=$?
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; } &&
29114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29121else
29122 echo "$as_me: failed program was:" >&5
29123sed 's/^/| /' conftest.$ac_ext >&5
29124
29125ac_cv_lib_unixodbc_SQLAllocEnv=no
29126fi
ac1cb8d3
VS
29127rm -f conftest.err conftest.$ac_objext \
29128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29129LIBS=$ac_check_lib_save_LIBS
29130fi
29131echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29132echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29133if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29134 ODBC_LINK=" -lunixodbc"
29135else
29136
29137 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29138echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29139if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142 ac_check_lib_save_LIBS=$LIBS
29143LIBS="-lodbc $LIBS"
29144cat >conftest.$ac_ext <<_ACEOF
29145/* confdefs.h. */
29146_ACEOF
29147cat confdefs.h >>conftest.$ac_ext
29148cat >>conftest.$ac_ext <<_ACEOF
29149/* end confdefs.h. */
29150
29151/* Override any gcc2 internal prototype to avoid an error. */
29152#ifdef __cplusplus
29153extern "C"
29154#endif
29155/* We use char because int might match the return type of a gcc2
29156 builtin and then its argument prototype would still apply. */
29157char SQLAllocEnv ();
29158int
29159main ()
29160{
29161SQLAllocEnv ();
29162 ;
29163 return 0;
29164}
29165_ACEOF
29166rm -f conftest.$ac_objext conftest$ac_exeext
29167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29168 (eval $ac_link) 2>conftest.er1
a848cd7e 29169 ac_status=$?
ac1cb8d3
VS
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
a848cd7e
SC
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } &&
6ebeb4c7 29175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177 (eval $ac_try) 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29184 ac_status=$?
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; }; then
29187 ac_cv_lib_odbc_SQLAllocEnv=yes
29188else
29189 echo "$as_me: failed program was:" >&5
29190sed 's/^/| /' conftest.$ac_ext >&5
29191
29192ac_cv_lib_odbc_SQLAllocEnv=no
29193fi
ac1cb8d3
VS
29194rm -f conftest.err conftest.$ac_objext \
29195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29196LIBS=$ac_check_lib_save_LIBS
29197fi
29198echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29199echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29200if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29201 ODBC_LINK=" -lodbc"
29202fi
29203
29204
29205fi
29206
29207
29208fi
29209
29210 fi
29211 if test "x$ODBC_LINK" = "x" ; then
29212 if test "$wxUSE_ODBC" = "sys" ; then
29213 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29214echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29215 { (exit 1); exit 1; }; }
29216 else
29217 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29218echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29219 wxUSE_ODBC=builtin
29220 fi
29221 else
29222 wxUSE_ODBC=sys
29223 fi
29224 fi
a848cd7e 29225
2da0c077
RD
29226 if test "$wxUSE_ODBC" = "builtin" ; then
29227 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29228#define wxUSE_BUILTIN_IODBC 1
29229_ACEOF
29230
a848cd7e
SC
29231 fi
29232fi
29233
2da0c077
RD
29234if test "$wxUSE_ODBC" != "no" ; then
29235 cat >>confdefs.h <<\_ACEOF
29236#define wxUSE_ODBC 1
29237_ACEOF
29238
29239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29240
29241 WXODBCFLAG="-D_IODBC_"
29242fi
a848cd7e 29243
01cb68df 29244
a848cd7e 29245if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29246 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29247 echo "$as_me:$LINENO: checking for Xinerama" >&5
29248echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29249
29250ac_find_libraries=
29251for ac_dir in $SEARCH_LIB /usr/lib;
29252 do
3eca31dc 29253 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29254 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29255 ac_find_libraries=$ac_dir
29256 break 2
29257 fi
29258 done
29259 done
29260
29261 if test "$ac_find_libraries" != "" ; then
29262
29263 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29264 result=$?
29265 if test $result = 0; then
29266 ac_path_to_link=""
29267 else
29268 ac_path_to_link=" -L$ac_find_libraries"
29269 fi
29270
29271 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29272 LDFLAGS="$LDFLAGS $ac_path_to_link"
29273 fi
29274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29275 echo "$as_me:$LINENO: result: yes" >&5
29276echo "${ECHO_T}yes" >&6
29277
29278 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29279echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29280
29281ac_find_libraries=
29282for ac_dir in $SEARCH_LIB /usr/lib;
29283 do
3eca31dc 29284 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29285 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29286 ac_find_libraries=$ac_dir
29287 break 2
29288 fi
29289 done
29290 done
29291
29292 if test "$ac_find_libraries" != "" ; then
29293 echo "$as_me:$LINENO: result: yes" >&5
29294echo "${ECHO_T}yes" >&6
29295
29296for ac_header in X11/extensions/xf86vmode.h
29297do
29298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29299echo "$as_me:$LINENO: checking for $ac_header" >&5
29300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29301if eval "test \"\${$as_ac_Header+set}\" = set"; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29303else
29304 cat >conftest.$ac_ext <<_ACEOF
29305/* confdefs.h. */
29306_ACEOF
29307cat confdefs.h >>conftest.$ac_ext
29308cat >>conftest.$ac_ext <<_ACEOF
29309/* end confdefs.h. */
29310
29311 #if HAVE_X11_XLIB_H
29312 #include <X11/Xlib.h>
29313 #endif
29314
29315
29316#include <$ac_header>
29317_ACEOF
29318rm -f conftest.$ac_objext
29319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29320 (eval $ac_compile) 2>conftest.er1
a848cd7e 29321 ac_status=$?
ac1cb8d3
VS
29322 grep -v '^ *+' conftest.er1 >conftest.err
29323 rm -f conftest.er1
29324 cat conftest.err >&5
a848cd7e
SC
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } &&
6ebeb4c7 29327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29339 eval "$as_ac_Header=yes"
29340else
29341 echo "$as_me: failed program was:" >&5
29342sed 's/^/| /' conftest.$ac_ext >&5
29343
29344eval "$as_ac_Header=no"
29345fi
ac1cb8d3 29346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29347fi
29348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29350if test `eval echo '${'$as_ac_Header'}'` = yes; then
29351 cat >>confdefs.h <<_ACEOF
29352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29353_ACEOF
29354
29355 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29356
29357fi
29358
29359done
29360
29361 else
29362 echo "$as_me:$LINENO: result: no" >&5
29363echo "${ECHO_T}no" >&6
29364 fi
29365
29366 else
29367 echo "$as_me:$LINENO: result: no" >&5
29368echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29369 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29370echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29371 wxUSE_DISPLAY="no"
29372 fi
01cb68df
RG
29373 elif test "$wxUSE_MSW" = 1; then
29374
29375
29376for ac_header in multimon.h ddraw.h
29377do
29378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29379echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29381if eval "test \"\${$as_ac_Header+set}\" = set"; then
29382 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29383else
5294a27e 29384 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29385/* confdefs.h. */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h. */
5294a27e
VZ
29390#include <windows.h>
29391
01cb68df
RG
29392#include <$ac_header>
29393_ACEOF
29394rm -f conftest.$ac_objext
29395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29396 (eval $ac_compile) 2>conftest.er1
01cb68df 29397 ac_status=$?
ac1cb8d3
VS
29398 grep -v '^ *+' conftest.er1 >conftest.err
29399 rm -f conftest.er1
29400 cat conftest.err >&5
01cb68df
RG
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); } &&
6ebeb4c7 29403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
5294a27e 29415 eval "$as_ac_Header=yes"
01cb68df
RG
29416else
29417 echo "$as_me: failed program was:" >&5
29418sed 's/^/| /' conftest.$ac_ext >&5
29419
5294a27e 29420eval "$as_ac_Header=no"
01cb68df 29421fi
ac1cb8d3 29422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29423fi
29424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29426if test `eval echo '${'$as_ac_Header'}'` = yes; then
29427 cat >>confdefs.h <<_ACEOF
29428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29429_ACEOF
29430
29431else
29432
5294a27e
VZ
29433 wxUSE_DISPLAY="no"
29434 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29435echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29436
29437fi
29438
29439done
29440
a848cd7e
SC
29441 fi
29442fi
29443
29444
29445USE_OPENGL=0
29446if test "$wxUSE_OPENGL" = "yes"; then
29447 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29448 OPENGL_LIBS="-framework OpenGL -framework AGL"
29449 elif test "$wxUSE_MSW" = 1; then
29450 OPENGL_LIBS="-lopengl32 -lglu32"
29451 else
29452
29453
29454ac_find_includes=
29455for ac_dir in $SEARCH_INCLUDE /usr/include;
29456 do
29457 if test -f "$ac_dir/GL/gl.h"; then
29458 ac_find_includes=$ac_dir
29459 break
29460 fi
29461 done
29462
29463 if test "$ac_find_includes" != "" ; then
29464 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29465echo "${ECHO_T}found in $ac_find_includes" >&6
29466
29467 if test "x$ac_find_includes" = "x/usr/include"; then
29468 ac_path_to_include=""
29469 else
29470 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29471 result=$?
29472 if test $result = 0; then
29473 ac_path_to_include=""
29474 else
29475 ac_path_to_include=" -I$ac_find_includes"
29476 fi
29477 fi
29478
29479 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29480 fi
29481
29482 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29483 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29484echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29485if test "${ac_cv_header_GL_gl_h+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487fi
29488echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29489echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29490else
29491 # Is the header compilable?
29492echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29493echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29494cat >conftest.$ac_ext <<_ACEOF
29495/* confdefs.h. */
29496_ACEOF
29497cat confdefs.h >>conftest.$ac_ext
29498cat >>conftest.$ac_ext <<_ACEOF
29499/* end confdefs.h. */
29500$ac_includes_default
29501#include <GL/gl.h>
29502_ACEOF
29503rm -f conftest.$ac_objext
29504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29505 (eval $ac_compile) 2>conftest.er1
a848cd7e 29506 ac_status=$?
ac1cb8d3
VS
29507 grep -v '^ *+' conftest.er1 >conftest.err
29508 rm -f conftest.er1
29509 cat conftest.err >&5
a848cd7e
SC
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } &&
6ebeb4c7 29512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 ac_header_compiler=yes
29525else
29526 echo "$as_me: failed program was:" >&5
29527sed 's/^/| /' conftest.$ac_ext >&5
29528
29529ac_header_compiler=no
29530fi
ac1cb8d3 29531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29533echo "${ECHO_T}$ac_header_compiler" >&6
29534
29535# Is the header present?
29536echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29537echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29538cat >conftest.$ac_ext <<_ACEOF
29539/* confdefs.h. */
29540_ACEOF
29541cat confdefs.h >>conftest.$ac_ext
29542cat >>conftest.$ac_ext <<_ACEOF
29543/* end confdefs.h. */
29544#include <GL/gl.h>
29545_ACEOF
29546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29548 ac_status=$?
29549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } >/dev/null; then
29554 if test -s conftest.err; then
29555 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29557 else
29558 ac_cpp_err=
29559 fi
29560else
29561 ac_cpp_err=yes
29562fi
29563if test -z "$ac_cpp_err"; then
29564 ac_header_preproc=yes
29565else
29566 echo "$as_me: failed program was:" >&5
29567sed 's/^/| /' conftest.$ac_ext >&5
29568
29569 ac_header_preproc=no
29570fi
29571rm -f conftest.err conftest.$ac_ext
29572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29573echo "${ECHO_T}$ac_header_preproc" >&6
29574
29575# So? What about this header?
ac1cb8d3
VS
29576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29577 yes:no: )
a848cd7e
SC
29578 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29579echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29580 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29581echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29582 ac_header_preproc=yes
a848cd7e 29583 ;;
ac1cb8d3 29584 no:yes:* )
a848cd7e
SC
29585 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29586echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29587 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29588echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29589 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29590echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29592echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29593 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29594echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29595 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29596echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29597 (
29598 cat <<\_ASBOX
ac1cb8d3
VS
29599## ----------------------------------------- ##
29600## Report this to wx-dev@lists.wxwidgets.org ##
29601## ----------------------------------------- ##
a848cd7e
SC
29602_ASBOX
29603 ) |
29604 sed "s/^/$as_me: WARNING: /" >&2
29605 ;;
29606esac
29607echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29608echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29609if test "${ac_cv_header_GL_gl_h+set}" = set; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29611else
29612 ac_cv_header_GL_gl_h=$ac_header_preproc
29613fi
29614echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29615echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29616
29617fi
29618if test $ac_cv_header_GL_gl_h = yes; then
29619
29620 found_gl=0
29621
29622 echo "$as_me:$LINENO: checking for -lGL" >&5
29623echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29624
29625ac_find_libraries=
29626for ac_dir in $SEARCH_LIB /usr/lib;
29627 do
3eca31dc 29628 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29629 if test -f "$ac_dir/libGL.$ac_extension"; then
29630 ac_find_libraries=$ac_dir
29631 break 2
29632 fi
29633 done
29634 done
29635
29636 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29637 echo "$as_me:$LINENO: result: yes" >&5
29638echo "${ECHO_T}yes" >&6
29639
a848cd7e
SC
29640
29641 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29642 result=$?
29643 if test $result = 0; then
29644 ac_path_to_link=""
29645 else
29646 ac_path_to_link=" -L$ac_find_libraries"
29647 fi
29648
29649 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29650 LDFLAGS_GL="$ac_path_to_link"
29651 fi
29652
69120ee4
VZ
29653 echo "$as_me:$LINENO: checking for -lGLU" >&5
29654echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29655
29656ac_find_libraries=
29657for ac_dir in $SEARCH_LIB /usr/lib;
29658 do
3eca31dc 29659 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29660 if test -f "$ac_dir/libGLU.$ac_extension"; then
29661 ac_find_libraries=$ac_dir
29662 break 2
29663 fi
29664 done
29665 done
29666
29667 if test "$ac_find_libraries" != "" ; then
29668
29669 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29670 result=$?
29671 if test $result = 0; then
29672 ac_path_to_link=""
29673 else
29674 ac_path_to_link=" -L$ac_find_libraries"
29675 fi
29676
29677 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29678 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29679 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29680 fi
29681
29682 found_gl=1
29683 OPENGL_LIBS="-lGL -lGLU"
29684 echo "$as_me:$LINENO: result: yes" >&5
29685echo "${ECHO_T}yes" >&6
69120ee4
VZ
29686 else
29687 echo "$as_me:$LINENO: result: no" >&5
29688echo "${ECHO_T}no" >&6
a848cd7e 29689 fi
69120ee4
VZ
29690 else
29691 echo "$as_me:$LINENO: result: no" >&5
29692echo "${ECHO_T}no" >&6
a848cd7e
SC
29693 fi
29694
29695 if test "$found_gl" != 1; then
a848cd7e
SC
29696 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29697echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29698
29699ac_find_libraries=
29700for ac_dir in $SEARCH_LIB /usr/lib;
29701 do
3eca31dc 29702 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29703 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29704 ac_find_libraries=$ac_dir
29705 break 2
29706 fi
29707 done
29708 done
29709
29710 if test "$ac_find_libraries" != "" ; then
29711
29712 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29713 result=$?
29714 if test $result = 0; then
29715 ac_path_to_link=""
29716 else
29717 ac_path_to_link=" -L$ac_find_libraries"
29718 fi
29719
29720 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29721 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29722 echo "$as_me:$LINENO: result: yes" >&5
29723echo "${ECHO_T}yes" >&6
29724 else
29725 echo "$as_me:$LINENO: result: no" >&5
29726echo "${ECHO_T}no" >&6
29727 fi
29728 fi
29729
29730fi
29731
29732
29733
29734 if test "x$OPENGL_LIBS" = "x"; then
29735 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29736echo "$as_me: error: OpenGL libraries not available" >&2;}
29737 { (exit 1); exit 1; }; }
29738 fi
29739 fi
29740
29741 if test "$wxUSE_OPENGL" = "yes"; then
29742 USE_OPENGL=1
29743 cat >>confdefs.h <<\_ACEOF
29744#define wxUSE_OPENGL 1
29745_ACEOF
29746
29747 cat >>confdefs.h <<\_ACEOF
29748#define wxUSE_GLCANVAS 1
29749_ACEOF
29750
29751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29752 fi
29753fi
29754
a848cd7e
SC
29755
29756if test -n "$TOOLKIT" ; then
29757 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29758fi
29759
a848cd7e
SC
29760
29761
29762if test "$wxUSE_SHARED" = "yes"; then
29763 case "${host}" in
29764 *-pc-msdosdjgpp )
29765 wxUSE_SHARED=no
29766 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29767echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29768 ;;
29769 esac
29770fi
29771
a848cd7e 29772if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29773
29774
29775 found_versioning=no
29776
29777
29778 if test $found_versioning = no ; then
29779 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29780echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29781if test "${wx_cv_version_script+set}" = set; then
29782 echo $ECHO_N "(cached) $ECHO_C" >&6
29783else
29784
29785 echo "VER_1 { *; };" >conftest.sym
29786 echo "int main() { return 0; }" >conftest.cpp
29787
29788 if { ac_try='
29789 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29790 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } ; then
29796 if test -s conftest.stderr ; then
29797 wx_cv_version_script=no
29798 else
29799 wx_cv_version_script=yes
29800 fi
29801 else
29802 wx_cv_version_script=no
29803 fi
e5d4b470
MW
29804
29805 if test $wx_cv_version_script = yes
29806 then
29807 echo "struct B { virtual ~B() { } }; \
29808 struct D : public B { }; \
29809 void F() { D d; }" > conftest.cpp
29810
29811 if { ac_try='
29812 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29813 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29815 (eval $ac_try) 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; } &&
29819 { ac_try='
29820 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29821 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }
29827 then
29828 if { ac_try='
29829 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29830 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }
29836 then
29837 wx_cv_version_script=yes
29838 else
29839 wx_cv_version_script=no
29840 fi
29841 fi
29842 fi
29843
a848cd7e 29844 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29845 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29846
29847fi
29848echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29849echo "${ECHO_T}$wx_cv_version_script" >&6
29850 if test $wx_cv_version_script = yes ; then
29851 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29852 fi
29853 fi
29854
29855
29856 case "${host}" in
29857 *-*-linux* | *-*-gnu* )
29858 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29859 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29860 ;;
a848cd7e
SC
29861
29862 *-*-solaris2* )
29863 if test "$GCC" = yes ; then
29864 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29865
29866 saveLdflags="$LDFLAGS"
29867 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29868 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29869echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29870 cat >conftest.$ac_ext <<_ACEOF
29871/* confdefs.h. */
29872_ACEOF
29873cat confdefs.h >>conftest.$ac_ext
29874cat >>conftest.$ac_ext <<_ACEOF
29875/* end confdefs.h. */
29876
29877int
29878main ()
29879{
29880
29881 ;
29882 return 0;
29883}
29884_ACEOF
29885rm -f conftest.$ac_objext conftest$ac_exeext
29886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29887 (eval $ac_link) 2>conftest.er1
a848cd7e 29888 ac_status=$?
ac1cb8d3
VS
29889 grep -v '^ *+' conftest.er1 >conftest.err
29890 rm -f conftest.er1
29891 cat conftest.err >&5
a848cd7e
SC
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } &&
6ebeb4c7 29894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29897 ac_status=$?
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; } &&
29900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29902 (eval $ac_try) 2>&5
29903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; }; then
29906
29907 echo "$as_me:$LINENO: result: yes" >&5
29908echo "${ECHO_T}yes" >&6
29909 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29910 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29911
29912else
29913 echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916
29917 echo "$as_me:$LINENO: result: no" >&5
29918echo "${ECHO_T}no" >&6
29919 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29920echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29921 LDFLAGS="$saveLdflags -Wl,-R,/"
29922 cat >conftest.$ac_ext <<_ACEOF
29923/* confdefs.h. */
29924_ACEOF
29925cat confdefs.h >>conftest.$ac_ext
29926cat >>conftest.$ac_ext <<_ACEOF
29927/* end confdefs.h. */
29928
29929int
29930main ()
29931{
29932
29933 ;
29934 return 0;
29935}
29936_ACEOF
29937rm -f conftest.$ac_objext conftest$ac_exeext
29938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29939 (eval $ac_link) 2>conftest.er1
a848cd7e 29940 ac_status=$?
ac1cb8d3
VS
29941 grep -v '^ *+' conftest.er1 >conftest.err
29942 rm -f conftest.er1
29943 cat conftest.err >&5
a848cd7e
SC
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); } &&
6ebeb4c7 29946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; } &&
29952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; }; then
29958
ffa0583f 29959 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29960echo "${ECHO_T}yes" >&6
ffa0583f
RL
29961 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29962 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29963
a848cd7e
SC
29964else
29965 echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
29968
29969 echo "$as_me:$LINENO: result: no" >&5
29970echo "${ECHO_T}no" >&6
29971
29972fi
ac1cb8d3
VS
29973rm -f conftest.err conftest.$ac_objext \
29974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29975
29976fi
ac1cb8d3
VS
29977rm -f conftest.err conftest.$ac_objext \
29978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29979 LDFLAGS="$saveLdflags"
29980 else
a848cd7e 29981 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29982 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29983 fi
29984 ;;
29985
29986 powerpc-*-darwin* )
0caebc27
MW
29987 install_name_tool=`which install_name_tool`
29988 if test "$install_name_tool" -a -x "$install_name_tool"; then
29989 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29990 cat <<EOF >change-install-names
a848cd7e
SC
29991#!/bin/sh
29992libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29993inst_cmd="install_name_tool "
29994for i in \${libnames} ; do
29995 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29996done
29997\${inst_cmd} \${3}
29998EOF
0caebc27
MW
29999 chmod +x change-install-names
30000 fi
a848cd7e
SC
30001 ;;
30002
30003 *-*-cygwin* | *-*-mingw32* )
30004 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30005 ;;
30006
81f90336
MW
30007 *-*-hpux* )
30008 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30009 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30010 ;;
30011
a848cd7e 30012 esac
ceec2216 30013
ffa0583f
RL
30014 if test $wxUSE_RPATH = "no"; then
30015 SAMPLES_RPATH_FLAG=''
30016 SAMPLES_RPATH_POSTLINK=''
30017 WXCONFIG_RPATH=''
30018 fi
30019
30020 SHARED=1
30021
30022else
30023
ceec2216
RL
30024 config_linkage_component="-static"
30025 SHARED=0
ffa0583f 30026
ceec2216 30027fi
a848cd7e 30028
a848cd7e 30029
ceec2216
RL
30030UNICODE=0
30031lib_unicode_suffix=
30032WX_CHARTYPE="ansi"
30033if test "$wxUSE_UNICODE" = "yes"; then
30034 lib_unicode_suffix=u
30035 WX_CHARTYPE="unicode"
30036 UNICODE=1
a848cd7e
SC
30037fi
30038
ceec2216
RL
30039lib_debug_suffix=
30040WX_DEBUGTYPE="release"
30041DEBUG_FLAG=0
30042if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30043 lib_debug_suffix=d
30044 WX_DEBUGTYPE="debug"
30045 DEBUG_FLAG=1
30046fi
a848cd7e 30047
ceec2216
RL
30048WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30049WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30050
ceec2216
RL
30051DEBUG_INFO=0
30052if test "$wxUSE_DEBUG_INFO" = "yes"; then
30053 DEBUG_INFO=1
30054fi
a848cd7e 30055
ceec2216 30056WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30057
ceec2216 30058TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30059
ceec2216 30060TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30061
ceec2216
RL
30062if test "$cross_compiling" = "yes"; then
30063 HOST_SUFFIX="-$host_alias"
30064 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30065 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30066fi
30067
dd21ced8 30068WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30069if test "${TOOLKIT_DIR}" = "os2"; then
30070 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30071else
30072 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30073fi
ceec2216
RL
30074
30075
30076
1d1af5ea
DE
30077if test "$wxUSE_COCOA" = 1; then
30078
30079
30080 ac_ext=c
30081ac_cpp='$CPP $CPPFLAGS'
30082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30084ac_compiler_gnu=$ac_cv_c_compiler_gnu
30085
30086ac_ext=m
30087
30088 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30089echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
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: no" >&5
30129echo "${ECHO_T}no" >&6
30130else
30131 echo "$as_me: failed program was:" >&5
30132sed 's/^/| /' conftest.$ac_ext >&5
30133
30134echo "$as_me:$LINENO: result: yes" >&5
30135echo "${ECHO_T}yes" >&6
30136 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30137echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30138 cat >conftest.$ac_ext <<_ACEOF
30139/* confdefs.h. */
30140_ACEOF
30141cat confdefs.h >>conftest.$ac_ext
30142cat >>conftest.$ac_ext <<_ACEOF
30143/* end confdefs.h. */
30144#define __Point__ 1
30145#include <AppKit/NSEvent.h>
30146#include <CoreFoundation/CoreFoundation.h>
30147
30148int
30149main ()
30150{
30151
30152 ;
30153 return 0;
30154}
30155_ACEOF
30156rm -f conftest.$ac_objext
30157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30158 (eval $ac_compile) 2>conftest.er1
30159 ac_status=$?
30160 grep -v '^ *+' conftest.er1 >conftest.err
30161 rm -f conftest.er1
30162 cat conftest.err >&5
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); } &&
6ebeb4c7 30165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30167 (eval $ac_try) 2>&5
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; } &&
30171 { ac_try='test -s conftest.$ac_objext'
30172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30173 (eval $ac_try) 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 echo "$as_me:$LINENO: result: yes" >&5
30178echo "${ECHO_T}yes" >&6
30179 cat >>confdefs.h <<\_ACEOF
30180#define __Point__ 1
30181_ACEOF
30182
30183
30184else
30185 echo "$as_me: failed program was:" >&5
30186sed 's/^/| /' conftest.$ac_ext >&5
30187
30188{ { echo "$as_me:$LINENO: error: no
30189See \`config.log' for more details." >&5
30190echo "$as_me: error: no
30191See \`config.log' for more details." >&2;}
30192 { (exit 1); exit 1; }; }
30193
30194fi
30195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30196
30197fi
30198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30199 ac_ext=c
30200ac_cpp='$CPP $CPPFLAGS'
30201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30203ac_compiler_gnu=$ac_cv_c_compiler_gnu
30204
30205fi
30206
a848cd7e 30207if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30208 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30209 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30210
a848cd7e 30211 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30212
30213 # Extract the first word of "Rez", so it can be a program name with args.
30214set dummy Rez; ac_word=$2
30215echo "$as_me:$LINENO: checking for $ac_word" >&5
30216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30217if test "${ac_cv_prog_RESCOMP+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30219else
30220 if test -n "$RESCOMP"; then
30221 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30222else
30223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30224for as_dir in $PATH
30225do
30226 IFS=$as_save_IFS
30227 test -z "$as_dir" && as_dir=.
30228 for ac_exec_ext in '' $ac_executable_extensions; do
30229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30230 ac_cv_prog_RESCOMP="Rez"
30231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30232 break 2
30233 fi
30234done
30235done
30236
30237 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30238fi
30239fi
30240RESCOMP=$ac_cv_prog_RESCOMP
30241if test -n "$RESCOMP"; then
30242 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30243echo "${ECHO_T}$RESCOMP" >&6
30244else
30245 echo "$as_me:$LINENO: result: no" >&5
30246echo "${ECHO_T}no" >&6
30247fi
30248
30249 # Extract the first word of "DeRez", so it can be a program name with args.
30250set dummy DeRez; ac_word=$2
30251echo "$as_me:$LINENO: checking for $ac_word" >&5
30252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30253if test "${ac_cv_prog_DEREZ+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30255else
30256 if test -n "$DEREZ"; then
30257 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30258else
30259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30260for as_dir in $PATH
30261do
30262 IFS=$as_save_IFS
30263 test -z "$as_dir" && as_dir=.
30264 for ac_exec_ext in '' $ac_executable_extensions; do
30265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30266 ac_cv_prog_DEREZ="DeRez"
30267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30268 break 2
30269 fi
30270done
30271done
30272
30273 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30274fi
30275fi
30276DEREZ=$ac_cv_prog_DEREZ
30277if test -n "$DEREZ"; then
30278 echo "$as_me:$LINENO: result: $DEREZ" >&5
30279echo "${ECHO_T}$DEREZ" >&6
30280else
30281 echo "$as_me:$LINENO: result: no" >&5
30282echo "${ECHO_T}no" >&6
30283fi
30284
30285 # Extract the first word of "SetFile", so it can be a program name with args.
30286set dummy SetFile; ac_word=$2
30287echo "$as_me:$LINENO: checking for $ac_word" >&5
30288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30289if test "${ac_cv_prog_SETFILE+set}" = set; then
30290 echo $ECHO_N "(cached) $ECHO_C" >&6
30291else
30292 if test -n "$SETFILE"; then
30293 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30294else
30295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30296for as_dir in $PATH
30297do
30298 IFS=$as_save_IFS
30299 test -z "$as_dir" && as_dir=.
30300 for ac_exec_ext in '' $ac_executable_extensions; do
30301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30302 ac_cv_prog_SETFILE="SetFile"
30303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30304 break 2
30305 fi
30306done
30307done
30308
30309 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30310fi
30311fi
30312SETFILE=$ac_cv_prog_SETFILE
30313if test -n "$SETFILE"; then
30314 echo "$as_me:$LINENO: result: $SETFILE" >&5
30315echo "${ECHO_T}$SETFILE" >&6
30316else
30317 echo "$as_me:$LINENO: result: no" >&5
30318echo "${ECHO_T}no" >&6
30319fi
30320
30321
30322 MACSETFILE="\$(SETFILE)"
30323
30324 if test "$wxUSE_MAC" = 1; then
1a79f136 30325 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30326
1a79f136 30327 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30328 else
30329 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30330 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30331 fi
30332else
ffa0583f
RL
30333 MACSETFILE="@true"
30334 MACRESWXCONFIG="@true"
a848cd7e
SC
30335
30336 if test "$wxUSE_PM" = 1; then
30337 MACRESCOMP="emxbind -ep"
30338 else
ffa0583f 30339 MACRESCOMP="@true"
a848cd7e
SC
30340 fi
30341fi
30342
30343
30344
30345echo "$as_me:$LINENO: checking for mode_t" >&5
30346echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30347if test "${ac_cv_type_mode_t+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 cat >conftest.$ac_ext <<_ACEOF
30351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
30356$ac_includes_default
30357int
30358main ()
30359{
30360if ((mode_t *) 0)
30361 return 0;
30362if (sizeof (mode_t))
30363 return 0;
30364 ;
30365 return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30370 (eval $ac_compile) 2>conftest.er1
a848cd7e 30371 ac_status=$?
ac1cb8d3
VS
30372 grep -v '^ *+' conftest.er1 >conftest.err
30373 rm -f conftest.er1
30374 cat conftest.err >&5
a848cd7e
SC
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
6ebeb4c7 30377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30379 (eval $ac_try) 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; } &&
30383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30385 (eval $ac_try) 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
30389 ac_cv_type_mode_t=yes
30390else
30391 echo "$as_me: failed program was:" >&5
30392sed 's/^/| /' conftest.$ac_ext >&5
30393
30394ac_cv_type_mode_t=no
30395fi
ac1cb8d3 30396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30397fi
30398echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30399echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30400if test $ac_cv_type_mode_t = yes; then
30401 :
30402else
30403
30404cat >>confdefs.h <<_ACEOF
30405#define mode_t int
30406_ACEOF
30407
30408fi
30409
30410echo "$as_me:$LINENO: checking for off_t" >&5
30411echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30412if test "${ac_cv_type_off_t+set}" = set; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414else
30415 cat >conftest.$ac_ext <<_ACEOF
30416/* confdefs.h. */
30417_ACEOF
30418cat confdefs.h >>conftest.$ac_ext
30419cat >>conftest.$ac_ext <<_ACEOF
30420/* end confdefs.h. */
30421$ac_includes_default
30422int
30423main ()
30424{
30425if ((off_t *) 0)
30426 return 0;
30427if (sizeof (off_t))
30428 return 0;
30429 ;
30430 return 0;
30431}
30432_ACEOF
30433rm -f conftest.$ac_objext
30434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30435 (eval $ac_compile) 2>conftest.er1
a848cd7e 30436 ac_status=$?
ac1cb8d3
VS
30437 grep -v '^ *+' conftest.er1 >conftest.err
30438 rm -f conftest.er1
30439 cat conftest.err >&5
a848cd7e
SC
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } &&
6ebeb4c7 30442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30444 (eval $ac_try) 2>&5
30445 ac_status=$?
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); }; } &&
30448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30450 (eval $ac_try) 2>&5
30451 ac_status=$?
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; }; then
30454 ac_cv_type_off_t=yes
30455else
30456 echo "$as_me: failed program was:" >&5
30457sed 's/^/| /' conftest.$ac_ext >&5
30458
30459ac_cv_type_off_t=no
30460fi
ac1cb8d3 30461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30462fi
30463echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30464echo "${ECHO_T}$ac_cv_type_off_t" >&6
30465if test $ac_cv_type_off_t = yes; then
30466 :
30467else
30468
30469cat >>confdefs.h <<_ACEOF
30470#define off_t long
30471_ACEOF
30472
30473fi
30474
30475echo "$as_me:$LINENO: checking for pid_t" >&5
30476echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30477if test "${ac_cv_type_pid_t+set}" = set; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30479else
30480 cat >conftest.$ac_ext <<_ACEOF
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
30486$ac_includes_default
30487int
30488main ()
30489{
30490if ((pid_t *) 0)
30491 return 0;
30492if (sizeof (pid_t))
30493 return 0;
30494 ;
30495 return 0;
30496}
30497_ACEOF
30498rm -f conftest.$ac_objext
30499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30500 (eval $ac_compile) 2>conftest.er1
a848cd7e 30501 ac_status=$?
ac1cb8d3
VS
30502 grep -v '^ *+' conftest.er1 >conftest.err
30503 rm -f conftest.er1
30504 cat conftest.err >&5
a848cd7e
SC
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); } &&
6ebeb4c7 30507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30509 (eval $ac_try) 2>&5
30510 ac_status=$?
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; } &&
30513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515 (eval $ac_try) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; }; then
30519 ac_cv_type_pid_t=yes
30520else
30521 echo "$as_me: failed program was:" >&5
30522sed 's/^/| /' conftest.$ac_ext >&5
30523
30524ac_cv_type_pid_t=no
30525fi
ac1cb8d3 30526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30527fi
30528echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30529echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30530if test $ac_cv_type_pid_t = yes; then
30531 :
30532else
30533
30534cat >>confdefs.h <<_ACEOF
30535#define pid_t int
30536_ACEOF
30537
30538fi
30539
30540echo "$as_me:$LINENO: checking for size_t" >&5
30541echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30542if test "${ac_cv_type_size_t+set}" = set; then
30543 echo $ECHO_N "(cached) $ECHO_C" >&6
30544else
30545 cat >conftest.$ac_ext <<_ACEOF
30546/* confdefs.h. */
30547_ACEOF
30548cat confdefs.h >>conftest.$ac_ext
30549cat >>conftest.$ac_ext <<_ACEOF
30550/* end confdefs.h. */
30551$ac_includes_default
30552int
30553main ()
30554{
30555if ((size_t *) 0)
30556 return 0;
30557if (sizeof (size_t))
30558 return 0;
30559 ;
30560 return 0;
30561}
30562_ACEOF
30563rm -f conftest.$ac_objext
30564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30565 (eval $ac_compile) 2>conftest.er1
a848cd7e 30566 ac_status=$?
ac1cb8d3
VS
30567 grep -v '^ *+' conftest.er1 >conftest.err
30568 rm -f conftest.er1
30569 cat conftest.err >&5
a848cd7e
SC
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); } &&
6ebeb4c7 30572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; } &&
30578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; }; then
30584 ac_cv_type_size_t=yes
30585else
30586 echo "$as_me: failed program was:" >&5
30587sed 's/^/| /' conftest.$ac_ext >&5
30588
30589ac_cv_type_size_t=no
30590fi
ac1cb8d3 30591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30592fi
30593echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30594echo "${ECHO_T}$ac_cv_type_size_t" >&6
30595if test $ac_cv_type_size_t = yes; then
30596 :
30597else
30598
30599cat >>confdefs.h <<_ACEOF
30600#define size_t unsigned
30601_ACEOF
30602
30603fi
30604
30605echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30606echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30607if test "${ac_cv_type_uid_t+set}" = set; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30609else
30610 cat >conftest.$ac_ext <<_ACEOF
30611/* confdefs.h. */
30612_ACEOF
30613cat confdefs.h >>conftest.$ac_ext
30614cat >>conftest.$ac_ext <<_ACEOF
30615/* end confdefs.h. */
30616#include <sys/types.h>
30617
30618_ACEOF
30619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30620 $EGREP "uid_t" >/dev/null 2>&1; then
30621 ac_cv_type_uid_t=yes
30622else
30623 ac_cv_type_uid_t=no
30624fi
30625rm -f conftest*
30626
30627fi
30628echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30629echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30630if test $ac_cv_type_uid_t = no; then
30631
30632cat >>confdefs.h <<\_ACEOF
30633#define uid_t int
30634_ACEOF
30635
30636
30637cat >>confdefs.h <<\_ACEOF
30638#define gid_t int
30639_ACEOF
30640
30641fi
30642
30643
d51253e8
RL
30644echo "$as_me:$LINENO: checking for ssize_t" >&5
30645echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30646if test "${ac_cv_type_ssize_t+set}" = set; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
30649 cat >conftest.$ac_ext <<_ACEOF
30650/* confdefs.h. */
30651_ACEOF
30652cat confdefs.h >>conftest.$ac_ext
30653cat >>conftest.$ac_ext <<_ACEOF
30654/* end confdefs.h. */
30655$ac_includes_default
30656int
30657main ()
30658{
30659if ((ssize_t *) 0)
30660 return 0;
30661if (sizeof (ssize_t))
30662 return 0;
30663 ;
30664 return 0;
30665}
30666_ACEOF
30667rm -f conftest.$ac_objext
30668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30669 (eval $ac_compile) 2>conftest.er1
30670 ac_status=$?
30671 grep -v '^ *+' conftest.er1 >conftest.err
30672 rm -f conftest.er1
30673 cat conftest.err >&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } &&
6ebeb4c7 30676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678 (eval $ac_try) 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; } &&
30682 { ac_try='test -s conftest.$ac_objext'
30683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684 (eval $ac_try) 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; }; then
30688 ac_cv_type_ssize_t=yes
30689else
30690 echo "$as_me: failed program was:" >&5
30691sed 's/^/| /' conftest.$ac_ext >&5
30692
30693ac_cv_type_ssize_t=no
30694fi
30695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30696fi
30697echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30698echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30699if test $ac_cv_type_ssize_t = yes; then
30700
30701cat >>confdefs.h <<_ACEOF
30702#define HAVE_SSIZE_T 1
30703_ACEOF
30704
30705
30706fi
30707
30708
a848cd7e
SC
30709
30710
30711ac_ext=cc
30712ac_cpp='$CXXCPP $CPPFLAGS'
30713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30716
30717echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30718echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30719if test "${wx_cv_size_t_is_uint+set}" = set; then
30720 echo $ECHO_N "(cached) $ECHO_C" >&6
30721else
30722
30723 cat >conftest.$ac_ext <<_ACEOF
30724/* confdefs.h. */
30725_ACEOF
30726cat confdefs.h >>conftest.$ac_ext
30727cat >>conftest.$ac_ext <<_ACEOF
30728/* end confdefs.h. */
30729#include <stddef.h>
30730int
30731main ()
30732{
30733
30734 return 0; }
30735
30736 struct Foo { void foo(size_t); void foo(unsigned int); };
30737
30738 int bar() {
30739
30740 ;
30741 return 0;
30742}
30743_ACEOF
30744rm -f conftest.$ac_objext
30745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30746 (eval $ac_compile) 2>conftest.er1
a848cd7e 30747 ac_status=$?
ac1cb8d3
VS
30748 grep -v '^ *+' conftest.er1 >conftest.err
30749 rm -f conftest.er1
30750 cat conftest.err >&5
a848cd7e
SC
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } &&
6ebeb4c7 30753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755 (eval $ac_try) 2>&5
30756 ac_status=$?
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); }; } &&
30759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; }; then
30765 wx_cv_size_t_is_uint=no
30766else
30767 echo "$as_me: failed program was:" >&5
30768sed 's/^/| /' conftest.$ac_ext >&5
30769
30770wx_cv_size_t_is_uint=yes
30771
30772fi
ac1cb8d3 30773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30774
30775
30776fi
30777echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30778echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30779
30780if test "$wx_cv_size_t_is_uint" = "yes"; then
30781 cat >>confdefs.h <<\_ACEOF
30782#define wxSIZE_T_IS_UINT 1
30783_ACEOF
30784
30785else
30786 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30787echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30788if test "${wx_cv_size_t_is_ulong+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
30791 cat >conftest.$ac_ext <<_ACEOF
30792/* confdefs.h. */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h. */
30797#include <stddef.h>
30798int
30799main ()
30800{
30801
30802 return 0; }
30803
30804 struct Foo { void foo(size_t); void foo(unsigned long); };
30805
30806 int bar() {
30807
30808 ;
30809 return 0;
30810}
30811_ACEOF
30812rm -f conftest.$ac_objext
30813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30814 (eval $ac_compile) 2>conftest.er1
a848cd7e 30815 ac_status=$?
ac1cb8d3
VS
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
a848cd7e
SC
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } &&
6ebeb4c7 30821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 wx_cv_size_t_is_ulong=no
30834else
30835 echo "$as_me: failed program was:" >&5
30836sed 's/^/| /' conftest.$ac_ext >&5
30837
30838wx_cv_size_t_is_ulong=yes
30839
30840fi
ac1cb8d3 30841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30842
30843fi
30844echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30845echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30846
30847 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30848 cat >>confdefs.h <<\_ACEOF
30849#define wxSIZE_T_IS_ULONG 1
30850_ACEOF
30851
30852 fi
30853fi
30854
30855ac_ext=c
30856ac_cpp='$CPP $CPPFLAGS'
30857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30859ac_compiler_gnu=$ac_cv_c_compiler_gnu
30860
30861
30862
30863echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30864echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30865if test "${wx_cv_struct_pw_gecos+set}" = set; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30867else
30868
30869 cat >conftest.$ac_ext <<_ACEOF
30870/* confdefs.h. */
30871_ACEOF
30872cat confdefs.h >>conftest.$ac_ext
30873cat >>conftest.$ac_ext <<_ACEOF
30874/* end confdefs.h. */
30875#include <pwd.h>
30876int
30877main ()
30878{
30879
30880 char *p;
30881 struct passwd *pw;
30882 p = pw->pw_gecos;
30883
30884 ;
30885 return 0;
30886}
30887_ACEOF
30888rm -f conftest.$ac_objext
30889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30890 (eval $ac_compile) 2>conftest.er1
a848cd7e 30891 ac_status=$?
ac1cb8d3
VS
30892 grep -v '^ *+' conftest.er1 >conftest.err
30893 rm -f conftest.er1
30894 cat conftest.err >&5
a848cd7e
SC
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } &&
6ebeb4c7 30897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30899 (eval $ac_try) 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; } &&
30903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905 (eval $ac_try) 2>&5
30906 ac_status=$?
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); }; }; then
30909
30910 wx_cv_struct_pw_gecos=yes
30911
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
30916
30917 wx_cv_struct_pw_gecos=no
30918
30919
30920fi
ac1cb8d3 30921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30922
30923
30924fi
30925echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30926echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30927
30928if test "$wx_cv_struct_pw_gecos" = "yes"; then
30929 cat >>confdefs.h <<\_ACEOF
30930#define HAVE_PW_GECOS 1
30931_ACEOF
30932
30933fi
30934
30935
47a7e797 30936if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30937 cat >>confdefs.h <<\_ACEOF
30938#define wxUSE_WCHAR_T 1
30939_ACEOF
30940
30941
30942 WCSLEN_FOUND=0
30943 WCHAR_LINK=
30944
30945for ac_func in wcslen
30946do
30947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30948echo "$as_me:$LINENO: checking for $ac_func" >&5
30949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30950if eval "test \"\${$as_ac_var+set}\" = set"; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30952else
30953 cat >conftest.$ac_ext <<_ACEOF
30954/* confdefs.h. */
30955_ACEOF
30956cat confdefs.h >>conftest.$ac_ext
30957cat >>conftest.$ac_ext <<_ACEOF
30958/* end confdefs.h. */
ac1cb8d3
VS
30959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30961#define $ac_func innocuous_$ac_func
30962
a848cd7e
SC
30963/* System header to define __stub macros and hopefully few prototypes,
30964 which can conflict with char $ac_func (); below.
30965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30966 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30967
a848cd7e
SC
30968#ifdef __STDC__
30969# include <limits.h>
30970#else
30971# include <assert.h>
30972#endif
ac1cb8d3
VS
30973
30974#undef $ac_func
30975
a848cd7e
SC
30976/* Override any gcc2 internal prototype to avoid an error. */
30977#ifdef __cplusplus
30978extern "C"
30979{
30980#endif
30981/* We use char because int might match the return type of a gcc2
30982 builtin and then its argument prototype would still apply. */
30983char $ac_func ();
30984/* The GNU C library defines this for functions which it implements
30985 to always fail with ENOSYS. Some functions are actually named
30986 something starting with __ and the normal name is an alias. */
30987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30988choke me
30989#else
30990char (*f) () = $ac_func;
30991#endif
30992#ifdef __cplusplus
30993}
30994#endif
30995
30996int
30997main ()
30998{
30999return f != $ac_func;
31000 ;
31001 return 0;
31002}
31003_ACEOF
31004rm -f conftest.$ac_objext conftest$ac_exeext
31005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31006 (eval $ac_link) 2>conftest.er1
a848cd7e 31007 ac_status=$?
ac1cb8d3
VS
31008 grep -v '^ *+' conftest.er1 >conftest.err
31009 rm -f conftest.er1
31010 cat conftest.err >&5
a848cd7e
SC
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
6ebeb4c7 31013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31015 (eval $ac_try) 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; } &&
31019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
31025 eval "$as_ac_var=yes"
31026else
31027 echo "$as_me: failed program was:" >&5
31028sed 's/^/| /' conftest.$ac_ext >&5
31029
31030eval "$as_ac_var=no"
31031fi
ac1cb8d3
VS
31032rm -f conftest.err conftest.$ac_objext \
31033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31034fi
31035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31037if test `eval echo '${'$as_ac_var'}'` = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31040_ACEOF
31041 WCSLEN_FOUND=1
31042fi
31043done
31044
31045
31046 if test "$WCSLEN_FOUND" = 0; then
31047 if test "$TOOLKIT" = "MSW"; then
31048 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31049echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31050if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31052else
31053 ac_check_lib_save_LIBS=$LIBS
31054LIBS="-lmsvcrt $LIBS"
31055cat >conftest.$ac_ext <<_ACEOF
31056/* confdefs.h. */
31057_ACEOF
31058cat confdefs.h >>conftest.$ac_ext
31059cat >>conftest.$ac_ext <<_ACEOF
31060/* end confdefs.h. */
31061
31062/* Override any gcc2 internal prototype to avoid an error. */
31063#ifdef __cplusplus
31064extern "C"
31065#endif
31066/* We use char because int might match the return type of a gcc2
31067 builtin and then its argument prototype would still apply. */
31068char wcslen ();
31069int
31070main ()
31071{
31072wcslen ();
31073 ;
31074 return 0;
31075}
31076_ACEOF
31077rm -f conftest.$ac_objext conftest$ac_exeext
31078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31079 (eval $ac_link) 2>conftest.er1
a848cd7e 31080 ac_status=$?
ac1cb8d3
VS
31081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
a848cd7e
SC
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
6ebeb4c7 31086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31088 (eval $ac_try) 2>&5
31089 ac_status=$?
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); }; } &&
31092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31094 (eval $ac_try) 2>&5
31095 ac_status=$?
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; }; then
31098 ac_cv_lib_msvcrt_wcslen=yes
31099else
31100 echo "$as_me: failed program was:" >&5
31101sed 's/^/| /' conftest.$ac_ext >&5
31102
31103ac_cv_lib_msvcrt_wcslen=no
31104fi
ac1cb8d3
VS
31105rm -f conftest.err conftest.$ac_objext \
31106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31107LIBS=$ac_check_lib_save_LIBS
31108fi
31109echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31110echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31111if test $ac_cv_lib_msvcrt_wcslen = yes; then
31112 WCHAR_OK=1
31113fi
31114
31115 else
31116 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31117echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31118if test "${ac_cv_lib_w_wcslen+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121 ac_check_lib_save_LIBS=$LIBS
31122LIBS="-lw $LIBS"
31123cat >conftest.$ac_ext <<_ACEOF
31124/* confdefs.h. */
31125_ACEOF
31126cat confdefs.h >>conftest.$ac_ext
31127cat >>conftest.$ac_ext <<_ACEOF
31128/* end confdefs.h. */
31129
31130/* Override any gcc2 internal prototype to avoid an error. */
31131#ifdef __cplusplus
31132extern "C"
31133#endif
31134/* We use char because int might match the return type of a gcc2
31135 builtin and then its argument prototype would still apply. */
31136char wcslen ();
31137int
31138main ()
31139{
31140wcslen ();
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
31146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31147 (eval $ac_link) 2>conftest.er1
a848cd7e 31148 ac_status=$?
ac1cb8d3
VS
31149 grep -v '^ *+' conftest.er1 >conftest.err
31150 rm -f conftest.er1
31151 cat conftest.err >&5
a848cd7e
SC
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
6ebeb4c7 31154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31162 (eval $ac_try) 2>&5
31163 ac_status=$?
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); }; }; then
31166 ac_cv_lib_w_wcslen=yes
31167else
31168 echo "$as_me: failed program was:" >&5
31169sed 's/^/| /' conftest.$ac_ext >&5
31170
31171ac_cv_lib_w_wcslen=no
31172fi
ac1cb8d3
VS
31173rm -f conftest.err conftest.$ac_objext \
31174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31175LIBS=$ac_check_lib_save_LIBS
31176fi
31177echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31178echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31179if test $ac_cv_lib_w_wcslen = yes; then
31180
31181 WCHAR_LINK=" -lw"
31182 WCSLEN_FOUND=1
31183
31184fi
31185
31186 fi
31187 fi
31188
31189 if test "$WCSLEN_FOUND" = 1; then
31190 cat >>confdefs.h <<\_ACEOF
31191#define HAVE_WCSLEN 1
31192_ACEOF
31193
31194 fi
31195
81f90336 31196 if test "$USE_HPUX" = 1; then
473276a9
VS
31197 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31198 fi
31199
a848cd7e
SC
31200
31201for ac_func in wcsrtombs
31202do
31203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31204echo "$as_me:$LINENO: checking for $ac_func" >&5
31205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31206if eval "test \"\${$as_ac_var+set}\" = set"; then
31207 echo $ECHO_N "(cached) $ECHO_C" >&6
31208else
31209 cat >conftest.$ac_ext <<_ACEOF
31210/* confdefs.h. */
31211_ACEOF
31212cat confdefs.h >>conftest.$ac_ext
31213cat >>conftest.$ac_ext <<_ACEOF
31214/* end confdefs.h. */
ac1cb8d3
VS
31215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31217#define $ac_func innocuous_$ac_func
31218
a848cd7e
SC
31219/* System header to define __stub macros and hopefully few prototypes,
31220 which can conflict with char $ac_func (); below.
31221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31223
a848cd7e
SC
31224#ifdef __STDC__
31225# include <limits.h>
31226#else
31227# include <assert.h>
31228#endif
ac1cb8d3
VS
31229
31230#undef $ac_func
31231
a848cd7e
SC
31232/* Override any gcc2 internal prototype to avoid an error. */
31233#ifdef __cplusplus
31234extern "C"
31235{
31236#endif
31237/* We use char because int might match the return type of a gcc2
31238 builtin and then its argument prototype would still apply. */
31239char $ac_func ();
31240/* The GNU C library defines this for functions which it implements
31241 to always fail with ENOSYS. Some functions are actually named
31242 something starting with __ and the normal name is an alias. */
31243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31244choke me
31245#else
31246char (*f) () = $ac_func;
31247#endif
31248#ifdef __cplusplus
31249}
31250#endif
31251
31252int
31253main ()
31254{
31255return f != $ac_func;
31256 ;
31257 return 0;
31258}
31259_ACEOF
31260rm -f conftest.$ac_objext conftest$ac_exeext
31261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31262 (eval $ac_link) 2>conftest.er1
a848cd7e 31263 ac_status=$?
ac1cb8d3
VS
31264 grep -v '^ *+' conftest.er1 >conftest.err
31265 rm -f conftest.er1
31266 cat conftest.err >&5
a848cd7e
SC
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
6ebeb4c7 31269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; } &&
31275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31277 (eval $ac_try) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }; then
31281 eval "$as_ac_var=yes"
31282else
31283 echo "$as_me: failed program was:" >&5
31284sed 's/^/| /' conftest.$ac_ext >&5
31285
31286eval "$as_ac_var=no"
31287fi
ac1cb8d3
VS
31288rm -f conftest.err conftest.$ac_objext \
31289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31290fi
31291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31293if test `eval echo '${'$as_ac_var'}'` = yes; then
31294 cat >>confdefs.h <<_ACEOF
31295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31296_ACEOF
31297
31298fi
31299done
31300
31301else
31302 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31303echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31304fi
31305
31306
31307
31308ac_ext=cc
31309ac_cpp='$CXXCPP $CPPFLAGS'
31310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31313
31314
31315
31316for ac_func in vsnprintf
31317do
31318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31319echo "$as_me:$LINENO: checking for $ac_func" >&5
31320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31321if eval "test \"\${$as_ac_var+set}\" = set"; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31323else
31324 cat >conftest.$ac_ext <<_ACEOF
31325/* confdefs.h. */
31326_ACEOF
31327cat confdefs.h >>conftest.$ac_ext
31328cat >>conftest.$ac_ext <<_ACEOF
31329/* end confdefs.h. */
ac1cb8d3
VS
31330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31332#define $ac_func innocuous_$ac_func
31333
a848cd7e
SC
31334/* System header to define __stub macros and hopefully few prototypes,
31335 which can conflict with char $ac_func (); below.
31336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31337 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31338
a848cd7e
SC
31339#ifdef __STDC__
31340# include <limits.h>
31341#else
31342# include <assert.h>
31343#endif
ac1cb8d3
VS
31344
31345#undef $ac_func
31346
a848cd7e
SC
31347/* Override any gcc2 internal prototype to avoid an error. */
31348#ifdef __cplusplus
31349extern "C"
31350{
31351#endif
31352/* We use char because int might match the return type of a gcc2
31353 builtin and then its argument prototype would still apply. */
31354char $ac_func ();
31355/* The GNU C library defines this for functions which it implements
31356 to always fail with ENOSYS. Some functions are actually named
31357 something starting with __ and the normal name is an alias. */
31358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31359choke me
31360#else
31361char (*f) () = $ac_func;
31362#endif
31363#ifdef __cplusplus
31364}
31365#endif
31366
31367int
31368main ()
31369{
31370return f != $ac_func;
31371 ;
31372 return 0;
31373}
31374_ACEOF
31375rm -f conftest.$ac_objext conftest$ac_exeext
31376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31377 (eval $ac_link) 2>conftest.er1
a848cd7e 31378 ac_status=$?
ac1cb8d3
VS
31379 grep -v '^ *+' conftest.er1 >conftest.err
31380 rm -f conftest.er1
31381 cat conftest.err >&5
a848cd7e
SC
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); } &&
6ebeb4c7 31384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; } &&
31390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 eval "$as_ac_var=yes"
31397else
31398 echo "$as_me: failed program was:" >&5
31399sed 's/^/| /' conftest.$ac_ext >&5
31400
31401eval "$as_ac_var=no"
31402fi
ac1cb8d3
VS
31403rm -f conftest.err conftest.$ac_objext \
31404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31405fi
31406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31408if test `eval echo '${'$as_ac_var'}'` = yes; then
31409 cat >>confdefs.h <<_ACEOF
31410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31411_ACEOF
31412
31413fi
31414done
31415
31416
31417if test "$ac_cv_func_vsnprintf" = "yes"; then
31418 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31419echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31420if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31421 echo $ECHO_N "(cached) $ECHO_C" >&6
31422else
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
31434int
31435main ()
31436{
31437
31438 char *buf;
31439 va_list ap;
31440 vsnprintf(buf, 10u, "%s", ap);
31441
31442 ;
31443 return 0;
31444}
31445_ACEOF
31446rm -f conftest.$ac_objext
31447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31448 (eval $ac_compile) 2>conftest.er1
a848cd7e 31449 ac_status=$?
ac1cb8d3
VS
31450 grep -v '^ *+' conftest.er1 >conftest.err
31451 rm -f conftest.er1
31452 cat conftest.err >&5
a848cd7e
SC
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } &&
6ebeb4c7 31455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457 (eval $ac_try) 2>&5
31458 ac_status=$?
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; } &&
31461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 (eval $ac_try) 2>&5
31464 ac_status=$?
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; }; then
31467 wx_cv_func_vsnprintf_decl=yes
31468else
31469 echo "$as_me: failed program was:" >&5
31470sed 's/^/| /' conftest.$ac_ext >&5
31471
c122b164
DE
31472
31473 cat >conftest.$ac_ext <<_ACEOF
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
31479
31480 #include <stdio.h>
31481 #include <stdarg.h>
31482 using namespace std;
31483
31484int
31485main ()
31486{
31487
31488 char *buf;
31489 va_list ap;
31490 vsnprintf(buf, 10u, "%s", ap);
31491
31492 ;
31493 return 0;
31494}
31495_ACEOF
31496rm -f conftest.$ac_objext
31497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31498 (eval $ac_compile) 2>conftest.er1
31499 ac_status=$?
31500 grep -v '^ *+' conftest.er1 >conftest.err
31501 rm -f conftest.er1
31502 cat conftest.err >&5
31503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); } &&
6ebeb4c7 31505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31507 (eval $ac_try) 2>&5
31508 ac_status=$?
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); }; } &&
31511 { ac_try='test -s conftest.$ac_objext'
31512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31513 (eval $ac_try) 2>&5
31514 ac_status=$?
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; }; then
31517 wx_cv_func_vsnprintf_decl=yes
31518else
31519 echo "$as_me: failed program was:" >&5
31520sed 's/^/| /' conftest.$ac_ext >&5
31521
a848cd7e
SC
31522wx_cv_func_vsnprintf_decl=no
31523
31524fi
ac1cb8d3 31525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31526
31527
c122b164
DE
31528fi
31529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31530
31531
a848cd7e
SC
31532fi
31533echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31534echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31535
31536 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31537 cat >>confdefs.h <<\_ACEOF
31538#define HAVE_VSNPRINTF_DECL 1
31539_ACEOF
31540
31541 fi
31542fi
31543
31544if test "$wxUSE_UNICODE" = yes; then
31545
31546
31547
fbe47c7b
VS
31548
31549
31550
31551for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31552do
31553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31554echo "$as_me:$LINENO: checking for $ac_func" >&5
31555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31556if eval "test \"\${$as_ac_var+set}\" = set"; then
31557 echo $ECHO_N "(cached) $ECHO_C" >&6
31558else
31559 cat >conftest.$ac_ext <<_ACEOF
31560/* confdefs.h. */
31561_ACEOF
31562cat confdefs.h >>conftest.$ac_ext
31563cat >>conftest.$ac_ext <<_ACEOF
31564/* end confdefs.h. */
ac1cb8d3
VS
31565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31567#define $ac_func innocuous_$ac_func
31568
a848cd7e
SC
31569/* System header to define __stub macros and hopefully few prototypes,
31570 which can conflict with char $ac_func (); below.
31571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31572 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31573
a848cd7e
SC
31574#ifdef __STDC__
31575# include <limits.h>
31576#else
31577# include <assert.h>
31578#endif
ac1cb8d3
VS
31579
31580#undef $ac_func
31581
a848cd7e
SC
31582/* Override any gcc2 internal prototype to avoid an error. */
31583#ifdef __cplusplus
31584extern "C"
31585{
31586#endif
31587/* We use char because int might match the return type of a gcc2
31588 builtin and then its argument prototype would still apply. */
31589char $ac_func ();
31590/* The GNU C library defines this for functions which it implements
31591 to always fail with ENOSYS. Some functions are actually named
31592 something starting with __ and the normal name is an alias. */
31593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31594choke me
31595#else
31596char (*f) () = $ac_func;
31597#endif
31598#ifdef __cplusplus
31599}
31600#endif
31601
31602int
31603main ()
31604{
31605return f != $ac_func;
31606 ;
31607 return 0;
31608}
31609_ACEOF
31610rm -f conftest.$ac_objext conftest$ac_exeext
31611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31612 (eval $ac_link) 2>conftest.er1
a848cd7e 31613 ac_status=$?
ac1cb8d3
VS
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
a848cd7e
SC
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
6ebeb4c7 31619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31621 (eval $ac_try) 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; } &&
31625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; }; then
31631 eval "$as_ac_var=yes"
31632else
31633 echo "$as_me: failed program was:" >&5
31634sed 's/^/| /' conftest.$ac_ext >&5
31635
31636eval "$as_ac_var=no"
31637fi
ac1cb8d3
VS
31638rm -f conftest.err conftest.$ac_objext \
31639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31640fi
31641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31643if test `eval echo '${'$as_ac_var'}'` = yes; then
31644 cat >>confdefs.h <<_ACEOF
31645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31646_ACEOF
31647
31648fi
31649done
31650
31651
31652 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31653echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31654 cat >conftest.$ac_ext <<_ACEOF
31655/* confdefs.h. */
31656_ACEOF
31657cat confdefs.h >>conftest.$ac_ext
31658cat >>conftest.$ac_ext <<_ACEOF
31659/* end confdefs.h. */
31660#include <wchar.h>
31661int
31662main ()
31663{
31664&_vsnwprintf;
31665 ;
31666 return 0;
31667}
31668_ACEOF
31669rm -f conftest.$ac_objext
31670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31671 (eval $ac_compile) 2>conftest.er1
a848cd7e 31672 ac_status=$?
ac1cb8d3
VS
31673 grep -v '^ *+' conftest.er1 >conftest.err
31674 rm -f conftest.er1
31675 cat conftest.err >&5
a848cd7e
SC
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); } &&
6ebeb4c7 31678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680 (eval $ac_try) 2>&5
31681 ac_status=$?
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31686 (eval $ac_try) 2>&5
31687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); }; }; then
31690 echo "$as_me:$LINENO: result: yes" >&5
31691echo "${ECHO_T}yes" >&6
31692 cat >>confdefs.h <<\_ACEOF
31693#define HAVE__VSNWPRINTF 1
31694_ACEOF
31695
31696else
31697 echo "$as_me: failed program was:" >&5
31698sed 's/^/| /' conftest.$ac_ext >&5
31699
31700echo "$as_me:$LINENO: result: no" >&5
31701echo "${ECHO_T}no" >&6
31702fi
ac1cb8d3 31703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31704fi
31705
31706ac_ext=c
31707ac_cpp='$CPP $CPPFLAGS'
31708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31710ac_compiler_gnu=$ac_cv_c_compiler_gnu
31711
31712
6ebeb4c7
VZ
31713if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31714
31715for ac_func in fnmatch
31716do
31717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31718echo "$as_me:$LINENO: checking for $ac_func" >&5
31719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31720if eval "test \"\${$as_ac_var+set}\" = set"; then
31721 echo $ECHO_N "(cached) $ECHO_C" >&6
31722else
31723 cat >conftest.$ac_ext <<_ACEOF
31724/* confdefs.h. */
31725_ACEOF
31726cat confdefs.h >>conftest.$ac_ext
31727cat >>conftest.$ac_ext <<_ACEOF
31728/* end confdefs.h. */
31729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31731#define $ac_func innocuous_$ac_func
31732
31733/* System header to define __stub macros and hopefully few prototypes,
31734 which can conflict with char $ac_func (); below.
31735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31736 <limits.h> exists even on freestanding compilers. */
31737
31738#ifdef __STDC__
31739# include <limits.h>
31740#else
31741# include <assert.h>
31742#endif
31743
31744#undef $ac_func
31745
31746/* Override any gcc2 internal prototype to avoid an error. */
31747#ifdef __cplusplus
31748extern "C"
31749{
31750#endif
31751/* We use char because int might match the return type of a gcc2
31752 builtin and then its argument prototype would still apply. */
31753char $ac_func ();
31754/* The GNU C library defines this for functions which it implements
31755 to always fail with ENOSYS. Some functions are actually named
31756 something starting with __ and the normal name is an alias. */
31757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31758choke me
31759#else
31760char (*f) () = $ac_func;
31761#endif
31762#ifdef __cplusplus
31763}
31764#endif
31765
31766int
31767main ()
31768{
31769return f != $ac_func;
31770 ;
31771 return 0;
31772}
31773_ACEOF
31774rm -f conftest.$ac_objext conftest$ac_exeext
31775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31776 (eval $ac_link) 2>conftest.er1
31777 ac_status=$?
31778 grep -v '^ *+' conftest.er1 >conftest.err
31779 rm -f conftest.er1
31780 cat conftest.err >&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } &&
31783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest$ac_exeext'
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }; then
31795 eval "$as_ac_var=yes"
31796else
31797 echo "$as_me: failed program was:" >&5
31798sed 's/^/| /' conftest.$ac_ext >&5
31799
31800eval "$as_ac_var=no"
31801fi
31802rm -f conftest.err conftest.$ac_objext \
31803 conftest$ac_exeext conftest.$ac_ext
31804fi
31805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31807if test `eval echo '${'$as_ac_var'}'` = yes; then
31808 cat >>confdefs.h <<_ACEOF
31809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31810_ACEOF
31811
31812fi
31813done
31814
31815fi
31816
31817if test "$wxUSE_FILE" = "yes"; then
31818
31819for ac_func in fsync
31820do
31821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31822echo "$as_me:$LINENO: checking for $ac_func" >&5
31823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31824if eval "test \"\${$as_ac_var+set}\" = set"; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826else
31827 cat >conftest.$ac_ext <<_ACEOF
31828/* confdefs.h. */
31829_ACEOF
31830cat confdefs.h >>conftest.$ac_ext
31831cat >>conftest.$ac_ext <<_ACEOF
31832/* end confdefs.h. */
31833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31835#define $ac_func innocuous_$ac_func
31836
31837/* System header to define __stub macros and hopefully few prototypes,
31838 which can conflict with char $ac_func (); below.
31839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31840 <limits.h> exists even on freestanding compilers. */
31841
31842#ifdef __STDC__
31843# include <limits.h>
31844#else
31845# include <assert.h>
31846#endif
31847
31848#undef $ac_func
31849
31850/* Override any gcc2 internal prototype to avoid an error. */
31851#ifdef __cplusplus
31852extern "C"
31853{
31854#endif
31855/* We use char because int might match the return type of a gcc2
31856 builtin and then its argument prototype would still apply. */
31857char $ac_func ();
31858/* The GNU C library defines this for functions which it implements
31859 to always fail with ENOSYS. Some functions are actually named
31860 something starting with __ and the normal name is an alias. */
31861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31862choke me
31863#else
31864char (*f) () = $ac_func;
31865#endif
31866#ifdef __cplusplus
31867}
31868#endif
31869
31870int
31871main ()
31872{
31873return f != $ac_func;
31874 ;
31875 return 0;
31876}
31877_ACEOF
31878rm -f conftest.$ac_objext conftest$ac_exeext
31879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31880 (eval $ac_link) 2>conftest.er1
31881 ac_status=$?
31882 grep -v '^ *+' conftest.er1 >conftest.err
31883 rm -f conftest.er1
31884 cat conftest.err >&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); } &&
31887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889 (eval $ac_try) 2>&5
31890 ac_status=$?
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }; } &&
31893 { ac_try='test -s conftest$ac_exeext'
31894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895 (eval $ac_try) 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; }; then
31899 eval "$as_ac_var=yes"
31900else
31901 echo "$as_me: failed program was:" >&5
31902sed 's/^/| /' conftest.$ac_ext >&5
31903
31904eval "$as_ac_var=no"
31905fi
31906rm -f conftest.err conftest.$ac_objext \
31907 conftest$ac_exeext conftest.$ac_ext
31908fi
31909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31911if test `eval echo '${'$as_ac_var'}'` = yes; then
31912 cat >>confdefs.h <<_ACEOF
31913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31914_ACEOF
31915
31916fi
31917done
31918
31919fi
a848cd7e
SC
31920
31921
31922if test "$TOOLKIT" != "MSW"; then
31923
31924
31925
31926
31927ac_ext=cc
31928ac_cpp='$CXXCPP $CPPFLAGS'
31929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31932
31933
31934
31935
31936# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31937if test "${with_libiconv_prefix+set}" = set; then
31938 withval="$with_libiconv_prefix"
31939
31940 for dir in `echo "$withval" | tr : ' '`; do
31941 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31942 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31943 done
31944
31945fi;
31946
31947 echo "$as_me:$LINENO: checking for iconv" >&5
31948echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31949if test "${am_cv_func_iconv+set}" = set; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951else
31952
31953 am_cv_func_iconv="no, consider installing GNU libiconv"
31954 am_cv_lib_iconv=no
31955 cat >conftest.$ac_ext <<_ACEOF
31956/* confdefs.h. */
31957_ACEOF
31958cat confdefs.h >>conftest.$ac_ext
31959cat >>conftest.$ac_ext <<_ACEOF
31960/* end confdefs.h. */
31961#include <stdlib.h>
31962#include <iconv.h>
31963int
31964main ()
31965{
31966iconv_t cd = iconv_open("","");
31967 iconv(cd,NULL,NULL,NULL,NULL);
31968 iconv_close(cd);
31969 ;
31970 return 0;
31971}
31972_ACEOF
31973rm -f conftest.$ac_objext conftest$ac_exeext
31974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31975 (eval $ac_link) 2>conftest.er1
a848cd7e 31976 ac_status=$?
ac1cb8d3
VS
31977 grep -v '^ *+' conftest.er1 >conftest.err
31978 rm -f conftest.er1
31979 cat conftest.err >&5
a848cd7e
SC
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); } &&
6ebeb4c7 31982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31984 (eval $ac_try) 2>&5
31985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31991 ac_status=$?
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; }; then
31994 am_cv_func_iconv=yes
31995else
31996 echo "$as_me: failed program was:" >&5
31997sed 's/^/| /' conftest.$ac_ext >&5
31998
31999fi
ac1cb8d3
VS
32000rm -f conftest.err conftest.$ac_objext \
32001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32002 if test "$am_cv_func_iconv" != yes; then
32003 am_save_LIBS="$LIBS"
32004 LIBS="$LIBS -liconv"
32005 cat >conftest.$ac_ext <<_ACEOF
32006/* confdefs.h. */
32007_ACEOF
32008cat confdefs.h >>conftest.$ac_ext
32009cat >>conftest.$ac_ext <<_ACEOF
32010/* end confdefs.h. */
32011#include <stdlib.h>
32012#include <iconv.h>
32013int
32014main ()
32015{
32016iconv_t cd = iconv_open("","");
32017 iconv(cd,NULL,NULL,NULL,NULL);
32018 iconv_close(cd);
32019 ;
32020 return 0;
32021}
32022_ACEOF
32023rm -f conftest.$ac_objext conftest$ac_exeext
32024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32025 (eval $ac_link) 2>conftest.er1
a848cd7e 32026 ac_status=$?
ac1cb8d3
VS
32027 grep -v '^ *+' conftest.er1 >conftest.err
32028 rm -f conftest.er1
32029 cat conftest.err >&5
a848cd7e
SC
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); } &&
6ebeb4c7 32032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32034 (eval $ac_try) 2>&5
32035 ac_status=$?
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); }; } &&
32038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; }; then
32044 am_cv_lib_iconv=yes
32045 am_cv_func_iconv=yes
32046else
32047 echo "$as_me: failed program was:" >&5
32048sed 's/^/| /' conftest.$ac_ext >&5
32049
32050fi
ac1cb8d3
VS
32051rm -f conftest.err conftest.$ac_objext \
32052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32053 LIBS="$am_save_LIBS"
32054 fi
32055
32056fi
32057echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32058echo "${ECHO_T}$am_cv_func_iconv" >&6
32059 if test "$am_cv_func_iconv" = yes; then
32060
32061cat >>confdefs.h <<\_ACEOF
32062#define HAVE_ICONV 1
32063_ACEOF
32064
32065 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32066echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32067if test "${wx_cv_func_iconv_const+set}" = set; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
32069else
32070 cat >conftest.$ac_ext <<_ACEOF
32071/* confdefs.h. */
32072_ACEOF
32073cat confdefs.h >>conftest.$ac_ext
32074cat >>conftest.$ac_ext <<_ACEOF
32075/* end confdefs.h. */
32076
32077#include <stdlib.h>
32078#include <iconv.h>
32079extern
32080#ifdef __cplusplus
32081"C"
32082#endif
32083#if defined(__STDC__) || defined(__cplusplus)
32084size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32085#else
32086size_t iconv();
32087#endif
32088
32089int
32090main ()
32091{
32092
32093 ;
32094 return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext
32098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32099 (eval $ac_compile) 2>conftest.er1
a848cd7e 32100 ac_status=$?
ac1cb8d3
VS
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
a848cd7e
SC
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
6ebeb4c7 32106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108 (eval $ac_try) 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; }; then
32118 wx_cv_func_iconv_const="no"
32119else
32120 echo "$as_me: failed program was:" >&5
32121sed 's/^/| /' conftest.$ac_ext >&5
32122
32123wx_cv_func_iconv_const="yes"
32124
32125fi
ac1cb8d3 32126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32127
32128fi
32129echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32130echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32131
32132 iconv_const=
32133 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32134 iconv_const="const"
32135 fi
32136
32137
32138cat >>confdefs.h <<_ACEOF
32139#define ICONV_CONST $iconv_const
32140_ACEOF
32141
32142 fi
32143 LIBICONV=
32144 if test "$am_cv_lib_iconv" = yes; then
32145 LIBICONV="-liconv"
32146 fi
32147
32148
32149LIBS="$LIBICONV $LIBS"
32150ac_ext=c
32151ac_cpp='$CPP $CPPFLAGS'
32152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154ac_compiler_gnu=$ac_cv_c_compiler_gnu
32155
32156
32157if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32158
32159for ac_func in sigaction
32160do
32161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32162echo "$as_me:$LINENO: checking for $ac_func" >&5
32163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32164if eval "test \"\${$as_ac_var+set}\" = set"; then
32165 echo $ECHO_N "(cached) $ECHO_C" >&6
32166else
32167 cat >conftest.$ac_ext <<_ACEOF
32168/* confdefs.h. */
32169_ACEOF
32170cat confdefs.h >>conftest.$ac_ext
32171cat >>conftest.$ac_ext <<_ACEOF
32172/* end confdefs.h. */
ac1cb8d3
VS
32173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32175#define $ac_func innocuous_$ac_func
32176
a848cd7e
SC
32177/* System header to define __stub macros and hopefully few prototypes,
32178 which can conflict with char $ac_func (); below.
32179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32180 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32181
a848cd7e
SC
32182#ifdef __STDC__
32183# include <limits.h>
32184#else
32185# include <assert.h>
32186#endif
ac1cb8d3
VS
32187
32188#undef $ac_func
32189
a848cd7e
SC
32190/* Override any gcc2 internal prototype to avoid an error. */
32191#ifdef __cplusplus
32192extern "C"
32193{
32194#endif
32195/* We use char because int might match the return type of a gcc2
32196 builtin and then its argument prototype would still apply. */
32197char $ac_func ();
32198/* The GNU C library defines this for functions which it implements
32199 to always fail with ENOSYS. Some functions are actually named
32200 something starting with __ and the normal name is an alias. */
32201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32202choke me
32203#else
32204char (*f) () = $ac_func;
32205#endif
32206#ifdef __cplusplus
32207}
32208#endif
32209
32210int
32211main ()
32212{
32213return f != $ac_func;
32214 ;
32215 return 0;
32216}
32217_ACEOF
32218rm -f conftest.$ac_objext conftest$ac_exeext
32219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32220 (eval $ac_link) 2>conftest.er1
a848cd7e 32221 ac_status=$?
ac1cb8d3
VS
32222 grep -v '^ *+' conftest.er1 >conftest.err
32223 rm -f conftest.er1
32224 cat conftest.err >&5
a848cd7e
SC
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); } &&
6ebeb4c7 32227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229 (eval $ac_try) 2>&5
32230 ac_status=$?
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; } &&
32233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235 (eval $ac_try) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; }; then
32239 eval "$as_ac_var=yes"
32240else
32241 echo "$as_me: failed program was:" >&5
32242sed 's/^/| /' conftest.$ac_ext >&5
32243
32244eval "$as_ac_var=no"
32245fi
ac1cb8d3
VS
32246rm -f conftest.err conftest.$ac_objext \
32247 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32248fi
32249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32251if test `eval echo '${'$as_ac_var'}'` = yes; then
32252 cat >>confdefs.h <<_ACEOF
32253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32254_ACEOF
32255
32256fi
32257done
32258
32259
32260 if test "$ac_cv_func_sigaction" = "no"; then
32261 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32262echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32263 wxUSE_ON_FATAL_EXCEPTION=no
32264 fi
32265
32266 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32267
32268
32269 ac_ext=cc
32270ac_cpp='$CXXCPP $CPPFLAGS'
32271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32274
32275
32276 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32277echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32278if test "${wx_cv_type_sa_handler+set}" = set; then
32279 echo $ECHO_N "(cached) $ECHO_C" >&6
32280else
32281
32282 cat >conftest.$ac_ext <<_ACEOF
32283/* confdefs.h. */
32284_ACEOF
32285cat confdefs.h >>conftest.$ac_ext
32286cat >>conftest.$ac_ext <<_ACEOF
32287/* end confdefs.h. */
32288#include <signal.h>
32289int
32290main ()
32291{
32292
32293 extern void testSigHandler(int);
32294
32295 struct sigaction sa;
32296 sa.sa_handler = testSigHandler;
32297
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302rm -f conftest.$ac_objext
32303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32304 (eval $ac_compile) 2>conftest.er1
a848cd7e 32305 ac_status=$?
ac1cb8d3
VS
32306 grep -v '^ *+' conftest.er1 >conftest.err
32307 rm -f conftest.er1
32308 cat conftest.err >&5
a848cd7e
SC
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } &&
6ebeb4c7 32311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323
32324 wx_cv_type_sa_handler=int
32325
32326else
32327 echo "$as_me: failed program was:" >&5
32328sed 's/^/| /' conftest.$ac_ext >&5
32329
32330
32331 wx_cv_type_sa_handler=void
32332
32333fi
ac1cb8d3 32334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32335
32336fi
32337echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32338echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32339
32340 ac_ext=c
32341ac_cpp='$CPP $CPPFLAGS'
32342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32344ac_compiler_gnu=$ac_cv_c_compiler_gnu
32345
32346
32347 cat >>confdefs.h <<_ACEOF
32348#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32349_ACEOF
32350
32351 fi
32352fi
32353
eaff0f0d
VZ
32354if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32355
32356
32357 ac_ext=cc
32358ac_cpp='$CXXCPP $CPPFLAGS'
32359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32362
32363
32364 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32365echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32366if test "${wx_cv_func_backtrace+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32368else
32369
32370 cat >conftest.$ac_ext <<_ACEOF
32371/* confdefs.h. */
32372_ACEOF
32373cat confdefs.h >>conftest.$ac_ext
32374cat >>conftest.$ac_ext <<_ACEOF
32375/* end confdefs.h. */
32376#include <execinfo.h>
32377int
32378main ()
32379{
32380
32381 void *trace[1];
32382 char **messages;
32383
32384 backtrace(trace, 1);
32385 messages = backtrace_symbols(trace, 1);
32386
32387 ;
32388 return 0;
32389}
32390_ACEOF
32391rm -f conftest.$ac_objext
32392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32393 (eval $ac_compile) 2>conftest.er1
32394 ac_status=$?
32395 grep -v '^ *+' conftest.er1 >conftest.err
32396 rm -f conftest.er1
32397 cat conftest.err >&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); } &&
6ebeb4c7 32400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32402 (eval $ac_try) 2>&5
32403 ac_status=$?
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); }; } &&
32406 { ac_try='test -s conftest.$ac_objext'
32407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32408 (eval $ac_try) 2>&5
32409 ac_status=$?
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
32412 wx_cv_func_backtrace=yes
32413else
32414 echo "$as_me: failed program was:" >&5
32415sed 's/^/| /' conftest.$ac_ext >&5
32416
32417wx_cv_func_backtrace=no
32418
32419fi
32420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32421
32422
32423fi
32424echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32425echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32426
32427
32428 if test "$wx_cv_func_backtrace" = "no"; then
32429 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32430echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32431 wxUSE_STACKWALKER=no
32432 else
32433 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32434echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32435if test "${wx_cv_func_cxa_demangle+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32437else
32438
32439 cat >conftest.$ac_ext <<_ACEOF
32440/* confdefs.h. */
32441_ACEOF
32442cat confdefs.h >>conftest.$ac_ext
32443cat >>conftest.$ac_ext <<_ACEOF
32444/* end confdefs.h. */
32445#include <cxxabi.h>
32446int
32447main ()
32448{
32449
32450 int rc;
32451 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32452
32453 ;
32454 return 0;
32455}
32456_ACEOF
dfe0c803
JS
32457rm -f conftest.$ac_objext conftest$ac_exeext
32458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32459 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
6ebeb4c7 32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
dfe0c803 32472 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 wx_cv_func_cxa_demangle=yes
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483wx_cv_func_cxa_demangle=no
32484
32485fi
dfe0c803
JS
32486rm -f conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32488
32489
32490fi
32491echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32492echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32493
32494 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32495 cat >>confdefs.h <<\_ACEOF
32496#define HAVE_CXA_DEMANGLE 1
32497_ACEOF
32498
32499 fi
32500 fi
32501
32502 ac_ext=c
32503ac_cpp='$CPP $CPPFLAGS'
32504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32506ac_compiler_gnu=$ac_cv_c_compiler_gnu
32507
32508fi
32509
898beab1
DE
32510if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32511 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32512echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32513 wxUSE_STACKWALKER=no
32514fi
32515
32516
a848cd7e
SC
32517
32518
32519for ac_func in mkstemp mktemp
32520do
32521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32522echo "$as_me:$LINENO: checking for $ac_func" >&5
32523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32524if eval "test \"\${$as_ac_var+set}\" = set"; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32526else
32527 cat >conftest.$ac_ext <<_ACEOF
32528/* confdefs.h. */
32529_ACEOF
32530cat confdefs.h >>conftest.$ac_ext
32531cat >>conftest.$ac_ext <<_ACEOF
32532/* end confdefs.h. */
ac1cb8d3
VS
32533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32535#define $ac_func innocuous_$ac_func
32536
a848cd7e
SC
32537/* System header to define __stub macros and hopefully few prototypes,
32538 which can conflict with char $ac_func (); below.
32539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32541
a848cd7e
SC
32542#ifdef __STDC__
32543# include <limits.h>
32544#else
32545# include <assert.h>
32546#endif
ac1cb8d3
VS
32547
32548#undef $ac_func
32549
a848cd7e
SC
32550/* Override any gcc2 internal prototype to avoid an error. */
32551#ifdef __cplusplus
32552extern "C"
32553{
32554#endif
32555/* We use char because int might match the return type of a gcc2
32556 builtin and then its argument prototype would still apply. */
32557char $ac_func ();
32558/* The GNU C library defines this for functions which it implements
32559 to always fail with ENOSYS. Some functions are actually named
32560 something starting with __ and the normal name is an alias. */
32561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32562choke me
32563#else
32564char (*f) () = $ac_func;
32565#endif
32566#ifdef __cplusplus
32567}
32568#endif
32569
32570int
32571main ()
32572{
32573return f != $ac_func;
32574 ;
32575 return 0;
32576}
32577_ACEOF
32578rm -f conftest.$ac_objext conftest$ac_exeext
32579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32580 (eval $ac_link) 2>conftest.er1
a848cd7e 32581 ac_status=$?
ac1cb8d3
VS
32582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
a848cd7e
SC
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
6ebeb4c7 32587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589 (eval $ac_try) 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; }; then
32599 eval "$as_ac_var=yes"
32600else
32601 echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
32604eval "$as_ac_var=no"
32605fi
ac1cb8d3
VS
32606rm -f conftest.err conftest.$ac_objext \
32607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32608fi
32609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32611if test `eval echo '${'$as_ac_var'}'` = yes; then
32612 cat >>confdefs.h <<_ACEOF
32613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32614_ACEOF
32615 break
32616fi
32617done
32618
32619
32620echo "$as_me:$LINENO: checking for statfs" >&5
32621echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32622if test "${wx_cv_func_statfs+set}" = set; then
32623 echo $ECHO_N "(cached) $ECHO_C" >&6
32624else
32625 cat >conftest.$ac_ext <<_ACEOF
32626/* confdefs.h. */
32627_ACEOF
32628cat confdefs.h >>conftest.$ac_ext
32629cat >>conftest.$ac_ext <<_ACEOF
32630/* end confdefs.h. */
32631
32632 #if defined(__BSD__)
32633 #include <sys/param.h>
32634 #include <sys/mount.h>
32635 #else
32636 #include <sys/vfs.h>
32637 #endif
32638
32639int
32640main ()
32641{
32642
32643 long l;
32644 struct statfs fs;
32645 statfs("/", &fs);
32646 l = fs.f_bsize;
32647 l += fs.f_blocks;
32648 l += fs.f_bavail;
32649
32650 ;
32651 return 0;
32652}
32653_ACEOF
32654rm -f conftest.$ac_objext
32655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32656 (eval $ac_compile) 2>conftest.er1
a848cd7e 32657 ac_status=$?
ac1cb8d3
VS
32658 grep -v '^ *+' conftest.er1 >conftest.err
32659 rm -f conftest.er1
32660 cat conftest.err >&5
a848cd7e
SC
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); } &&
6ebeb4c7 32663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665 (eval $ac_try) 2>&5
32666 ac_status=$?
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); }; } &&
32669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; }; then
32675
32676 wx_cv_func_statfs=yes
32677
32678else
32679 echo "$as_me: failed program was:" >&5
32680sed 's/^/| /' conftest.$ac_ext >&5
32681
32682
32683 wx_cv_func_statfs=no
32684
32685
32686fi
ac1cb8d3 32687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32688
32689fi
32690echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32691echo "${ECHO_T}$wx_cv_func_statfs" >&6
32692
32693if test "$wx_cv_func_statfs" = "yes"; then
32694 wx_cv_type_statvfs_t="struct statfs"
32695 cat >>confdefs.h <<\_ACEOF
32696#define HAVE_STATFS 1
32697_ACEOF
32698
32699else
32700 echo "$as_me:$LINENO: checking for statvfs" >&5
32701echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32702if test "${wx_cv_func_statvfs+set}" = set; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32704else
32705 cat >conftest.$ac_ext <<_ACEOF
32706/* confdefs.h. */
32707_ACEOF
32708cat confdefs.h >>conftest.$ac_ext
32709cat >>conftest.$ac_ext <<_ACEOF
32710/* end confdefs.h. */
32711
32712 #include <stddef.h>
32713 #include <sys/statvfs.h>
32714
32715int
32716main ()
32717{
32718
32719 statvfs("/", NULL);
32720
32721 ;
32722 return 0;
32723}
32724_ACEOF
32725rm -f conftest.$ac_objext
32726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32727 (eval $ac_compile) 2>conftest.er1
a848cd7e 32728 ac_status=$?
ac1cb8d3
VS
32729 grep -v '^ *+' conftest.er1 >conftest.err
32730 rm -f conftest.er1
32731 cat conftest.err >&5
a848cd7e
SC
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } &&
6ebeb4c7 32734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32736 (eval $ac_try) 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; } &&
32740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32742 (eval $ac_try) 2>&5
32743 ac_status=$?
32744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745 (exit $ac_status); }; }; then
32746 wx_cv_func_statvfs=yes
32747else
32748 echo "$as_me: failed program was:" >&5
32749sed 's/^/| /' conftest.$ac_ext >&5
32750
32751wx_cv_func_statvfs=no
32752
32753fi
ac1cb8d3 32754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32755
32756fi
32757echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32758echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32759
32760 if test "$wx_cv_func_statvfs" = "yes"; then
32761
32762
32763 ac_ext=cc
32764ac_cpp='$CXXCPP $CPPFLAGS'
32765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32768
32769
32770 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32771echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32772if test "${wx_cv_type_statvfs_t+set}" = set; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32774else
32775 cat >conftest.$ac_ext <<_ACEOF
32776/* confdefs.h. */
32777_ACEOF
32778cat confdefs.h >>conftest.$ac_ext
32779cat >>conftest.$ac_ext <<_ACEOF
32780/* end confdefs.h. */
32781
32782 #include <sys/statvfs.h>
32783
32784int
32785main ()
32786{
32787
32788 long l;
32789 statvfs_t fs;
32790 statvfs("/", &fs);
32791 l = fs.f_bsize;
32792 l += fs.f_blocks;
32793 l += fs.f_bavail;
32794
32795 ;
32796 return 0;
32797}
32798_ACEOF
32799rm -f conftest.$ac_objext
32800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32801 (eval $ac_compile) 2>conftest.er1
a848cd7e 32802 ac_status=$?
ac1cb8d3
VS
32803 grep -v '^ *+' conftest.er1 >conftest.err
32804 rm -f conftest.er1
32805 cat conftest.err >&5
a848cd7e
SC
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } &&
6ebeb4c7 32808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32810 (eval $ac_try) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; } &&
32814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32817 ac_status=$?
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32820 wx_cv_type_statvfs_t=statvfs_t
32821else
32822 echo "$as_me: failed program was:" >&5
32823sed 's/^/| /' conftest.$ac_ext >&5
32824
32825
32826 cat >conftest.$ac_ext <<_ACEOF
32827/* confdefs.h. */
32828_ACEOF
32829cat confdefs.h >>conftest.$ac_ext
32830cat >>conftest.$ac_ext <<_ACEOF
32831/* end confdefs.h. */
32832
32833 #include <sys/statvfs.h>
32834
32835int
32836main ()
32837{
32838
32839 long l;
32840 struct statvfs fs;
32841 statvfs("/", &fs);
32842 l = fs.f_bsize;
32843 l += fs.f_blocks;
32844 l += fs.f_bavail;
32845
32846 ;
32847 return 0;
32848}
32849_ACEOF
32850rm -f conftest.$ac_objext
32851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32852 (eval $ac_compile) 2>conftest.er1
a848cd7e 32853 ac_status=$?
ac1cb8d3
VS
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
a848cd7e
SC
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
6ebeb4c7 32859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861 (eval $ac_try) 2>&5
32862 ac_status=$?
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; } &&
32865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867 (eval $ac_try) 2>&5
32868 ac_status=$?
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); }; }; then
32871 wx_cv_type_statvfs_t="struct statvfs"
32872else
32873 echo "$as_me: failed program was:" >&5
32874sed 's/^/| /' conftest.$ac_ext >&5
32875
32876wx_cv_type_statvfs_t="unknown"
32877
32878fi
ac1cb8d3 32879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32880
32881
32882fi
ac1cb8d3 32883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32884
32885fi
32886echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32887echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32888
32889 ac_ext=c
32890ac_cpp='$CPP $CPPFLAGS'
32891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893ac_compiler_gnu=$ac_cv_c_compiler_gnu
32894
32895
32896 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32897 cat >>confdefs.h <<\_ACEOF
32898#define HAVE_STATVFS 1
32899_ACEOF
32900
32901 fi
32902 else
32903 wx_cv_type_statvfs_t="unknown"
32904 fi
32905fi
32906
32907if test "$wx_cv_type_statvfs_t" != "unknown"; then
32908 cat >>confdefs.h <<_ACEOF
32909#define WX_STATFS_T $wx_cv_type_statvfs_t
32910_ACEOF
32911
32912else
32913 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32914echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32915fi
32916
32917if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32918
32919
32920for ac_func in fcntl flock
32921do
32922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32923echo "$as_me:$LINENO: checking for $ac_func" >&5
32924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32925if eval "test \"\${$as_ac_var+set}\" = set"; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927else
32928 cat >conftest.$ac_ext <<_ACEOF
32929/* confdefs.h. */
32930_ACEOF
32931cat confdefs.h >>conftest.$ac_ext
32932cat >>conftest.$ac_ext <<_ACEOF
32933/* end confdefs.h. */
ac1cb8d3
VS
32934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32936#define $ac_func innocuous_$ac_func
32937
a848cd7e
SC
32938/* System header to define __stub macros and hopefully few prototypes,
32939 which can conflict with char $ac_func (); below.
32940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32941 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32942
a848cd7e
SC
32943#ifdef __STDC__
32944# include <limits.h>
32945#else
32946# include <assert.h>
32947#endif
ac1cb8d3
VS
32948
32949#undef $ac_func
32950
a848cd7e
SC
32951/* Override any gcc2 internal prototype to avoid an error. */
32952#ifdef __cplusplus
32953extern "C"
32954{
32955#endif
32956/* We use char because int might match the return type of a gcc2
32957 builtin and then its argument prototype would still apply. */
32958char $ac_func ();
32959/* The GNU C library defines this for functions which it implements
32960 to always fail with ENOSYS. Some functions are actually named
32961 something starting with __ and the normal name is an alias. */
32962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32963choke me
32964#else
32965char (*f) () = $ac_func;
32966#endif
32967#ifdef __cplusplus
32968}
32969#endif
32970
32971int
32972main ()
32973{
32974return f != $ac_func;
32975 ;
32976 return 0;
32977}
32978_ACEOF
32979rm -f conftest.$ac_objext conftest$ac_exeext
32980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32981 (eval $ac_link) 2>conftest.er1
a848cd7e 32982 ac_status=$?
ac1cb8d3
VS
32983 grep -v '^ *+' conftest.er1 >conftest.err
32984 rm -f conftest.er1
32985 cat conftest.err >&5
a848cd7e
SC
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); } &&
6ebeb4c7 32988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990 (eval $ac_try) 2>&5
32991 ac_status=$?
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); }; } &&
32994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32996 (eval $ac_try) 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; }; then
33000 eval "$as_ac_var=yes"
33001else
33002 echo "$as_me: failed program was:" >&5
33003sed 's/^/| /' conftest.$ac_ext >&5
33004
33005eval "$as_ac_var=no"
33006fi
ac1cb8d3
VS
33007rm -f conftest.err conftest.$ac_objext \
33008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33009fi
33010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33012if test `eval echo '${'$as_ac_var'}'` = yes; then
33013 cat >>confdefs.h <<_ACEOF
33014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33015_ACEOF
33016 break
33017fi
33018done
33019
33020
33021 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33022 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33023echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33024 wxUSE_SNGLINST_CHECKER=no
33025 fi
33026fi
33027
33028
33029for ac_func in timegm
33030do
33031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33032echo "$as_me:$LINENO: checking for $ac_func" >&5
33033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33034if eval "test \"\${$as_ac_var+set}\" = set"; then
33035 echo $ECHO_N "(cached) $ECHO_C" >&6
33036else
33037 cat >conftest.$ac_ext <<_ACEOF
33038/* confdefs.h. */
33039_ACEOF
33040cat confdefs.h >>conftest.$ac_ext
33041cat >>conftest.$ac_ext <<_ACEOF
33042/* end confdefs.h. */
ac1cb8d3
VS
33043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33045#define $ac_func innocuous_$ac_func
33046
a848cd7e
SC
33047/* System header to define __stub macros and hopefully few prototypes,
33048 which can conflict with char $ac_func (); below.
33049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33050 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33051
a848cd7e
SC
33052#ifdef __STDC__
33053# include <limits.h>
33054#else
33055# include <assert.h>
33056#endif
ac1cb8d3
VS
33057
33058#undef $ac_func
33059
a848cd7e
SC
33060/* Override any gcc2 internal prototype to avoid an error. */
33061#ifdef __cplusplus
33062extern "C"
33063{
33064#endif
33065/* We use char because int might match the return type of a gcc2
33066 builtin and then its argument prototype would still apply. */
33067char $ac_func ();
33068/* The GNU C library defines this for functions which it implements
33069 to always fail with ENOSYS. Some functions are actually named
33070 something starting with __ and the normal name is an alias. */
33071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33072choke me
33073#else
33074char (*f) () = $ac_func;
33075#endif
33076#ifdef __cplusplus
33077}
33078#endif
33079
33080int
33081main ()
33082{
33083return f != $ac_func;
33084 ;
33085 return 0;
33086}
33087_ACEOF
33088rm -f conftest.$ac_objext conftest$ac_exeext
33089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33090 (eval $ac_link) 2>conftest.er1
a848cd7e 33091 ac_status=$?
ac1cb8d3
VS
33092 grep -v '^ *+' conftest.er1 >conftest.err
33093 rm -f conftest.er1
33094 cat conftest.err >&5
a848cd7e
SC
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); } &&
6ebeb4c7 33097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099 (eval $ac_try) 2>&5
33100 ac_status=$?
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; } &&
33103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; }; then
33109 eval "$as_ac_var=yes"
33110else
33111 echo "$as_me: failed program was:" >&5
33112sed 's/^/| /' conftest.$ac_ext >&5
33113
33114eval "$as_ac_var=no"
33115fi
ac1cb8d3
VS
33116rm -f conftest.err conftest.$ac_objext \
33117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33118fi
33119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33121if test `eval echo '${'$as_ac_var'}'` = yes; then
33122 cat >>confdefs.h <<_ACEOF
33123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33124_ACEOF
33125
33126fi
33127done
33128
33129
33130
33131
33132for ac_func in putenv setenv
33133do
33134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33135echo "$as_me:$LINENO: checking for $ac_func" >&5
33136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33137if eval "test \"\${$as_ac_var+set}\" = set"; then
33138 echo $ECHO_N "(cached) $ECHO_C" >&6
33139else
33140 cat >conftest.$ac_ext <<_ACEOF
33141/* confdefs.h. */
33142_ACEOF
33143cat confdefs.h >>conftest.$ac_ext
33144cat >>conftest.$ac_ext <<_ACEOF
33145/* end confdefs.h. */
ac1cb8d3
VS
33146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33148#define $ac_func innocuous_$ac_func
33149
a848cd7e
SC
33150/* System header to define __stub macros and hopefully few prototypes,
33151 which can conflict with char $ac_func (); below.
33152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33154
a848cd7e
SC
33155#ifdef __STDC__
33156# include <limits.h>
33157#else
33158# include <assert.h>
33159#endif
ac1cb8d3
VS
33160
33161#undef $ac_func
33162
a848cd7e
SC
33163/* Override any gcc2 internal prototype to avoid an error. */
33164#ifdef __cplusplus
33165extern "C"
33166{
33167#endif
33168/* We use char because int might match the return type of a gcc2
33169 builtin and then its argument prototype would still apply. */
33170char $ac_func ();
33171/* The GNU C library defines this for functions which it implements
33172 to always fail with ENOSYS. Some functions are actually named
33173 something starting with __ and the normal name is an alias. */
33174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33175choke me
33176#else
33177char (*f) () = $ac_func;
33178#endif
33179#ifdef __cplusplus
33180}
33181#endif
33182
33183int
33184main ()
33185{
33186return f != $ac_func;
33187 ;
33188 return 0;
33189}
33190_ACEOF
33191rm -f conftest.$ac_objext conftest$ac_exeext
33192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33193 (eval $ac_link) 2>conftest.er1
a848cd7e 33194 ac_status=$?
ac1cb8d3
VS
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
a848cd7e
SC
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
6ebeb4c7 33200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; } &&
33206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; }; then
33212 eval "$as_ac_var=yes"
33213else
33214 echo "$as_me: failed program was:" >&5
33215sed 's/^/| /' conftest.$ac_ext >&5
33216
33217eval "$as_ac_var=no"
33218fi
ac1cb8d3
VS
33219rm -f conftest.err conftest.$ac_objext \
33220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33221fi
33222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33224if test `eval echo '${'$as_ac_var'}'` = yes; then
33225 cat >>confdefs.h <<_ACEOF
33226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33227_ACEOF
33228 break
33229fi
33230done
33231
33232
33233HAVE_SOME_SLEEP_FUNC=0
33234if test "$USE_BEOS" = 1; then
33235 cat >>confdefs.h <<\_ACEOF
33236#define HAVE_SLEEP 1
33237_ACEOF
33238
33239 HAVE_SOME_SLEEP_FUNC=1
33240fi
33241
33242if test "$USE_DARWIN" = 1; then
33243 cat >>confdefs.h <<\_ACEOF
33244#define HAVE_USLEEP 1
33245_ACEOF
33246
33247 HAVE_SOME_SLEEP_FUNC=1
33248fi
33249
33250if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33251 POSIX4_LINK=
33252
33253for ac_func in nanosleep
33254do
33255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33256echo "$as_me:$LINENO: checking for $ac_func" >&5
33257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33258if eval "test \"\${$as_ac_var+set}\" = set"; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33260else
33261 cat >conftest.$ac_ext <<_ACEOF
33262/* confdefs.h. */
33263_ACEOF
33264cat confdefs.h >>conftest.$ac_ext
33265cat >>conftest.$ac_ext <<_ACEOF
33266/* end confdefs.h. */
ac1cb8d3
VS
33267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33269#define $ac_func innocuous_$ac_func
33270
a848cd7e
SC
33271/* System header to define __stub macros and hopefully few prototypes,
33272 which can conflict with char $ac_func (); below.
33273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33274 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33275
a848cd7e
SC
33276#ifdef __STDC__
33277# include <limits.h>
33278#else
33279# include <assert.h>
33280#endif
ac1cb8d3
VS
33281
33282#undef $ac_func
33283
a848cd7e
SC
33284/* Override any gcc2 internal prototype to avoid an error. */
33285#ifdef __cplusplus
33286extern "C"
33287{
33288#endif
33289/* We use char because int might match the return type of a gcc2
33290 builtin and then its argument prototype would still apply. */
33291char $ac_func ();
33292/* The GNU C library defines this for functions which it implements
33293 to always fail with ENOSYS. Some functions are actually named
33294 something starting with __ and the normal name is an alias. */
33295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33296choke me
33297#else
33298char (*f) () = $ac_func;
33299#endif
33300#ifdef __cplusplus
33301}
33302#endif
33303
33304int
33305main ()
33306{
33307return f != $ac_func;
33308 ;
33309 return 0;
33310}
33311_ACEOF
33312rm -f conftest.$ac_objext conftest$ac_exeext
33313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33314 (eval $ac_link) 2>conftest.er1
a848cd7e 33315 ac_status=$?
ac1cb8d3
VS
33316 grep -v '^ *+' conftest.er1 >conftest.err
33317 rm -f conftest.er1
33318 cat conftest.err >&5
a848cd7e
SC
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } &&
6ebeb4c7 33321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; } &&
33327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 eval "$as_ac_var=yes"
33334else
33335 echo "$as_me: failed program was:" >&5
33336sed 's/^/| /' conftest.$ac_ext >&5
33337
33338eval "$as_ac_var=no"
33339fi
ac1cb8d3
VS
33340rm -f conftest.err conftest.$ac_objext \
33341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33342fi
33343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33345if test `eval echo '${'$as_ac_var'}'` = yes; then
33346 cat >>confdefs.h <<_ACEOF
33347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33348_ACEOF
33349 cat >>confdefs.h <<\_ACEOF
33350#define HAVE_NANOSLEEP 1
33351_ACEOF
33352
33353else
33354
33355 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33356echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33357if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33359else
33360 ac_check_lib_save_LIBS=$LIBS
33361LIBS="-lposix4 $LIBS"
33362cat >conftest.$ac_ext <<_ACEOF
33363/* confdefs.h. */
33364_ACEOF
33365cat confdefs.h >>conftest.$ac_ext
33366cat >>conftest.$ac_ext <<_ACEOF
33367/* end confdefs.h. */
33368
33369/* Override any gcc2 internal prototype to avoid an error. */
33370#ifdef __cplusplus
33371extern "C"
33372#endif
33373/* We use char because int might match the return type of a gcc2
33374 builtin and then its argument prototype would still apply. */
33375char nanosleep ();
33376int
33377main ()
33378{
33379nanosleep ();
33380 ;
33381 return 0;
33382}
33383_ACEOF
33384rm -f conftest.$ac_objext conftest$ac_exeext
33385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33386 (eval $ac_link) 2>conftest.er1
a848cd7e 33387 ac_status=$?
ac1cb8d3
VS
33388 grep -v '^ *+' conftest.er1 >conftest.err
33389 rm -f conftest.er1
33390 cat conftest.err >&5
a848cd7e
SC
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); } &&
6ebeb4c7 33393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33396 ac_status=$?
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; } &&
33399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33401 (eval $ac_try) 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; }; then
33405 ac_cv_lib_posix4_nanosleep=yes
33406else
33407 echo "$as_me: failed program was:" >&5
33408sed 's/^/| /' conftest.$ac_ext >&5
33409
33410ac_cv_lib_posix4_nanosleep=no
33411fi
ac1cb8d3
VS
33412rm -f conftest.err conftest.$ac_objext \
33413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33414LIBS=$ac_check_lib_save_LIBS
33415fi
33416echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33417echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33418if test $ac_cv_lib_posix4_nanosleep = yes; then
33419
33420 cat >>confdefs.h <<\_ACEOF
33421#define HAVE_NANOSLEEP 1
33422_ACEOF
33423
33424 POSIX4_LINK=" -lposix4"
33425
33426else
33427
33428
33429for ac_func in usleep
33430do
33431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33432echo "$as_me:$LINENO: checking for $ac_func" >&5
33433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33434if eval "test \"\${$as_ac_var+set}\" = set"; then
33435 echo $ECHO_N "(cached) $ECHO_C" >&6
33436else
33437 cat >conftest.$ac_ext <<_ACEOF
33438/* confdefs.h. */
33439_ACEOF
33440cat confdefs.h >>conftest.$ac_ext
33441cat >>conftest.$ac_ext <<_ACEOF
33442/* end confdefs.h. */
ac1cb8d3
VS
33443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33445#define $ac_func innocuous_$ac_func
33446
a848cd7e
SC
33447/* System header to define __stub macros and hopefully few prototypes,
33448 which can conflict with char $ac_func (); below.
33449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33451
a848cd7e
SC
33452#ifdef __STDC__
33453# include <limits.h>
33454#else
33455# include <assert.h>
33456#endif
ac1cb8d3
VS
33457
33458#undef $ac_func
33459
a848cd7e
SC
33460/* Override any gcc2 internal prototype to avoid an error. */
33461#ifdef __cplusplus
33462extern "C"
33463{
33464#endif
33465/* We use char because int might match the return type of a gcc2
33466 builtin and then its argument prototype would still apply. */
33467char $ac_func ();
33468/* The GNU C library defines this for functions which it implements
33469 to always fail with ENOSYS. Some functions are actually named
33470 something starting with __ and the normal name is an alias. */
33471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33472choke me
33473#else
33474char (*f) () = $ac_func;
33475#endif
33476#ifdef __cplusplus
33477}
33478#endif
33479
33480int
33481main ()
33482{
33483return f != $ac_func;
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext conftest$ac_exeext
33489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33490 (eval $ac_link) 2>conftest.er1
a848cd7e 33491 ac_status=$?
ac1cb8d3
VS
33492 grep -v '^ *+' conftest.er1 >conftest.err
33493 rm -f conftest.er1
33494 cat conftest.err >&5
a848cd7e
SC
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } &&
6ebeb4c7 33497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33499 (eval $ac_try) 2>&5
33500 ac_status=$?
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; } &&
33503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33505 (eval $ac_try) 2>&5
33506 ac_status=$?
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); }; }; then
33509 eval "$as_ac_var=yes"
33510else
33511 echo "$as_me: failed program was:" >&5
33512sed 's/^/| /' conftest.$ac_ext >&5
33513
33514eval "$as_ac_var=no"
33515fi
ac1cb8d3
VS
33516rm -f conftest.err conftest.$ac_objext \
33517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33518fi
33519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33521if test `eval echo '${'$as_ac_var'}'` = yes; then
33522 cat >>confdefs.h <<_ACEOF
33523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33524_ACEOF
33525 cat >>confdefs.h <<\_ACEOF
33526#define HAVE_USLEEP 1
33527_ACEOF
33528
33529else
33530 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33531echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33532
33533fi
33534done
33535
33536
33537
33538fi
33539
33540
33541
33542fi
33543done
33544
33545fi
33546
33547
33548
33549for ac_func in uname gethostname
33550do
33551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33552echo "$as_me:$LINENO: checking for $ac_func" >&5
33553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33554if eval "test \"\${$as_ac_var+set}\" = set"; then
33555 echo $ECHO_N "(cached) $ECHO_C" >&6
33556else
33557 cat >conftest.$ac_ext <<_ACEOF
33558/* confdefs.h. */
33559_ACEOF
33560cat confdefs.h >>conftest.$ac_ext
33561cat >>conftest.$ac_ext <<_ACEOF
33562/* end confdefs.h. */
ac1cb8d3
VS
33563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33565#define $ac_func innocuous_$ac_func
33566
a848cd7e
SC
33567/* System header to define __stub macros and hopefully few prototypes,
33568 which can conflict with char $ac_func (); below.
33569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33571
a848cd7e
SC
33572#ifdef __STDC__
33573# include <limits.h>
33574#else
33575# include <assert.h>
33576#endif
ac1cb8d3
VS
33577
33578#undef $ac_func
33579
a848cd7e
SC
33580/* Override any gcc2 internal prototype to avoid an error. */
33581#ifdef __cplusplus
33582extern "C"
33583{
33584#endif
33585/* We use char because int might match the return type of a gcc2
33586 builtin and then its argument prototype would still apply. */
33587char $ac_func ();
33588/* The GNU C library defines this for functions which it implements
33589 to always fail with ENOSYS. Some functions are actually named
33590 something starting with __ and the normal name is an alias. */
33591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33592choke me
33593#else
33594char (*f) () = $ac_func;
33595#endif
33596#ifdef __cplusplus
33597}
33598#endif
33599
33600int
33601main ()
33602{
33603return f != $ac_func;
33604 ;
33605 return 0;
33606}
33607_ACEOF
33608rm -f conftest.$ac_objext conftest$ac_exeext
33609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33610 (eval $ac_link) 2>conftest.er1
a848cd7e 33611 ac_status=$?
ac1cb8d3
VS
33612 grep -v '^ *+' conftest.er1 >conftest.err
33613 rm -f conftest.er1
33614 cat conftest.err >&5
a848cd7e
SC
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); } &&
6ebeb4c7 33617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625 (eval $ac_try) 2>&5
33626 ac_status=$?
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); }; }; then
33629 eval "$as_ac_var=yes"
33630else
33631 echo "$as_me: failed program was:" >&5
33632sed 's/^/| /' conftest.$ac_ext >&5
33633
33634eval "$as_ac_var=no"
33635fi
ac1cb8d3
VS
33636rm -f conftest.err conftest.$ac_objext \
33637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33638fi
33639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33641if test `eval echo '${'$as_ac_var'}'` = yes; then
33642 cat >>confdefs.h <<_ACEOF
33643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33644_ACEOF
33645 break
33646fi
33647done
33648
33649
33650
33651
33652ac_ext=cc
33653ac_cpp='$CXXCPP $CPPFLAGS'
33654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33657
33658
33659
33660for ac_func in strtok_r
33661do
33662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33663echo "$as_me:$LINENO: checking for $ac_func" >&5
33664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33665if eval "test \"\${$as_ac_var+set}\" = set"; then
33666 echo $ECHO_N "(cached) $ECHO_C" >&6
33667else
33668 cat >conftest.$ac_ext <<_ACEOF
33669/* confdefs.h. */
33670_ACEOF
33671cat confdefs.h >>conftest.$ac_ext
33672cat >>conftest.$ac_ext <<_ACEOF
33673/* end confdefs.h. */
ac1cb8d3
VS
33674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33676#define $ac_func innocuous_$ac_func
33677
a848cd7e
SC
33678/* System header to define __stub macros and hopefully few prototypes,
33679 which can conflict with char $ac_func (); below.
33680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33682
a848cd7e
SC
33683#ifdef __STDC__
33684# include <limits.h>
33685#else
33686# include <assert.h>
33687#endif
ac1cb8d3
VS
33688
33689#undef $ac_func
33690
a848cd7e
SC
33691/* Override any gcc2 internal prototype to avoid an error. */
33692#ifdef __cplusplus
33693extern "C"
33694{
33695#endif
33696/* We use char because int might match the return type of a gcc2
33697 builtin and then its argument prototype would still apply. */
33698char $ac_func ();
33699/* The GNU C library defines this for functions which it implements
33700 to always fail with ENOSYS. Some functions are actually named
33701 something starting with __ and the normal name is an alias. */
33702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33703choke me
33704#else
33705char (*f) () = $ac_func;
33706#endif
33707#ifdef __cplusplus
33708}
33709#endif
33710
33711int
33712main ()
33713{
33714return f != $ac_func;
33715 ;
33716 return 0;
33717}
33718_ACEOF
33719rm -f conftest.$ac_objext conftest$ac_exeext
33720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33721 (eval $ac_link) 2>conftest.er1
a848cd7e 33722 ac_status=$?
ac1cb8d3
VS
33723 grep -v '^ *+' conftest.er1 >conftest.err
33724 rm -f conftest.er1
33725 cat conftest.err >&5
a848cd7e
SC
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } &&
6ebeb4c7 33728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33731 ac_status=$?
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33737 ac_status=$?
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 eval "$as_ac_var=yes"
33741else
33742 echo "$as_me: failed program was:" >&5
33743sed 's/^/| /' conftest.$ac_ext >&5
33744
33745eval "$as_ac_var=no"
33746fi
ac1cb8d3
VS
33747rm -f conftest.err conftest.$ac_objext \
33748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33749fi
33750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33752if test `eval echo '${'$as_ac_var'}'` = yes; then
33753 cat >>confdefs.h <<_ACEOF
33754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33755_ACEOF
33756
33757fi
33758done
33759
33760
33761ac_ext=c
33762ac_cpp='$CPP $CPPFLAGS'
33763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33765ac_compiler_gnu=$ac_cv_c_compiler_gnu
33766
33767
33768INET_LINK=
33769
33770for ac_func in inet_addr
33771do
33772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33773echo "$as_me:$LINENO: checking for $ac_func" >&5
33774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33775if eval "test \"\${$as_ac_var+set}\" = set"; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33777else
33778 cat >conftest.$ac_ext <<_ACEOF
33779/* confdefs.h. */
33780_ACEOF
33781cat confdefs.h >>conftest.$ac_ext
33782cat >>conftest.$ac_ext <<_ACEOF
33783/* end confdefs.h. */
ac1cb8d3
VS
33784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33786#define $ac_func innocuous_$ac_func
33787
a848cd7e
SC
33788/* System header to define __stub macros and hopefully few prototypes,
33789 which can conflict with char $ac_func (); below.
33790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33792
a848cd7e
SC
33793#ifdef __STDC__
33794# include <limits.h>
33795#else
33796# include <assert.h>
33797#endif
ac1cb8d3
VS
33798
33799#undef $ac_func
33800
a848cd7e
SC
33801/* Override any gcc2 internal prototype to avoid an error. */
33802#ifdef __cplusplus
33803extern "C"
33804{
33805#endif
33806/* We use char because int might match the return type of a gcc2
33807 builtin and then its argument prototype would still apply. */
33808char $ac_func ();
33809/* The GNU C library defines this for functions which it implements
33810 to always fail with ENOSYS. Some functions are actually named
33811 something starting with __ and the normal name is an alias. */
33812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33813choke me
33814#else
33815char (*f) () = $ac_func;
33816#endif
33817#ifdef __cplusplus
33818}
33819#endif
33820
33821int
33822main ()
33823{
33824return f != $ac_func;
33825 ;
33826 return 0;
33827}
33828_ACEOF
33829rm -f conftest.$ac_objext conftest$ac_exeext
33830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33831 (eval $ac_link) 2>conftest.er1
a848cd7e 33832 ac_status=$?
ac1cb8d3
VS
33833 grep -v '^ *+' conftest.er1 >conftest.err
33834 rm -f conftest.er1
33835 cat conftest.err >&5
a848cd7e
SC
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); } &&
6ebeb4c7 33838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33840 (eval $ac_try) 2>&5
33841 ac_status=$?
33842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843 (exit $ac_status); }; } &&
33844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33846 (eval $ac_try) 2>&5
33847 ac_status=$?
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); }; }; then
33850 eval "$as_ac_var=yes"
33851else
33852 echo "$as_me: failed program was:" >&5
33853sed 's/^/| /' conftest.$ac_ext >&5
33854
33855eval "$as_ac_var=no"
33856fi
ac1cb8d3
VS
33857rm -f conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33859fi
33860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33862if test `eval echo '${'$as_ac_var'}'` = yes; then
33863 cat >>confdefs.h <<_ACEOF
33864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33865_ACEOF
33866 cat >>confdefs.h <<\_ACEOF
33867#define HAVE_INET_ADDR 1
33868_ACEOF
33869
33870else
33871
33872 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33873echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33874if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876else
33877 ac_check_lib_save_LIBS=$LIBS
33878LIBS="-lnsl $LIBS"
33879cat >conftest.$ac_ext <<_ACEOF
33880/* confdefs.h. */
33881_ACEOF
33882cat confdefs.h >>conftest.$ac_ext
33883cat >>conftest.$ac_ext <<_ACEOF
33884/* end confdefs.h. */
33885
33886/* Override any gcc2 internal prototype to avoid an error. */
33887#ifdef __cplusplus
33888extern "C"
33889#endif
33890/* We use char because int might match the return type of a gcc2
33891 builtin and then its argument prototype would still apply. */
33892char inet_addr ();
33893int
33894main ()
33895{
33896inet_addr ();
33897 ;
33898 return 0;
33899}
33900_ACEOF
33901rm -f conftest.$ac_objext conftest$ac_exeext
33902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33903 (eval $ac_link) 2>conftest.er1
a848cd7e 33904 ac_status=$?
ac1cb8d3
VS
33905 grep -v '^ *+' conftest.er1 >conftest.err
33906 rm -f conftest.er1
33907 cat conftest.err >&5
a848cd7e
SC
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } &&
6ebeb4c7 33910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33912 (eval $ac_try) 2>&5
33913 ac_status=$?
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; } &&
33916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33918 (eval $ac_try) 2>&5
33919 ac_status=$?
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; }; then
33922 ac_cv_lib_nsl_inet_addr=yes
33923else
33924 echo "$as_me: failed program was:" >&5
33925sed 's/^/| /' conftest.$ac_ext >&5
33926
33927ac_cv_lib_nsl_inet_addr=no
33928fi
ac1cb8d3
VS
33929rm -f conftest.err conftest.$ac_objext \
33930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33931LIBS=$ac_check_lib_save_LIBS
33932fi
33933echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33934echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33935if test $ac_cv_lib_nsl_inet_addr = yes; then
33936 INET_LINK="nsl"
33937else
33938
33939 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33940echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33941if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 ac_check_lib_save_LIBS=$LIBS
33945LIBS="-lresolv $LIBS"
33946cat >conftest.$ac_ext <<_ACEOF
33947/* confdefs.h. */
33948_ACEOF
33949cat confdefs.h >>conftest.$ac_ext
33950cat >>conftest.$ac_ext <<_ACEOF
33951/* end confdefs.h. */
33952
33953/* Override any gcc2 internal prototype to avoid an error. */
33954#ifdef __cplusplus
33955extern "C"
33956#endif
33957/* We use char because int might match the return type of a gcc2
33958 builtin and then its argument prototype would still apply. */
33959char inet_addr ();
33960int
33961main ()
33962{
33963inet_addr ();
33964 ;
33965 return 0;
33966}
33967_ACEOF
33968rm -f conftest.$ac_objext conftest$ac_exeext
33969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33970 (eval $ac_link) 2>conftest.er1
a848cd7e 33971 ac_status=$?
ac1cb8d3
VS
33972 grep -v '^ *+' conftest.er1 >conftest.err
33973 rm -f conftest.er1
33974 cat conftest.err >&5
a848cd7e
SC
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } &&
6ebeb4c7 33977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979 (eval $ac_try) 2>&5
33980 ac_status=$?
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); }; } &&
33983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33986 ac_status=$?
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 ac_cv_lib_resolv_inet_addr=yes
33990else
33991 echo "$as_me: failed program was:" >&5
33992sed 's/^/| /' conftest.$ac_ext >&5
33993
33994ac_cv_lib_resolv_inet_addr=no
33995fi
ac1cb8d3
VS
33996rm -f conftest.err conftest.$ac_objext \
33997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33998LIBS=$ac_check_lib_save_LIBS
33999fi
34000echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34001echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34002if test $ac_cv_lib_resolv_inet_addr = yes; then
34003 INET_LINK="resolv"
34004else
34005
34006 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34007echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34008if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34009 echo $ECHO_N "(cached) $ECHO_C" >&6
34010else
34011 ac_check_lib_save_LIBS=$LIBS
34012LIBS="-lsocket $LIBS"
34013cat >conftest.$ac_ext <<_ACEOF
34014/* confdefs.h. */
34015_ACEOF
34016cat confdefs.h >>conftest.$ac_ext
34017cat >>conftest.$ac_ext <<_ACEOF
34018/* end confdefs.h. */
34019
34020/* Override any gcc2 internal prototype to avoid an error. */
34021#ifdef __cplusplus
34022extern "C"
34023#endif
34024/* We use char because int might match the return type of a gcc2
34025 builtin and then its argument prototype would still apply. */
34026char inet_addr ();
34027int
34028main ()
34029{
34030inet_addr ();
34031 ;
34032 return 0;
34033}
34034_ACEOF
34035rm -f conftest.$ac_objext conftest$ac_exeext
34036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34037 (eval $ac_link) 2>conftest.er1
a848cd7e 34038 ac_status=$?
ac1cb8d3
VS
34039 grep -v '^ *+' conftest.er1 >conftest.err
34040 rm -f conftest.er1
34041 cat conftest.err >&5
a848cd7e
SC
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); } &&
6ebeb4c7 34044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046 (eval $ac_try) 2>&5
34047 ac_status=$?
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); }; } &&
34050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052 (eval $ac_try) 2>&5
34053 ac_status=$?
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); }; }; then
34056 ac_cv_lib_socket_inet_addr=yes
34057else
34058 echo "$as_me: failed program was:" >&5
34059sed 's/^/| /' conftest.$ac_ext >&5
34060
34061ac_cv_lib_socket_inet_addr=no
34062fi
ac1cb8d3
VS
34063rm -f conftest.err conftest.$ac_objext \
34064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34065LIBS=$ac_check_lib_save_LIBS
34066fi
34067echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34068echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34069if test $ac_cv_lib_socket_inet_addr = yes; then
34070 INET_LINK="socket"
34071
34072fi
34073
34074
34075
34076fi
34077
34078
34079
34080fi
34081
34082
34083
34084fi
34085done
34086
34087
34088
34089for ac_func in inet_aton
34090do
34091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34092echo "$as_me:$LINENO: checking for $ac_func" >&5
34093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34094if eval "test \"\${$as_ac_var+set}\" = set"; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34096else
34097 cat >conftest.$ac_ext <<_ACEOF
34098/* confdefs.h. */
34099_ACEOF
34100cat confdefs.h >>conftest.$ac_ext
34101cat >>conftest.$ac_ext <<_ACEOF
34102/* end confdefs.h. */
ac1cb8d3
VS
34103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34105#define $ac_func innocuous_$ac_func
34106
a848cd7e
SC
34107/* System header to define __stub macros and hopefully few prototypes,
34108 which can conflict with char $ac_func (); below.
34109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34110 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34111
a848cd7e
SC
34112#ifdef __STDC__
34113# include <limits.h>
34114#else
34115# include <assert.h>
34116#endif
ac1cb8d3
VS
34117
34118#undef $ac_func
34119
a848cd7e
SC
34120/* Override any gcc2 internal prototype to avoid an error. */
34121#ifdef __cplusplus
34122extern "C"
34123{
34124#endif
34125/* We use char because int might match the return type of a gcc2
34126 builtin and then its argument prototype would still apply. */
34127char $ac_func ();
34128/* The GNU C library defines this for functions which it implements
34129 to always fail with ENOSYS. Some functions are actually named
34130 something starting with __ and the normal name is an alias. */
34131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34132choke me
34133#else
34134char (*f) () = $ac_func;
34135#endif
34136#ifdef __cplusplus
34137}
34138#endif
34139
34140int
34141main ()
34142{
34143return f != $ac_func;
34144 ;
34145 return 0;
34146}
34147_ACEOF
34148rm -f conftest.$ac_objext conftest$ac_exeext
34149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34150 (eval $ac_link) 2>conftest.er1
a848cd7e 34151 ac_status=$?
ac1cb8d3
VS
34152 grep -v '^ *+' conftest.er1 >conftest.err
34153 rm -f conftest.er1
34154 cat conftest.err >&5
a848cd7e
SC
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } &&
6ebeb4c7 34157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; } &&
34163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165 (eval $ac_try) 2>&5
34166 ac_status=$?
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 eval "$as_ac_var=yes"
34170else
34171 echo "$as_me: failed program was:" >&5
34172sed 's/^/| /' conftest.$ac_ext >&5
34173
34174eval "$as_ac_var=no"
34175fi
ac1cb8d3
VS
34176rm -f conftest.err conftest.$ac_objext \
34177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34178fi
34179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34181if test `eval echo '${'$as_ac_var'}'` = yes; then
34182 cat >>confdefs.h <<_ACEOF
34183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34184_ACEOF
34185 cat >>confdefs.h <<\_ACEOF
34186#define HAVE_INET_ATON 1
34187_ACEOF
34188
34189else
34190
34191 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34192echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34193echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34194if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34196else
34197 ac_check_lib_save_LIBS=$LIBS
34198LIBS="-l$INET_LINK $LIBS"
34199cat >conftest.$ac_ext <<_ACEOF
34200/* confdefs.h. */
34201_ACEOF
34202cat confdefs.h >>conftest.$ac_ext
34203cat >>conftest.$ac_ext <<_ACEOF
34204/* end confdefs.h. */
34205
34206/* Override any gcc2 internal prototype to avoid an error. */
34207#ifdef __cplusplus
34208extern "C"
34209#endif
34210/* We use char because int might match the return type of a gcc2
34211 builtin and then its argument prototype would still apply. */
34212char inet_aton ();
34213int
34214main ()
34215{
34216inet_aton ();
34217 ;
34218 return 0;
34219}
34220_ACEOF
34221rm -f conftest.$ac_objext conftest$ac_exeext
34222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34223 (eval $ac_link) 2>conftest.er1
a848cd7e 34224 ac_status=$?
ac1cb8d3
VS
34225 grep -v '^ *+' conftest.er1 >conftest.err
34226 rm -f conftest.er1
34227 cat conftest.err >&5
a848cd7e
SC
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } &&
6ebeb4c7 34230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34232 (eval $ac_try) 2>&5
34233 ac_status=$?
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); }; } &&
34236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 (eval $ac_try) 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; }; then
34242 eval "$as_ac_Lib=yes"
34243else
34244 echo "$as_me: failed program was:" >&5
34245sed 's/^/| /' conftest.$ac_ext >&5
34246
34247eval "$as_ac_Lib=no"
34248fi
ac1cb8d3
VS
34249rm -f conftest.err conftest.$ac_objext \
34250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34251LIBS=$ac_check_lib_save_LIBS
34252fi
34253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34254echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34255if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34256 cat >>confdefs.h <<\_ACEOF
34257#define HAVE_INET_ATON 1
34258_ACEOF
34259
34260fi
34261
34262
34263fi
34264done
34265
34266
34267if test "x$INET_LINK" != "x"; then
34268 cat >>confdefs.h <<\_ACEOF
34269#define HAVE_INET_ADDR 1
34270_ACEOF
34271
34272 INET_LINK=" -l$INET_LINK"
34273fi
34274
34275fi
34276
34277
34278
34279EXTRALIBS_ESD=
34280echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34281echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34282if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34284else
34285 ac_check_lib_save_LIBS=$LIBS
34286LIBS="-lesd $LIBS"
34287cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
34293
34294/* Override any gcc2 internal prototype to avoid an error. */
34295#ifdef __cplusplus
34296extern "C"
34297#endif
34298/* We use char because int might match the return type of a gcc2
34299 builtin and then its argument prototype would still apply. */
34300char esd_close ();
34301int
34302main ()
34303{
34304esd_close ();
34305 ;
34306 return 0;
34307}
34308_ACEOF
34309rm -f conftest.$ac_objext conftest$ac_exeext
34310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34311 (eval $ac_link) 2>conftest.er1
a848cd7e 34312 ac_status=$?
ac1cb8d3
VS
34313 grep -v '^ *+' conftest.er1 >conftest.err
34314 rm -f conftest.er1
34315 cat conftest.err >&5
a848cd7e
SC
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); } &&
6ebeb4c7 34318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34320 (eval $ac_try) 2>&5
34321 ac_status=$?
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); }; } &&
34324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; }; then
34330 ac_cv_lib_esd_esd_close=yes
34331else
34332 echo "$as_me: failed program was:" >&5
34333sed 's/^/| /' conftest.$ac_ext >&5
34334
34335ac_cv_lib_esd_esd_close=no
34336fi
ac1cb8d3
VS
34337rm -f conftest.err conftest.$ac_objext \
34338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34339LIBS=$ac_check_lib_save_LIBS
34340fi
34341echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34342echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34343if test $ac_cv_lib_esd_esd_close = yes; then
34344
34345
34346for ac_header in esd.h
34347do
34348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34349if eval "test \"\${$as_ac_Header+set}\" = set"; then
34350 echo "$as_me:$LINENO: checking for $ac_header" >&5
34351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34352if eval "test \"\${$as_ac_Header+set}\" = set"; then
34353 echo $ECHO_N "(cached) $ECHO_C" >&6
34354fi
34355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34357else
34358 # Is the header compilable?
34359echo "$as_me:$LINENO: checking $ac_header usability" >&5
34360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34361cat >conftest.$ac_ext <<_ACEOF
34362/* confdefs.h. */
34363_ACEOF
34364cat confdefs.h >>conftest.$ac_ext
34365cat >>conftest.$ac_ext <<_ACEOF
34366/* end confdefs.h. */
34367$ac_includes_default
34368#include <$ac_header>
34369_ACEOF
34370rm -f conftest.$ac_objext
34371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34372 (eval $ac_compile) 2>conftest.er1
a848cd7e 34373 ac_status=$?
ac1cb8d3
VS
34374 grep -v '^ *+' conftest.er1 >conftest.err
34375 rm -f conftest.er1
34376 cat conftest.err >&5
a848cd7e
SC
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } &&
6ebeb4c7 34379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34382 ac_status=$?
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; } &&
34385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34387 (eval $ac_try) 2>&5
34388 ac_status=$?
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); }; }; then
34391 ac_header_compiler=yes
34392else
34393 echo "$as_me: failed program was:" >&5
34394sed 's/^/| /' conftest.$ac_ext >&5
34395
34396ac_header_compiler=no
34397fi
ac1cb8d3 34398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34400echo "${ECHO_T}$ac_header_compiler" >&6
34401
34402# Is the header present?
34403echo "$as_me:$LINENO: checking $ac_header presence" >&5
34404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34405cat >conftest.$ac_ext <<_ACEOF
34406/* confdefs.h. */
34407_ACEOF
34408cat confdefs.h >>conftest.$ac_ext
34409cat >>conftest.$ac_ext <<_ACEOF
34410/* end confdefs.h. */
34411#include <$ac_header>
34412_ACEOF
34413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34415 ac_status=$?
34416 grep -v '^ *+' conftest.er1 >conftest.err
34417 rm -f conftest.er1
34418 cat conftest.err >&5
34419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420 (exit $ac_status); } >/dev/null; then
34421 if test -s conftest.err; then
34422 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34424 else
34425 ac_cpp_err=
34426 fi
34427else
34428 ac_cpp_err=yes
34429fi
34430if test -z "$ac_cpp_err"; then
34431 ac_header_preproc=yes
34432else
34433 echo "$as_me: failed program was:" >&5
34434sed 's/^/| /' conftest.$ac_ext >&5
34435
34436 ac_header_preproc=no
34437fi
34438rm -f conftest.err conftest.$ac_ext
34439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34440echo "${ECHO_T}$ac_header_preproc" >&6
34441
34442# So? What about this header?
ac1cb8d3
VS
34443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34444 yes:no: )
a848cd7e
SC
34445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34449 ac_header_preproc=yes
a848cd7e 34450 ;;
ac1cb8d3 34451 no:yes:* )
a848cd7e
SC
34452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34464 (
34465 cat <<\_ASBOX
ac1cb8d3
VS
34466## ----------------------------------------- ##
34467## Report this to wx-dev@lists.wxwidgets.org ##
34468## ----------------------------------------- ##
a848cd7e
SC
34469_ASBOX
34470 ) |
34471 sed "s/^/$as_me: WARNING: /" >&2
34472 ;;
34473esac
34474echo "$as_me:$LINENO: checking for $ac_header" >&5
34475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34476if eval "test \"\${$as_ac_Header+set}\" = set"; then
34477 echo $ECHO_N "(cached) $ECHO_C" >&6
34478else
ac1cb8d3 34479 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34480fi
34481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34483
34484fi
34485if test `eval echo '${'$as_ac_Header'}'` = yes; then
34486 cat >>confdefs.h <<_ACEOF
34487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34488_ACEOF
34489
34490 EXTRALIBS_ESD="-lesd"
34491
34492fi
34493
34494done
34495
34496
34497fi
34498
34499
34500
34501echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34502echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34503cat >conftest.$ac_ext <<_ACEOF
34504/* confdefs.h. */
34505_ACEOF
34506cat confdefs.h >>conftest.$ac_ext
34507cat >>conftest.$ac_ext <<_ACEOF
34508/* end confdefs.h. */
34509#ifdef __linux__
34510 #include <linux/cdrom.h>
34511 #else
34512 /* For Solaris */
34513 #include <sys/cdio.h>
34514 #endif
34515
34516int
34517main ()
34518{
34519struct cdrom_tocentry entry, old_entry;
34520 ;
34521 return 0;
34522}
34523_ACEOF
34524rm -f conftest.$ac_objext
34525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34526 (eval $ac_compile) 2>conftest.er1
a848cd7e 34527 ac_status=$?
ac1cb8d3
VS
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
a848cd7e
SC
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
6ebeb4c7 34533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; } &&
34539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
34545 echo "$as_me:$LINENO: result: yes" >&5
34546echo "${ECHO_T}yes" >&6
34547 cat >>confdefs.h <<\_ACEOF
34548#define HAVE_KNOWN_CDROM_INTERFACE 1
34549_ACEOF
34550
34551else
34552 echo "$as_me: failed program was:" >&5
34553sed 's/^/| /' conftest.$ac_ext >&5
34554
34555echo "$as_me:$LINENO: result: no" >&5
34556echo "${ECHO_T}no" >&6
34557fi
ac1cb8d3 34558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34559
34560
34561cat >confcache <<\_ACEOF
34562# This file is a shell script that caches the results of configure
34563# tests run on this system so they can be shared between configure
34564# scripts and configure runs, see configure's option --config-cache.
34565# It is not useful on other systems. If it contains results you don't
34566# want to keep, you may remove or edit it.
34567#
34568# config.status only pays attention to the cache file if you give it
34569# the --recheck option to rerun configure.
34570#
34571# `ac_cv_env_foo' variables (set or unset) will be overridden when
34572# loading this file, other *unset* `ac_cv_foo' will be assigned the
34573# following values.
34574
34575_ACEOF
34576
34577# The following way of writing the cache mishandles newlines in values,
34578# but we know of no workaround that is simple, portable, and efficient.
34579# So, don't put newlines in cache variables' values.
34580# Ultrix sh set writes to stderr and can't be redirected directly,
34581# and sets the high bit in the cache file unless we assign to the vars.
34582{
34583 (set) 2>&1 |
34584 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34585 *ac_space=\ *)
34586 # `set' does not quote correctly, so add quotes (double-quote
34587 # substitution turns \\\\ into \\, and sed turns \\ into \).
34588 sed -n \
ac1cb8d3
VS
34589 "s/'/'\\\\''/g;
34590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34591 ;;
34592 *)
34593 # `set' quotes correctly as required by POSIX, so do not add quotes.
34594 sed -n \
ac1cb8d3 34595 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34596 ;;
34597 esac;
34598} |
34599 sed '
34600 t clear
34601 : clear
34602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34603 t end
34604 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34605 : end' >>confcache
34606if diff $cache_file confcache >/dev/null 2>&1; then :; else
34607 if test -w $cache_file; then
34608 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34609 cat confcache >$cache_file
34610 else
34611 echo "not updating unwritable cache $cache_file"
34612 fi
34613fi
34614rm -f confcache
34615
34616
34617CPP_MT_FLAG=
34618if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34619
34620
34621 THREADS_LINK=
34622 THREADS_CFLAGS=
34623
34624 if test "$wxUSE_THREADS" = "yes" ; then
34625 if test "$USE_BEOS" = 1; then
34626 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34627echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34628 wxUSE_THREADS="no"
34629 fi
34630 fi
34631
34632 if test "$wxUSE_THREADS" = "yes" ; then
34633
34634
34635 THREAD_OPTS="-pthread"
34636 case "${host}" in
34637 *-*-solaris2* | *-*-sunos4* )
34638 if test "x$GCC" = "xyes"; then
34639 THREAD_OPTS="-pthreads $THREAD_OPTS"
34640 else
34641 THREAD_OPTS="-mt $THREAD_OPTS"
34642 fi
34643 ;;
34644 *-*-freebsd*)
34645 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34646 ;;
34647 *-*-darwin* | *-*-cygwin* )
34648 THREAD_OPTS=""
34649 ;;
34650 *-*-aix*)
34651 THREAD_OPTS="pthreads"
34652 ;;
34653 *-hp-hpux* )
34654 if test "x$GCC" != "xyes"; then
34655 THREAD_OPTS=""
34656 fi
34657 ;;
34658
34659 *-*-irix* )
34660 if test "x$GCC" = "xyes"; then
34661 THREAD_OPTS=""
34662 fi
34663 ;;
34664
34665 *-*-*UnixWare*)
34666 if test "x$GCC" != "xyes"; then
34667 THREAD_OPTS="-Ethread"
34668 fi
34669 ;;
34670 esac
34671
34672 THREAD_OPTS="$THREAD_OPTS pthread none"
34673
34674 THREADS_OK=no
34675 for flag in $THREAD_OPTS; do
34676 case $flag in
34677 none)
34678 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34679echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34680 ;;
34681
34682 -*)
34683 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34684echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34685 THREADS_CFLAGS="$flag"
34686 ;;
34687
34688 *)
34689 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34690echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34691 THREADS_LINK="-l$flag"
34692 ;;
34693 esac
34694
34695 save_LIBS="$LIBS"
34696 save_CFLAGS="$CFLAGS"
34697 LIBS="$THREADS_LINK $LIBS"
34698 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34699
34700 cat >conftest.$ac_ext <<_ACEOF
34701/* confdefs.h. */
34702_ACEOF
34703cat confdefs.h >>conftest.$ac_ext
34704cat >>conftest.$ac_ext <<_ACEOF
34705/* end confdefs.h. */
34706#include <pthread.h>
34707int
34708main ()
34709{
34710pthread_create(0,0,0,0);
34711 ;
34712 return 0;
34713}
34714_ACEOF
34715rm -f conftest.$ac_objext conftest$ac_exeext
34716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34717 (eval $ac_link) 2>conftest.er1
a848cd7e 34718 ac_status=$?
ac1cb8d3
VS
34719 grep -v '^ *+' conftest.er1 >conftest.err
34720 rm -f conftest.er1
34721 cat conftest.err >&5
a848cd7e
SC
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); } &&
6ebeb4c7 34724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726 (eval $ac_try) 2>&5
34727 ac_status=$?
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); }; } &&
34730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34732 (eval $ac_try) 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736 THREADS_OK=yes
34737else
34738 echo "$as_me: failed program was:" >&5
34739sed 's/^/| /' conftest.$ac_ext >&5
34740
34741fi
ac1cb8d3
VS
34742rm -f conftest.err conftest.$ac_objext \
34743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34744
34745 LIBS="$save_LIBS"
34746 CFLAGS="$save_CFLAGS"
34747
34748 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34749echo "${ECHO_T}$THREADS_OK" >&6
34750 if test "x$THREADS_OK" = "xyes"; then
34751 break;
34752 fi
34753
34754 THREADS_LINK=""
34755 THREADS_CFLAGS=""
34756 done
34757
34758 if test "x$THREADS_OK" != "xyes"; then
34759 wxUSE_THREADS=no
34760 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34761echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34762 else
34763 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34764 LIBS="$THREADS_LINK $LIBS"
34765
34766 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34767echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34768 flag=no
34769 case "${host}" in
34770 *-aix*)
34771 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34772 flag="-D_THREAD_SAFE"
34773 ;;
34774 *-freebsd*)
34775 flag="-D_THREAD_SAFE"
34776 ;;
34777 *-hp-hpux* )
34778 flag="-D_REENTRANT"
34779 if test "x$GCC" != "xyes"; then
34780 flag="$flag -D_RWSTD_MULTI_THREAD"
34781 fi
34782 ;;
34783 *solaris* | alpha*-osf*)
34784 flag="-D_REENTRANT"
34785 ;;
34786 esac
34787 echo "$as_me:$LINENO: result: ${flag}" >&5
34788echo "${ECHO_T}${flag}" >&6
34789 if test "x$flag" != xno; then
34790 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34791 fi
34792
34793 if test "x$THREADS_CFLAGS" != "x"; then
34794 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34795 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34796 fi
34797 fi
34798 fi
34799
34800 if test "$wxUSE_THREADS" = "yes" ; then
34801
34802for ac_func in thr_setconcurrency
34803do
34804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34805echo "$as_me:$LINENO: checking for $ac_func" >&5
34806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34807if eval "test \"\${$as_ac_var+set}\" = set"; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
34809else
34810 cat >conftest.$ac_ext <<_ACEOF
34811/* confdefs.h. */
34812_ACEOF
34813cat confdefs.h >>conftest.$ac_ext
34814cat >>conftest.$ac_ext <<_ACEOF
34815/* end confdefs.h. */
ac1cb8d3
VS
34816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34818#define $ac_func innocuous_$ac_func
34819
a848cd7e
SC
34820/* System header to define __stub macros and hopefully few prototypes,
34821 which can conflict with char $ac_func (); below.
34822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34823 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34824
a848cd7e
SC
34825#ifdef __STDC__
34826# include <limits.h>
34827#else
34828# include <assert.h>
34829#endif
ac1cb8d3
VS
34830
34831#undef $ac_func
34832
a848cd7e
SC
34833/* Override any gcc2 internal prototype to avoid an error. */
34834#ifdef __cplusplus
34835extern "C"
34836{
34837#endif
34838/* We use char because int might match the return type of a gcc2
34839 builtin and then its argument prototype would still apply. */
34840char $ac_func ();
34841/* The GNU C library defines this for functions which it implements
34842 to always fail with ENOSYS. Some functions are actually named
34843 something starting with __ and the normal name is an alias. */
34844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34845choke me
34846#else
34847char (*f) () = $ac_func;
34848#endif
34849#ifdef __cplusplus
34850}
34851#endif
34852
34853int
34854main ()
34855{
34856return f != $ac_func;
34857 ;
34858 return 0;
34859}
34860_ACEOF
34861rm -f conftest.$ac_objext conftest$ac_exeext
34862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34863 (eval $ac_link) 2>conftest.er1
a848cd7e 34864 ac_status=$?
ac1cb8d3
VS
34865 grep -v '^ *+' conftest.er1 >conftest.err
34866 rm -f conftest.er1
34867 cat conftest.err >&5
a848cd7e
SC
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } &&
6ebeb4c7 34870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; }; then
34882 eval "$as_ac_var=yes"
34883else
34884 echo "$as_me: failed program was:" >&5
34885sed 's/^/| /' conftest.$ac_ext >&5
34886
34887eval "$as_ac_var=no"
34888fi
ac1cb8d3
VS
34889rm -f conftest.err conftest.$ac_objext \
34890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34891fi
34892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34894if test `eval echo '${'$as_ac_var'}'` = yes; then
34895 cat >>confdefs.h <<_ACEOF
34896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34897_ACEOF
34898
34899fi
34900done
34901
34902
6ebeb4c7
VZ
34903 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
34904echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
34905if test "${wx_cv_func_pthread_cleanup+set}" = set; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
34907else
34908
34909 cat >conftest.$ac_ext <<_ACEOF
34910/* confdefs.h. */
34911_ACEOF
34912cat confdefs.h >>conftest.$ac_ext
34913cat >>conftest.$ac_ext <<_ACEOF
34914/* end confdefs.h. */
34915#include <pthread.h>
34916 void ThreadCleanupFunc(void *p);
34917
34918int
34919main ()
34920{
34921
34922 void *p;
34923 pthread_cleanup_push(ThreadCleanupFunc, p);
34924 pthread_cleanup_pop(0);
34925
34926 ;
34927 return 0;
34928}
34929_ACEOF
34930rm -f conftest.$ac_objext
34931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34932 (eval $ac_compile) 2>conftest.er1
34933 ac_status=$?
34934 grep -v '^ *+' conftest.er1 >conftest.err
34935 rm -f conftest.er1
34936 cat conftest.err >&5
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } &&
34939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34942 ac_status=$?
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; } &&
34945 { ac_try='test -s conftest.$ac_objext'
34946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34947 (eval $ac_try) 2>&5
34948 ac_status=$?
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); }; }; then
34951
34952 wx_cv_func_pthread_cleanup=yes
34953
34954else
34955 echo "$as_me: failed program was:" >&5
34956sed 's/^/| /' conftest.$ac_ext >&5
34957
34958
34959 wx_cv_func_pthread_cleanup=no
34960
34961
34962fi
34963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34964
34965fi
34966echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
34967echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
34968 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
34969 cat >>confdefs.h <<\_ACEOF
34970#define wxHAVE_PTHREAD_CLEANUP 1
34971_ACEOF
34972
34973 fi
34974
a848cd7e
SC
34975
34976for ac_header in sched.h
34977do
34978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34979if eval "test \"\${$as_ac_Header+set}\" = set"; then
34980 echo "$as_me:$LINENO: checking for $ac_header" >&5
34981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34982if eval "test \"\${$as_ac_Header+set}\" = set"; then
34983 echo $ECHO_N "(cached) $ECHO_C" >&6
34984fi
34985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34987else
34988 # Is the header compilable?
34989echo "$as_me:$LINENO: checking $ac_header usability" >&5
34990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34991cat >conftest.$ac_ext <<_ACEOF
34992/* confdefs.h. */
34993_ACEOF
34994cat confdefs.h >>conftest.$ac_ext
34995cat >>conftest.$ac_ext <<_ACEOF
34996/* end confdefs.h. */
34997$ac_includes_default
34998#include <$ac_header>
34999_ACEOF
35000rm -f conftest.$ac_objext
35001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35002 (eval $ac_compile) 2>conftest.er1
a848cd7e 35003 ac_status=$?
ac1cb8d3
VS
35004 grep -v '^ *+' conftest.er1 >conftest.err
35005 rm -f conftest.er1
35006 cat conftest.err >&5
a848cd7e
SC
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); } &&
6ebeb4c7 35009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011 (eval $ac_try) 2>&5
35012 ac_status=$?
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); }; } &&
35015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017 (eval $ac_try) 2>&5
35018 ac_status=$?
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); }; }; then
35021 ac_header_compiler=yes
35022else
35023 echo "$as_me: failed program was:" >&5
35024sed 's/^/| /' conftest.$ac_ext >&5
35025
35026ac_header_compiler=no
35027fi
ac1cb8d3 35028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35030echo "${ECHO_T}$ac_header_compiler" >&6
35031
35032# Is the header present?
35033echo "$as_me:$LINENO: checking $ac_header presence" >&5
35034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35035cat >conftest.$ac_ext <<_ACEOF
35036/* confdefs.h. */
35037_ACEOF
35038cat confdefs.h >>conftest.$ac_ext
35039cat >>conftest.$ac_ext <<_ACEOF
35040/* end confdefs.h. */
35041#include <$ac_header>
35042_ACEOF
35043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35045 ac_status=$?
35046 grep -v '^ *+' conftest.er1 >conftest.err
35047 rm -f conftest.er1
35048 cat conftest.err >&5
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); } >/dev/null; then
35051 if test -s conftest.err; then
35052 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35054 else
35055 ac_cpp_err=
35056 fi
35057else
35058 ac_cpp_err=yes
35059fi
35060if test -z "$ac_cpp_err"; then
35061 ac_header_preproc=yes
35062else
35063 echo "$as_me: failed program was:" >&5
35064sed 's/^/| /' conftest.$ac_ext >&5
35065
35066 ac_header_preproc=no
35067fi
35068rm -f conftest.err conftest.$ac_ext
35069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35070echo "${ECHO_T}$ac_header_preproc" >&6
35071
35072# So? What about this header?
ac1cb8d3
VS
35073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35074 yes:no: )
a848cd7e
SC
35075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35079 ac_header_preproc=yes
a848cd7e 35080 ;;
ac1cb8d3 35081 no:yes:* )
a848cd7e
SC
35082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35094 (
35095 cat <<\_ASBOX
ac1cb8d3
VS
35096## ----------------------------------------- ##
35097## Report this to wx-dev@lists.wxwidgets.org ##
35098## ----------------------------------------- ##
a848cd7e
SC
35099_ASBOX
35100 ) |
35101 sed "s/^/$as_me: WARNING: /" >&2
35102 ;;
35103esac
35104echo "$as_me:$LINENO: checking for $ac_header" >&5
35105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35106if eval "test \"\${$as_ac_Header+set}\" = set"; then
35107 echo $ECHO_N "(cached) $ECHO_C" >&6
35108else
ac1cb8d3 35109 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35110fi
35111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35113
35114fi
35115if test `eval echo '${'$as_ac_Header'}'` = yes; then
35116 cat >>confdefs.h <<_ACEOF
35117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35118_ACEOF
35119
35120fi
35121
35122done
35123
35124 if test "$ac_cv_header_sched_h" = "yes"; then
35125 echo "$as_me:$LINENO: checking for sched_yield" >&5
35126echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35127if test "${ac_cv_func_sched_yield+set}" = set; then
35128 echo $ECHO_N "(cached) $ECHO_C" >&6
35129else
35130 cat >conftest.$ac_ext <<_ACEOF
35131/* confdefs.h. */
35132_ACEOF
35133cat confdefs.h >>conftest.$ac_ext
35134cat >>conftest.$ac_ext <<_ACEOF
35135/* end confdefs.h. */
ac1cb8d3
VS
35136/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35138#define sched_yield innocuous_sched_yield
35139
a848cd7e
SC
35140/* System header to define __stub macros and hopefully few prototypes,
35141 which can conflict with char sched_yield (); below.
35142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35144
a848cd7e
SC
35145#ifdef __STDC__
35146# include <limits.h>
35147#else
35148# include <assert.h>
35149#endif
ac1cb8d3
VS
35150
35151#undef sched_yield
35152
a848cd7e
SC
35153/* Override any gcc2 internal prototype to avoid an error. */
35154#ifdef __cplusplus
35155extern "C"
35156{
35157#endif
35158/* We use char because int might match the return type of a gcc2
35159 builtin and then its argument prototype would still apply. */
35160char sched_yield ();
35161/* The GNU C library defines this for functions which it implements
35162 to always fail with ENOSYS. Some functions are actually named
35163 something starting with __ and the normal name is an alias. */
35164#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35165choke me
35166#else
35167char (*f) () = sched_yield;
35168#endif
35169#ifdef __cplusplus
35170}
35171#endif
35172
35173int
35174main ()
35175{
35176return f != sched_yield;
35177 ;
35178 return 0;
35179}
35180_ACEOF
35181rm -f conftest.$ac_objext conftest$ac_exeext
35182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35183 (eval $ac_link) 2>conftest.er1
a848cd7e 35184 ac_status=$?
ac1cb8d3
VS
35185 grep -v '^ *+' conftest.er1 >conftest.err
35186 rm -f conftest.er1
35187 cat conftest.err >&5
a848cd7e
SC
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); } &&
6ebeb4c7 35190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35192 (eval $ac_try) 2>&5
35193 ac_status=$?
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; } &&
35196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; }; then
35202 ac_cv_func_sched_yield=yes
35203else
35204 echo "$as_me: failed program was:" >&5
35205sed 's/^/| /' conftest.$ac_ext >&5
35206
35207ac_cv_func_sched_yield=no
35208fi
ac1cb8d3
VS
35209rm -f conftest.err conftest.$ac_objext \
35210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35211fi
35212echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35213echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35214if test $ac_cv_func_sched_yield = yes; then
35215 cat >>confdefs.h <<\_ACEOF
35216#define HAVE_SCHED_YIELD 1
35217_ACEOF
35218
35219else
35220
35221 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35222echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35223if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35225else
35226 ac_check_lib_save_LIBS=$LIBS
35227LIBS="-lposix4 $LIBS"
35228cat >conftest.$ac_ext <<_ACEOF
35229/* confdefs.h. */
35230_ACEOF
35231cat confdefs.h >>conftest.$ac_ext
35232cat >>conftest.$ac_ext <<_ACEOF
35233/* end confdefs.h. */
35234
35235/* Override any gcc2 internal prototype to avoid an error. */
35236#ifdef __cplusplus
35237extern "C"
35238#endif
35239/* We use char because int might match the return type of a gcc2
35240 builtin and then its argument prototype would still apply. */
35241char sched_yield ();
35242int
35243main ()
35244{
35245sched_yield ();
35246 ;
35247 return 0;
35248}
35249_ACEOF
35250rm -f conftest.$ac_objext conftest$ac_exeext
35251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35252 (eval $ac_link) 2>conftest.er1
a848cd7e 35253 ac_status=$?
ac1cb8d3
VS
35254 grep -v '^ *+' conftest.er1 >conftest.err
35255 rm -f conftest.er1
35256 cat conftest.err >&5
a848cd7e
SC
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); } &&
6ebeb4c7 35259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35261 (eval $ac_try) 2>&5
35262 ac_status=$?
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); }; } &&
35265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35268 ac_status=$?
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; }; then
35271 ac_cv_lib_posix4_sched_yield=yes
35272else
35273 echo "$as_me: failed program was:" >&5
35274sed 's/^/| /' conftest.$ac_ext >&5
35275
35276ac_cv_lib_posix4_sched_yield=no
35277fi
ac1cb8d3
VS
35278rm -f conftest.err conftest.$ac_objext \
35279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35280LIBS=$ac_check_lib_save_LIBS
35281fi
35282echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35283echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35284if test $ac_cv_lib_posix4_sched_yield = yes; then
35285 cat >>confdefs.h <<\_ACEOF
35286#define HAVE_SCHED_YIELD 1
35287_ACEOF
35288 POSIX4_LINK=" -lposix4"
35289else
35290 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35291echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35292
35293fi
35294
35295
35296
35297fi
35298
35299 fi
35300
35301 HAVE_PRIOR_FUNCS=0
35302 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35303echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35304if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35305 echo $ECHO_N "(cached) $ECHO_C" >&6
35306else
35307 cat >conftest.$ac_ext <<_ACEOF
35308/* confdefs.h. */
35309_ACEOF
35310cat confdefs.h >>conftest.$ac_ext
35311cat >>conftest.$ac_ext <<_ACEOF
35312/* end confdefs.h. */
ac1cb8d3
VS
35313/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35315#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35316
a848cd7e
SC
35317/* System header to define __stub macros and hopefully few prototypes,
35318 which can conflict with char pthread_attr_getschedpolicy (); below.
35319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35320 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35321
a848cd7e
SC
35322#ifdef __STDC__
35323# include <limits.h>
35324#else
35325# include <assert.h>
35326#endif
ac1cb8d3
VS
35327
35328#undef pthread_attr_getschedpolicy
35329
a848cd7e
SC
35330/* Override any gcc2 internal prototype to avoid an error. */
35331#ifdef __cplusplus
35332extern "C"
35333{
35334#endif
35335/* We use char because int might match the return type of a gcc2
35336 builtin and then its argument prototype would still apply. */
35337char pthread_attr_getschedpolicy ();
35338/* The GNU C library defines this for functions which it implements
35339 to always fail with ENOSYS. Some functions are actually named
35340 something starting with __ and the normal name is an alias. */
35341#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35342choke me
35343#else
35344char (*f) () = pthread_attr_getschedpolicy;
35345#endif
35346#ifdef __cplusplus
35347}
35348#endif
35349
35350int
35351main ()
35352{
35353return f != pthread_attr_getschedpolicy;
35354 ;
35355 return 0;
35356}
35357_ACEOF
35358rm -f conftest.$ac_objext conftest$ac_exeext
35359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35360 (eval $ac_link) 2>conftest.er1
a848cd7e 35361 ac_status=$?
ac1cb8d3
VS
35362 grep -v '^ *+' conftest.er1 >conftest.err
35363 rm -f conftest.er1
35364 cat conftest.err >&5
a848cd7e
SC
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); } &&
6ebeb4c7 35367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369 (eval $ac_try) 2>&5
35370 ac_status=$?
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; } &&
35373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35375 (eval $ac_try) 2>&5
35376 ac_status=$?
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); }; }; then
35379 ac_cv_func_pthread_attr_getschedpolicy=yes
35380else
35381 echo "$as_me: failed program was:" >&5
35382sed 's/^/| /' conftest.$ac_ext >&5
35383
35384ac_cv_func_pthread_attr_getschedpolicy=no
35385fi
ac1cb8d3
VS
35386rm -f conftest.err conftest.$ac_objext \
35387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35388fi
35389echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35390echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35391if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35392 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35393echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35394if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35395 echo $ECHO_N "(cached) $ECHO_C" >&6
35396else
35397 cat >conftest.$ac_ext <<_ACEOF
35398/* confdefs.h. */
35399_ACEOF
35400cat confdefs.h >>conftest.$ac_ext
35401cat >>conftest.$ac_ext <<_ACEOF
35402/* end confdefs.h. */
ac1cb8d3
VS
35403/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35405#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35406
a848cd7e
SC
35407/* System header to define __stub macros and hopefully few prototypes,
35408 which can conflict with char pthread_attr_setschedparam (); below.
35409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35411
a848cd7e
SC
35412#ifdef __STDC__
35413# include <limits.h>
35414#else
35415# include <assert.h>
35416#endif
ac1cb8d3
VS
35417
35418#undef pthread_attr_setschedparam
35419
a848cd7e
SC
35420/* Override any gcc2 internal prototype to avoid an error. */
35421#ifdef __cplusplus
35422extern "C"
35423{
35424#endif
35425/* We use char because int might match the return type of a gcc2
35426 builtin and then its argument prototype would still apply. */
35427char pthread_attr_setschedparam ();
35428/* The GNU C library defines this for functions which it implements
35429 to always fail with ENOSYS. Some functions are actually named
35430 something starting with __ and the normal name is an alias. */
35431#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35432choke me
35433#else
35434char (*f) () = pthread_attr_setschedparam;
35435#endif
35436#ifdef __cplusplus
35437}
35438#endif
35439
35440int
35441main ()
35442{
35443return f != pthread_attr_setschedparam;
35444 ;
35445 return 0;
35446}
35447_ACEOF
35448rm -f conftest.$ac_objext conftest$ac_exeext
35449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35450 (eval $ac_link) 2>conftest.er1
a848cd7e 35451 ac_status=$?
ac1cb8d3
VS
35452 grep -v '^ *+' conftest.er1 >conftest.err
35453 rm -f conftest.er1
35454 cat conftest.err >&5
a848cd7e
SC
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); } &&
6ebeb4c7 35457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; } &&
35463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35465 (eval $ac_try) 2>&5
35466 ac_status=$?
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); }; }; then
35469 ac_cv_func_pthread_attr_setschedparam=yes
35470else
35471 echo "$as_me: failed program was:" >&5
35472sed 's/^/| /' conftest.$ac_ext >&5
35473
35474ac_cv_func_pthread_attr_setschedparam=no
35475fi
ac1cb8d3
VS
35476rm -f conftest.err conftest.$ac_objext \
35477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35478fi
35479echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35480echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35481if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35482 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35483echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35484if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35485 echo $ECHO_N "(cached) $ECHO_C" >&6
35486else
35487 cat >conftest.$ac_ext <<_ACEOF
35488/* confdefs.h. */
35489_ACEOF
35490cat confdefs.h >>conftest.$ac_ext
35491cat >>conftest.$ac_ext <<_ACEOF
35492/* end confdefs.h. */
ac1cb8d3
VS
35493/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35495#define sched_get_priority_max innocuous_sched_get_priority_max
35496
a848cd7e
SC
35497/* System header to define __stub macros and hopefully few prototypes,
35498 which can conflict with char sched_get_priority_max (); below.
35499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35501
a848cd7e
SC
35502#ifdef __STDC__
35503# include <limits.h>
35504#else
35505# include <assert.h>
35506#endif
ac1cb8d3
VS
35507
35508#undef sched_get_priority_max
35509
a848cd7e
SC
35510/* Override any gcc2 internal prototype to avoid an error. */
35511#ifdef __cplusplus
35512extern "C"
35513{
35514#endif
35515/* We use char because int might match the return type of a gcc2
35516 builtin and then its argument prototype would still apply. */
35517char sched_get_priority_max ();
35518/* The GNU C library defines this for functions which it implements
35519 to always fail with ENOSYS. Some functions are actually named
35520 something starting with __ and the normal name is an alias. */
35521#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35522choke me
35523#else
35524char (*f) () = sched_get_priority_max;
35525#endif
35526#ifdef __cplusplus
35527}
35528#endif
35529
35530int
35531main ()
35532{
35533return f != sched_get_priority_max;
35534 ;
35535 return 0;
35536}
35537_ACEOF
35538rm -f conftest.$ac_objext conftest$ac_exeext
35539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35540 (eval $ac_link) 2>conftest.er1
a848cd7e 35541 ac_status=$?
ac1cb8d3
VS
35542 grep -v '^ *+' conftest.er1 >conftest.err
35543 rm -f conftest.er1
35544 cat conftest.err >&5
a848cd7e
SC
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); } &&
6ebeb4c7 35547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549 (eval $ac_try) 2>&5
35550 ac_status=$?
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); }; } &&
35553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); }; }; then
35559 ac_cv_func_sched_get_priority_max=yes
35560else
35561 echo "$as_me: failed program was:" >&5
35562sed 's/^/| /' conftest.$ac_ext >&5
35563
35564ac_cv_func_sched_get_priority_max=no
35565fi
ac1cb8d3
VS
35566rm -f conftest.err conftest.$ac_objext \
35567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35568fi
35569echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35570echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35571if test $ac_cv_func_sched_get_priority_max = yes; then
35572 HAVE_PRIOR_FUNCS=1
35573else
35574 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35575echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35576if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35577 echo $ECHO_N "(cached) $ECHO_C" >&6
35578else
35579 ac_check_lib_save_LIBS=$LIBS
35580LIBS="-lposix4 $LIBS"
35581cat >conftest.$ac_ext <<_ACEOF
35582/* confdefs.h. */
35583_ACEOF
35584cat confdefs.h >>conftest.$ac_ext
35585cat >>conftest.$ac_ext <<_ACEOF
35586/* end confdefs.h. */
35587
35588/* Override any gcc2 internal prototype to avoid an error. */
35589#ifdef __cplusplus
35590extern "C"
35591#endif
35592/* We use char because int might match the return type of a gcc2
35593 builtin and then its argument prototype would still apply. */
35594char sched_get_priority_max ();
35595int
35596main ()
35597{
35598sched_get_priority_max ();
35599 ;
35600 return 0;
35601}
35602_ACEOF
35603rm -f conftest.$ac_objext conftest$ac_exeext
35604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35605 (eval $ac_link) 2>conftest.er1
a848cd7e 35606 ac_status=$?
ac1cb8d3
VS
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
a848cd7e
SC
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
6ebeb4c7 35612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; } &&
35618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; }; then
35624 ac_cv_lib_posix4_sched_get_priority_max=yes
35625else
35626 echo "$as_me: failed program was:" >&5
35627sed 's/^/| /' conftest.$ac_ext >&5
35628
35629ac_cv_lib_posix4_sched_get_priority_max=no
35630fi
ac1cb8d3
VS
35631rm -f conftest.err conftest.$ac_objext \
35632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35633LIBS=$ac_check_lib_save_LIBS
35634fi
35635echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35636echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35637if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35638
35639 HAVE_PRIOR_FUNCS=1
35640 POSIX4_LINK=" -lposix4"
35641
35642fi
35643
35644
35645fi
35646
35647
35648fi
35649
35650
35651fi
35652
35653
35654 if test "$HAVE_PRIOR_FUNCS" = 1; then
35655 cat >>confdefs.h <<\_ACEOF
35656#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35657_ACEOF
35658
35659 else
35660 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35661echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35662 fi
35663
35664 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35665echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35666if test "${ac_cv_func_pthread_cancel+set}" = set; then
35667 echo $ECHO_N "(cached) $ECHO_C" >&6
35668else
35669 cat >conftest.$ac_ext <<_ACEOF
35670/* confdefs.h. */
35671_ACEOF
35672cat confdefs.h >>conftest.$ac_ext
35673cat >>conftest.$ac_ext <<_ACEOF
35674/* end confdefs.h. */
ac1cb8d3
VS
35675/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35677#define pthread_cancel innocuous_pthread_cancel
35678
a848cd7e
SC
35679/* System header to define __stub macros and hopefully few prototypes,
35680 which can conflict with char pthread_cancel (); below.
35681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35682 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35683
a848cd7e
SC
35684#ifdef __STDC__
35685# include <limits.h>
35686#else
35687# include <assert.h>
35688#endif
ac1cb8d3
VS
35689
35690#undef pthread_cancel
35691
a848cd7e
SC
35692/* Override any gcc2 internal prototype to avoid an error. */
35693#ifdef __cplusplus
35694extern "C"
35695{
35696#endif
35697/* We use char because int might match the return type of a gcc2
35698 builtin and then its argument prototype would still apply. */
35699char pthread_cancel ();
35700/* The GNU C library defines this for functions which it implements
35701 to always fail with ENOSYS. Some functions are actually named
35702 something starting with __ and the normal name is an alias. */
35703#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35704choke me
35705#else
35706char (*f) () = pthread_cancel;
35707#endif
35708#ifdef __cplusplus
35709}
35710#endif
35711
35712int
35713main ()
35714{
35715return f != pthread_cancel;
35716 ;
35717 return 0;
35718}
35719_ACEOF
35720rm -f conftest.$ac_objext conftest$ac_exeext
35721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35722 (eval $ac_link) 2>conftest.er1
a848cd7e 35723 ac_status=$?
ac1cb8d3
VS
35724 grep -v '^ *+' conftest.er1 >conftest.err
35725 rm -f conftest.er1
35726 cat conftest.err >&5
a848cd7e
SC
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } &&
6ebeb4c7 35729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; } &&
35735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; }; then
35741 ac_cv_func_pthread_cancel=yes
35742else
35743 echo "$as_me: failed program was:" >&5
35744sed 's/^/| /' conftest.$ac_ext >&5
35745
35746ac_cv_func_pthread_cancel=no
35747fi
ac1cb8d3
VS
35748rm -f conftest.err conftest.$ac_objext \
35749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35750fi
35751echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35752echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35753if test $ac_cv_func_pthread_cancel = yes; then
35754 cat >>confdefs.h <<\_ACEOF
35755#define HAVE_PTHREAD_CANCEL 1
35756_ACEOF
35757
35758else
35759 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35760echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35761fi
35762
35763
abc736fd
MW
35764 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35765echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35766if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35767 echo $ECHO_N "(cached) $ECHO_C" >&6
35768else
35769 cat >conftest.$ac_ext <<_ACEOF
35770/* confdefs.h. */
35771_ACEOF
35772cat confdefs.h >>conftest.$ac_ext
35773cat >>conftest.$ac_ext <<_ACEOF
35774/* end confdefs.h. */
35775/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35777#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35778
35779/* System header to define __stub macros and hopefully few prototypes,
35780 which can conflict with char pthread_attr_setstacksize (); below.
35781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35782 <limits.h> exists even on freestanding compilers. */
35783
35784#ifdef __STDC__
35785# include <limits.h>
35786#else
35787# include <assert.h>
35788#endif
35789
35790#undef pthread_attr_setstacksize
35791
35792/* Override any gcc2 internal prototype to avoid an error. */
35793#ifdef __cplusplus
35794extern "C"
35795{
35796#endif
35797/* We use char because int might match the return type of a gcc2
35798 builtin and then its argument prototype would still apply. */
35799char pthread_attr_setstacksize ();
35800/* The GNU C library defines this for functions which it implements
35801 to always fail with ENOSYS. Some functions are actually named
35802 something starting with __ and the normal name is an alias. */
35803#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35804choke me
35805#else
35806char (*f) () = pthread_attr_setstacksize;
35807#endif
35808#ifdef __cplusplus
35809}
35810#endif
35811
35812int
35813main ()
35814{
35815return f != pthread_attr_setstacksize;
35816 ;
35817 return 0;
35818}
35819_ACEOF
35820rm -f conftest.$ac_objext conftest$ac_exeext
35821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35822 (eval $ac_link) 2>conftest.er1
35823 ac_status=$?
35824 grep -v '^ *+' conftest.er1 >conftest.err
35825 rm -f conftest.er1
35826 cat conftest.err >&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); } &&
6ebeb4c7 35829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831 (eval $ac_try) 2>&5
35832 ac_status=$?
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); }; } &&
35835 { ac_try='test -s conftest$ac_exeext'
35836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837 (eval $ac_try) 2>&5
35838 ac_status=$?
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); }; }; then
35841 ac_cv_func_pthread_attr_setstacksize=yes
35842else
35843 echo "$as_me: failed program was:" >&5
35844sed 's/^/| /' conftest.$ac_ext >&5
35845
35846ac_cv_func_pthread_attr_setstacksize=no
35847fi
35848rm -f conftest.err conftest.$ac_objext \
35849 conftest$ac_exeext conftest.$ac_ext
35850fi
35851echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35852echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35853if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35854 cat >>confdefs.h <<\_ACEOF
35855#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35856_ACEOF
35857
35858fi
35859
a848cd7e
SC
35860
35861
35862 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35863echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35864if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35865 echo $ECHO_N "(cached) $ECHO_C" >&6
35866else
35867
35868 cat >conftest.$ac_ext <<_ACEOF
35869/* confdefs.h. */
35870_ACEOF
35871cat confdefs.h >>conftest.$ac_ext
35872cat >>conftest.$ac_ext <<_ACEOF
35873/* end confdefs.h. */
35874#include <pthread.h>
35875int
35876main ()
35877{
35878
35879 pthread_mutexattr_t attr;
35880 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35881
35882 ;
35883 return 0;
35884}
35885_ACEOF
35886rm -f conftest.$ac_objext
35887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35888 (eval $ac_compile) 2>conftest.er1
a848cd7e 35889 ac_status=$?
ac1cb8d3
VS
35890 grep -v '^ *+' conftest.er1 >conftest.err
35891 rm -f conftest.er1
35892 cat conftest.err >&5
a848cd7e
SC
35893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894 (exit $ac_status); } &&
6ebeb4c7 35895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897 (eval $ac_try) 2>&5
35898 ac_status=$?
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); }; } &&
35901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35903 (eval $ac_try) 2>&5
35904 ac_status=$?
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); }; }; then
35907
35908 wx_cv_type_pthread_mutexattr_t=yes
35909
35910else
35911 echo "$as_me: failed program was:" >&5
35912sed 's/^/| /' conftest.$ac_ext >&5
35913
35914
35915 wx_cv_type_pthread_mutexattr_t=no
35916
35917
35918fi
ac1cb8d3 35919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35920
35921fi
35922echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35923echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35924
35925 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35926 cat >>confdefs.h <<\_ACEOF
35927#define HAVE_PTHREAD_MUTEXATTR_T 1
35928_ACEOF
35929
35930 else
35931 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35932echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35933if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936
35937 cat >conftest.$ac_ext <<_ACEOF
35938/* confdefs.h. */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h. */
35943#include <pthread.h>
35944int
35945main ()
35946{
35947
35948 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35949
35950 ;
35951 return 0;
35952}
35953_ACEOF
35954rm -f conftest.$ac_objext
35955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35956 (eval $ac_compile) 2>conftest.er1
a848cd7e 35957 ac_status=$?
ac1cb8d3
VS
35958 grep -v '^ *+' conftest.er1 >conftest.err
35959 rm -f conftest.er1
35960 cat conftest.err >&5
a848cd7e
SC
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } &&
6ebeb4c7 35963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; } &&
35969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971 (eval $ac_try) 2>&5
35972 ac_status=$?
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); }; }; then
35975
35976 wx_cv_type_pthread_rec_mutex_init=yes
35977
35978else
35979 echo "$as_me: failed program was:" >&5
35980sed 's/^/| /' conftest.$ac_ext >&5
35981
35982
35983 wx_cv_type_pthread_rec_mutex_init=no
35984
35985
35986fi
ac1cb8d3 35987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35988
35989fi
35990echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35991echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35992 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35993 cat >>confdefs.h <<\_ACEOF
35994#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35995_ACEOF
35996
35997 else
35998 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35999echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36000 fi
36001 fi
36002 fi
36003
36004else
36005 if test "$wxUSE_THREADS" = "yes" ; then
36006 case "${host}" in
36007 *-*-mingw32* )
36008 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36009echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36010if test "${wx_cv_cflags_mthread+set}" = set; then
36011 echo $ECHO_N "(cached) $ECHO_C" >&6
36012else
36013
36014 CFLAGS_OLD="$CFLAGS"
36015 CFLAGS="$CFLAGS -mthreads"
36016 cat >conftest.$ac_ext <<_ACEOF
36017/* confdefs.h. */
36018_ACEOF
36019cat confdefs.h >>conftest.$ac_ext
36020cat >>conftest.$ac_ext <<_ACEOF
36021/* end confdefs.h. */
36022
36023int
36024main ()
36025{
36026
36027 ;
36028 return 0;
36029}
36030_ACEOF
36031rm -f conftest.$ac_objext
36032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36033 (eval $ac_compile) 2>conftest.er1
a848cd7e 36034 ac_status=$?
ac1cb8d3
VS
36035 grep -v '^ *+' conftest.er1 >conftest.err
36036 rm -f conftest.er1
36037 cat conftest.err >&5
a848cd7e
SC
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); } &&
6ebeb4c7 36040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36042 (eval $ac_try) 2>&5
36043 ac_status=$?
36044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36045 (exit $ac_status); }; } &&
36046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36048 (eval $ac_try) 2>&5
36049 ac_status=$?
36050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36051 (exit $ac_status); }; }; then
36052 wx_cv_cflags_mthread=yes
36053else
36054 echo "$as_me: failed program was:" >&5
36055sed 's/^/| /' conftest.$ac_ext >&5
36056
36057wx_cv_cflags_mthread=no
36058
36059fi
ac1cb8d3 36060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36061
36062
36063fi
36064echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36065echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36066
36067 if test "$wx_cv_cflags_mthread" = "yes"; then
36068 CXXFLAGS="$CXXFLAGS -mthreads"
36069 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36070 LDFLAGS="$LDFLAGS -mthreads"
36071 else
36072 CFLAGS="$CFLAGS_OLD"
36073 fi
36074 ;;
36075 *-pc-os2*emx )
36076 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36077 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36078 LDFLAGS="$LDFLAGS -Zmt"
36079 ;;
36080 esac
36081 fi
36082fi
36083
36084if test "$wxUSE_THREADS" = "yes"; then
36085 cat >>confdefs.h <<\_ACEOF
36086#define wxUSE_THREADS 1
36087_ACEOF
36088
36089
36090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36091else
36092 if test "$ac_cv_func_strtok_r" = "yes"; then
36093 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36094echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36095 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36096 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36097 echo "$as_me:$LINENO: result: yes" >&5
36098echo "${ECHO_T}yes" >&6
36099 else
36100 echo "$as_me:$LINENO: result: no" >&5
36101echo "${ECHO_T}no" >&6
36102 fi
36103 fi
36104fi
36105
36106if test "$WXGTK20" = 1 ; then
36107 cat >>confdefs.h <<_ACEOF
36108#define __WXGTK20__ $WXGTK20
36109_ACEOF
36110
36111 WXGTK12=1
36112fi
36113
36114if test "$WXGTK12" = 1 ; then
36115 cat >>confdefs.h <<_ACEOF
36116#define __WXGTK12__ $WXGTK12
36117_ACEOF
36118
36119fi
36120
36121if test "$WXGTK127" = 1 ; then
36122 cat >>confdefs.h <<_ACEOF
36123#define __WXGTK127__ $WXGTK127
36124_ACEOF
36125
36126fi
36127
36128if test "$WXGPE" = 1 ; then
36129 cat >>confdefs.h <<_ACEOF
36130#define __WXGPE__ $WXGPE
36131_ACEOF
36132
36133fi
36134
36135WXDEBUG=
36136
36137if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36138 WXDEBUG="-g"
36139 wxUSE_OPTIMISE=no
36140fi
36141
36142if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36143 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36144 if test "$GCC" = yes; then
36145 WXDEBUG="-ggdb"
36146 fi
a848cd7e
SC
36147fi
36148
36149if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36150 cat >>confdefs.h <<\_ACEOF
36151#define WXDEBUG 1
36152_ACEOF
36153
36154 WXDEBUG_DEFINE="-D__WXDEBUG__"
36155else
36156 if test "$wxUSE_GTK" = 1 ; then
36157 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36158 fi
36159fi
36160
36161if test "$wxUSE_MEM_TRACING" = "yes" ; then
36162 cat >>confdefs.h <<\_ACEOF
36163#define wxUSE_MEMORY_TRACING 1
36164_ACEOF
36165
36166 cat >>confdefs.h <<\_ACEOF
36167#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36168_ACEOF
36169
36170 cat >>confdefs.h <<\_ACEOF
36171#define wxUSE_DEBUG_NEW_ALWAYS 1
36172_ACEOF
36173
36174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36175fi
36176
36177if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36178 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36179fi
36180
36181PROFILE=
36182if test "$wxUSE_PROFILE" = "yes" ; then
36183 PROFILE=" -pg"
36184fi
36185
36186CODE_GEN_FLAGS=
36187CODE_GEN_FLAGS_CXX=
36188if test "$GCC" = "yes" ; then
36189 if test "$wxUSE_NO_RTTI" = "yes" ; then
36190 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36191 fi
36192 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36193 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36194 fi
36195 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36196 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36197 fi
36198
36199 case "${host}" in
36200 powerpc*-*-aix* )
36201 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36202 ;;
36203 *-hppa* )
36204 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36205 ;;
36206 esac
36207fi
36208
36209OPTIMISE=
36210if test "$wxUSE_OPTIMISE" = "no" ; then
36211 if test "$GCC" = yes ; then
36212 OPTIMISE="-O0"
36213 fi
36214else
36215 if test "$GCC" = yes ; then
36216 OPTIMISE="-O2"
36217
36218 case "${host}" in
36219 i586-*-*|i686-*-* )
36220 OPTIMISE="${OPTIMISE} "
36221 ;;
36222 esac
36223 else
36224 OPTIMISE="-O"
36225 fi
36226fi
36227
36228
36229if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36230 cat >>confdefs.h <<\_ACEOF
36231#define WXWIN_COMPATIBILITY_2_2 1
36232_ACEOF
36233
36234
36235 WXWIN_COMPATIBILITY_2_4="yes"
36236fi
36237
36238if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36239 cat >>confdefs.h <<\_ACEOF
36240#define WXWIN_COMPATIBILITY_2_4 1
36241_ACEOF
36242
36243fi
36244
36245
36246if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36247 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36248#define wxUSE_GUI 1
36249_ACEOF
36250
36251
370fd4c2 36252 fi
a848cd7e
SC
36253
36254
36255if test "$wxUSE_UNIX" = "yes"; then
36256 cat >>confdefs.h <<\_ACEOF
36257#define wxUSE_UNIX 1
36258_ACEOF
36259
36260fi
36261
36262
36263if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36264
36265 HAVE_DL_FUNCS=0
36266 HAVE_SHL_FUNCS=0
36267 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36268 if test "$USE_DARWIN" = 1; then
36269 HAVE_DL_FUNCS=1
47a7e797
MW
36270 elif test "$USE_DOS" = 1; then
36271 HAVE_DL_FUNCS=0
a848cd7e
SC
36272 else
36273
36274for ac_func in dlopen
36275do
36276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36277echo "$as_me:$LINENO: checking for $ac_func" >&5
36278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36279if eval "test \"\${$as_ac_var+set}\" = set"; then
36280 echo $ECHO_N "(cached) $ECHO_C" >&6
36281else
36282 cat >conftest.$ac_ext <<_ACEOF
36283/* confdefs.h. */
36284_ACEOF
36285cat confdefs.h >>conftest.$ac_ext
36286cat >>conftest.$ac_ext <<_ACEOF
36287/* end confdefs.h. */
ac1cb8d3
VS
36288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36290#define $ac_func innocuous_$ac_func
36291
a848cd7e
SC
36292/* System header to define __stub macros and hopefully few prototypes,
36293 which can conflict with char $ac_func (); below.
36294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36295 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36296
a848cd7e
SC
36297#ifdef __STDC__
36298# include <limits.h>
36299#else
36300# include <assert.h>
36301#endif
ac1cb8d3
VS
36302
36303#undef $ac_func
36304
a848cd7e
SC
36305/* Override any gcc2 internal prototype to avoid an error. */
36306#ifdef __cplusplus
36307extern "C"
36308{
36309#endif
36310/* We use char because int might match the return type of a gcc2
36311 builtin and then its argument prototype would still apply. */
36312char $ac_func ();
36313/* The GNU C library defines this for functions which it implements
36314 to always fail with ENOSYS. Some functions are actually named
36315 something starting with __ and the normal name is an alias. */
36316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36317choke me
36318#else
36319char (*f) () = $ac_func;
36320#endif
36321#ifdef __cplusplus
36322}
36323#endif
36324
36325int
36326main ()
36327{
36328return f != $ac_func;
36329 ;
36330 return 0;
36331}
36332_ACEOF
36333rm -f conftest.$ac_objext conftest$ac_exeext
36334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36335 (eval $ac_link) 2>conftest.er1
a848cd7e 36336 ac_status=$?
ac1cb8d3
VS
36337 grep -v '^ *+' conftest.er1 >conftest.err
36338 rm -f conftest.er1
36339 cat conftest.err >&5
a848cd7e
SC
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); } &&
6ebeb4c7 36342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36344 (eval $ac_try) 2>&5
36345 ac_status=$?
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); }; } &&
36348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36351 ac_status=$?
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; }; then
36354 eval "$as_ac_var=yes"
36355else
36356 echo "$as_me: failed program was:" >&5
36357sed 's/^/| /' conftest.$ac_ext >&5
36358
36359eval "$as_ac_var=no"
36360fi
ac1cb8d3
VS
36361rm -f conftest.err conftest.$ac_objext \
36362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36363fi
36364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36366if test `eval echo '${'$as_ac_var'}'` = yes; then
36367 cat >>confdefs.h <<_ACEOF
36368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36369_ACEOF
36370
36371 cat >>confdefs.h <<\_ACEOF
36372#define HAVE_DLOPEN 1
36373_ACEOF
36374
36375 HAVE_DL_FUNCS=1
36376
36377else
36378
36379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36380echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36381if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36382 echo $ECHO_N "(cached) $ECHO_C" >&6
36383else
36384 ac_check_lib_save_LIBS=$LIBS
36385LIBS="-ldl $LIBS"
36386cat >conftest.$ac_ext <<_ACEOF
36387/* confdefs.h. */
36388_ACEOF
36389cat confdefs.h >>conftest.$ac_ext
36390cat >>conftest.$ac_ext <<_ACEOF
36391/* end confdefs.h. */
36392
36393/* Override any gcc2 internal prototype to avoid an error. */
36394#ifdef __cplusplus
36395extern "C"
36396#endif
36397/* We use char because int might match the return type of a gcc2
36398 builtin and then its argument prototype would still apply. */
36399char dlopen ();
36400int
36401main ()
36402{
36403dlopen ();
36404 ;
36405 return 0;
36406}
36407_ACEOF
36408rm -f conftest.$ac_objext conftest$ac_exeext
36409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36410 (eval $ac_link) 2>conftest.er1
a848cd7e 36411 ac_status=$?
ac1cb8d3
VS
36412 grep -v '^ *+' conftest.er1 >conftest.err
36413 rm -f conftest.er1
36414 cat conftest.err >&5
a848cd7e
SC
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); } &&
6ebeb4c7 36417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36420 ac_status=$?
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36426 ac_status=$?
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 ac_cv_lib_dl_dlopen=yes
36430else
36431 echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434ac_cv_lib_dl_dlopen=no
36435fi
ac1cb8d3
VS
36436rm -f conftest.err conftest.$ac_objext \
36437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36438LIBS=$ac_check_lib_save_LIBS
36439fi
36440echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36441echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36442if test $ac_cv_lib_dl_dlopen = yes; then
36443
36444 cat >>confdefs.h <<\_ACEOF
36445#define HAVE_DLOPEN 1
36446_ACEOF
36447
36448 HAVE_DL_FUNCS=1
36449 DL_LINK=" -ldl$DL_LINK"
36450
36451else
36452
36453
36454for ac_func in shl_load
36455do
36456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36457echo "$as_me:$LINENO: checking for $ac_func" >&5
36458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36459if eval "test \"\${$as_ac_var+set}\" = set"; then
36460 echo $ECHO_N "(cached) $ECHO_C" >&6
36461else
36462 cat >conftest.$ac_ext <<_ACEOF
36463/* confdefs.h. */
36464_ACEOF
36465cat confdefs.h >>conftest.$ac_ext
36466cat >>conftest.$ac_ext <<_ACEOF
36467/* end confdefs.h. */
ac1cb8d3
VS
36468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36470#define $ac_func innocuous_$ac_func
36471
a848cd7e
SC
36472/* System header to define __stub macros and hopefully few prototypes,
36473 which can conflict with char $ac_func (); below.
36474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36476
a848cd7e
SC
36477#ifdef __STDC__
36478# include <limits.h>
36479#else
36480# include <assert.h>
36481#endif
ac1cb8d3
VS
36482
36483#undef $ac_func
36484
a848cd7e
SC
36485/* Override any gcc2 internal prototype to avoid an error. */
36486#ifdef __cplusplus
36487extern "C"
36488{
36489#endif
36490/* We use char because int might match the return type of a gcc2
36491 builtin and then its argument prototype would still apply. */
36492char $ac_func ();
36493/* The GNU C library defines this for functions which it implements
36494 to always fail with ENOSYS. Some functions are actually named
36495 something starting with __ and the normal name is an alias. */
36496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36497choke me
36498#else
36499char (*f) () = $ac_func;
36500#endif
36501#ifdef __cplusplus
36502}
36503#endif
36504
36505int
36506main ()
36507{
36508return f != $ac_func;
36509 ;
36510 return 0;
36511}
36512_ACEOF
36513rm -f conftest.$ac_objext conftest$ac_exeext
36514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36515 (eval $ac_link) 2>conftest.er1
a848cd7e 36516 ac_status=$?
ac1cb8d3
VS
36517 grep -v '^ *+' conftest.er1 >conftest.err
36518 rm -f conftest.er1
36519 cat conftest.err >&5
a848cd7e
SC
36520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521 (exit $ac_status); } &&
6ebeb4c7 36522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36525 ac_status=$?
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } &&
36528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530 (eval $ac_try) 2>&5
36531 ac_status=$?
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); }; }; then
36534 eval "$as_ac_var=yes"
36535else
36536 echo "$as_me: failed program was:" >&5
36537sed 's/^/| /' conftest.$ac_ext >&5
36538
36539eval "$as_ac_var=no"
36540fi
ac1cb8d3
VS
36541rm -f conftest.err conftest.$ac_objext \
36542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36543fi
36544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36546if test `eval echo '${'$as_ac_var'}'` = yes; then
36547 cat >>confdefs.h <<_ACEOF
36548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36549_ACEOF
36550
36551 cat >>confdefs.h <<\_ACEOF
36552#define HAVE_SHL_LOAD 1
36553_ACEOF
36554
36555 HAVE_SHL_FUNCS=1
36556
36557else
36558
36559 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36560echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36561if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36562 echo $ECHO_N "(cached) $ECHO_C" >&6
36563else
36564 ac_check_lib_save_LIBS=$LIBS
36565LIBS="-lshl_load $LIBS"
36566cat >conftest.$ac_ext <<_ACEOF
36567/* confdefs.h. */
36568_ACEOF
36569cat confdefs.h >>conftest.$ac_ext
36570cat >>conftest.$ac_ext <<_ACEOF
36571/* end confdefs.h. */
36572
36573/* Override any gcc2 internal prototype to avoid an error. */
36574#ifdef __cplusplus
36575extern "C"
36576#endif
36577/* We use char because int might match the return type of a gcc2
36578 builtin and then its argument prototype would still apply. */
36579char dld ();
36580int
36581main ()
36582{
36583dld ();
36584 ;
36585 return 0;
36586}
36587_ACEOF
36588rm -f conftest.$ac_objext conftest$ac_exeext
36589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36590 (eval $ac_link) 2>conftest.er1
a848cd7e 36591 ac_status=$?
ac1cb8d3
VS
36592 grep -v '^ *+' conftest.er1 >conftest.err
36593 rm -f conftest.er1
36594 cat conftest.err >&5
a848cd7e
SC
36595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596 (exit $ac_status); } &&
6ebeb4c7 36597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36599 (eval $ac_try) 2>&5
36600 ac_status=$?
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); }; } &&
36603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36606 ac_status=$?
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; }; then
36609 ac_cv_lib_shl_load_dld=yes
36610else
36611 echo "$as_me: failed program was:" >&5
36612sed 's/^/| /' conftest.$ac_ext >&5
36613
36614ac_cv_lib_shl_load_dld=no
36615fi
ac1cb8d3
VS
36616rm -f conftest.err conftest.$ac_objext \
36617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36618LIBS=$ac_check_lib_save_LIBS
36619fi
36620echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36621echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36622if test $ac_cv_lib_shl_load_dld = yes; then
36623
36624 HAVE_SHL_FUNCS=1
36625 DL_LINK=" -ldld$DL_LINK"
36626
36627fi
36628
36629
36630fi
36631done
36632
36633
36634fi
36635
36636
36637fi
36638done
36639
36640
36641 if test "$HAVE_DL_FUNCS" = 1; then
36642
36643for ac_func in dlerror
36644do
36645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36646echo "$as_me:$LINENO: checking for $ac_func" >&5
36647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36648if eval "test \"\${$as_ac_var+set}\" = set"; then
36649 echo $ECHO_N "(cached) $ECHO_C" >&6
36650else
36651 cat >conftest.$ac_ext <<_ACEOF
36652/* confdefs.h. */
36653_ACEOF
36654cat confdefs.h >>conftest.$ac_ext
36655cat >>conftest.$ac_ext <<_ACEOF
36656/* end confdefs.h. */
ac1cb8d3
VS
36657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36659#define $ac_func innocuous_$ac_func
36660
a848cd7e
SC
36661/* System header to define __stub macros and hopefully few prototypes,
36662 which can conflict with char $ac_func (); below.
36663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36664 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36665
a848cd7e
SC
36666#ifdef __STDC__
36667# include <limits.h>
36668#else
36669# include <assert.h>
36670#endif
ac1cb8d3
VS
36671
36672#undef $ac_func
36673
a848cd7e
SC
36674/* Override any gcc2 internal prototype to avoid an error. */
36675#ifdef __cplusplus
36676extern "C"
36677{
36678#endif
36679/* We use char because int might match the return type of a gcc2
36680 builtin and then its argument prototype would still apply. */
36681char $ac_func ();
36682/* The GNU C library defines this for functions which it implements
36683 to always fail with ENOSYS. Some functions are actually named
36684 something starting with __ and the normal name is an alias. */
36685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36686choke me
36687#else
36688char (*f) () = $ac_func;
36689#endif
36690#ifdef __cplusplus
36691}
36692#endif
36693
36694int
36695main ()
36696{
36697return f != $ac_func;
36698 ;
36699 return 0;
36700}
36701_ACEOF
36702rm -f conftest.$ac_objext conftest$ac_exeext
36703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36704 (eval $ac_link) 2>conftest.er1
a848cd7e 36705 ac_status=$?
ac1cb8d3
VS
36706 grep -v '^ *+' conftest.er1 >conftest.err
36707 rm -f conftest.er1
36708 cat conftest.err >&5
a848cd7e
SC
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); } &&
6ebeb4c7 36711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713 (eval $ac_try) 2>&5
36714 ac_status=$?
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); }; } &&
36717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719 (eval $ac_try) 2>&5
36720 ac_status=$?
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); }; }; then
36723 eval "$as_ac_var=yes"
36724else
36725 echo "$as_me: failed program was:" >&5
36726sed 's/^/| /' conftest.$ac_ext >&5
36727
36728eval "$as_ac_var=no"
36729fi
ac1cb8d3
VS
36730rm -f conftest.err conftest.$ac_objext \
36731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36732fi
36733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36735if test `eval echo '${'$as_ac_var'}'` = yes; then
36736 cat >>confdefs.h <<_ACEOF
36737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36738_ACEOF
36739 cat >>confdefs.h <<\_ACEOF
36740#define HAVE_DLERROR 1
36741_ACEOF
36742
36743else
36744
36745 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36746echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36747if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36748 echo $ECHO_N "(cached) $ECHO_C" >&6
36749else
36750 ac_check_lib_save_LIBS=$LIBS
36751LIBS="-ldl $LIBS"
36752cat >conftest.$ac_ext <<_ACEOF
36753/* confdefs.h. */
36754_ACEOF
36755cat confdefs.h >>conftest.$ac_ext
36756cat >>conftest.$ac_ext <<_ACEOF
36757/* end confdefs.h. */
36758
36759/* Override any gcc2 internal prototype to avoid an error. */
36760#ifdef __cplusplus
36761extern "C"
36762#endif
36763/* We use char because int might match the return type of a gcc2
36764 builtin and then its argument prototype would still apply. */
36765char dlerror ();
36766int
36767main ()
36768{
36769dlerror ();
36770 ;
36771 return 0;
36772}
36773_ACEOF
36774rm -f conftest.$ac_objext conftest$ac_exeext
36775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36776 (eval $ac_link) 2>conftest.er1
a848cd7e 36777 ac_status=$?
ac1cb8d3
VS
36778 grep -v '^ *+' conftest.er1 >conftest.err
36779 rm -f conftest.er1
36780 cat conftest.err >&5
a848cd7e
SC
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); } &&
6ebeb4c7 36783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36785 (eval $ac_try) 2>&5
36786 ac_status=$?
36787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); }; } &&
36789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36791 (eval $ac_try) 2>&5
36792 ac_status=$?
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); }; }; then
36795 ac_cv_lib_dl_dlerror=yes
36796else
36797 echo "$as_me: failed program was:" >&5
36798sed 's/^/| /' conftest.$ac_ext >&5
36799
36800ac_cv_lib_dl_dlerror=no
36801fi
ac1cb8d3
VS
36802rm -f conftest.err conftest.$ac_objext \
36803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36804LIBS=$ac_check_lib_save_LIBS
36805fi
36806echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36807echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36808if test $ac_cv_lib_dl_dlerror = yes; then
36809 cat >>confdefs.h <<\_ACEOF
36810#define HAVE_DLERROR 1
36811_ACEOF
36812
36813fi
36814
36815
36816
36817fi
36818done
36819
36820 fi
36821 fi
36822
36823 if test "$HAVE_DL_FUNCS" = 0; then
36824 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36825 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36826 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36827echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36828 wxUSE_DYNAMIC_LOADER=no
36829 wxUSE_DYNLIB_CLASS=no
36830 else
36831 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36832echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36833 fi
36834 fi
36835 fi
36836 fi
36837fi
36838
36839if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36840 cat >>confdefs.h <<\_ACEOF
36841#define wxUSE_DYNAMIC_LOADER 1
36842_ACEOF
36843
36844fi
36845if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36846 cat >>confdefs.h <<\_ACEOF
36847#define wxUSE_DYNLIB_CLASS 1
36848_ACEOF
36849
36850fi
36851
36852
36853
36854if test "$wxUSE_PLUGINS" = "yes" ; then
36855 if test "$wxUSE_SHARED" = "no" ; then
36856 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36857echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36858 wxUSE_PLUGINS=no
36859 fi
36860 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36861 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36862echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36863 wxUSE_PLUGINS=no
36864 fi
36865 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36866 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36867echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36868 wxUSE_PLUGINS=no
36869 fi
36870 if test "$wxUSE_PLUGINS" = "yes" ; then
36871 cat >>confdefs.h <<\_ACEOF
36872#define wxUSE_PLUGINS 1
36873_ACEOF
36874
36875 fi
36876fi
36877
36878
36879if test "$wxUSE_STL" = "yes"; then
36880 cat >>confdefs.h <<\_ACEOF
36881#define wxUSE_STL 1
36882_ACEOF
36883
36884fi
36885
36886if test "$wxUSE_APPLE_IEEE" = "yes"; then
36887 cat >>confdefs.h <<\_ACEOF
36888#define wxUSE_APPLE_IEEE 1
36889_ACEOF
36890
36891fi
36892
36893if test "$wxUSE_TIMER" = "yes"; then
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_TIMER 1
36896_ACEOF
36897
36898fi
36899
9c112555 36900if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36901
36902for ac_header in sys/soundcard.h
36903do
36904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36905if eval "test \"\${$as_ac_Header+set}\" = set"; then
36906 echo "$as_me:$LINENO: checking for $ac_header" >&5
36907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36908if eval "test \"\${$as_ac_Header+set}\" = set"; then
36909 echo $ECHO_N "(cached) $ECHO_C" >&6
36910fi
36911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36913else
36914 # Is the header compilable?
36915echo "$as_me:$LINENO: checking $ac_header usability" >&5
36916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36917cat >conftest.$ac_ext <<_ACEOF
36918/* confdefs.h. */
36919_ACEOF
36920cat confdefs.h >>conftest.$ac_ext
36921cat >>conftest.$ac_ext <<_ACEOF
36922/* end confdefs.h. */
36923$ac_includes_default
36924#include <$ac_header>
36925_ACEOF
36926rm -f conftest.$ac_objext
36927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36928 (eval $ac_compile) 2>conftest.er1
a848cd7e 36929 ac_status=$?
ac1cb8d3
VS
36930 grep -v '^ *+' conftest.er1 >conftest.err
36931 rm -f conftest.er1
36932 cat conftest.err >&5
a848cd7e
SC
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); } &&
6ebeb4c7 36935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36937 (eval $ac_try) 2>&5
36938 ac_status=$?
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); }; } &&
36941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36943 (eval $ac_try) 2>&5
36944 ac_status=$?
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); }; }; then
36947 ac_header_compiler=yes
36948else
36949 echo "$as_me: failed program was:" >&5
36950sed 's/^/| /' conftest.$ac_ext >&5
36951
36952ac_header_compiler=no
36953fi
ac1cb8d3 36954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36956echo "${ECHO_T}$ac_header_compiler" >&6
36957
36958# Is the header present?
36959echo "$as_me:$LINENO: checking $ac_header presence" >&5
36960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36961cat >conftest.$ac_ext <<_ACEOF
36962/* confdefs.h. */
36963_ACEOF
36964cat confdefs.h >>conftest.$ac_ext
36965cat >>conftest.$ac_ext <<_ACEOF
36966/* end confdefs.h. */
36967#include <$ac_header>
36968_ACEOF
36969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36971 ac_status=$?
36972 grep -v '^ *+' conftest.er1 >conftest.err
36973 rm -f conftest.er1
36974 cat conftest.err >&5
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); } >/dev/null; then
36977 if test -s conftest.err; then
36978 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36980 else
36981 ac_cpp_err=
36982 fi
36983else
36984 ac_cpp_err=yes
36985fi
36986if test -z "$ac_cpp_err"; then
36987 ac_header_preproc=yes
36988else
36989 echo "$as_me: failed program was:" >&5
36990sed 's/^/| /' conftest.$ac_ext >&5
36991
36992 ac_header_preproc=no
36993fi
36994rm -f conftest.err conftest.$ac_ext
36995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36996echo "${ECHO_T}$ac_header_preproc" >&6
36997
36998# So? What about this header?
ac1cb8d3
VS
36999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37000 yes:no: )
a848cd7e
SC
37001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37005 ac_header_preproc=yes
a848cd7e 37006 ;;
ac1cb8d3 37007 no:yes:* )
a848cd7e
SC
37008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37020 (
37021 cat <<\_ASBOX
ac1cb8d3
VS
37022## ----------------------------------------- ##
37023## Report this to wx-dev@lists.wxwidgets.org ##
37024## ----------------------------------------- ##
a848cd7e
SC
37025_ASBOX
37026 ) |
37027 sed "s/^/$as_me: WARNING: /" >&2
37028 ;;
37029esac
37030echo "$as_me:$LINENO: checking for $ac_header" >&5
37031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37032if eval "test \"\${$as_ac_Header+set}\" = set"; then
37033 echo $ECHO_N "(cached) $ECHO_C" >&6
37034else
ac1cb8d3 37035 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37036fi
37037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37039
37040fi
37041if test `eval echo '${'$as_ac_Header'}'` = yes; then
37042 cat >>confdefs.h <<_ACEOF
37043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37044_ACEOF
37045
9c112555
MW
37046else
37047 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
37048fi
37049
37050done
37051
9c112555
MW
37052fi
37053WITH_PLUGIN_SDL=0
37054if test "$wxUSE_SOUND" = "yes"; then
37055 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37056 if test "$wxUSE_LIBSDL" != "no"; then
37057
37058# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37059if test "${with_sdl_prefix+set}" = set; then
37060 withval="$with_sdl_prefix"
37061 sdl_prefix="$withval"
37062else
37063 sdl_prefix=""
37064fi;
37065
37066# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37067if test "${with_sdl_exec_prefix+set}" = set; then
37068 withval="$with_sdl_exec_prefix"
37069 sdl_exec_prefix="$withval"
37070else
37071 sdl_exec_prefix=""
37072fi;
37073# Check whether --enable-sdltest or --disable-sdltest was given.
37074if test "${enable_sdltest+set}" = set; then
37075 enableval="$enable_sdltest"
37076
37077else
37078 enable_sdltest=yes
37079fi;
37080
37081 if test x$sdl_exec_prefix != x ; then
37082 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37083 if test x${SDL_CONFIG+set} != xset ; then
37084 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37085 fi
37086 fi
37087 if test x$sdl_prefix != x ; then
37088 sdl_args="$sdl_args --prefix=$sdl_prefix"
37089 if test x${SDL_CONFIG+set} != xset ; then
37090 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37091 fi
37092 fi
37093
37094
37095 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37096 # Extract the first word of "sdl-config", so it can be a program name with args.
37097set dummy sdl-config; ac_word=$2
37098echo "$as_me:$LINENO: checking for $ac_word" >&5
37099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37100if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37101 echo $ECHO_N "(cached) $ECHO_C" >&6
37102else
37103 case $SDL_CONFIG in
37104 [\\/]* | ?:[\\/]*)
37105 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37106 ;;
37107 *)
37108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37109for as_dir in $PATH
37110do
37111 IFS=$as_save_IFS
37112 test -z "$as_dir" && as_dir=.
37113 for ac_exec_ext in '' $ac_executable_extensions; do
37114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37115 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37117 break 2
37118 fi
37119done
37120done
37121
37122 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37123 ;;
37124esac
37125fi
37126SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37127
37128if test -n "$SDL_CONFIG"; then
37129 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37130echo "${ECHO_T}$SDL_CONFIG" >&6
37131else
37132 echo "$as_me:$LINENO: result: no" >&5
37133echo "${ECHO_T}no" >&6
37134fi
37135
37136 min_sdl_version=1.2.0
37137 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37138echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37139 no_sdl=""
37140 if test "$SDL_CONFIG" = "no" ; then
37141 no_sdl=yes
37142 else
37143 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37144 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37145
37146 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37148 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37150 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37151 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37152 if test "x$enable_sdltest" = "xyes" ; then
37153 ac_save_CFLAGS="$CFLAGS"
94acd38e 37154 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37155 ac_save_LIBS="$LIBS"
37156 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37157 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37158 LIBS="$LIBS $SDL_LIBS"
37159 rm -f conf.sdltest
37160 if test "$cross_compiling" = yes; then
37161 echo $ac_n "cross compiling; assumed OK... $ac_c"
37162else
37163 cat >conftest.$ac_ext <<_ACEOF
37164/* confdefs.h. */
37165_ACEOF
37166cat confdefs.h >>conftest.$ac_ext
37167cat >>conftest.$ac_ext <<_ACEOF
37168/* end confdefs.h. */
37169
37170#include <stdio.h>
37171#include <stdlib.h>
37172#include <string.h>
37173#include "SDL.h"
37174
37175char*
37176my_strdup (char *str)
37177{
37178 char *new_str;
37179
37180 if (str)
37181 {
37182 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37183 strcpy (new_str, str);
37184 }
37185 else
37186 new_str = NULL;
37187
37188 return new_str;
37189}
37190
37191int main (int argc, char *argv[])
37192{
37193 int major, minor, micro;
37194 char *tmp_version;
37195
37196 /* This hangs on some systems (?)
37197 system ("touch conf.sdltest");
37198 */
37199 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37200
37201 /* HP/UX 9 (%@#!) writes to sscanf strings */
37202 tmp_version = my_strdup("$min_sdl_version");
37203 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37204 printf("%s, bad version string\n", "$min_sdl_version");
37205 exit(1);
37206 }
37207
37208 if (($sdl_major_version > major) ||
37209 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37210 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37211 {
37212 return 0;
37213 }
37214 else
37215 {
37216 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37217 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37218 printf("*** best to upgrade to the required version.\n");
37219 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37220 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37221 printf("*** config.cache before re-running configure\n");
37222 return 1;
37223 }
37224}
37225
37226
37227_ACEOF
37228rm -f conftest$ac_exeext
37229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37230 (eval $ac_link) 2>&5
37231 ac_status=$?
37232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37236 ac_status=$?
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; }; then
37239 :
37240else
37241 echo "$as_me: program exited with status $ac_status" >&5
37242echo "$as_me: failed program was:" >&5
37243sed 's/^/| /' conftest.$ac_ext >&5
37244
37245( exit $ac_status )
37246no_sdl=yes
37247fi
ac1cb8d3 37248rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37249fi
37250 CFLAGS="$ac_save_CFLAGS"
94acd38e 37251 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37252 LIBS="$ac_save_LIBS"
37253 fi
37254 fi
37255 if test "x$no_sdl" = x ; then
37256 echo "$as_me:$LINENO: result: yes" >&5
37257echo "${ECHO_T}yes" >&6
37258
37259 EXTRALIBS_SDL="$SDL_LIBS"
37260 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37261 cat >>confdefs.h <<\_ACEOF
37262#define wxUSE_LIBSDL 1
37263_ACEOF
37264
37265
37266 else
37267 echo "$as_me:$LINENO: result: no" >&5
37268echo "${ECHO_T}no" >&6
37269 if test "$SDL_CONFIG" = "no" ; then
37270 echo "*** The sdl-config script installed by SDL could not be found"
37271 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37272 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37273 echo "*** full path to sdl-config."
37274 else
37275 if test -f conf.sdltest ; then
37276 :
37277 else
37278 echo "*** Could not run SDL test program, checking why..."
37279 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37280 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37281 LIBS="$LIBS $SDL_LIBS"
37282 cat >conftest.$ac_ext <<_ACEOF
37283/* confdefs.h. */
37284_ACEOF
37285cat confdefs.h >>conftest.$ac_ext
37286cat >>conftest.$ac_ext <<_ACEOF
37287/* end confdefs.h. */
37288
37289#include <stdio.h>
37290#include "SDL.h"
37291
37292int main(int argc, char *argv[])
37293{ return 0; }
37294#undef main
37295#define main K_and_R_C_main
37296
37297int
37298main ()
37299{
37300 return 0;
37301 ;
37302 return 0;
37303}
37304_ACEOF
37305rm -f conftest.$ac_objext conftest$ac_exeext
37306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37307 (eval $ac_link) 2>conftest.er1
a848cd7e 37308 ac_status=$?
ac1cb8d3
VS
37309 grep -v '^ *+' conftest.er1 >conftest.err
37310 rm -f conftest.er1
37311 cat conftest.err >&5
a848cd7e
SC
37312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); } &&
6ebeb4c7 37314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37316 (eval $ac_try) 2>&5
37317 ac_status=$?
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); }; } &&
37320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322 (eval $ac_try) 2>&5
37323 ac_status=$?
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); }; }; then
37326 echo "*** The test program compiled, but did not run. This usually means"
37327 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37328 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37329 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37330 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37331 echo "*** is required on your system"
37332 echo "***"
37333 echo "*** If you have an old version installed, it is best to remove it, although"
37334 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37335else
37336 echo "$as_me: failed program was:" >&5
37337sed 's/^/| /' conftest.$ac_ext >&5
37338
37339 echo "*** The test program failed to compile or link. See the file config.log for the"
37340 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37341 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37342 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37343fi
ac1cb8d3
VS
37344rm -f conftest.err conftest.$ac_objext \
37345 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37346 CFLAGS="$ac_save_CFLAGS"
94acd38e 37347 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37348 LIBS="$ac_save_LIBS"
37349 fi
37350 fi
37351 SDL_CFLAGS=""
37352 SDL_LIBS=""
37353 wxUSE_LIBSDL="no"
37354 fi
37355
37356
37357 rm -f conf.sdltest
37358
37359 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37360 WITH_PLUGIN_SDL=1
37361 fi
37362 fi
37363 fi
37364
37365 cat >>confdefs.h <<\_ACEOF
37366#define wxUSE_SOUND 1
37367_ACEOF
37368
37369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37370fi
37371
d1c38808
VZ
37372if test "$WXGTK20" = 1; then
37373 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37374 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37375
37376
37377 succeeded=no
37378
37379 if test -z "$PKG_CONFIG"; then
37380 # Extract the first word of "pkg-config", so it can be a program name with args.
37381set dummy pkg-config; ac_word=$2
37382echo "$as_me:$LINENO: checking for $ac_word" >&5
37383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37384if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37385 echo $ECHO_N "(cached) $ECHO_C" >&6
37386else
37387 case $PKG_CONFIG in
37388 [\\/]* | ?:[\\/]*)
37389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37390 ;;
37391 *)
37392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37393for as_dir in $PATH
37394do
37395 IFS=$as_save_IFS
37396 test -z "$as_dir" && as_dir=.
37397 for ac_exec_ext in '' $ac_executable_extensions; do
37398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37401 break 2
37402 fi
37403done
37404done
37405
37406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37407 ;;
37408esac
37409fi
37410PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37411
37412if test -n "$PKG_CONFIG"; then
37413 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37414echo "${ECHO_T}$PKG_CONFIG" >&6
37415else
37416 echo "$as_me:$LINENO: result: no" >&5
37417echo "${ECHO_T}no" >&6
37418fi
37419
37420 fi
37421
37422 if test "$PKG_CONFIG" = "no" ; then
37423 echo "*** The pkg-config script could not be found. Make sure it is"
37424 echo "*** in your path, or set the PKG_CONFIG environment variable"
37425 echo "*** to the full path to pkg-config."
37426 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37427 else
37428 PKG_CONFIG_MIN_VERSION=0.9.0
37429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37430 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37431echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37432
ffa762ff 37433 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37434 echo "$as_me:$LINENO: result: yes" >&5
37435echo "${ECHO_T}yes" >&6
37436 succeeded=yes
37437
37438 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37439echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37440 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37441 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37442echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37443
37444 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37445echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37446 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37447 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37448echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37449 else
37450 LIBGNOMEPRINTUI_CFLAGS=""
37451 LIBGNOMEPRINTUI_LIBS=""
37452 ## If we have a custom action on failure, don't print errors, but
37453 ## do set a variable so people can do so.
ffa762ff 37454 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37455
37456 fi
37457
37458
37459
37460 else
37461 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37462 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37463 fi
37464 fi
37465
37466 if test $succeeded = yes; then
37467
d1c38808
VZ
37468 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37469 cat >>confdefs.h <<\_ACEOF
37470#define wxUSE_LIBGNOMEPRINT 1
37471_ACEOF
37472
37473
37474 else
37475
37476 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37477echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37478 wxUSE_LIBGNOMEPRINT="no"
37479
37480
37481 fi
37482
37483 fi
37484 fi
37485fi
37486
37487
a848cd7e
SC
37488if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37489 cat >>confdefs.h <<\_ACEOF
37490#define wxUSE_CMDLINE_PARSER 1
37491_ACEOF
37492
37493fi
37494
37495if test "$wxUSE_STOPWATCH" = "yes"; then
37496 cat >>confdefs.h <<\_ACEOF
37497#define wxUSE_STOPWATCH 1
37498_ACEOF
37499
37500fi
37501
37502if test "$wxUSE_DATETIME" = "yes"; then
37503 cat >>confdefs.h <<\_ACEOF
37504#define wxUSE_DATETIME 1
37505_ACEOF
37506
37507fi
37508
37509if test "$wxUSE_FILE" = "yes"; then
37510 cat >>confdefs.h <<\_ACEOF
37511#define wxUSE_FILE 1
37512_ACEOF
37513
37514fi
37515
37516if test "$wxUSE_FFILE" = "yes"; then
37517 cat >>confdefs.h <<\_ACEOF
37518#define wxUSE_FFILE 1
37519_ACEOF
37520
37521fi
37522
37523if test "$wxUSE_FILESYSTEM" = "yes"; then
37524 cat >>confdefs.h <<\_ACEOF
37525#define wxUSE_FILESYSTEM 1
37526_ACEOF
37527
37528fi
37529
37530if test "$wxUSE_FS_ZIP" = "yes"; then
37531 cat >>confdefs.h <<\_ACEOF
37532#define wxUSE_FS_ZIP 1
37533_ACEOF
37534
37535fi
37536
9e8e867f 37537if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37538 cat >>confdefs.h <<\_ACEOF
9e8e867f 37539#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37540_ACEOF
37541
37542fi
37543
37544if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37545 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37546 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37547echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37548 elif test "$wxUSE_ZLIB" = "no"; then
37549 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37550echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37551 else
37552 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37553#define wxUSE_ZIPSTREAM 1
37554_ACEOF
37555
81f90336 37556 fi
a848cd7e
SC
37557fi
37558
a848cd7e 37559if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37560 if test "$USE_UNIX" != 1; then
37561 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37562echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37563 wxUSE_ON_FATAL_EXCEPTION=no
37564 else
37565 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37566#define wxUSE_ON_FATAL_EXCEPTION 1
37567_ACEOF
37568
18228ab4 37569 fi
a848cd7e
SC
37570fi
37571
eaff0f0d
VZ
37572if test "$wxUSE_STACKWALKER" = "yes"; then
37573 cat >>confdefs.h <<\_ACEOF
37574#define wxUSE_STACKWALKER 1
37575_ACEOF
37576
37577fi
37578
36b6448c 37579if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37580 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37581 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37582echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37583 wxUSE_DEBUGREPORT=no
37584 else
37585 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37586#define wxUSE_DEBUGREPORT 1
37587_ACEOF
37588
21dfc162
MW
37589 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37591 fi
dfe0c803 37592 fi
36b6448c
VZ
37593fi
37594
a848cd7e
SC
37595if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37596 cat >>confdefs.h <<\_ACEOF
37597#define wxUSE_SNGLINST_CHECKER 1
37598_ACEOF
37599
37600fi
37601
37602if test "$wxUSE_BUSYINFO" = "yes"; then
37603 cat >>confdefs.h <<\_ACEOF
37604#define wxUSE_BUSYINFO 1
37605_ACEOF
37606
37607fi
37608
37609if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37610 cat >>confdefs.h <<\_ACEOF
37611#define wxUSE_STD_IOSTREAM 1
37612_ACEOF
37613
37614fi
37615
59746b65
MW
37616if test "$wxUSE_STD_STRING" = "yes"; then
37617 cat >>confdefs.h <<\_ACEOF
37618#define wxUSE_STD_STRING 1
37619_ACEOF
37620
37621fi
37622
07158944
VZ
37623if test "$wxUSE_STDPATHS" = "yes"; then
37624 cat >>confdefs.h <<\_ACEOF
37625#define wxUSE_STDPATHS 1
37626_ACEOF
37627
37628fi
37629
a848cd7e
SC
37630if test "$wxUSE_TEXTBUFFER" = "yes"; then
37631 cat >>confdefs.h <<\_ACEOF
37632#define wxUSE_TEXTBUFFER 1
37633_ACEOF
37634
37635fi
37636
37637if test "$wxUSE_TEXTFILE" = "yes"; then
37638 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37639 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37640echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37641 else
37642 cat >>confdefs.h <<\_ACEOF
37643#define wxUSE_TEXTFILE 1
37644_ACEOF
37645
37646 fi
37647fi
37648
37649if test "$wxUSE_CONFIG" = "yes" ; then
37650 if test "$wxUSE_TEXTFILE" != "yes"; then
37651 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37652echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37653 else
37654 cat >>confdefs.h <<\_ACEOF
37655#define wxUSE_CONFIG 1
89be85c2
VS
37656_ACEOF
37657
37658 cat >>confdefs.h <<\_ACEOF
37659#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37660_ACEOF
37661
37662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37663 fi
37664fi
37665
37666if test "$wxUSE_INTL" = "yes" ; then
37667 if test "$wxUSE_FILE" != "yes"; then
37668 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37669echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37670 else
37671 cat >>confdefs.h <<\_ACEOF
37672#define wxUSE_INTL 1
37673_ACEOF
37674
37675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37676 GUIDIST="$GUIDIST INTL_DIST"
37677 fi
37678fi
37679
37680if test "$wxUSE_LOG" = "yes"; then
37681 cat >>confdefs.h <<\_ACEOF
37682#define wxUSE_LOG 1
37683_ACEOF
37684
37685
37686 if test "$wxUSE_LOGGUI" = "yes"; then
37687 cat >>confdefs.h <<\_ACEOF
37688#define wxUSE_LOGGUI 1
37689_ACEOF
37690
37691 fi
37692
37693 if test "$wxUSE_LOGWINDOW" = "yes"; then
37694 cat >>confdefs.h <<\_ACEOF
37695#define wxUSE_LOGWINDOW 1
37696_ACEOF
37697
37698 fi
37699
37700 if test "$wxUSE_LOGDIALOG" = "yes"; then
37701 cat >>confdefs.h <<\_ACEOF
37702#define wxUSE_LOG_DIALOG 1
37703_ACEOF
37704
37705 fi
0b78747f
MW
37706
37707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37708fi
37709
37710if test "$wxUSE_LONGLONG" = "yes"; then
37711 cat >>confdefs.h <<\_ACEOF
37712#define wxUSE_LONGLONG 1
37713_ACEOF
37714
37715fi
37716
37717if test "$wxUSE_GEOMETRY" = "yes"; then
37718 cat >>confdefs.h <<\_ACEOF
37719#define wxUSE_GEOMETRY 1
37720_ACEOF
37721
37722fi
37723
a848cd7e
SC
37724if test "$wxUSE_STREAMS" = "yes" ; then
37725 cat >>confdefs.h <<\_ACEOF
37726#define wxUSE_STREAMS 1
37727_ACEOF
37728
37729fi
37730
37731
37732if test "$wxUSE_DATETIME" = "yes"; then
37733
37734for ac_func in strptime
37735do
37736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37737echo "$as_me:$LINENO: checking for $ac_func" >&5
37738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37739if eval "test \"\${$as_ac_var+set}\" = set"; then
37740 echo $ECHO_N "(cached) $ECHO_C" >&6
37741else
37742 cat >conftest.$ac_ext <<_ACEOF
37743/* confdefs.h. */
37744_ACEOF
37745cat confdefs.h >>conftest.$ac_ext
37746cat >>conftest.$ac_ext <<_ACEOF
37747/* end confdefs.h. */
ac1cb8d3
VS
37748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37750#define $ac_func innocuous_$ac_func
37751
a848cd7e
SC
37752/* System header to define __stub macros and hopefully few prototypes,
37753 which can conflict with char $ac_func (); below.
37754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37755 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37756
a848cd7e
SC
37757#ifdef __STDC__
37758# include <limits.h>
37759#else
37760# include <assert.h>
37761#endif
ac1cb8d3
VS
37762
37763#undef $ac_func
37764
a848cd7e
SC
37765/* Override any gcc2 internal prototype to avoid an error. */
37766#ifdef __cplusplus
37767extern "C"
37768{
37769#endif
37770/* We use char because int might match the return type of a gcc2
37771 builtin and then its argument prototype would still apply. */
37772char $ac_func ();
37773/* The GNU C library defines this for functions which it implements
37774 to always fail with ENOSYS. Some functions are actually named
37775 something starting with __ and the normal name is an alias. */
37776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37777choke me
37778#else
37779char (*f) () = $ac_func;
37780#endif
37781#ifdef __cplusplus
37782}
37783#endif
37784
37785int
37786main ()
37787{
37788return f != $ac_func;
37789 ;
37790 return 0;
37791}
37792_ACEOF
37793rm -f conftest.$ac_objext conftest$ac_exeext
37794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37795 (eval $ac_link) 2>conftest.er1
a848cd7e 37796 ac_status=$?
ac1cb8d3
VS
37797 grep -v '^ *+' conftest.er1 >conftest.err
37798 rm -f conftest.er1
37799 cat conftest.err >&5
a848cd7e
SC
37800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801 (exit $ac_status); } &&
6ebeb4c7 37802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37804 (eval $ac_try) 2>&5
37805 ac_status=$?
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); }; } &&
37808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810 (eval $ac_try) 2>&5
37811 ac_status=$?
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); }; }; then
37814 eval "$as_ac_var=yes"
37815else
37816 echo "$as_me: failed program was:" >&5
37817sed 's/^/| /' conftest.$ac_ext >&5
37818
37819eval "$as_ac_var=no"
37820fi
ac1cb8d3
VS
37821rm -f conftest.err conftest.$ac_objext \
37822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37823fi
37824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37826if test `eval echo '${'$as_ac_var'}'` = yes; then
37827 cat >>confdefs.h <<_ACEOF
37828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37829_ACEOF
37830
37831fi
37832done
37833
37834
37835 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37836echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37837if test "${wx_cv_var_timezone+set}" = set; then
37838 echo $ECHO_N "(cached) $ECHO_C" >&6
37839else
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 cat >conftest.$ac_ext <<_ACEOF
37940/* confdefs.h. */
37941_ACEOF
37942cat confdefs.h >>conftest.$ac_ext
37943cat >>conftest.$ac_ext <<_ACEOF
37944/* end confdefs.h. */
37945
37946 #include <time.h>
37947
37948int
37949main ()
37950{
37951
37952 int tz;
37953 tz = __timezone;
37954
37955 ;
37956 return 0;
37957}
37958_ACEOF
37959rm -f conftest.$ac_objext
37960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37961 (eval $ac_compile) 2>conftest.er1
a848cd7e 37962 ac_status=$?
ac1cb8d3
VS
37963 grep -v '^ *+' conftest.er1 >conftest.err
37964 rm -f conftest.er1
37965 cat conftest.err >&5
a848cd7e
SC
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } &&
6ebeb4c7 37968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37970 (eval $ac_try) 2>&5
37971 ac_status=$?
37972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973 (exit $ac_status); }; } &&
37974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37976 (eval $ac_try) 2>&5
37977 ac_status=$?
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); }; }; then
37980
37981 wx_cv_var_timezone=__timezone
37982
37983else
37984 echo "$as_me: failed program was:" >&5
37985sed 's/^/| /' conftest.$ac_ext >&5
37986
37987
37988 if test "$USE_DOS" = 0 ; then
37989 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37990echo "$as_me: WARNING: no timezone variable" >&2;}
37991 fi
37992
37993
37994fi
ac1cb8d3 37995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37996
37997
37998fi
ac1cb8d3 37999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38000
38001
38002fi
ac1cb8d3 38003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38004
38005
38006fi
38007echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38008echo "${ECHO_T}$wx_cv_var_timezone" >&6
38009
38010 if test "x$wx_cv_var_timezone" != x ; then
38011 cat >>confdefs.h <<_ACEOF
38012#define WX_TIMEZONE $wx_cv_var_timezone
38013_ACEOF
38014
38015 fi
38016
38017
38018for ac_func in localtime
38019do
38020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38021echo "$as_me:$LINENO: checking for $ac_func" >&5
38022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38023if eval "test \"\${$as_ac_var+set}\" = set"; then
38024 echo $ECHO_N "(cached) $ECHO_C" >&6
38025else
38026 cat >conftest.$ac_ext <<_ACEOF
38027/* confdefs.h. */
38028_ACEOF
38029cat confdefs.h >>conftest.$ac_ext
38030cat >>conftest.$ac_ext <<_ACEOF
38031/* end confdefs.h. */
ac1cb8d3
VS
38032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38034#define $ac_func innocuous_$ac_func
38035
a848cd7e
SC
38036/* System header to define __stub macros and hopefully few prototypes,
38037 which can conflict with char $ac_func (); below.
38038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38039 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38040
a848cd7e
SC
38041#ifdef __STDC__
38042# include <limits.h>
38043#else
38044# include <assert.h>
38045#endif
ac1cb8d3
VS
38046
38047#undef $ac_func
38048
a848cd7e
SC
38049/* Override any gcc2 internal prototype to avoid an error. */
38050#ifdef __cplusplus
38051extern "C"
38052{
38053#endif
38054/* We use char because int might match the return type of a gcc2
38055 builtin and then its argument prototype would still apply. */
38056char $ac_func ();
38057/* The GNU C library defines this for functions which it implements
38058 to always fail with ENOSYS. Some functions are actually named
38059 something starting with __ and the normal name is an alias. */
38060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38061choke me
38062#else
38063char (*f) () = $ac_func;
38064#endif
38065#ifdef __cplusplus
38066}
38067#endif
38068
38069int
38070main ()
38071{
38072return f != $ac_func;
38073 ;
38074 return 0;
38075}
38076_ACEOF
38077rm -f conftest.$ac_objext conftest$ac_exeext
38078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38079 (eval $ac_link) 2>conftest.er1
a848cd7e 38080 ac_status=$?
ac1cb8d3
VS
38081 grep -v '^ *+' conftest.er1 >conftest.err
38082 rm -f conftest.er1
38083 cat conftest.err >&5
a848cd7e
SC
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); } &&
6ebeb4c7 38086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38089 ac_status=$?
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; } &&
38092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38094 (eval $ac_try) 2>&5
38095 ac_status=$?
38096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38097 (exit $ac_status); }; }; then
38098 eval "$as_ac_var=yes"
38099else
38100 echo "$as_me: failed program was:" >&5
38101sed 's/^/| /' conftest.$ac_ext >&5
38102
38103eval "$as_ac_var=no"
38104fi
ac1cb8d3
VS
38105rm -f conftest.err conftest.$ac_objext \
38106 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38107fi
38108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38110if test `eval echo '${'$as_ac_var'}'` = yes; then
38111 cat >>confdefs.h <<_ACEOF
38112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38113_ACEOF
38114
38115fi
38116done
38117
38118
38119 if test "$ac_cv_func_localtime" = "yes"; then
38120 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38121echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38122if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38123 echo $ECHO_N "(cached) $ECHO_C" >&6
38124else
38125
38126 cat >conftest.$ac_ext <<_ACEOF
38127/* confdefs.h. */
38128_ACEOF
38129cat confdefs.h >>conftest.$ac_ext
38130cat >>conftest.$ac_ext <<_ACEOF
38131/* end confdefs.h. */
38132
38133 #include <time.h>
38134
38135int
38136main ()
38137{
38138
38139 struct tm tm;
38140 tm.tm_gmtoff++;
38141
38142 ;
38143 return 0;
38144}
38145_ACEOF
38146rm -f conftest.$ac_objext
38147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38148 (eval $ac_compile) 2>conftest.er1
a848cd7e 38149 ac_status=$?
ac1cb8d3
VS
38150 grep -v '^ *+' conftest.er1 >conftest.err
38151 rm -f conftest.er1
38152 cat conftest.err >&5
a848cd7e
SC
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); } &&
6ebeb4c7 38155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38157 (eval $ac_try) 2>&5
38158 ac_status=$?
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); }; } &&
38161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163 (eval $ac_try) 2>&5
38164 ac_status=$?
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); }; }; then
38167
38168 wx_cv_struct_tm_has_gmtoff=yes
38169
38170else
38171 echo "$as_me: failed program was:" >&5
38172sed 's/^/| /' conftest.$ac_ext >&5
38173
38174wx_cv_struct_tm_has_gmtoff=no
38175
38176fi
ac1cb8d3 38177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38178
38179fi
38180echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38181echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38182 fi
38183
38184 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38185 cat >>confdefs.h <<\_ACEOF
38186#define WX_GMTOFF_IN_TM 1
38187_ACEOF
38188
38189 fi
38190
38191
38192
38193for ac_func in gettimeofday ftime
38194do
38195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38196echo "$as_me:$LINENO: checking for $ac_func" >&5
38197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38198if eval "test \"\${$as_ac_var+set}\" = set"; then
38199 echo $ECHO_N "(cached) $ECHO_C" >&6
38200else
38201 cat >conftest.$ac_ext <<_ACEOF
38202/* confdefs.h. */
38203_ACEOF
38204cat confdefs.h >>conftest.$ac_ext
38205cat >>conftest.$ac_ext <<_ACEOF
38206/* end confdefs.h. */
ac1cb8d3
VS
38207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38209#define $ac_func innocuous_$ac_func
38210
a848cd7e
SC
38211/* System header to define __stub macros and hopefully few prototypes,
38212 which can conflict with char $ac_func (); below.
38213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38215
a848cd7e
SC
38216#ifdef __STDC__
38217# include <limits.h>
38218#else
38219# include <assert.h>
38220#endif
ac1cb8d3
VS
38221
38222#undef $ac_func
38223
a848cd7e
SC
38224/* Override any gcc2 internal prototype to avoid an error. */
38225#ifdef __cplusplus
38226extern "C"
38227{
38228#endif
38229/* We use char because int might match the return type of a gcc2
38230 builtin and then its argument prototype would still apply. */
38231char $ac_func ();
38232/* The GNU C library defines this for functions which it implements
38233 to always fail with ENOSYS. Some functions are actually named
38234 something starting with __ and the normal name is an alias. */
38235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38236choke me
38237#else
38238char (*f) () = $ac_func;
38239#endif
38240#ifdef __cplusplus
38241}
38242#endif
38243
38244int
38245main ()
38246{
38247return f != $ac_func;
38248 ;
38249 return 0;
38250}
38251_ACEOF
38252rm -f conftest.$ac_objext conftest$ac_exeext
38253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38254 (eval $ac_link) 2>conftest.er1
a848cd7e 38255 ac_status=$?
ac1cb8d3
VS
38256 grep -v '^ *+' conftest.er1 >conftest.err
38257 rm -f conftest.er1
38258 cat conftest.err >&5
a848cd7e
SC
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); } &&
6ebeb4c7 38261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38263 (eval $ac_try) 2>&5
38264 ac_status=$?
38265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266 (exit $ac_status); }; } &&
38267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269 (eval $ac_try) 2>&5
38270 ac_status=$?
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); }; }; then
38273 eval "$as_ac_var=yes"
38274else
38275 echo "$as_me: failed program was:" >&5
38276sed 's/^/| /' conftest.$ac_ext >&5
38277
38278eval "$as_ac_var=no"
38279fi
ac1cb8d3
VS
38280rm -f conftest.err conftest.$ac_objext \
38281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38282fi
38283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38285if test `eval echo '${'$as_ac_var'}'` = yes; then
38286 cat >>confdefs.h <<_ACEOF
38287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38288_ACEOF
38289 break
38290fi
38291done
38292
38293
38294 if test "$ac_cv_func_gettimeofday" = "yes"; then
38295 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38296echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38297if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38298 echo $ECHO_N "(cached) $ECHO_C" >&6
38299else
38300
38301
38302
38303 ac_ext=cc
38304ac_cpp='$CXXCPP $CPPFLAGS'
38305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38308
38309
38310 cat >conftest.$ac_ext <<_ACEOF
38311/* confdefs.h. */
38312_ACEOF
38313cat confdefs.h >>conftest.$ac_ext
38314cat >>conftest.$ac_ext <<_ACEOF
38315/* end confdefs.h. */
38316
38317 #include <sys/time.h>
38318 #include <unistd.h>
38319
38320int
38321main ()
38322{
38323
38324 struct timeval tv;
38325 gettimeofday(&tv, NULL);
38326
38327 ;
38328 return 0;
38329}
38330_ACEOF
38331rm -f conftest.$ac_objext
38332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38333 (eval $ac_compile) 2>conftest.er1
a848cd7e 38334 ac_status=$?
ac1cb8d3
VS
38335 grep -v '^ *+' conftest.er1 >conftest.err
38336 rm -f conftest.er1
38337 cat conftest.err >&5
a848cd7e
SC
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); } &&
6ebeb4c7 38340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342 (eval $ac_try) 2>&5
38343 ac_status=$?
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; } &&
38346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38348 (eval $ac_try) 2>&5
38349 ac_status=$?
38350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38351 (exit $ac_status); }; }; then
38352 wx_cv_func_gettimeofday_has_2_args=yes
38353else
38354 echo "$as_me: failed program was:" >&5
38355sed 's/^/| /' conftest.$ac_ext >&5
38356
38357cat >conftest.$ac_ext <<_ACEOF
38358/* confdefs.h. */
38359_ACEOF
38360cat confdefs.h >>conftest.$ac_ext
38361cat >>conftest.$ac_ext <<_ACEOF
38362/* end confdefs.h. */
38363
38364 #include <sys/time.h>
38365 #include <unistd.h>
38366
38367int
38368main ()
38369{
38370
38371 struct timeval tv;
38372 gettimeofday(&tv);
38373
38374 ;
38375 return 0;
38376}
38377_ACEOF
38378rm -f conftest.$ac_objext
38379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38380 (eval $ac_compile) 2>conftest.er1
a848cd7e 38381 ac_status=$?
ac1cb8d3
VS
38382 grep -v '^ *+' conftest.er1 >conftest.err
38383 rm -f conftest.er1
38384 cat conftest.err >&5
a848cd7e
SC
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); } &&
6ebeb4c7 38387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38389 (eval $ac_try) 2>&5
38390 ac_status=$?
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); }; } &&
38393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38395 (eval $ac_try) 2>&5
38396 ac_status=$?
38397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398 (exit $ac_status); }; }; then
38399 wx_cv_func_gettimeofday_has_2_args=no
38400else
38401 echo "$as_me: failed program was:" >&5
38402sed 's/^/| /' conftest.$ac_ext >&5
38403
38404
38405 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38406echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38407 wx_cv_func_gettimeofday_has_2_args=unknown
38408
38409
38410fi
ac1cb8d3 38411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38412
38413fi
ac1cb8d3 38414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38415 ac_ext=c
38416ac_cpp='$CPP $CPPFLAGS'
38417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38419ac_compiler_gnu=$ac_cv_c_compiler_gnu
38420
38421
38422fi
38423echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38424echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38425
38426 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38427 cat >>confdefs.h <<\_ACEOF
38428#define WX_GETTIMEOFDAY_NO_TZ 1
38429_ACEOF
38430
38431 fi
38432 fi
38433
38434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38435fi
38436
38437
38438if test "$wxUSE_SOCKETS" = "yes"; then
38439 if test "$wxUSE_MGL" = "1"; then
38440 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38441echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38442 wxUSE_SOCKETS="no"
38443 fi
38444fi
38445
38446if test "$wxUSE_SOCKETS" = "yes"; then
38447 if test "$TOOLKIT" != "MSW"; then
38448 echo "$as_me:$LINENO: checking for socket" >&5
38449echo $ECHO_N "checking for socket... $ECHO_C" >&6
38450if test "${ac_cv_func_socket+set}" = set; then
38451 echo $ECHO_N "(cached) $ECHO_C" >&6
38452else
38453 cat >conftest.$ac_ext <<_ACEOF
38454/* confdefs.h. */
38455_ACEOF
38456cat confdefs.h >>conftest.$ac_ext
38457cat >>conftest.$ac_ext <<_ACEOF
38458/* end confdefs.h. */
ac1cb8d3
VS
38459/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38461#define socket innocuous_socket
38462
a848cd7e
SC
38463/* System header to define __stub macros and hopefully few prototypes,
38464 which can conflict with char socket (); below.
38465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38466 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38467
a848cd7e
SC
38468#ifdef __STDC__
38469# include <limits.h>
38470#else
38471# include <assert.h>
38472#endif
ac1cb8d3
VS
38473
38474#undef socket
38475
a848cd7e
SC
38476/* Override any gcc2 internal prototype to avoid an error. */
38477#ifdef __cplusplus
38478extern "C"
38479{
38480#endif
38481/* We use char because int might match the return type of a gcc2
38482 builtin and then its argument prototype would still apply. */
38483char socket ();
38484/* The GNU C library defines this for functions which it implements
38485 to always fail with ENOSYS. Some functions are actually named
38486 something starting with __ and the normal name is an alias. */
38487#if defined (__stub_socket) || defined (__stub___socket)
38488choke me
38489#else
38490char (*f) () = socket;
38491#endif
38492#ifdef __cplusplus
38493}
38494#endif
38495
38496int
38497main ()
38498{
38499return f != socket;
38500 ;
38501 return 0;
38502}
38503_ACEOF
38504rm -f conftest.$ac_objext conftest$ac_exeext
38505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38506 (eval $ac_link) 2>conftest.er1
a848cd7e 38507 ac_status=$?
ac1cb8d3
VS
38508 grep -v '^ *+' conftest.er1 >conftest.err
38509 rm -f conftest.er1
38510 cat conftest.err >&5
a848cd7e
SC
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); } &&
6ebeb4c7 38513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38516 ac_status=$?
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; } &&
38519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38521 (eval $ac_try) 2>&5
38522 ac_status=$?
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); }; }; then
38525 ac_cv_func_socket=yes
38526else
38527 echo "$as_me: failed program was:" >&5
38528sed 's/^/| /' conftest.$ac_ext >&5
38529
38530ac_cv_func_socket=no
38531fi
ac1cb8d3
VS
38532rm -f conftest.err conftest.$ac_objext \
38533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38534fi
38535echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38536echo "${ECHO_T}$ac_cv_func_socket" >&6
38537if test $ac_cv_func_socket = yes; then
38538 :
38539else
38540
38541 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38542echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38543if test "${ac_cv_lib_socket_socket+set}" = set; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38545else
38546 ac_check_lib_save_LIBS=$LIBS
38547LIBS="-lsocket $LIBS"
38548cat >conftest.$ac_ext <<_ACEOF
38549/* confdefs.h. */
38550_ACEOF
38551cat confdefs.h >>conftest.$ac_ext
38552cat >>conftest.$ac_ext <<_ACEOF
38553/* end confdefs.h. */
38554
38555/* Override any gcc2 internal prototype to avoid an error. */
38556#ifdef __cplusplus
38557extern "C"
38558#endif
38559/* We use char because int might match the return type of a gcc2
38560 builtin and then its argument prototype would still apply. */
38561char socket ();
38562int
38563main ()
38564{
38565socket ();
38566 ;
38567 return 0;
38568}
38569_ACEOF
38570rm -f conftest.$ac_objext conftest$ac_exeext
38571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38572 (eval $ac_link) 2>conftest.er1
a848cd7e 38573 ac_status=$?
ac1cb8d3
VS
38574 grep -v '^ *+' conftest.er1 >conftest.err
38575 rm -f conftest.er1
38576 cat conftest.err >&5
a848cd7e
SC
38577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578 (exit $ac_status); } &&
6ebeb4c7 38579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581 (eval $ac_try) 2>&5
38582 ac_status=$?
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); }; } &&
38585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587 (eval $ac_try) 2>&5
38588 ac_status=$?
38589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 (exit $ac_status); }; }; then
38591 ac_cv_lib_socket_socket=yes
38592else
38593 echo "$as_me: failed program was:" >&5
38594sed 's/^/| /' conftest.$ac_ext >&5
38595
38596ac_cv_lib_socket_socket=no
38597fi
ac1cb8d3
VS
38598rm -f conftest.err conftest.$ac_objext \
38599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38600LIBS=$ac_check_lib_save_LIBS
38601fi
38602echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38603echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38604if test $ac_cv_lib_socket_socket = yes; then
38605 if test "$INET_LINK" != " -lsocket"; then
38606 INET_LINK="$INET_LINK -lsocket"
38607 fi
38608else
38609
38610 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38611echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38612 wxUSE_SOCKETS=no
38613
38614
38615fi
38616
38617
38618
38619fi
38620
38621 fi
38622fi
38623
38624if test "$wxUSE_SOCKETS" = "yes" ; then
38625 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38626 ac_ext=cc
38627ac_cpp='$CXXCPP $CPPFLAGS'
38628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38631
38632 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38633echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38634if test "${wx_cv_type_getsockname3+set}" = set; then
38635 echo $ECHO_N "(cached) $ECHO_C" >&6
38636else
38637
38638 cat >conftest.$ac_ext <<_ACEOF
38639/* confdefs.h. */
38640_ACEOF
38641cat confdefs.h >>conftest.$ac_ext
38642cat >>conftest.$ac_ext <<_ACEOF
38643/* end confdefs.h. */
38644
38645 #include <sys/types.h>
38646 #include <sys/socket.h>
38647
38648int
38649main ()
38650{
38651
38652 socklen_t len;
38653 getsockname(0, 0, &len);
38654
38655 ;
38656 return 0;
38657}
38658_ACEOF
38659rm -f conftest.$ac_objext
38660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38661 (eval $ac_compile) 2>conftest.er1
a848cd7e 38662 ac_status=$?
ac1cb8d3
VS
38663 grep -v '^ *+' conftest.er1 >conftest.err
38664 rm -f conftest.er1
38665 cat conftest.err >&5
a848cd7e
SC
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); } &&
6ebeb4c7 38668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; } &&
38674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676 (eval $ac_try) 2>&5
38677 ac_status=$?
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); }; }; then
38680 wx_cv_type_getsockname3=socklen_t
38681else
38682 echo "$as_me: failed program was:" >&5
38683sed 's/^/| /' conftest.$ac_ext >&5
38684
38685
38686 CFLAGS_OLD="$CFLAGS"
38687 if test "$GCC" = yes ; then
38688 CFLAGS="$CFLAGS -Werror"
38689 fi
38690
38691 cat >conftest.$ac_ext <<_ACEOF
38692/* confdefs.h. */
38693_ACEOF
38694cat confdefs.h >>conftest.$ac_ext
38695cat >>conftest.$ac_ext <<_ACEOF
38696/* end confdefs.h. */
38697
38698 #include <sys/types.h>
38699 #include <sys/socket.h>
38700
38701int
38702main ()
38703{
38704
38705 size_t len;
38706 getsockname(0, 0, &len);
38707
38708 ;
38709 return 0;
38710}
38711_ACEOF
38712rm -f conftest.$ac_objext
38713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38714 (eval $ac_compile) 2>conftest.er1
a848cd7e 38715 ac_status=$?
ac1cb8d3
VS
38716 grep -v '^ *+' conftest.er1 >conftest.err
38717 rm -f conftest.er1
38718 cat conftest.err >&5
a848cd7e
SC
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
6ebeb4c7 38721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723 (eval $ac_try) 2>&5
38724 ac_status=$?
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); }; } &&
38727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729 (eval $ac_try) 2>&5
38730 ac_status=$?
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); }; }; then
38733 wx_cv_type_getsockname3=size_t
38734else
38735 echo "$as_me: failed program was:" >&5
38736sed 's/^/| /' conftest.$ac_ext >&5
38737
38738cat >conftest.$ac_ext <<_ACEOF
38739/* confdefs.h. */
38740_ACEOF
38741cat confdefs.h >>conftest.$ac_ext
38742cat >>conftest.$ac_ext <<_ACEOF
38743/* end confdefs.h. */
38744
38745 #include <sys/types.h>
38746 #include <sys/socket.h>
38747
38748int
38749main ()
38750{
38751
38752 int len;
38753 getsockname(0, 0, &len);
38754
38755 ;
38756 return 0;
38757}
38758_ACEOF
38759rm -f conftest.$ac_objext
38760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38761 (eval $ac_compile) 2>conftest.er1
a848cd7e 38762 ac_status=$?
ac1cb8d3
VS
38763 grep -v '^ *+' conftest.er1 >conftest.err
38764 rm -f conftest.er1
38765 cat conftest.err >&5
a848cd7e
SC
38766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); } &&
6ebeb4c7 38768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38770 (eval $ac_try) 2>&5
38771 ac_status=$?
38772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38773 (exit $ac_status); }; } &&
38774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38776 (eval $ac_try) 2>&5
38777 ac_status=$?
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); }; }; then
38780 wx_cv_type_getsockname3=int
38781else
38782 echo "$as_me: failed program was:" >&5
38783sed 's/^/| /' conftest.$ac_ext >&5
38784
38785wx_cv_type_getsockname3=unknown
38786
38787fi
ac1cb8d3 38788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38789
38790fi
ac1cb8d3 38791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38792
38793 CFLAGS="$CFLAGS_OLD"
38794
38795
38796fi
ac1cb8d3 38797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38798
38799fi
38800echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38801echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38802
38803 if test "$wx_cv_type_getsockname3" = "unknown"; then
38804 wxUSE_SOCKETS=no
38805 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38806echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38807 else
38808 cat >>confdefs.h <<_ACEOF
38809#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38810_ACEOF
38811
38812 fi
38813 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38814echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38815if test "${wx_cv_type_getsockopt5+set}" = set; then
38816 echo $ECHO_N "(cached) $ECHO_C" >&6
38817else
38818
38819 cat >conftest.$ac_ext <<_ACEOF
38820/* confdefs.h. */
38821_ACEOF
38822cat confdefs.h >>conftest.$ac_ext
38823cat >>conftest.$ac_ext <<_ACEOF
38824/* end confdefs.h. */
38825
38826 #include <sys/types.h>
38827 #include <sys/socket.h>
38828
38829int
38830main ()
38831{
38832
38833 socklen_t len;
38834 getsockopt(0, 0, 0, 0, &len);
38835
38836 ;
38837 return 0;
38838}
38839_ACEOF
38840rm -f conftest.$ac_objext
38841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38842 (eval $ac_compile) 2>conftest.er1
38843 ac_status=$?
38844 grep -v '^ *+' conftest.er1 >conftest.err
38845 rm -f conftest.er1
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
6ebeb4c7 38849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851 (eval $ac_try) 2>&5
38852 ac_status=$?
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); }; } &&
38855 { ac_try='test -s conftest.$ac_objext'
38856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857 (eval $ac_try) 2>&5
38858 ac_status=$?
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); }; }; then
38861 wx_cv_type_getsockopt5=socklen_t
38862else
38863 echo "$as_me: failed program was:" >&5
38864sed 's/^/| /' conftest.$ac_ext >&5
38865
38866
38867 CFLAGS_OLD="$CFLAGS"
38868 if test "$GCC" = yes ; then
38869 CFLAGS="$CFLAGS -Werror"
38870 fi
38871
38872 cat >conftest.$ac_ext <<_ACEOF
38873/* confdefs.h. */
38874_ACEOF
38875cat confdefs.h >>conftest.$ac_ext
38876cat >>conftest.$ac_ext <<_ACEOF
38877/* end confdefs.h. */
38878
38879 #include <sys/types.h>
38880 #include <sys/socket.h>
38881
38882int
38883main ()
38884{
38885
38886 size_t len;
38887 getsockopt(0, 0, 0, 0, &len);
38888
38889 ;
38890 return 0;
38891}
38892_ACEOF
38893rm -f conftest.$ac_objext
38894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38895 (eval $ac_compile) 2>conftest.er1
38896 ac_status=$?
38897 grep -v '^ *+' conftest.er1 >conftest.err
38898 rm -f conftest.er1
38899 cat conftest.err >&5
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); } &&
6ebeb4c7 38902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38905 ac_status=$?
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; } &&
38908 { ac_try='test -s conftest.$ac_objext'
38909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38910 (eval $ac_try) 2>&5
38911 ac_status=$?
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); }; }; then
38914 wx_cv_type_getsockopt5=size_t
38915else
38916 echo "$as_me: failed program was:" >&5
38917sed 's/^/| /' conftest.$ac_ext >&5
38918
38919cat >conftest.$ac_ext <<_ACEOF
38920/* confdefs.h. */
38921_ACEOF
38922cat confdefs.h >>conftest.$ac_ext
38923cat >>conftest.$ac_ext <<_ACEOF
38924/* end confdefs.h. */
38925
38926 #include <sys/types.h>
38927 #include <sys/socket.h>
38928
38929int
38930main ()
38931{
38932
38933 int len;
38934 getsockopt(0, 0, 0, 0, &len);
38935
38936 ;
38937 return 0;
38938}
38939_ACEOF
38940rm -f conftest.$ac_objext
38941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38942 (eval $ac_compile) 2>conftest.er1
38943 ac_status=$?
38944 grep -v '^ *+' conftest.er1 >conftest.err
38945 rm -f conftest.er1
38946 cat conftest.err >&5
38947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948 (exit $ac_status); } &&
6ebeb4c7 38949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38951 (eval $ac_try) 2>&5
38952 ac_status=$?
38953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38954 (exit $ac_status); }; } &&
38955 { ac_try='test -s conftest.$ac_objext'
38956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38957 (eval $ac_try) 2>&5
38958 ac_status=$?
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); }; }; then
38961 wx_cv_type_getsockopt5=int
38962else
38963 echo "$as_me: failed program was:" >&5
38964sed 's/^/| /' conftest.$ac_ext >&5
38965
38966wx_cv_type_getsockopt5=unknown
38967
38968fi
38969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38970
38971fi
38972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38973
38974 CFLAGS="$CFLAGS_OLD"
38975
38976
38977fi
38978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38979
38980fi
38981echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38982echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38983
38984 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38985 wxUSE_SOCKETS=no
38986 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38987echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38988 else
38989 cat >>confdefs.h <<_ACEOF
38990#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38991_ACEOF
38992
38993 fi
4d4ff94c
VZ
38994 ac_ext=c
38995ac_cpp='$CPP $CPPFLAGS'
38996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38998ac_compiler_gnu=$ac_cv_c_compiler_gnu
38999
a848cd7e
SC
39000 fi
39001fi
39002
39003if test "$wxUSE_SOCKETS" = "yes" ; then
39004 cat >>confdefs.h <<\_ACEOF
39005#define wxUSE_SOCKETS 1
39006_ACEOF
39007
39008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39009fi
39010
39011if test "$wxUSE_PROTOCOL" = "yes"; then
39012 if test "$wxUSE_SOCKETS" != "yes"; then
39013 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39014echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39015 wxUSE_PROTOCOL=no
39016 fi
39017fi
39018
39019if test "$wxUSE_PROTOCOL" = "yes"; then
39020 cat >>confdefs.h <<\_ACEOF
39021#define wxUSE_PROTOCOL 1
39022_ACEOF
39023
39024
39025 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39026 cat >>confdefs.h <<\_ACEOF
39027#define wxUSE_PROTOCOL_HTTP 1
39028_ACEOF
39029
39030 fi
39031 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39032 cat >>confdefs.h <<\_ACEOF
39033#define wxUSE_PROTOCOL_FTP 1
39034_ACEOF
39035
39036 fi
39037 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39038 cat >>confdefs.h <<\_ACEOF
39039#define wxUSE_PROTOCOL_FILE 1
39040_ACEOF
39041
39042 fi
39043else
39044 if test "$wxUSE_FS_INET" = "yes"; then
39045 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39046echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39047 wxUSE_FS_INET="no"
39048 fi
39049fi
39050
39051if test "$wxUSE_URL" = "yes"; then
39052 if test "$wxUSE_PROTOCOL" != "yes"; then
39053 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39054echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39055 wxUSE_URL=no
39056 fi
39057 if test "$wxUSE_URL" = "yes"; then
39058 cat >>confdefs.h <<\_ACEOF
39059#define wxUSE_URL 1
39060_ACEOF
39061
39062 fi
39063fi
39064
39065if test "$wxUSE_FS_INET" = "yes"; then
39066 cat >>confdefs.h <<\_ACEOF
39067#define wxUSE_FS_INET 1
39068_ACEOF
39069
39070fi
39071
39072
ee45c548
MW
39073if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39074 wxUSE_JOYSTICK=no
39075
39076 if test "$TOOLKIT" = "MSW"; then
39077 wxUSE_JOYSTICK=yes
39078
39079 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39080 if test "$USE_DARWIN" = 1; then
39081 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39082echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39083 ac_ext=cc
39084ac_cpp='$CXXCPP $CPPFLAGS'
39085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39088
39089 cat >conftest.$ac_ext <<_ACEOF
39090/* confdefs.h. */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h. */
39095 #include <IOKit/hid/IOHIDLib.h>
39096int
39097main ()
39098{
39099 IOHIDQueueInterface *qi = NULL;
39100 IOHIDCallbackFunction cb = NULL;
39101 qi->setEventCallout(NULL, cb, NULL, NULL);
39102 ;
39103 return 0;
39104}
39105_ACEOF
39106rm -f conftest.$ac_objext
39107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39108 (eval $ac_compile) 2>conftest.er1
39109 ac_status=$?
39110 grep -v '^ *+' conftest.er1 >conftest.err
39111 rm -f conftest.er1
39112 cat conftest.err >&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } &&
6ebeb4c7 39115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39117 (eval $ac_try) 2>&5
39118 ac_status=$?
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); }; } &&
39121 { ac_try='test -s conftest.$ac_objext'
39122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39123 (eval $ac_try) 2>&5
39124 ac_status=$?
39125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126 (exit $ac_status); }; }; then
39127 wxUSE_JOYSTICK=yes
a848cd7e 39128
ee45c548
MW
39129else
39130 echo "$as_me: failed program was:" >&5
39131sed 's/^/| /' conftest.$ac_ext >&5
39132
39133fi
39134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39135 ac_ext=c
39136ac_cpp='$CPP $CPPFLAGS'
39137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39139ac_compiler_gnu=$ac_cv_c_compiler_gnu
39140
39141 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39142echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39143 fi
39144
39145 else
a848cd7e
SC
39146
39147for ac_header in linux/joystick.h
39148do
39149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39150if eval "test \"\${$as_ac_Header+set}\" = set"; then
39151 echo "$as_me:$LINENO: checking for $ac_header" >&5
39152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39153if eval "test \"\${$as_ac_Header+set}\" = set"; then
39154 echo $ECHO_N "(cached) $ECHO_C" >&6
39155fi
39156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39158else
39159 # Is the header compilable?
39160echo "$as_me:$LINENO: checking $ac_header usability" >&5
39161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39162cat >conftest.$ac_ext <<_ACEOF
39163/* confdefs.h. */
39164_ACEOF
39165cat confdefs.h >>conftest.$ac_ext
39166cat >>conftest.$ac_ext <<_ACEOF
39167/* end confdefs.h. */
39168$ac_includes_default
39169#include <$ac_header>
39170_ACEOF
39171rm -f conftest.$ac_objext
39172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39173 (eval $ac_compile) 2>conftest.er1
a848cd7e 39174 ac_status=$?
ac1cb8d3
VS
39175 grep -v '^ *+' conftest.er1 >conftest.err
39176 rm -f conftest.er1
39177 cat conftest.err >&5
a848cd7e
SC
39178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179 (exit $ac_status); } &&
6ebeb4c7 39180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39183 ac_status=$?
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; } &&
39186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188 (eval $ac_try) 2>&5
39189 ac_status=$?
39190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191 (exit $ac_status); }; }; then
39192 ac_header_compiler=yes
39193else
39194 echo "$as_me: failed program was:" >&5
39195sed 's/^/| /' conftest.$ac_ext >&5
39196
39197ac_header_compiler=no
39198fi
ac1cb8d3 39199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39201echo "${ECHO_T}$ac_header_compiler" >&6
39202
39203# Is the header present?
39204echo "$as_me:$LINENO: checking $ac_header presence" >&5
39205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39206cat >conftest.$ac_ext <<_ACEOF
39207/* confdefs.h. */
39208_ACEOF
39209cat confdefs.h >>conftest.$ac_ext
39210cat >>conftest.$ac_ext <<_ACEOF
39211/* end confdefs.h. */
39212#include <$ac_header>
39213_ACEOF
39214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39216 ac_status=$?
39217 grep -v '^ *+' conftest.er1 >conftest.err
39218 rm -f conftest.er1
39219 cat conftest.err >&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } >/dev/null; then
39222 if test -s conftest.err; then
39223 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39225 else
39226 ac_cpp_err=
39227 fi
39228else
39229 ac_cpp_err=yes
39230fi
39231if test -z "$ac_cpp_err"; then
39232 ac_header_preproc=yes
39233else
39234 echo "$as_me: failed program was:" >&5
39235sed 's/^/| /' conftest.$ac_ext >&5
39236
39237 ac_header_preproc=no
39238fi
39239rm -f conftest.err conftest.$ac_ext
39240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39241echo "${ECHO_T}$ac_header_preproc" >&6
39242
39243# So? What about this header?
ac1cb8d3
VS
39244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39245 yes:no: )
a848cd7e
SC
39246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39250 ac_header_preproc=yes
a848cd7e 39251 ;;
ac1cb8d3 39252 no:yes:* )
a848cd7e
SC
39253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39260echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39265 (
39266 cat <<\_ASBOX
ac1cb8d3
VS
39267## ----------------------------------------- ##
39268## Report this to wx-dev@lists.wxwidgets.org ##
39269## ----------------------------------------- ##
a848cd7e
SC
39270_ASBOX
39271 ) |
39272 sed "s/^/$as_me: WARNING: /" >&2
39273 ;;
39274esac
39275echo "$as_me:$LINENO: checking for $ac_header" >&5
39276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39277if eval "test \"\${$as_ac_Header+set}\" = set"; then
39278 echo $ECHO_N "(cached) $ECHO_C" >&6
39279else
ac1cb8d3 39280 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39281fi
39282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39284
39285fi
39286if test `eval echo '${'$as_ac_Header'}'` = yes; then
39287 cat >>confdefs.h <<_ACEOF
39288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39289_ACEOF
ee45c548 39290 wxUSE_JOYSTICK=yes
a848cd7e
SC
39291fi
39292
39293done
39294
ee45c548 39295 fi
4cb1d3da 39296
ee45c548
MW
39297 if test "$wxUSE_JOYSTICK" = "yes"; then
39298 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39299#define wxUSE_JOYSTICK 1
39300_ACEOF
39301
ee45c548
MW
39302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39303 else
39304 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39305echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39306 fi
39307fi
39308
39309
39310
39311if test "$wxUSE_FONTMAP" = "yes" ; then
39312 cat >>confdefs.h <<\_ACEOF
39313#define wxUSE_FONTMAP 1
39314_ACEOF
39315
39316fi
39317
39318if test "$wxUSE_UNICODE" = "yes" ; then
39319 cat >>confdefs.h <<\_ACEOF
39320#define wxUSE_UNICODE 1
39321_ACEOF
39322
39323
39324 if test "$USE_WIN32" != 1; then
39325 wxUSE_UNICODE_MSLU=no
39326 fi
39327
39328 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39329 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39330echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39331if test "${ac_cv_lib_unicows_main+set}" = set; then
39332 echo $ECHO_N "(cached) $ECHO_C" >&6
39333else
39334 ac_check_lib_save_LIBS=$LIBS
39335LIBS="-lunicows $LIBS"
39336cat >conftest.$ac_ext <<_ACEOF
39337/* confdefs.h. */
39338_ACEOF
39339cat confdefs.h >>conftest.$ac_ext
39340cat >>conftest.$ac_ext <<_ACEOF
39341/* end confdefs.h. */
39342
39343
39344int
39345main ()
39346{
39347main ();
39348 ;
39349 return 0;
39350}
39351_ACEOF
39352rm -f conftest.$ac_objext conftest$ac_exeext
39353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39354 (eval $ac_link) 2>conftest.er1
a848cd7e 39355 ac_status=$?
ac1cb8d3
VS
39356 grep -v '^ *+' conftest.er1 >conftest.err
39357 rm -f conftest.er1
39358 cat conftest.err >&5
a848cd7e
SC
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); } &&
6ebeb4c7 39361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39364 ac_status=$?
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; } &&
39367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369 (eval $ac_try) 2>&5
39370 ac_status=$?
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); }; }; then
39373 ac_cv_lib_unicows_main=yes
39374else
39375 echo "$as_me: failed program was:" >&5
39376sed 's/^/| /' conftest.$ac_ext >&5
39377
39378ac_cv_lib_unicows_main=no
39379fi
ac1cb8d3
VS
39380rm -f conftest.err conftest.$ac_objext \
39381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39382LIBS=$ac_check_lib_save_LIBS
39383fi
39384echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39385echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39386if test $ac_cv_lib_unicows_main = yes; then
39387
39388 cat >>confdefs.h <<\_ACEOF
39389#define wxUSE_UNICODE_MSLU 1
39390_ACEOF
39391
39392
39393else
39394
39395 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39396 Applications will only run on Windows NT/2000/XP!" >&5
39397echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39398 Applications will only run on Windows NT/2000/XP!" >&2;}
39399 wxUSE_UNICODE_MSLU=no
39400
39401fi
39402
39403 fi
39404fi
39405
39406if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39407 cat >>confdefs.h <<\_ACEOF
39408#define wxUSE_EXPERIMENTAL_PRINTF 1
39409_ACEOF
39410
39411fi
39412
39413
39414if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39415 cat >>confdefs.h <<\_ACEOF
39416#define wxUSE_POSTSCRIPT 1
39417_ACEOF
39418
39419fi
39420
39421cat >>confdefs.h <<\_ACEOF
39422#define wxUSE_AFM_FOR_POSTSCRIPT 1
39423_ACEOF
39424
39425
39426cat >>confdefs.h <<\_ACEOF
39427#define wxUSE_NORMALIZED_PS_FONTS 1
39428_ACEOF
39429
39430
39431
39432if test "$wxUSE_CONSTRAINTS" = "yes"; then
39433 cat >>confdefs.h <<\_ACEOF
39434#define wxUSE_CONSTRAINTS 1
39435_ACEOF
39436
39437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39438fi
39439
8a7b1113
VZ
39440if test "$wxUSE_MDI" = "yes"; then
39441 cat >>confdefs.h <<\_ACEOF
39442#define wxUSE_MDI 1
39443_ACEOF
39444
39445
39446 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39447 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39448#define wxUSE_MDI_ARCHITECTURE 1
39449_ACEOF
39450
8a7b1113
VZ
39451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39452 fi
a848cd7e
SC
39453fi
39454
39455if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39456 cat >>confdefs.h <<\_ACEOF
39457#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39458_ACEOF
39459
39460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39461 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39463 fi
39464fi
39465
39466if test "$wxUSE_HELP" = "yes"; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define wxUSE_HELP 1
39469_ACEOF
39470
39471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39472
39473 if test "$wxUSE_MSW" = 1; then
39474 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39475 cat >>confdefs.h <<\_ACEOF
39476#define wxUSE_MS_HTML_HELP 1
39477_ACEOF
39478
39479 fi
39480 fi
39481
39482 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39483 if test "$wxUSE_HTML" = "yes"; then
39484 cat >>confdefs.h <<\_ACEOF
39485#define wxUSE_WXHTML_HELP 1
39486_ACEOF
39487
39488 else
39489 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39490echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39491 wxUSE_WXHTML_HELP=no
39492 fi
39493 fi
39494fi
39495
39496if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39497 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39498 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39499echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39500 else
39501 cat >>confdefs.h <<\_ACEOF
39502#define wxUSE_PRINTING_ARCHITECTURE 1
39503_ACEOF
39504
39505 fi
39506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39507fi
39508
39509if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39510 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39511echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39512 { (exit 1); exit 1; }; }
39513fi
39514
39515
39516if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39517 -o "$wxUSE_CLIPBOARD" = "yes" \
39518 -o "$wxUSE_OLE" = "yes" \
39519 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39520
39521for ac_header in ole2.h
39522do
39523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39524if eval "test \"\${$as_ac_Header+set}\" = set"; then
39525 echo "$as_me:$LINENO: checking for $ac_header" >&5
39526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39527if eval "test \"\${$as_ac_Header+set}\" = set"; then
39528 echo $ECHO_N "(cached) $ECHO_C" >&6
39529fi
39530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39532else
39533 # Is the header compilable?
39534echo "$as_me:$LINENO: checking $ac_header usability" >&5
39535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39536cat >conftest.$ac_ext <<_ACEOF
39537/* confdefs.h. */
39538_ACEOF
39539cat confdefs.h >>conftest.$ac_ext
39540cat >>conftest.$ac_ext <<_ACEOF
39541/* end confdefs.h. */
39542$ac_includes_default
39543#include <$ac_header>
39544_ACEOF
39545rm -f conftest.$ac_objext
39546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39547 (eval $ac_compile) 2>conftest.er1
a848cd7e 39548 ac_status=$?
ac1cb8d3
VS
39549 grep -v '^ *+' conftest.er1 >conftest.err
39550 rm -f conftest.er1
39551 cat conftest.err >&5
a848cd7e
SC
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); } &&
6ebeb4c7 39554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39556 (eval $ac_try) 2>&5
39557 ac_status=$?
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); }; } &&
39560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39562 (eval $ac_try) 2>&5
39563 ac_status=$?
39564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565 (exit $ac_status); }; }; then
39566 ac_header_compiler=yes
39567else
39568 echo "$as_me: failed program was:" >&5
39569sed 's/^/| /' conftest.$ac_ext >&5
39570
39571ac_header_compiler=no
39572fi
ac1cb8d3 39573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39575echo "${ECHO_T}$ac_header_compiler" >&6
39576
39577# Is the header present?
39578echo "$as_me:$LINENO: checking $ac_header presence" >&5
39579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39580cat >conftest.$ac_ext <<_ACEOF
39581/* confdefs.h. */
39582_ACEOF
39583cat confdefs.h >>conftest.$ac_ext
39584cat >>conftest.$ac_ext <<_ACEOF
39585/* end confdefs.h. */
39586#include <$ac_header>
39587_ACEOF
39588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39590 ac_status=$?
39591 grep -v '^ *+' conftest.er1 >conftest.err
39592 rm -f conftest.er1
39593 cat conftest.err >&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); } >/dev/null; then
39596 if test -s conftest.err; then
39597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39599 else
39600 ac_cpp_err=
39601 fi
39602else
39603 ac_cpp_err=yes
39604fi
39605if test -z "$ac_cpp_err"; then
39606 ac_header_preproc=yes
39607else
39608 echo "$as_me: failed program was:" >&5
39609sed 's/^/| /' conftest.$ac_ext >&5
39610
39611 ac_header_preproc=no
39612fi
39613rm -f conftest.err conftest.$ac_ext
39614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39615echo "${ECHO_T}$ac_header_preproc" >&6
39616
39617# So? What about this header?
ac1cb8d3
VS
39618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39619 yes:no: )
a848cd7e
SC
39620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39624 ac_header_preproc=yes
a848cd7e 39625 ;;
ac1cb8d3 39626 no:yes:* )
a848cd7e
SC
39627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39639 (
39640 cat <<\_ASBOX
ac1cb8d3
VS
39641## ----------------------------------------- ##
39642## Report this to wx-dev@lists.wxwidgets.org ##
39643## ----------------------------------------- ##
a848cd7e
SC
39644_ASBOX
39645 ) |
39646 sed "s/^/$as_me: WARNING: /" >&2
39647 ;;
39648esac
39649echo "$as_me:$LINENO: checking for $ac_header" >&5
39650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39651if eval "test \"\${$as_ac_Header+set}\" = set"; then
39652 echo $ECHO_N "(cached) $ECHO_C" >&6
39653else
ac1cb8d3 39654 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39655fi
39656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39658
39659fi
39660if test `eval echo '${'$as_ac_Header'}'` = yes; then
39661 cat >>confdefs.h <<_ACEOF
39662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39663_ACEOF
39664
39665fi
39666
39667done
39668
39669
39670 if test "$ac_cv_header_ole2_h" = "yes" ; then
39671 if test "$GCC" = yes ; then
39672
39673
39674 ac_ext=cc
39675ac_cpp='$CXXCPP $CPPFLAGS'
39676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39679
39680
39681 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39682echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39683 cat >conftest.$ac_ext <<_ACEOF
39684/* confdefs.h. */
39685_ACEOF
39686cat confdefs.h >>conftest.$ac_ext
39687cat >>conftest.$ac_ext <<_ACEOF
39688/* end confdefs.h. */
39689#include <windows.h>
39690 #include <ole2.h>
39691int
39692main ()
39693{
39694
39695 ;
39696 return 0;
39697}
39698_ACEOF
39699rm -f conftest.$ac_objext
39700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39701 (eval $ac_compile) 2>conftest.er1
a848cd7e 39702 ac_status=$?
ac1cb8d3
VS
39703 grep -v '^ *+' conftest.er1 >conftest.err
39704 rm -f conftest.er1
39705 cat conftest.err >&5
a848cd7e
SC
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); } &&
6ebeb4c7 39708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39710 (eval $ac_try) 2>&5
39711 ac_status=$?
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); }; } &&
39714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39716 (eval $ac_try) 2>&5
39717 ac_status=$?
39718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); }; }; then
39720 echo "$as_me:$LINENO: result: no" >&5
39721echo "${ECHO_T}no" >&6
39722else
39723 echo "$as_me: failed program was:" >&5
39724sed 's/^/| /' conftest.$ac_ext >&5
39725
39726echo "$as_me:$LINENO: result: yes" >&5
39727echo "${ECHO_T}yes" >&6
39728 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39729fi
ac1cb8d3 39730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39731 ac_ext=c
39732ac_cpp='$CPP $CPPFLAGS'
39733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39735ac_compiler_gnu=$ac_cv_c_compiler_gnu
39736
a848cd7e
SC
39737 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39738 if test "$wxUSE_OLE" = "yes" ; then
39739 cat >>confdefs.h <<\_ACEOF
39740#define wxUSE_OLE 1
39741_ACEOF
39742
0b78747f 39743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39744 fi
39745 fi
39746
39747 if test "$wxUSE_DATAOBJ" = "yes" ; then
39748 cat >>confdefs.h <<\_ACEOF
39749#define wxUSE_DATAOBJ 1
39750_ACEOF
39751
39752 fi
39753 else
39754 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39755echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39756
39757 wxUSE_CLIPBOARD=no
39758 wxUSE_DRAG_AND_DROP=no
39759 wxUSE_DATAOBJ=no
39760 wxUSE_OLE=no
39761 fi
39762
39763 if test "$wxUSE_METAFILE" = "yes"; then
39764 cat >>confdefs.h <<\_ACEOF
39765#define wxUSE_METAFILE 1
39766_ACEOF
39767
39768
39769 cat >>confdefs.h <<\_ACEOF
39770#define wxUSE_ENH_METAFILE 1
39771_ACEOF
39772
39773 fi
39774fi
39775
39776if test "$wxUSE_IPC" = "yes"; then
0b78747f 39777 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39778 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39779echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39780 wxUSE_IPC=no
a848cd7e
SC
39781 fi
39782
0b78747f
MW
39783 if test "$wxUSE_IPC" = "yes"; then
39784 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39785#define wxUSE_IPC 1
39786_ACEOF
39787
0b78747f
MW
39788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39789 fi
a848cd7e
SC
39790fi
39791
eb730a0c 39792if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39793 if test "$wxUSE_MGL" = 1; then
39794 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39795echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39796 wxUSE_DATAOBJ=no
39797 else
39798 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39799#define wxUSE_DATAOBJ 1
39800_ACEOF
39801
2113bc77 39802 fi
eb730a0c
JS
39803else
39804 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39805echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39806 wxUSE_CLIPBOARD=no
39807 wxUSE_DRAG_AND_DROP=no
39808fi
39809
a848cd7e
SC
39810if test "$wxUSE_CLIPBOARD" = "yes"; then
39811 if test "$wxUSE_MGL" = 1; then
39812 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39813echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39814 wxUSE_CLIPBOARD=no
39815 fi
39816
39817 if test "$wxUSE_CLIPBOARD" = "yes"; then
39818 cat >>confdefs.h <<\_ACEOF
39819#define wxUSE_CLIPBOARD 1
39820_ACEOF
39821
a848cd7e
SC
39822 fi
39823fi
39824
39825if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39826 if test "$wxUSE_GTK" = 1; then
39827 if test "$WXGTK12" != 1; then
39828 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39829echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39830 wxUSE_DRAG_AND_DROP=no
39831 fi
39832 fi
39833
39834 if test "$wxUSE_MOTIF" = 1; then
39835 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39836echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39837 wxUSE_DRAG_AND_DROP=no
39838 fi
39839
39840 if test "$wxUSE_X11" = 1; then
39841 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39842echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39843 wxUSE_DRAG_AND_DROP=no
39844 fi
39845
39846 if test "$wxUSE_MGL" = 1; then
39847 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39848echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39849 wxUSE_DRAG_AND_DROP=no
39850 fi
39851
39852 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39853 cat >>confdefs.h <<\_ACEOF
39854#define wxUSE_DRAG_AND_DROP 1
39855_ACEOF
39856
39857 fi
39858
39859fi
39860
39861if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39863fi
39864
39865if test "$wxUSE_SPLINES" = "yes" ; then
39866 cat >>confdefs.h <<\_ACEOF
39867#define wxUSE_SPLINES 1
39868_ACEOF
39869
39870fi
39871
fbe2ca43
SN
39872if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39873 cat >>confdefs.h <<\_ACEOF
39874#define wxUSE_MOUSEWHEEL 1
39875_ACEOF
39876
39877fi
39878
a848cd7e
SC
39879
39880USES_CONTROLS=0
39881if test "$wxUSE_CONTROLS" = "yes"; then
39882 USES_CONTROLS=1
39883fi
39884
39885if test "$wxUSE_ACCEL" = "yes"; then
39886 cat >>confdefs.h <<\_ACEOF
39887#define wxUSE_ACCEL 1
39888_ACEOF
39889
39890 USES_CONTROLS=1
39891fi
39892
39893if test "$wxUSE_BUTTON" = "yes"; then
39894 cat >>confdefs.h <<\_ACEOF
39895#define wxUSE_BUTTON 1
39896_ACEOF
39897
39898 USES_CONTROLS=1
39899fi
39900
39901if test "$wxUSE_BMPBUTTON" = "yes"; then
39902 cat >>confdefs.h <<\_ACEOF
39903#define wxUSE_BMPBUTTON 1
39904_ACEOF
39905
39906 USES_CONTROLS=1
39907fi
39908
39909if test "$wxUSE_CALCTRL" = "yes"; then
39910 cat >>confdefs.h <<\_ACEOF
39911#define wxUSE_CALENDARCTRL 1
39912_ACEOF
39913
39914 USES_CONTROLS=1
39915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39916fi
39917
39918if test "$wxUSE_CARET" = "yes"; then
39919 cat >>confdefs.h <<\_ACEOF
39920#define wxUSE_CARET 1
39921_ACEOF
39922
39923 USES_CONTROLS=1
39924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39925fi
39926
39927if test "$wxUSE_COMBOBOX" = "yes"; then
39928 cat >>confdefs.h <<\_ACEOF
39929#define wxUSE_COMBOBOX 1
39930_ACEOF
39931
39932 USES_CONTROLS=1
39933fi
39934
39935if test "$wxUSE_CHOICE" = "yes"; then
39936 cat >>confdefs.h <<\_ACEOF
39937#define wxUSE_CHOICE 1
39938_ACEOF
39939
39940 USES_CONTROLS=1
39941fi
39942
92bbdbcd
WS
39943if test "$wxUSE_CHOICEBOOK" = "yes"; then
39944 cat >>confdefs.h <<\_ACEOF
39945#define wxUSE_CHOICEBOOK 1
39946_ACEOF
39947
39948 USES_CONTROLS=1
39949fi
39950
a848cd7e
SC
39951if test "$wxUSE_CHECKBOX" = "yes"; then
39952 cat >>confdefs.h <<\_ACEOF
39953#define wxUSE_CHECKBOX 1
39954_ACEOF
39955
39956 USES_CONTROLS=1
39957fi
39958
39959if test "$wxUSE_CHECKLST" = "yes"; then
39960 cat >>confdefs.h <<\_ACEOF
39961#define wxUSE_CHECKLISTBOX 1
39962_ACEOF
39963
39964 USES_CONTROLS=1
39965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39966fi
39967
da98e9be
VZ
39968if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39969 cat >>confdefs.h <<\_ACEOF
39970#define wxUSE_DATEPICKCTRL 1
39971_ACEOF
39972
39973 USES_CONTROLS=1
39974fi
39975
a848cd7e
SC
39976if test "$wxUSE_DISPLAY" = "yes"; then
39977 cat >>confdefs.h <<\_ACEOF
39978#define wxUSE_DISPLAY 1
39979_ACEOF
39980
0b78747f 39981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39982fi
39983
39984if test "$wxUSE_GAUGE" = "yes"; then
39985 cat >>confdefs.h <<\_ACEOF
39986#define wxUSE_GAUGE 1
39987_ACEOF
39988
39989 USES_CONTROLS=1
39990fi
39991
39992if test "$wxUSE_GRID" = "yes"; then
39993 cat >>confdefs.h <<\_ACEOF
39994#define wxUSE_GRID 1
39995_ACEOF
39996
39997 USES_CONTROLS=1
39998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39999fi
40000
40001if test "$wxUSE_IMAGLIST" = "yes"; then
40002 cat >>confdefs.h <<\_ACEOF
40003#define wxUSE_IMAGLIST 1
40004_ACEOF
40005
40006fi
40007
40008if test "$wxUSE_LISTBOOK" = "yes"; then
40009 cat >>confdefs.h <<\_ACEOF
40010#define wxUSE_LISTBOOK 1
40011_ACEOF
40012
40013 USES_CONTROLS=1
40014fi
40015
40016if test "$wxUSE_LISTBOX" = "yes"; then
40017 cat >>confdefs.h <<\_ACEOF
40018#define wxUSE_LISTBOX 1
40019_ACEOF
40020
40021 USES_CONTROLS=1
0b78747f 40022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40023fi
40024
40025if test "$wxUSE_LISTCTRL" = "yes"; then
40026 if test "$wxUSE_IMAGLIST" = "yes"; then
40027 cat >>confdefs.h <<\_ACEOF
40028#define wxUSE_LISTCTRL 1
40029_ACEOF
40030
40031 USES_CONTROLS=1
40032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40033 else
40034 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40035echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40036 fi
40037fi
40038
40039if test "$wxUSE_NOTEBOOK" = "yes"; then
40040 cat >>confdefs.h <<\_ACEOF
40041#define wxUSE_NOTEBOOK 1
40042_ACEOF
40043
40044 USES_CONTROLS=1
40045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40046fi
40047
40048
40049if test "$wxUSE_RADIOBOX" = "yes"; then
40050 cat >>confdefs.h <<\_ACEOF
40051#define wxUSE_RADIOBOX 1
40052_ACEOF
40053
40054 USES_CONTROLS=1
40055fi
40056
40057if test "$wxUSE_RADIOBTN" = "yes"; then
40058 cat >>confdefs.h <<\_ACEOF
40059#define wxUSE_RADIOBTN 1
40060_ACEOF
40061
40062 USES_CONTROLS=1
40063fi
40064
40065if test "$wxUSE_SASH" = "yes"; then
40066 cat >>confdefs.h <<\_ACEOF
40067#define wxUSE_SASH 1
40068_ACEOF
40069
40070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40071fi
40072
40073if test "$wxUSE_SCROLLBAR" = "yes"; then
40074 cat >>confdefs.h <<\_ACEOF
40075#define wxUSE_SCROLLBAR 1
40076_ACEOF
40077
40078 USES_CONTROLS=1
40079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40080fi
40081
40082if test "$wxUSE_SLIDER" = "yes"; then
40083 cat >>confdefs.h <<\_ACEOF
40084#define wxUSE_SLIDER 1
40085_ACEOF
40086
40087 USES_CONTROLS=1
40088fi
40089
40090if test "$wxUSE_SPINBTN" = "yes"; then
40091 cat >>confdefs.h <<\_ACEOF
40092#define wxUSE_SPINBTN 1
40093_ACEOF
40094
40095 USES_CONTROLS=1
40096fi
40097
40098if test "$wxUSE_SPINCTRL" = "yes"; then
40099 cat >>confdefs.h <<\_ACEOF
40100#define wxUSE_SPINCTRL 1
40101_ACEOF
40102
40103 USES_CONTROLS=1
40104fi
40105
40106if test "$wxUSE_SPLITTER" = "yes"; then
40107 cat >>confdefs.h <<\_ACEOF
40108#define wxUSE_SPLITTER 1
40109_ACEOF
40110
40111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40112fi
40113
40114if test "$wxUSE_STATBMP" = "yes"; then
40115 cat >>confdefs.h <<\_ACEOF
40116#define wxUSE_STATBMP 1
40117_ACEOF
40118
40119 USES_CONTROLS=1
40120fi
40121
40122if test "$wxUSE_STATBOX" = "yes"; then
40123 cat >>confdefs.h <<\_ACEOF
40124#define wxUSE_STATBOX 1
40125_ACEOF
40126
40127 USES_CONTROLS=1
40128fi
40129
40130if test "$wxUSE_STATTEXT" = "yes"; then
40131 cat >>confdefs.h <<\_ACEOF
40132#define wxUSE_STATTEXT 1
40133_ACEOF
40134
40135 USES_CONTROLS=1
40136fi
40137
40138if test "$wxUSE_STATLINE" = "yes"; then
40139 cat >>confdefs.h <<\_ACEOF
40140#define wxUSE_STATLINE 1
40141_ACEOF
40142
40143 USES_CONTROLS=1
40144fi
40145
40146if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40147 cat >>confdefs.h <<\_ACEOF
40148#define wxUSE_NATIVE_STATUSBAR 1
40149_ACEOF
40150
a848cd7e
SC
40151 cat >>confdefs.h <<\_ACEOF
40152#define wxUSE_STATUSBAR 1
40153_ACEOF
40154
40155 USES_CONTROLS=1
40156
40157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40158fi
40159
40160if test "$wxUSE_TABDIALOG" = "yes"; then
40161 cat >>confdefs.h <<\_ACEOF
40162#define wxUSE_TAB_DIALOG 1
40163_ACEOF
40164
a848cd7e
SC
40165fi
40166
40167if test "$wxUSE_TEXTCTRL" = "yes"; then
40168 cat >>confdefs.h <<\_ACEOF
40169#define wxUSE_TEXTCTRL 1
40170_ACEOF
40171
40172 USES_CONTROLS=1
40173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40174fi
40175
40176if test "$wxUSE_TOGGLEBTN" = "yes"; then
40177 if test "$wxUSE_COCOA" = 1 ; then
40178 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40179echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40180 wxUSE_TOGGLEBTN=no
40181 fi
40182 if test "$wxUSE_UNIVERSAL" = "yes"; then
40183 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40184echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40185 wxUSE_TOGGLEBTN=no
40186 fi
40187
40188 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40189 cat >>confdefs.h <<\_ACEOF
40190#define wxUSE_TOGGLEBTN 1
40191_ACEOF
40192
40193 USES_CONTROLS=1
40194 fi
40195fi
40196
40197if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define wxUSE_TOOLBAR_SIMPLE 1
40200_ACEOF
40201
40202 wxUSE_TOOLBAR="yes"
40203 USES_CONTROLS=1
40204fi
40205
40206if test "$wxUSE_TOOLBAR" = "yes"; then
40207 cat >>confdefs.h <<\_ACEOF
40208#define wxUSE_TOOLBAR 1
40209_ACEOF
40210
40211 USES_CONTROLS=1
40212
40213 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40214 wxUSE_TOOLBAR_NATIVE="yes"
40215 fi
40216
40217 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40218 cat >>confdefs.h <<\_ACEOF
40219#define wxUSE_TOOLBAR_NATIVE 1
40220_ACEOF
40221
40222 USES_CONTROLS=1
40223 fi
40224
40225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40226fi
40227
40228if test "$wxUSE_TOOLTIPS" = "yes"; then
40229 if test "$wxUSE_MOTIF" = 1; then
40230 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40231echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40232 else
40233 if test "$wxUSE_UNIVERSAL" = "yes"; then
40234 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40235echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40236 else
40237 cat >>confdefs.h <<\_ACEOF
40238#define wxUSE_TOOLTIPS 1
40239_ACEOF
40240
40241 fi
40242 fi
40243fi
40244
40245if test "$wxUSE_TREECTRL" = "yes"; then
40246 if test "$wxUSE_IMAGLIST" = "yes"; then
40247 cat >>confdefs.h <<\_ACEOF
40248#define wxUSE_TREECTRL 1
40249_ACEOF
40250
40251 USES_CONTROLS=1
40252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40253 else
40254 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40255echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40256 fi
40257fi
40258
40259if test "$wxUSE_POPUPWIN" = "yes"; then
40260 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40261 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40262echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40263 else
40264 if test "$wxUSE_PM" = 1; then
40265 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40266echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40267 else
40268 cat >>confdefs.h <<\_ACEOF
40269#define wxUSE_POPUPWIN 1
40270_ACEOF
40271
0b78747f 40272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40273
40274 USES_CONTROLS=1
40275 fi
40276 fi
40277fi
40278
0dcd06dd 40279if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40280 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40281 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40282echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40283 else
40284 cat >>confdefs.h <<\_ACEOF
40285#define wxUSE_DIALUP_MANAGER 1
40286_ACEOF
40287
40288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40289 fi
40290fi
40291
a848cd7e
SC
40292if test "$wxUSE_TIPWINDOW" = "yes"; then
40293 if test "$wxUSE_PM" = 1; then
40294 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40295echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40296 else
40297 cat >>confdefs.h <<\_ACEOF
40298#define wxUSE_TIPWINDOW 1
40299_ACEOF
40300
40301 fi
40302fi
40303
40304if test "$USES_CONTROLS" = 1; then
40305 cat >>confdefs.h <<\_ACEOF
40306#define wxUSE_CONTROLS 1
40307_ACEOF
40308
40309fi
40310
40311
40312if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40313 cat >>confdefs.h <<\_ACEOF
40314#define wxUSE_ACCESSIBILITY 1
40315_ACEOF
40316
40317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40318fi
40319
38b4a946
VZ
40320if test "$wxUSE_DC_CACHEING" = "yes"; then
40321 cat >>confdefs.h <<\_ACEOF
40322#define wxUSE_DC_CACHEING 1
40323_ACEOF
40324
40325fi
40326
a848cd7e
SC
40327if test "$wxUSE_DRAGIMAGE" = "yes"; then
40328 cat >>confdefs.h <<\_ACEOF
40329#define wxUSE_DRAGIMAGE 1
40330_ACEOF
40331
40332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40333fi
40334
40335if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40336 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40337 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40338echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40339 else
40340 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40341#define wxUSE_EXCEPTIONS 1
40342_ACEOF
40343
07bea8f0
VS
40344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40345 fi
a848cd7e
SC
40346fi
40347
40348USE_HTML=0
40349if test "$wxUSE_HTML" = "yes"; then
40350 cat >>confdefs.h <<\_ACEOF
40351#define wxUSE_HTML 1
40352_ACEOF
40353
40354 USE_HTML=1
40355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40356 if test "$wxUSE_MAC" = 1; then
40357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40358 fi
a848cd7e 40359fi
646b6ec1 40360if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40361 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40362 old_CPPFLAGS="$CPPFLAGS"
40363 CPPFLAGS="$CPPFLAGS -x objective-c++"
40364 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40365echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40366if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40367 echo $ECHO_N "(cached) $ECHO_C" >&6
40368else
40369 cat >conftest.$ac_ext <<_ACEOF
40370/* confdefs.h. */
40371_ACEOF
40372cat confdefs.h >>conftest.$ac_ext
40373cat >>conftest.$ac_ext <<_ACEOF
40374/* end confdefs.h. */
40375#include <Carbon/Carbon.h>
40376
40377#include <WebKit/HIWebView.h>
40378_ACEOF
40379rm -f conftest.$ac_objext
40380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40381 (eval $ac_compile) 2>conftest.er1
40382 ac_status=$?
40383 grep -v '^ *+' conftest.er1 >conftest.err
40384 rm -f conftest.er1
40385 cat conftest.err >&5
40386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40387 (exit $ac_status); } &&
6ebeb4c7 40388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40390 (eval $ac_try) 2>&5
40391 ac_status=$?
40392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40393 (exit $ac_status); }; } &&
40394 { ac_try='test -s conftest.$ac_objext'
40395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40396 (eval $ac_try) 2>&5
40397 ac_status=$?
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); }; }; then
40400 ac_cv_header_WebKit_HIWebView_h=yes
40401else
40402 echo "$as_me: failed program was:" >&5
40403sed 's/^/| /' conftest.$ac_ext >&5
40404
40405ac_cv_header_WebKit_HIWebView_h=no
40406fi
40407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40408fi
40409echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40410echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40411if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40412
40413 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40414#define wxUSE_WEBKIT 1
40415_ACEOF
40416
07bea8f0
VS
40417 WEBKIT_LINK="-framework WebKit"
40418
40419else
40420
40421 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40422echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40423 wxUSE_WEBKIT=no
40424
646b6ec1
VS
40425fi
40426
07bea8f0
VS
40427
40428 CPPFLAGS="$old_CPPFLAGS"
40429 elif test "$wxUSE_COCOA" = 1; then
40430 cat >>confdefs.h <<\_ACEOF
40431#define wxUSE_WEBKIT 1
40432_ACEOF
40433
40434 else
40435 wxUSE_WEBKIT=no
40436 fi
40437fi
40438
9a8f0513
VS
40439USE_XRC=0
40440if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40441 if test "$wxUSE_XML" != "yes"; then
40442 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40443echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40444 wxUSE_XRC=no
40445 else
40446 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40447#define wxUSE_XRC 1
40448_ACEOF
40449
d2ebf0b7
VS
40450 USE_XRC=1
40451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40452 fi
9a8f0513 40453fi
07bea8f0 40454
a848cd7e
SC
40455if test "$wxUSE_MENUS" = "yes"; then
40456 cat >>confdefs.h <<\_ACEOF
40457#define wxUSE_MENUS 1
40458_ACEOF
40459
40460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40461fi
40462
40463if test "$wxUSE_METAFILE" = "yes"; then
40464 cat >>confdefs.h <<\_ACEOF
40465#define wxUSE_METAFILE 1
40466_ACEOF
40467
40468fi
40469
40470if test "$wxUSE_MIMETYPE" = "yes"; then
40471 cat >>confdefs.h <<\_ACEOF
40472#define wxUSE_MIMETYPE 1
40473_ACEOF
40474
40475fi
40476
40477if test "$wxUSE_MINIFRAME" = "yes"; then
40478 cat >>confdefs.h <<\_ACEOF
40479#define wxUSE_MINIFRAME 1
40480_ACEOF
40481
40482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40483fi
40484
40485if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40486 cat >>confdefs.h <<\_ACEOF
40487#define wxUSE_SYSTEM_OPTIONS 1
40488_ACEOF
40489
40490 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40491 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40493 fi
40494fi
40495
40496
40497if test "$wxUSE_VALIDATORS" = "yes"; then
40498 cat >>confdefs.h <<\_ACEOF
40499#define wxUSE_VALIDATORS 1
40500_ACEOF
40501
40502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40503fi
40504
40505if test "$wxUSE_PALETTE" = "yes" ; then
40506 cat >>confdefs.h <<\_ACEOF
40507#define wxUSE_PALETTE 1
40508_ACEOF
40509
40510fi
40511
40512if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40513 LIBS=" -lunicows $LIBS"
40514fi
40515
40516
40517if test "$wxUSE_IMAGE" = "yes" ; then
40518 cat >>confdefs.h <<\_ACEOF
40519#define wxUSE_IMAGE 1
40520_ACEOF
40521
40522
40523 if test "$wxUSE_GIF" = "yes" ; then
40524 cat >>confdefs.h <<\_ACEOF
40525#define wxUSE_GIF 1
40526_ACEOF
40527
40528 fi
40529
40530 if test "$wxUSE_PCX" = "yes" ; then
40531 cat >>confdefs.h <<\_ACEOF
40532#define wxUSE_PCX 1
40533_ACEOF
40534
40535 fi
40536
40537 if test "$wxUSE_IFF" = "yes" ; then
40538 cat >>confdefs.h <<\_ACEOF
40539#define wxUSE_IFF 1
40540_ACEOF
40541
40542 fi
40543
40544 if test "$wxUSE_PNM" = "yes" ; then
40545 cat >>confdefs.h <<\_ACEOF
40546#define wxUSE_PNM 1
40547_ACEOF
40548
40549 fi
40550
40551 if test "$wxUSE_XPM" = "yes" ; then
40552 cat >>confdefs.h <<\_ACEOF
40553#define wxUSE_XPM 1
40554_ACEOF
40555
40556 fi
40557
40558 if test "$wxUSE_ICO_CUR" = "yes" ; then
40559 cat >>confdefs.h <<\_ACEOF
40560#define wxUSE_ICO_CUR 1
40561_ACEOF
40562
40563 fi
40564fi
40565
40566
40567if test "$wxUSE_CHOICEDLG" = "yes"; then
40568 cat >>confdefs.h <<\_ACEOF
40569#define wxUSE_CHOICEDLG 1
40570_ACEOF
40571
40572fi
40573
40574if test "$wxUSE_COLOURDLG" = "yes"; then
40575 cat >>confdefs.h <<\_ACEOF
40576#define wxUSE_COLOURDLG 1
40577_ACEOF
40578
40579fi
40580
40581if test "$wxUSE_FILEDLG" = "yes"; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_FILEDLG 1
40584_ACEOF
40585
40586fi
40587
40588if test "$wxUSE_FINDREPLDLG" = "yes"; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_FINDREPLDLG 1
40591_ACEOF
40592
40593fi
40594
40595if test "$wxUSE_FONTDLG" = "yes"; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define wxUSE_FONTDLG 1
40598_ACEOF
40599
40600fi
40601
40602if test "$wxUSE_DIRDLG" = "yes"; then
40603 if test "$wxUSE_TREECTRL" != "yes"; then
40604 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40605echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40606 else
40607 cat >>confdefs.h <<\_ACEOF
40608#define wxUSE_DIRDLG 1
40609_ACEOF
40610
40611 fi
40612fi
40613
40614if test "$wxUSE_MSGDLG" = "yes"; then
40615 cat >>confdefs.h <<\_ACEOF
40616#define wxUSE_MSGDLG 1
40617_ACEOF
40618
40619fi
40620
40621if test "$wxUSE_NUMBERDLG" = "yes"; then
40622 cat >>confdefs.h <<\_ACEOF
40623#define wxUSE_NUMBERDLG 1
40624_ACEOF
40625
40626fi
40627
40628if test "$wxUSE_PROGRESSDLG" = "yes"; then
40629 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40630 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40631echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40632 else
40633 cat >>confdefs.h <<\_ACEOF
40634#define wxUSE_PROGRESSDLG 1
40635_ACEOF
40636
40637 fi
40638fi
40639
40640if test "$wxUSE_SPLASH" = "yes"; then
40641 cat >>confdefs.h <<\_ACEOF
40642#define wxUSE_SPLASH 1
40643_ACEOF
40644
2057db16 40645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40646fi
40647
40648if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40649 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40650 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40651echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40652 else
40653 cat >>confdefs.h <<\_ACEOF
40654#define wxUSE_STARTUP_TIPS 1
40655_ACEOF
40656
40657 fi
40658fi
40659
40660if test "$wxUSE_TEXTDLG" = "yes"; then
40661 cat >>confdefs.h <<\_ACEOF
40662#define wxUSE_TEXTDLG 1
40663_ACEOF
40664
40665fi
40666
40667if test "$wxUSE_WIZARDDLG" = "yes"; then
40668 cat >>confdefs.h <<\_ACEOF
40669#define wxUSE_WIZARDDLG 1
40670_ACEOF
40671
40672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40673fi
40674
40675
ce756cb0 40676if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40677 if test "$wxUSE_GTK" = 1; then
40678 wxUSE_GSTREAMER="yes"
40679
ce756cb0 40680
dae87f93 40681 succeeded=no
ce756cb0 40682
dae87f93
RN
40683 if test -z "$PKG_CONFIG"; then
40684 # Extract the first word of "pkg-config", so it can be a program name with args.
40685set dummy pkg-config; ac_word=$2
40686echo "$as_me:$LINENO: checking for $ac_word" >&5
40687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40688if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40689 echo $ECHO_N "(cached) $ECHO_C" >&6
40690else
40691 case $PKG_CONFIG in
40692 [\\/]* | ?:[\\/]*)
40693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40694 ;;
40695 *)
40696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40697for as_dir in $PATH
40698do
40699 IFS=$as_save_IFS
40700 test -z "$as_dir" && as_dir=.
40701 for ac_exec_ext in '' $ac_executable_extensions; do
40702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40705 break 2
40706 fi
40707done
40708done
40709
40710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40711 ;;
40712esac
40713fi
40714PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40715
40716if test -n "$PKG_CONFIG"; then
40717 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40718echo "${ECHO_T}$PKG_CONFIG" >&6
40719else
40720 echo "$as_me:$LINENO: result: no" >&5
40721echo "${ECHO_T}no" >&6
40722fi
40723
40724 fi
40725
40726 if test "$PKG_CONFIG" = "no" ; then
40727 echo "*** The pkg-config script could not be found. Make sure it is"
40728 echo "*** in your path, or set the PKG_CONFIG environment variable"
40729 echo "*** to the full path to pkg-config."
40730 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40731 else
40732 PKG_CONFIG_MIN_VERSION=0.9.0
40733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40734 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40735echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40736
40737 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40738 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40739echo "${ECHO_T}yes" >&6
dae87f93 40740 succeeded=yes
ce756cb0 40741
dae87f93
RN
40742 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40743echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40744 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40745 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40746echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40747
40748 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40749echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40750 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40751 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40752echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40753 else
40754 GSTREAMER_CFLAGS=""
40755 GSTREAMER_LIBS=""
40756 ## If we have a custom action on failure, don't print errors, but
40757 ## do set a variable so people can do so.
40758 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40759
dae87f93
RN
40760 fi
40761
40762
40763
40764 else
40765 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40766 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40767 fi
40768 fi
40769
40770 if test $succeeded = yes; then
40771
40772 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40773 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40774
ce756cb0 40775 else
dae87f93
RN
40776
40777 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40778echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40779 wxUSE_GSTREAMER="no"
40780
40781 fi
40782
40783
40784
40785
40786
40787 if test "x$GST_INSPECT" == "x"; then
40788 # Extract the first word of "gst-inspect", so it can be a program name with args.
40789set dummy gst-inspect; ac_word=$2
40790echo "$as_me:$LINENO: checking for $ac_word" >&5
40791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40792if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40793 echo $ECHO_N "(cached) $ECHO_C" >&6
40794else
40795 if test -n "$GST_INSPECT"; then
40796 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40797else
40798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40799for as_dir in $PATH
40800do
40801 IFS=$as_save_IFS
40802 test -z "$as_dir" && as_dir=.
40803 for ac_exec_ext in '' $ac_executable_extensions; do
40804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40805 ac_cv_prog_GST_INSPECT="gst-inspect"
40806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40807 break 2
ce756cb0 40808 fi
dae87f93
RN
40809done
40810done
40811
40812fi
40813fi
40814GST_INSPECT=$ac_cv_prog_GST_INSPECT
40815if test -n "$GST_INSPECT"; then
40816 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40817echo "${ECHO_T}$GST_INSPECT" >&6
40818else
40819 echo "$as_me:$LINENO: result: no" >&5
40820echo "${ECHO_T}no" >&6
40821fi
40822
40823 fi
40824
40825 if test "x$GST_INSPECT" != "x"; then
40826 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40827echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40828 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40829 echo "$as_me:$LINENO: result: found." >&5
40830echo "${ECHO_T}found." >&6
ce756cb0 40831
ce756cb0 40832 else
dae87f93
RN
40833 echo "$as_me:$LINENO: result: not found." >&5
40834echo "${ECHO_T}not found." >&6
40835
40836 wxUSE_GSTREAMER="no"
40837 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40838echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40839
40840 fi
40841 fi
40842
40843
40844 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40845echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40846if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40847 echo $ECHO_N "(cached) $ECHO_C" >&6
40848else
40849 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40850/* confdefs.h. */
40851_ACEOF
40852cat confdefs.h >>conftest.$ac_ext
40853cat >>conftest.$ac_ext <<_ACEOF
40854/* end confdefs.h. */
dae87f93 40855#include <gst/gst.h>
ce756cb0 40856
dae87f93 40857#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40858_ACEOF
40859rm -f conftest.$ac_objext
40860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40861 (eval $ac_compile) 2>conftest.er1
40862 ac_status=$?
40863 grep -v '^ *+' conftest.er1 >conftest.err
40864 rm -f conftest.er1
40865 cat conftest.err >&5
40866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867 (exit $ac_status); } &&
6ebeb4c7 40868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40870 (eval $ac_try) 2>&5
40871 ac_status=$?
40872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40873 (exit $ac_status); }; } &&
40874 { ac_try='test -s conftest.$ac_objext'
40875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40876 (eval $ac_try) 2>&5
40877 ac_status=$?
40878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879 (exit $ac_status); }; }; then
dae87f93 40880 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40881else
40882 echo "$as_me: failed program was:" >&5
40883sed 's/^/| /' conftest.$ac_ext >&5
40884
dae87f93 40885ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40886fi
40887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40888fi
40889echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40890echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40891if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40892 :
40893else
ce756cb0 40894
dae87f93
RN
40895 wxUSE_GSTREAMER="no"
40896 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40897echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40898
dae87f93 40899fi
ce756cb0 40900
dae87f93
RN
40901
40902
40903 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40904echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40905
40906ac_find_libraries=
40907for ac_dir in $SEARCH_LIB /usr/lib;
40908 do
3eca31dc 40909 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
40910 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40911 ac_find_libraries=$ac_dir
40912 break 2
40913 fi
40914 done
40915 done
40916
ce756cb0 40917
dae87f93
RN
40918 if test "$ac_find_libraries" = "" ; then
40919 echo "$as_me:$LINENO: result: no" >&5
40920echo "${ECHO_T}no" >&6
40921 wxUSE_GSTREAMER="no"
40922 else
40923 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40924echo "${ECHO_T}yes" >&6
dae87f93 40925 fi
ce756cb0 40926
dae87f93
RN
40927 if test "$wxUSE_GSTREAMER" = "yes"; then
40928 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40929#define wxUSE_GSTREAMER 1
40930_ACEOF
40931
dae87f93
RN
40932 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40933echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40934 fi
40935 fi
40936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40937 cat >>confdefs.h <<\_ACEOF
40938#define wxUSE_MEDIACTRL 1
40939_ACEOF
40940
40941fi
40942
40943
a848cd7e
SC
40944if test "$cross_compiling" = "yes"; then
40945 OSINFO="\"$host\""
40946else
40947 OSINFO=`uname -s -r -m`
40948 OSINFO="\"$OSINFO\""
40949fi
40950
40951cat >>confdefs.h <<_ACEOF
40952#define WXWIN_OS_DESCRIPTION $OSINFO
40953_ACEOF
40954
40955
40956
40957if test "x$prefix" != "xNONE"; then
40958 wxPREFIX=$prefix
40959else
40960 wxPREFIX=$ac_default_prefix
40961fi
40962
40963cat >>confdefs.h <<_ACEOF
40964#define wxINSTALL_PREFIX "$wxPREFIX"
40965_ACEOF
40966
40967
a848cd7e
SC
40968
40969
40970CORE_BASE_LIBS="net base"
40971CORE_GUI_LIBS="adv core"
40972
40973if test "$wxUSE_XML" = "yes" ; then
40974 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40975fi
40976if test "$wxUSE_ODBC" != "no" ; then
40977 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40978 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40979fi
40980if test "$wxUSE_HTML" = "yes" ; then
40981 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40982fi
61639efb
VZ
40983if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40984 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40985fi
9a8f0513
VS
40986if test "$wxUSE_XRC" = "yes" ; then
40987 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40988fi
a848cd7e
SC
40989
40990if test "$wxUSE_GUI" != "yes"; then
40991 CORE_GUI_LIBS=""
40992fi
40993
40994
40995
40996
40997
40998
40999
41000
41001if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41002 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41003 if test "$USE_DARWIN" = 1; then
41004 LDFLAGS="$LDFLAGS -framework QuickTime"
41005 else
41006 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41007 fi
07bea8f0 41008 fi
5dcf30a0 41009 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41010 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41011 else
41012 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41013 fi
a848cd7e
SC
41014fi
41015if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41016 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41017 if test "$wxUSE_MEDIACTRL" = "yes"; then
41018 LDFLAGS="$LDFLAGS -framework QuickTime"
41019 fi
a848cd7e 41020fi
19b27e78
MW
41021if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41022 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41023fi
a848cd7e
SC
41024
41025
41026LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41027
41028have_cos=0
41029have_floor=0
41030
41031for ac_func in cos
41032do
41033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41034echo "$as_me:$LINENO: checking for $ac_func" >&5
41035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41036if eval "test \"\${$as_ac_var+set}\" = set"; then
41037 echo $ECHO_N "(cached) $ECHO_C" >&6
41038else
41039 cat >conftest.$ac_ext <<_ACEOF
41040/* confdefs.h. */
41041_ACEOF
41042cat confdefs.h >>conftest.$ac_ext
41043cat >>conftest.$ac_ext <<_ACEOF
41044/* end confdefs.h. */
ac1cb8d3
VS
41045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41047#define $ac_func innocuous_$ac_func
41048
a848cd7e
SC
41049/* System header to define __stub macros and hopefully few prototypes,
41050 which can conflict with char $ac_func (); below.
41051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41053
a848cd7e
SC
41054#ifdef __STDC__
41055# include <limits.h>
41056#else
41057# include <assert.h>
41058#endif
ac1cb8d3
VS
41059
41060#undef $ac_func
41061
a848cd7e
SC
41062/* Override any gcc2 internal prototype to avoid an error. */
41063#ifdef __cplusplus
41064extern "C"
41065{
41066#endif
41067/* We use char because int might match the return type of a gcc2
41068 builtin and then its argument prototype would still apply. */
41069char $ac_func ();
41070/* The GNU C library defines this for functions which it implements
41071 to always fail with ENOSYS. Some functions are actually named
41072 something starting with __ and the normal name is an alias. */
41073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41074choke me
41075#else
41076char (*f) () = $ac_func;
41077#endif
41078#ifdef __cplusplus
41079}
41080#endif
41081
41082int
41083main ()
41084{
41085return f != $ac_func;
41086 ;
41087 return 0;
41088}
41089_ACEOF
41090rm -f conftest.$ac_objext conftest$ac_exeext
41091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41092 (eval $ac_link) 2>conftest.er1
a848cd7e 41093 ac_status=$?
ac1cb8d3
VS
41094 grep -v '^ *+' conftest.er1 >conftest.err
41095 rm -f conftest.er1
41096 cat conftest.err >&5
a848cd7e
SC
41097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); } &&
6ebeb4c7 41099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41101 (eval $ac_try) 2>&5
41102 ac_status=$?
41103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41104 (exit $ac_status); }; } &&
41105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41107 (eval $ac_try) 2>&5
41108 ac_status=$?
41109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41110 (exit $ac_status); }; }; then
41111 eval "$as_ac_var=yes"
41112else
41113 echo "$as_me: failed program was:" >&5
41114sed 's/^/| /' conftest.$ac_ext >&5
41115
41116eval "$as_ac_var=no"
41117fi
ac1cb8d3
VS
41118rm -f conftest.err conftest.$ac_objext \
41119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41120fi
41121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41123if test `eval echo '${'$as_ac_var'}'` = yes; then
41124 cat >>confdefs.h <<_ACEOF
41125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41126_ACEOF
41127 have_cos=1
41128fi
41129done
41130
41131
41132for ac_func in floor
41133do
41134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41135echo "$as_me:$LINENO: checking for $ac_func" >&5
41136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41137if eval "test \"\${$as_ac_var+set}\" = set"; then
41138 echo $ECHO_N "(cached) $ECHO_C" >&6
41139else
41140 cat >conftest.$ac_ext <<_ACEOF
41141/* confdefs.h. */
41142_ACEOF
41143cat confdefs.h >>conftest.$ac_ext
41144cat >>conftest.$ac_ext <<_ACEOF
41145/* end confdefs.h. */
ac1cb8d3
VS
41146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41148#define $ac_func innocuous_$ac_func
41149
a848cd7e
SC
41150/* System header to define __stub macros and hopefully few prototypes,
41151 which can conflict with char $ac_func (); below.
41152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41154
a848cd7e
SC
41155#ifdef __STDC__
41156# include <limits.h>
41157#else
41158# include <assert.h>
41159#endif
ac1cb8d3
VS
41160
41161#undef $ac_func
41162
a848cd7e
SC
41163/* Override any gcc2 internal prototype to avoid an error. */
41164#ifdef __cplusplus
41165extern "C"
41166{
41167#endif
41168/* We use char because int might match the return type of a gcc2
41169 builtin and then its argument prototype would still apply. */
41170char $ac_func ();
41171/* The GNU C library defines this for functions which it implements
41172 to always fail with ENOSYS. Some functions are actually named
41173 something starting with __ and the normal name is an alias. */
41174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41175choke me
41176#else
41177char (*f) () = $ac_func;
41178#endif
41179#ifdef __cplusplus
41180}
41181#endif
41182
41183int
41184main ()
41185{
41186return f != $ac_func;
41187 ;
41188 return 0;
41189}
41190_ACEOF
41191rm -f conftest.$ac_objext conftest$ac_exeext
41192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41193 (eval $ac_link) 2>conftest.er1
a848cd7e 41194 ac_status=$?
ac1cb8d3
VS
41195 grep -v '^ *+' conftest.er1 >conftest.err
41196 rm -f conftest.er1
41197 cat conftest.err >&5
a848cd7e
SC
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); } &&
6ebeb4c7 41200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202 (eval $ac_try) 2>&5
41203 ac_status=$?
41204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205 (exit $ac_status); }; } &&
41206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41208 (eval $ac_try) 2>&5
41209 ac_status=$?
41210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211 (exit $ac_status); }; }; then
41212 eval "$as_ac_var=yes"
41213else
41214 echo "$as_me: failed program was:" >&5
41215sed 's/^/| /' conftest.$ac_ext >&5
41216
41217eval "$as_ac_var=no"
41218fi
ac1cb8d3
VS
41219rm -f conftest.err conftest.$ac_objext \
41220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41221fi
41222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41224if test `eval echo '${'$as_ac_var'}'` = yes; then
41225 cat >>confdefs.h <<_ACEOF
41226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41227_ACEOF
41228 have_floor=1
41229fi
41230done
41231
41232echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41233echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41234if test "$have_cos" = 1 -a "$have_floor" = 1; then
41235 echo "$as_me:$LINENO: result: yes" >&5
41236echo "${ECHO_T}yes" >&6
41237else
41238 echo "$as_me:$LINENO: result: no" >&5
41239echo "${ECHO_T}no" >&6
41240 LIBS="$LIBS -lm"
41241 # use different functions to avoid configure caching
41242 have_sin=0
41243 have_ceil=0
41244
41245for ac_func in sin
41246do
41247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41248echo "$as_me:$LINENO: checking for $ac_func" >&5
41249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41250if eval "test \"\${$as_ac_var+set}\" = set"; then
41251 echo $ECHO_N "(cached) $ECHO_C" >&6
41252else
41253 cat >conftest.$ac_ext <<_ACEOF
41254/* confdefs.h. */
41255_ACEOF
41256cat confdefs.h >>conftest.$ac_ext
41257cat >>conftest.$ac_ext <<_ACEOF
41258/* end confdefs.h. */
ac1cb8d3
VS
41259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41261#define $ac_func innocuous_$ac_func
41262
a848cd7e
SC
41263/* System header to define __stub macros and hopefully few prototypes,
41264 which can conflict with char $ac_func (); below.
41265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41266 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41267
a848cd7e
SC
41268#ifdef __STDC__
41269# include <limits.h>
41270#else
41271# include <assert.h>
41272#endif
ac1cb8d3
VS
41273
41274#undef $ac_func
41275
a848cd7e
SC
41276/* Override any gcc2 internal prototype to avoid an error. */
41277#ifdef __cplusplus
41278extern "C"
41279{
41280#endif
41281/* We use char because int might match the return type of a gcc2
41282 builtin and then its argument prototype would still apply. */
41283char $ac_func ();
41284/* The GNU C library defines this for functions which it implements
41285 to always fail with ENOSYS. Some functions are actually named
41286 something starting with __ and the normal name is an alias. */
41287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41288choke me
41289#else
41290char (*f) () = $ac_func;
41291#endif
41292#ifdef __cplusplus
41293}
41294#endif
41295
41296int
41297main ()
41298{
41299return f != $ac_func;
41300 ;
41301 return 0;
41302}
41303_ACEOF
41304rm -f conftest.$ac_objext conftest$ac_exeext
41305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41306 (eval $ac_link) 2>conftest.er1
a848cd7e 41307 ac_status=$?
ac1cb8d3
VS
41308 grep -v '^ *+' conftest.er1 >conftest.err
41309 rm -f conftest.er1
41310 cat conftest.err >&5
a848cd7e
SC
41311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312 (exit $ac_status); } &&
6ebeb4c7 41313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41315 (eval $ac_try) 2>&5
41316 ac_status=$?
41317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41318 (exit $ac_status); }; } &&
41319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41321 (eval $ac_try) 2>&5
41322 ac_status=$?
41323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); }; }; then
41325 eval "$as_ac_var=yes"
41326else
41327 echo "$as_me: failed program was:" >&5
41328sed 's/^/| /' conftest.$ac_ext >&5
41329
41330eval "$as_ac_var=no"
41331fi
ac1cb8d3
VS
41332rm -f conftest.err conftest.$ac_objext \
41333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41334fi
41335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41337if test `eval echo '${'$as_ac_var'}'` = yes; then
41338 cat >>confdefs.h <<_ACEOF
41339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41340_ACEOF
41341 have_sin=1
41342fi
41343done
41344
41345
41346for ac_func in ceil
41347do
41348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41349echo "$as_me:$LINENO: checking for $ac_func" >&5
41350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41351if eval "test \"\${$as_ac_var+set}\" = set"; then
41352 echo $ECHO_N "(cached) $ECHO_C" >&6
41353else
41354 cat >conftest.$ac_ext <<_ACEOF
41355/* confdefs.h. */
41356_ACEOF
41357cat confdefs.h >>conftest.$ac_ext
41358cat >>conftest.$ac_ext <<_ACEOF
41359/* end confdefs.h. */
ac1cb8d3
VS
41360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41362#define $ac_func innocuous_$ac_func
41363
a848cd7e
SC
41364/* System header to define __stub macros and hopefully few prototypes,
41365 which can conflict with char $ac_func (); below.
41366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41367 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41368
a848cd7e
SC
41369#ifdef __STDC__
41370# include <limits.h>
41371#else
41372# include <assert.h>
41373#endif
ac1cb8d3
VS
41374
41375#undef $ac_func
41376
a848cd7e
SC
41377/* Override any gcc2 internal prototype to avoid an error. */
41378#ifdef __cplusplus
41379extern "C"
41380{
41381#endif
41382/* We use char because int might match the return type of a gcc2
41383 builtin and then its argument prototype would still apply. */
41384char $ac_func ();
41385/* The GNU C library defines this for functions which it implements
41386 to always fail with ENOSYS. Some functions are actually named
41387 something starting with __ and the normal name is an alias. */
41388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41389choke me
41390#else
41391char (*f) () = $ac_func;
41392#endif
41393#ifdef __cplusplus
41394}
41395#endif
41396
41397int
41398main ()
41399{
41400return f != $ac_func;
41401 ;
41402 return 0;
41403}
41404_ACEOF
41405rm -f conftest.$ac_objext conftest$ac_exeext
41406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41407 (eval $ac_link) 2>conftest.er1
a848cd7e 41408 ac_status=$?
ac1cb8d3
VS
41409 grep -v '^ *+' conftest.er1 >conftest.err
41410 rm -f conftest.er1
41411 cat conftest.err >&5
a848cd7e
SC
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); } &&
6ebeb4c7 41414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41416 (eval $ac_try) 2>&5
41417 ac_status=$?
41418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419 (exit $ac_status); }; } &&
41420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41422 (eval $ac_try) 2>&5
41423 ac_status=$?
41424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425 (exit $ac_status); }; }; then
41426 eval "$as_ac_var=yes"
41427else
41428 echo "$as_me: failed program was:" >&5
41429sed 's/^/| /' conftest.$ac_ext >&5
41430
41431eval "$as_ac_var=no"
41432fi
ac1cb8d3
VS
41433rm -f conftest.err conftest.$ac_objext \
41434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41435fi
41436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41437echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41438if test `eval echo '${'$as_ac_var'}'` = yes; then
41439 cat >>confdefs.h <<_ACEOF
41440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41441_ACEOF
41442 have_ceil=1
41443fi
41444done
41445
41446 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41447echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41448 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41449 echo "$as_me:$LINENO: result: yes" >&5
41450echo "${ECHO_T}yes" >&6
41451 else
41452 echo "$as_me:$LINENO: result: no" >&5
41453echo "${ECHO_T}no" >&6
41454 # not sure we should warn the user, crash, etc.
41455 fi
41456fi
41457
41458if test "$wxUSE_GUI" = "yes"; then
41459
41460
8bce5cda
MW
41461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41462 dynamic erase event exec font image minimal mobile \
41463 mobile/wxedit mobile/styles propsize render \
41464 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41465
41466 if test "$wxUSE_MONOLITHIC" != "yes"; then
41467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41468 fi
0b78747f 41469 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41471 if test "$wxUSE_UNIVERSAL" != "yes"; then
41472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41473 fi
41474 fi
41475 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41477 fi
a848cd7e
SC
41478else
41479 SAMPLES_SUBDIRS="console"
41480fi
41481
41482
ceec2216 41483INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41484-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41485
41486if test "$GXX" = yes ; then
6ebeb4c7 41487 CWARNINGS="-Wall -Wundef"
5294a27e 41488 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41489fi
a848cd7e
SC
41490
41491EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41492
0c3c69fc 41493CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41494CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41495CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41496
95986553
DE
41497if test "x$MWCC" = "xyes"; then
41498
41499 CC="$CC -cwd source -I-"
41500 CXX="$CXX -cwd source -I-"
41501fi
41502
a848cd7e 41503
0c3c69fc 41504LIBS=`echo $LIBS`
a848cd7e
SC
41505EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41506EXTRALIBS_XML="$EXPAT_LINK"
41507EXTRALIBS_HTML="$MSPACK_LINK"
41508EXTRALIBS_ODBC="$ODBC_LINK"
41509if test "$wxUSE_GUI" = "yes"; then
2e350179 41510 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41511fi
41512if test "$wxUSE_OPENGL" = "yes"; then
41513 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41514fi
41515
41516LDFLAGS="$LDFLAGS $PROFILE"
41517
41518if test "$wxUSE_GTK" = 1; then
41519 WXCONFIG_INCLUDE=
41520else
41521 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41522fi
41523
41524WXCONFIG_EXTRALIBS="$LIBS"
41525
41526if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41527 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41528fi
41529if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41530 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41531fi
41532if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41533 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41534fi
41535if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41536 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41537fi
41538if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41539 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41540fi
41541if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41542 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41543fi
41544if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41545 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41546fi
41547
41548for i in $wxconfig_3rdparty ; do
74802184 41549 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41550done
41551
41552
41553if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41554 WXUNIV=1
41555else
41556 WXUNIV=0
41557fi
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567if test $wxUSE_MONOLITHIC = "yes" ; then
41568 MONOLITHIC=1
41569else
41570 MONOLITHIC=0
41571fi
41572
41573if test $wxUSE_PLUGINS = "yes" ; then
41574 USE_PLUGINS=1
41575else
41576 USE_PLUGINS=0
41577fi
41578
41579if test $wxUSE_ODBC != "no" ; then
41580 USE_ODBC=1
41581else
41582 USE_ODBC=0
41583fi
41584
16358932
VZ
41585if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41586 USE_QA=1
41587else
41588 USE_QA=0
41589fi
41590
a848cd7e
SC
41591if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41592 OFFICIAL_BUILD=1
41593else
41594 OFFICIAL_BUILD=0
41595fi
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
ceec2216 41615
d1c38808 41616
a848cd7e
SC
41617
41618
41619TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41620
41621
41622
41623
41624
41625
41626
41627
4d4ff94c
VZ
41628case "$TOOLKIT" in
41629 GTK)
41630 TOOLKIT_USER="GTK+"
41631 if test "$WXGTK20" = 1; then
41632 TOOLKIT_USER="$TOOLKIT_USER 2"
41633 fi
9a8f0513 41634 ;;
4d4ff94c
VZ
41635
41636 *)
41637 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41638 ;;
4d4ff94c 41639esac
a848cd7e 41640
fb00f58d
JS
41641if test "$wxUSE_WINE" = "yes"; then
41642 BAKEFILE_FORCE_PLATFORM=win32
41643fi
41644
9a8f0513 41645
1e9e8aba
DE
41646
41647
a848cd7e
SC
41648 if test "x$BAKEFILE_HOST" = "x"; then
41649 BAKEFILE_HOST="${host}"
41650 fi
41651
41652 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41653
41654 if test -n "$ac_tool_prefix"; then
41655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41656set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41657echo "$as_me:$LINENO: checking for $ac_word" >&5
41658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41659if test "${ac_cv_prog_RANLIB+set}" = set; then
41660 echo $ECHO_N "(cached) $ECHO_C" >&6
41661else
41662 if test -n "$RANLIB"; then
41663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41664else
41665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41666for as_dir in $PATH
41667do
41668 IFS=$as_save_IFS
41669 test -z "$as_dir" && as_dir=.
41670 for ac_exec_ext in '' $ac_executable_extensions; do
41671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41674 break 2
41675 fi
41676done
41677done
41678
41679fi
41680fi
41681RANLIB=$ac_cv_prog_RANLIB
41682if test -n "$RANLIB"; then
41683 echo "$as_me:$LINENO: result: $RANLIB" >&5
41684echo "${ECHO_T}$RANLIB" >&6
41685else
41686 echo "$as_me:$LINENO: result: no" >&5
41687echo "${ECHO_T}no" >&6
41688fi
41689
41690fi
41691if test -z "$ac_cv_prog_RANLIB"; then
41692 ac_ct_RANLIB=$RANLIB
41693 # Extract the first word of "ranlib", so it can be a program name with args.
41694set dummy ranlib; ac_word=$2
41695echo "$as_me:$LINENO: checking for $ac_word" >&5
41696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41697if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41698 echo $ECHO_N "(cached) $ECHO_C" >&6
41699else
41700 if test -n "$ac_ct_RANLIB"; then
41701 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41702else
41703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41704for as_dir in $PATH
41705do
41706 IFS=$as_save_IFS
41707 test -z "$as_dir" && as_dir=.
41708 for ac_exec_ext in '' $ac_executable_extensions; do
41709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41710 ac_cv_prog_ac_ct_RANLIB="ranlib"
41711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41712 break 2
41713 fi
41714done
41715done
41716
41717 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41718fi
41719fi
41720ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41721if test -n "$ac_ct_RANLIB"; then
41722 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41723echo "${ECHO_T}$ac_ct_RANLIB" >&6
41724else
41725 echo "$as_me:$LINENO: result: no" >&5
41726echo "${ECHO_T}no" >&6
41727fi
41728
41729 RANLIB=$ac_ct_RANLIB
41730else
41731 RANLIB="$ac_cv_prog_RANLIB"
41732fi
41733
41734 # Find a good install program. We prefer a C program (faster),
41735# so one script is as good as another. But avoid the broken or
41736# incompatible versions:
41737# SysV /etc/install, /usr/sbin/install
41738# SunOS /usr/etc/install
41739# IRIX /sbin/install
41740# AIX /bin/install
41741# AmigaOS /C/install, which installs bootblocks on floppy discs
41742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41745# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41746# ./install, which can be erroneously created by make from ./install.sh.
41747echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41748echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41749if test -z "$INSTALL"; then
41750if test "${ac_cv_path_install+set}" = set; then
41751 echo $ECHO_N "(cached) $ECHO_C" >&6
41752else
41753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41754for as_dir in $PATH
41755do
41756 IFS=$as_save_IFS
41757 test -z "$as_dir" && as_dir=.
41758 # Account for people who put trailing slashes in PATH elements.
41759case $as_dir/ in
41760 ./ | .// | /cC/* | \
41761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41762 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41763 /usr/ucb/* ) ;;
41764 *)
41765 # OSF1 and SCO ODT 3.0 have their own names for install.
41766 # Don't use installbsd from OSF since it installs stuff as root
41767 # by default.
41768 for ac_prog in ginstall scoinst install; do
41769 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41770 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41771 if test $ac_prog = install &&
41772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41773 # AIX install. It has an incompatible calling convention.
41774 :
41775 elif test $ac_prog = install &&
41776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41777 # program-specific install script used by HP pwplus--don't use.
41778 :
41779 else
41780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41781 break 3
41782 fi
41783 fi
a848cd7e
SC
41784 done
41785 done
41786 ;;
41787esac
41788done
41789
41790
41791fi
41792 if test "${ac_cv_path_install+set}" = set; then
41793 INSTALL=$ac_cv_path_install
41794 else
41795 # As a last resort, use the slow shell script. We don't cache a
41796 # path for INSTALL within a source directory, because that will
41797 # break other packages using the cache if that directory is
41798 # removed, or if the path is relative.
41799 INSTALL=$ac_install_sh
41800 fi
41801fi
41802echo "$as_me:$LINENO: result: $INSTALL" >&5
41803echo "${ECHO_T}$INSTALL" >&6
41804
41805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41806# It thinks the first close brace ends the variable substitution.
41807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41808
41809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41810
41811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41812
41813 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41814echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41815LN_S=$as_ln_s
41816if test "$LN_S" = "ln -s"; then
41817 echo "$as_me:$LINENO: result: yes" >&5
41818echo "${ECHO_T}yes" >&6
41819else
41820 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41821echo "${ECHO_T}no, using $LN_S" >&6
41822fi
41823
41824
41825 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41826echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41827set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41828if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41829 echo $ECHO_N "(cached) $ECHO_C" >&6
41830else
41831 cat >conftest.make <<\_ACEOF
41832all:
41833 @echo 'ac_maketemp="$(MAKE)"'
41834_ACEOF
41835# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41836eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41837if test -n "$ac_maketemp"; then
41838 eval ac_cv_prog_make_${ac_make}_set=yes
41839else
41840 eval ac_cv_prog_make_${ac_make}_set=no
41841fi
41842rm -f conftest.make
41843fi
41844if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41845 echo "$as_me:$LINENO: result: yes" >&5
41846echo "${ECHO_T}yes" >&6
41847 SET_MAKE=
41848else
41849 echo "$as_me:$LINENO: result: no" >&5
41850echo "${ECHO_T}no" >&6
41851 SET_MAKE="MAKE=${MAKE-make}"
41852fi
41853
41854
41855
41856 if test -n "$ac_tool_prefix"; then
41857 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41858set dummy ${ac_tool_prefix}ar; ac_word=$2
41859echo "$as_me:$LINENO: checking for $ac_word" >&5
41860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41861if test "${ac_cv_prog_AR+set}" = set; then
41862 echo $ECHO_N "(cached) $ECHO_C" >&6
41863else
41864 if test -n "$AR"; then
41865 ac_cv_prog_AR="$AR" # Let the user override the test.
41866else
41867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41868for as_dir in $PATH
41869do
41870 IFS=$as_save_IFS
41871 test -z "$as_dir" && as_dir=.
41872 for ac_exec_ext in '' $ac_executable_extensions; do
41873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41874 ac_cv_prog_AR="${ac_tool_prefix}ar"
41875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41876 break 2
41877 fi
41878done
41879done
41880
41881fi
41882fi
41883AR=$ac_cv_prog_AR
41884if test -n "$AR"; then
41885 echo "$as_me:$LINENO: result: $AR" >&5
41886echo "${ECHO_T}$AR" >&6
41887else
41888 echo "$as_me:$LINENO: result: no" >&5
41889echo "${ECHO_T}no" >&6
41890fi
41891
41892fi
41893if test -z "$ac_cv_prog_AR"; then
41894 ac_ct_AR=$AR
41895 # Extract the first word of "ar", so it can be a program name with args.
41896set dummy ar; ac_word=$2
41897echo "$as_me:$LINENO: checking for $ac_word" >&5
41898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41899if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41900 echo $ECHO_N "(cached) $ECHO_C" >&6
41901else
41902 if test -n "$ac_ct_AR"; then
41903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41904else
41905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41906for as_dir in $PATH
41907do
41908 IFS=$as_save_IFS
41909 test -z "$as_dir" && as_dir=.
41910 for ac_exec_ext in '' $ac_executable_extensions; do
41911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41912 ac_cv_prog_ac_ct_AR="ar"
41913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41914 break 2
41915 fi
41916done
41917done
41918
41919 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41920fi
41921fi
41922ac_ct_AR=$ac_cv_prog_ac_ct_AR
41923if test -n "$ac_ct_AR"; then
41924 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41925echo "${ECHO_T}$ac_ct_AR" >&6
41926else
41927 echo "$as_me:$LINENO: result: no" >&5
41928echo "${ECHO_T}no" >&6
41929fi
41930
41931 AR=$ac_ct_AR
41932else
41933 AR="$ac_cv_prog_AR"
41934fi
41935
41936 if test -n "$ac_tool_prefix"; then
41937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41938set dummy ${ac_tool_prefix}strip; ac_word=$2
41939echo "$as_me:$LINENO: checking for $ac_word" >&5
41940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41941if test "${ac_cv_prog_STRIP+set}" = set; then
41942 echo $ECHO_N "(cached) $ECHO_C" >&6
41943else
41944 if test -n "$STRIP"; then
41945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41946else
41947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41948for as_dir in $PATH
41949do
41950 IFS=$as_save_IFS
41951 test -z "$as_dir" && as_dir=.
41952 for ac_exec_ext in '' $ac_executable_extensions; do
41953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41956 break 2
41957 fi
41958done
41959done
41960
41961fi
41962fi
41963STRIP=$ac_cv_prog_STRIP
41964if test -n "$STRIP"; then
41965 echo "$as_me:$LINENO: result: $STRIP" >&5
41966echo "${ECHO_T}$STRIP" >&6
41967else
41968 echo "$as_me:$LINENO: result: no" >&5
41969echo "${ECHO_T}no" >&6
41970fi
41971
41972fi
41973if test -z "$ac_cv_prog_STRIP"; then
41974 ac_ct_STRIP=$STRIP
41975 # Extract the first word of "strip", so it can be a program name with args.
41976set dummy strip; ac_word=$2
41977echo "$as_me:$LINENO: checking for $ac_word" >&5
41978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41979if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41980 echo $ECHO_N "(cached) $ECHO_C" >&6
41981else
41982 if test -n "$ac_ct_STRIP"; then
41983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41984else
41985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41986for as_dir in $PATH
41987do
41988 IFS=$as_save_IFS
41989 test -z "$as_dir" && as_dir=.
41990 for ac_exec_ext in '' $ac_executable_extensions; do
41991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41992 ac_cv_prog_ac_ct_STRIP="strip"
41993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41994 break 2
41995 fi
41996done
41997done
41998
41999 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42000fi
42001fi
42002ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42003if test -n "$ac_ct_STRIP"; then
42004 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42005echo "${ECHO_T}$ac_ct_STRIP" >&6
42006else
42007 echo "$as_me:$LINENO: result: no" >&5
42008echo "${ECHO_T}no" >&6
42009fi
42010
42011 STRIP=$ac_ct_STRIP
42012else
42013 STRIP="$ac_cv_prog_STRIP"
42014fi
42015
42016 if test -n "$ac_tool_prefix"; then
42017 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42018set dummy ${ac_tool_prefix}nm; ac_word=$2
42019echo "$as_me:$LINENO: checking for $ac_word" >&5
42020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42021if test "${ac_cv_prog_NM+set}" = set; then
42022 echo $ECHO_N "(cached) $ECHO_C" >&6
42023else
42024 if test -n "$NM"; then
42025 ac_cv_prog_NM="$NM" # Let the user override the test.
42026else
42027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42028for as_dir in $PATH
42029do
42030 IFS=$as_save_IFS
42031 test -z "$as_dir" && as_dir=.
42032 for ac_exec_ext in '' $ac_executable_extensions; do
42033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42034 ac_cv_prog_NM="${ac_tool_prefix}nm"
42035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42036 break 2
42037 fi
42038done
42039done
42040
42041fi
42042fi
42043NM=$ac_cv_prog_NM
42044if test -n "$NM"; then
42045 echo "$as_me:$LINENO: result: $NM" >&5
42046echo "${ECHO_T}$NM" >&6
42047else
42048 echo "$as_me:$LINENO: result: no" >&5
42049echo "${ECHO_T}no" >&6
42050fi
42051
42052fi
42053if test -z "$ac_cv_prog_NM"; then
42054 ac_ct_NM=$NM
42055 # Extract the first word of "nm", so it can be a program name with args.
42056set dummy nm; ac_word=$2
42057echo "$as_me:$LINENO: checking for $ac_word" >&5
42058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42059if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42060 echo $ECHO_N "(cached) $ECHO_C" >&6
42061else
42062 if test -n "$ac_ct_NM"; then
42063 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42064else
42065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42066for as_dir in $PATH
42067do
42068 IFS=$as_save_IFS
42069 test -z "$as_dir" && as_dir=.
42070 for ac_exec_ext in '' $ac_executable_extensions; do
42071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42072 ac_cv_prog_ac_ct_NM="nm"
42073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42074 break 2
42075 fi
42076done
42077done
42078
42079 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42080fi
42081fi
42082ac_ct_NM=$ac_cv_prog_ac_ct_NM
42083if test -n "$ac_ct_NM"; then
42084 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42085echo "${ECHO_T}$ac_ct_NM" >&6
42086else
42087 echo "$as_me:$LINENO: result: no" >&5
42088echo "${ECHO_T}no" >&6
42089fi
42090
42091 NM=$ac_ct_NM
42092else
42093 NM="$ac_cv_prog_NM"
42094fi
42095
42096
42097 case ${BAKEFILE_HOST} in
42098 *-hp-hpux* )
1e9e8aba 42099 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42100 ;;
42101 *) INSTALL_DIR="$INSTALL -d"
42102 ;;
42103 esac
42104
42105
42106 LDFLAGS_GUI=
42107 case ${BAKEFILE_HOST} in
42108 *-*-cygwin* | *-*-mingw32* )
42109 LDFLAGS_GUI="-mwindows"
42110 esac
42111
42112
42113 fi
42114
42115 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42116echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42117if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42118 echo $ECHO_N "(cached) $ECHO_C" >&6
42119else
42120
42121 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42122 egrep -s GNU > /dev/null); then
42123 bakefile_cv_prog_makeisgnu="yes"
42124 else
42125 bakefile_cv_prog_makeisgnu="no"
42126 fi
42127
42128fi
42129echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42130echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42131
42132 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42133 IF_GNU_MAKE=""
42134 else
42135 IF_GNU_MAKE="#"
42136 fi
42137
42138
42139
42140 PLATFORM_UNIX=0
42141 PLATFORM_WIN32=0
42142 PLATFORM_MSDOS=0
42143 PLATFORM_MAC=0
1e9e8aba 42144 PLATFORM_MACOS=0
a848cd7e
SC
42145 PLATFORM_MACOSX=0
42146 PLATFORM_OS2=0
1e9e8aba 42147 PLATFORM_BEOS=0
a848cd7e
SC
42148
42149 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42150 case "${BAKEFILE_HOST}" in
810b94f0 42151 *-*-mingw32* )
a848cd7e
SC
42152 PLATFORM_WIN32=1
42153 ;;
42154 *-pc-msdosdjgpp )
42155 PLATFORM_MSDOS=1
42156 ;;
42157 *-pc-os2_emx | *-pc-os2-emx )
42158 PLATFORM_OS2=1
42159 ;;
42160 powerpc-*-darwin* )
42161 PLATFORM_MAC=1
42162 PLATFORM_MACOSX=1
42163 ;;
1e9e8aba
DE
42164 *-*-beos* )
42165 PLATFORM_BEOS=1
42166 ;;
42167 powerpc-apple-macos* )
42168 PLATFORM_MAC=1
42169 PLATFORM_MACOS=1
42170 ;;
a848cd7e
SC
42171 * )
42172 PLATFORM_UNIX=1
42173 ;;
42174 esac
42175 else
42176 case "$BAKEFILE_FORCE_PLATFORM" in
42177 win32 )
42178 PLATFORM_WIN32=1
42179 ;;
42180 msdos )
42181 PLATFORM_MSDOS=1
42182 ;;
42183 os2 )
42184 PLATFORM_OS2=1
42185 ;;
42186 darwin )
42187 PLATFORM_MAC=1
42188 PLATFORM_MACOSX=1
42189 ;;
42190 unix )
42191 PLATFORM_UNIX=1
42192 ;;
1e9e8aba
DE
42193 beos )
42194 PLATFORM_BEOS=1
42195 ;;
a848cd7e
SC
42196 * )
42197 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42198echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42199 { (exit 1); exit 1; }; }
42200 ;;
42201 esac
42202 fi
42203
42204
42205
42206
42207
42208
42209
42210
42211
1e9e8aba
DE
42212
42213
a848cd7e
SC
42214 # Check whether --enable-omf or --disable-omf was given.
42215if test "${enable_omf+set}" = set; then
42216 enableval="$enable_omf"
42217 bk_os2_use_omf="$enableval"
42218fi;
42219
42220 case "${BAKEFILE_HOST}" in
42221 *-*-darwin* )
1ff36a0a
DE
42222 if test "x$GCC" = "xyes"; then
42223 CFLAGS="$CFLAGS -fno-common"
42224 CXXFLAGS="$CXXFLAGS -fno-common"
42225 fi
42226 if test "x$XLCC" = "xyes"; then
42227 CFLAGS="$CFLAGS -qnocommon"
42228 CXXFLAGS="$CXXFLAGS -qnocommon"
42229 fi
a848cd7e
SC
42230 ;;
42231
42232 *-pc-os2_emx | *-pc-os2-emx )
42233 if test "x$bk_os2_use_omf" = "xyes" ; then
42234 AR=emxomfar
42235 RANLIB=:
42236 LDFLAGS="-Zomf $LDFLAGS"
42237 CFLAGS="-Zomf $CFLAGS"
42238 CXXFLAGS="-Zomf $CXXFLAGS"
42239 OS2_LIBEXT="lib"
42240 else
42241 OS2_LIBEXT="a"
42242 fi
42243 ;;
1e9e8aba
DE
42244
42245 i*86-*-beos* )
42246 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42247 ;;
a848cd7e
SC
42248 esac
42249
42250
42251 SO_SUFFIX="so"
42252 SO_SUFFIX_MODULE="so"
42253 EXEEXT=""
42254 LIBPREFIX="lib"
42255 LIBEXT=".a"
42256 DLLPREFIX="lib"
42257 DLLPREFIX_MODULE=""
42258 DLLIMP_SUFFIX=""
810b94f0 42259 dlldir="$libdir"
a848cd7e
SC
42260
42261 case "${BAKEFILE_HOST}" in
42262 *-hp-hpux* )
42263 SO_SUFFIX="sl"
42264 SO_SUFFIX_MODULE="sl"
42265 ;;
42266 *-*-aix* )
42267 SO_SUFFIX="a"
42268 SO_SUFFIX_MODULE="a"
42269 ;;
810b94f0
MW
42270 *-*-cygwin* )
42271 SO_SUFFIX="dll"
42272 SO_SUFFIX_MODULE="dll"
42273 DLLIMP_SUFFIX="dll.a"
42274 EXEEXT=".exe"
42275 DLLPREFIX="cyg"
42276 dlldir="$bindir"
42277 ;;
42278 *-*-mingw32* )
a848cd7e
SC
42279 SO_SUFFIX="dll"
42280 SO_SUFFIX_MODULE="dll"
42281 DLLIMP_SUFFIX="dll.a"
42282 EXEEXT=".exe"
42283 DLLPREFIX=""
810b94f0 42284 dlldir="$bindir"
a848cd7e
SC
42285 ;;
42286 *-pc-msdosdjgpp )
42287 EXEEXT=".exe"
42288 DLLPREFIX=""
810b94f0 42289 dlldir="$bindir"
a848cd7e
SC
42290 ;;
42291 *-pc-os2_emx | *-pc-os2-emx )
42292 SO_SUFFIX="dll"
42293 SO_SUFFIX_MODULE="dll"
42294 DLLIMP_SUFFIX=$OS2_LIBEXT
42295 EXEEXT=".exe"
42296 DLLPREFIX=""
42297 LIBPREFIX=""
42298 LIBEXT=".$OS2_LIBEXT"
810b94f0 42299 dlldir="$bindir"
a848cd7e
SC
42300 ;;
42301 powerpc-*-darwin* )
42302 SO_SUFFIX="dylib"
42303 SO_SUFFIX_MODULE="bundle"
42304 ;;
42305 esac
42306
42307 if test "x$DLLIMP_SUFFIX" = "x" ; then
42308 DLLIMP_SUFFIX="$SO_SUFFIX"
42309 fi
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
810b94f0 42321
1e9e8aba
DE
42322 PIC_FLAG=""
42323 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42324 PIC_FLAG="-fPIC"
42325 fi
42326
1e9e8aba
DE
42327 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42328 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42329 WINDOWS_IMPLIB=0
1e9e8aba 42330
a848cd7e
SC
42331 case "${BAKEFILE_HOST}" in
42332 *-hp-hpux* )
1e9e8aba 42333 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42334 LDFLAGS="$LDFLAGS -L/usr/lib"
42335
42336 SHARED_LD_CC="${CC} -b -o"
42337 SHARED_LD_CXX="${CXX} -b -o"
42338 PIC_FLAG="+Z"
42339 fi
42340 ;;
42341
42342 *-*-linux* )
42343 if test "x$GCC" != "xyes"; then
42344 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42345echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42346if test "${bakefile_cv_prog_icc+set}" = set; then
42347 echo $ECHO_N "(cached) $ECHO_C" >&6
42348else
42349
42350 cat >conftest.$ac_ext <<_ACEOF
42351/* confdefs.h. */
42352_ACEOF
42353cat confdefs.h >>conftest.$ac_ext
42354cat >>conftest.$ac_ext <<_ACEOF
42355/* end confdefs.h. */
42356
42357int
42358main ()
42359{
42360
42361 #ifndef __INTEL_COMPILER
42362 #error Not icc
42363 #endif
42364
42365 ;
42366 return 0;
42367}
42368_ACEOF
42369rm -f conftest.$ac_objext
42370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42371 (eval $ac_compile) 2>conftest.er1
a848cd7e 42372 ac_status=$?
ac1cb8d3
VS
42373 grep -v '^ *+' conftest.er1 >conftest.err
42374 rm -f conftest.er1
42375 cat conftest.err >&5
a848cd7e
SC
42376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42377 (exit $ac_status); } &&
6ebeb4c7 42378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380 (eval $ac_try) 2>&5
42381 ac_status=$?
42382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383 (exit $ac_status); }; } &&
42384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386 (eval $ac_try) 2>&5
42387 ac_status=$?
42388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389 (exit $ac_status); }; }; then
42390 bakefile_cv_prog_icc=yes
42391else
42392 echo "$as_me: failed program was:" >&5
42393sed 's/^/| /' conftest.$ac_ext >&5
42394
42395bakefile_cv_prog_icc=no
42396
42397fi
ac1cb8d3 42398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42399
42400fi
42401echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42402echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42403 if test "$bakefile_cv_prog_icc" = "yes"; then
42404 PIC_FLAG="-KPIC"
42405 fi
42406 fi
42407 ;;
42408
42409 *-*-solaris2* )
42410 if test "x$GCC" != xyes ; then
42411 SHARED_LD_CC="${CC} -G -o"
42412 SHARED_LD_CXX="${CXX} -G -o"
42413 PIC_FLAG="-KPIC"
42414 fi
42415 ;;
42416
42417 *-*-darwin* )
42418
42419 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42420echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42421if test "${wx_cv_gcc31+set}" = set; then
42422 echo $ECHO_N "(cached) $ECHO_C" >&6
42423else
42424
42425 cat >conftest.$ac_ext <<_ACEOF
42426/* confdefs.h. */
42427_ACEOF
42428cat confdefs.h >>conftest.$ac_ext
42429cat >>conftest.$ac_ext <<_ACEOF
42430/* end confdefs.h. */
42431
42432int
42433main ()
42434{
42435
42436 #if (__GNUC__ < 3) || \
42437 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42438 #error old gcc
42439 #endif
42440
42441 ;
42442 return 0;
42443}
42444_ACEOF
42445rm -f conftest.$ac_objext
42446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42447 (eval $ac_compile) 2>conftest.er1
a848cd7e 42448 ac_status=$?
ac1cb8d3
VS
42449 grep -v '^ *+' conftest.er1 >conftest.err
42450 rm -f conftest.er1
42451 cat conftest.err >&5
a848cd7e
SC
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); } &&
6ebeb4c7 42454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42456 (eval $ac_try) 2>&5
42457 ac_status=$?
42458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42459 (exit $ac_status); }; } &&
42460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42462 (eval $ac_try) 2>&5
42463 ac_status=$?
42464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465 (exit $ac_status); }; }; then
42466
42467 wx_cv_gcc31=yes
42468
42469else
42470 echo "$as_me: failed program was:" >&5
42471sed 's/^/| /' conftest.$ac_ext >&5
42472
42473
42474 wx_cv_gcc31=no
42475
42476
42477fi
ac1cb8d3 42478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42479
42480fi
42481echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42482echo "${ECHO_T}$wx_cv_gcc31" >&6
42483 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42484
42485D='$'
42486cat <<EOF >shared-ld-sh
a848cd7e
SC
42487#!/bin/sh
42488#-----------------------------------------------------------------------------
42489#-- Name: distrib/mac/shared-ld-sh
42490#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42491#-- Author: Gilles Depeyrot
42492#-- Copyright: (c) 2002 Gilles Depeyrot
42493#-- Licence: any use permitted
42494#-----------------------------------------------------------------------------
42495
42496verbose=0
42497args=""
42498objects=""
42499linking_flag="-dynamiclib"
810b94f0 42500ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42501
473276a9
VS
42502while test ${D}# -gt 0; do
42503 case ${D}1 in
a848cd7e
SC
42504
42505 -v)
42506 verbose=1
42507 ;;
42508
42509 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42510 # collect these options and values
473276a9 42511 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42512 shift
42513 ;;
42514
810b94f0
MW
42515 -s|-Wl,*)
42516 # collect these load args
42517 ldargs="${D}{ldargs} ${D}1"
2113bc77 42518 ;;
810b94f0
MW
42519
42520 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42521 # collect these options
473276a9 42522 args="${D}{args} ${D}1"
a848cd7e
SC
42523 ;;
42524
42525 -dynamiclib|-bundle)
473276a9 42526 linking_flag="${D}1"
a848cd7e
SC
42527 ;;
42528
42529 -*)
473276a9 42530 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42531 exit 1
42532 ;;
42533
42534 *.o | *.a | *.dylib)
42535 # collect object files
473276a9 42536 objects="${D}{objects} ${D}1"
a848cd7e
SC
42537 ;;
42538
42539 *)
473276a9 42540 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42541 exit 1
42542 ;;
42543
42544 esac
42545 shift
42546done
42547
810b94f0
MW
42548status=0
42549
a848cd7e
SC
42550#
42551# Link one module containing all the others
42552#
473276a9 42553if test ${D}{verbose} = 1; then
810b94f0 42554 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42555fi
810b94f0 42556c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42557status=${D}?
a848cd7e
SC
42558
42559#
810b94f0
MW
42560# Link the shared library from the single module created, but only if the
42561# previous command didn't fail:
a848cd7e 42562#
810b94f0
MW
42563if test ${D}{status} = 0; then
42564 if test ${D}{verbose} = 1; then
42565 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42566 fi
42567 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42568 status=${D}?
a848cd7e
SC
42569fi
42570
42571#
42572# Remove intermediate module
42573#
473276a9 42574rm -f master.${D}${D}.o
a848cd7e 42575
810b94f0 42576exit ${D}status
a848cd7e 42577EOF
473276a9 42578
a848cd7e
SC
42579 chmod +x shared-ld-sh
42580
42581 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42582 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42583 SHARED_LD_CXX="$SHARED_LD_CC"
42584 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42585 else
42586 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42587 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42588 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42589 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42590 fi
42591
1ff36a0a
DE
42592 if test "x$GCC" == "xyes"; then
42593 PIC_FLAG="-dynamic -fPIC"
42594 fi
42595 if test "x$XLCC" = "xyes"; then
42596 PIC_FLAG="-dynamic -DPIC"
42597 fi
a848cd7e
SC
42598 ;;
42599
42600 *-*-aix* )
42601 if test "x$GCC" != "xyes"; then
42602 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42603set dummy makeC++SharedLib; ac_word=$2
42604echo "$as_me:$LINENO: checking for $ac_word" >&5
42605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42606if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42607 echo $ECHO_N "(cached) $ECHO_C" >&6
42608else
42609 if test -n "$AIX_CXX_LD"; then
42610 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42611else
42612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42613for as_dir in $PATH
42614do
42615 IFS=$as_save_IFS
42616 test -z "$as_dir" && as_dir=.
42617 for ac_exec_ext in '' $ac_executable_extensions; do
42618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42619 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42621 break 2
42622 fi
42623done
42624done
42625
42626 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42627fi
42628fi
42629AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42630if test -n "$AIX_CXX_LD"; then
42631 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42632echo "${ECHO_T}$AIX_CXX_LD" >&6
42633else
42634 echo "$as_me:$LINENO: result: no" >&5
42635echo "${ECHO_T}no" >&6
42636fi
42637
42638 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42639 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42640 fi
42641 ;;
42642
42643 *-*-beos* )
1e9e8aba
DE
42644 SHARED_LD_CC="${LD} -nostart -o"
42645 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42646 ;;
42647
42648 *-*-irix* )
42649 if test "x$GCC" != "xyes"; then
42650 PIC_FLAG="-KPIC"
42651 fi
42652 ;;
42653
42654 *-*-cygwin* | *-*-mingw32* )
42655 PIC_FLAG=""
1e9e8aba
DE
42656 SHARED_LD_CC="\$(CC) -shared -o"
42657 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42658 WINDOWS_IMPLIB=1
a848cd7e
SC
42659 ;;
42660
42661 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42662 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42663 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42664 PIC_FLAG=""
473276a9
VS
42665
42666D='$'
42667cat <<EOF >dllar.sh
42668#!/bin/sh
42669#
42670# dllar - a tool to build both a .dll and an .a file
42671# from a set of object (.o) files for EMX/OS2.
42672#
42673# Written by Andrew Zabolotny, bit@freya.etu.ru
42674# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42675#
42676# This script will accept a set of files on the command line.
42677# All the public symbols from the .o files will be exported into
42678# a .DEF file, then linker will be run (through gcc) against them to
42679# build a shared library consisting of all given .o files. All libraries
42680# (.a) will be first decompressed into component .o files then act as
42681# described above. You can optionally give a description (-d "description")
42682# which will be put into .DLL. To see the list of accepted options (as well
42683# as command-line format) simply run this program without options. The .DLL
42684# is built to be imported by name (there is no guarantee that new versions
42685# of the library you build will have same ordinals for same symbols).
42686#
42687# dllar is free software; you can redistribute it and/or modify
42688# it under the terms of the GNU General Public License as published by
42689# the Free Software Foundation; either version 2, or (at your option)
42690# any later version.
42691#
42692# dllar is distributed in the hope that it will be useful,
42693# but WITHOUT ANY WARRANTY; without even the implied warranty of
42694# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42695# GNU General Public License for more details.
42696#
42697# You should have received a copy of the GNU General Public License
42698# along with dllar; see the file COPYING. If not, write to the Free
42699# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42700# 02111-1307, USA.
42701
42702# To successfuly run this program you will need:
42703# - Current drive should have LFN support (HPFS, ext2, network, etc)
42704# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42705# - gcc
42706# (used to build the .dll)
42707# - emxexp
42708# (used to create .def file from .o files)
42709# - emximp
42710# (used to create .a file from .def file)
42711# - GNU text utilites (cat, sort, uniq)
42712# used to process emxexp output
42713# - GNU file utilities (mv, rm)
42714# - GNU sed
42715# - lxlite (optional, see flag below)
42716# (used for general .dll cleanup)
42717#
42718
42719flag_USE_LXLITE=1;
42720
42721#
42722# helper functions
42723# basnam, variant of basename, which does _not_ remove the path, _iff_
42724# second argument (suffix to remove) is given
42725basnam(){
42726 case ${D}# in
42727 1)
1e9e8aba 42728 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42729 ;;
42730 2)
42731 echo ${D}1 | sed 's/'${D}2'${D}//'
42732 ;;
42733 *)
42734 echo "error in basnam ${D}*"
42735 exit 8
42736 ;;
42737 esac
42738}
42739
42740# Cleanup temporary files and output
42741CleanUp() {
42742 cd ${D}curDir
42743 for i in ${D}inputFiles ; do
42744 case ${D}i in
42745 *!)
42746 rm -rf \`basnam ${D}i !\`
42747 ;;
42748 *)
42749 ;;
42750 esac
42751 done
42752
42753 # Kill result in case of failure as there is just to many stupid make/nmake
42754 # things out there which doesn't do this.
1e9e8aba 42755 if [ ${D}# -eq 0 ]; then
473276a9
VS
42756 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42757 fi
42758}
42759
42760# Print usage and exit script with rc=1.
42761PrintHelp() {
b1d22ded
DE
42762 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42763 echo ' [-name-mangler-script script.sh]'
42764 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42765 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42766 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42767 echo ' [*.o] [*.a]'
473276a9
VS
42768 echo '*> "output_file" should have no extension.'
42769 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42770 echo ' The import library name is derived from this and is set to "name".a,'
42771 echo ' unless overridden by -import'
42772 echo '*> "importlib_name" should have no extension.'
42773 echo ' If it has the .o, or .a extension, it is automatically removed.'
42774 echo ' This name is used as the import library name and may be longer and'
42775 echo ' more descriptive than the DLL name which has to follow the old '
42776 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42777 echo '*> "script.sh may be given to override the output_file name by a'
42778 echo ' different name. It is mainly useful if the regular make process'
42779 echo ' of some package does not take into account OS/2 restriction of'
42780 echo ' DLL name lengths. It takes the importlib name as input and is'
42781 echo ' supposed to procude a shorter name as output. The script should'
42782 echo ' expect to get importlib_name without extension and should produce'
42783 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42784 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42785 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42786 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42787 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42788 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42789 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42790 echo ' If the last character of a symbol is "*", all symbols beginning'
42791 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42792 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42793 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42794 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42795 echo ' C runtime DLLs.'
b1d22ded 42796 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42797 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42798 echo ' unchanged to GCC at the end of command line.'
42799 echo '*> If you create a DLL from a library and you do not specify -o,'
42800 echo ' the basename for DLL and import library will be set to library name,'
42801 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42802 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42803 echo ' library will be renamed into gcc_s.a.'
42804 echo '--------'
42805 echo 'Example:'
42806 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42807 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42808 CleanUp
42809 exit 1
42810}
42811
42812# Execute a command.
42813# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42814# @Uses Whatever CleanUp() uses.
42815doCommand() {
42816 echo "${D}*"
42817 eval ${D}*
42818 rcCmd=${D}?
42819
1e9e8aba 42820 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42821 echo "command failed, exit code="${D}rcCmd
42822 CleanUp
42823 exit ${D}rcCmd
42824 fi
42825}
42826
42827# main routine
42828# setup globals
42829cmdLine=${D}*
42830outFile=""
42831outimpFile=""
42832inputFiles=""
b1d22ded 42833renameScript=""
473276a9
VS
42834description=""
42835CC=gcc.exe
42836CFLAGS="-s -Zcrtdll"
42837EXTRA_CFLAGS=""
42838EXPORT_BY_ORDINALS=0
42839exclude_symbols=""
42840library_flags=""
42841curDir=\`pwd\`
42842curDirS=curDir
42843case ${D}curDirS in
42844*/)
42845 ;;
42846*)
42847 curDirS=${D}{curDirS}"/"
42848 ;;
42849esac
42850# Parse commandline
42851libsToLink=0
b1d22ded 42852omfLinking=0
1e9e8aba 42853while [ ${D}1 ]; do
473276a9
VS
42854 case ${D}1 in
42855 -ord*)
42856 EXPORT_BY_ORDINALS=1;
42857 ;;
42858 -o*)
42859 shift
42860 outFile=${D}1
42861 ;;
42862 -i*)
42863 shift
42864 outimpFile=${D}1
42865 ;;
b1d22ded
DE
42866 -name-mangler-script)
42867 shift
42868 renameScript=${D}1
42869 ;;
473276a9
VS
42870 -d*)
42871 shift
42872 description=${D}1
42873 ;;
42874 -f*)
42875 shift
42876 CFLAGS=${D}1
42877 ;;
42878 -c*)
42879 shift
42880 CC=${D}1
42881 ;;
42882 -h*)
42883 PrintHelp
42884 ;;
42885 -ex*)
42886 shift
42887 exclude_symbols=${D}{exclude_symbols}${D}1" "
42888 ;;
42889 -libf*)
42890 shift
42891 library_flags=${D}{library_flags}${D}1" "
42892 ;;
42893 -nocrt*)
42894 CFLAGS="-s"
42895 ;;
42896 -nolxl*)
42897 flag_USE_LXLITE=0
42898 ;;
42899 -* | /*)
42900 case ${D}1 in
42901 -L* | -l*)
42902 libsToLink=1
42903 ;;
b1d22ded
DE
42904 -Zomf)
42905 omfLinking=1
42906 ;;
473276a9
VS
42907 *)
42908 ;;
42909 esac
42910 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42911 ;;
b1d22ded
DE
42912 *.dll)
42913 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42914 if [ ${D}omfLinking -eq 1 ]; then
42915 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42916 else
42917 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42918 fi
42919 ;;
473276a9
VS
42920 *)
42921 found=0;
1e9e8aba 42922 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42923 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42924 else
42925 for file in ${D}1 ; do
1e9e8aba 42926 if [ -f ${D}file ]; then
473276a9
VS
42927 inputFiles="${D}{inputFiles} ${D}file"
42928 found=1
42929 fi
42930 done
1e9e8aba 42931 if [ ${D}found -eq 0 ]; then
473276a9
VS
42932 echo "ERROR: No file(s) found: "${D}1
42933 exit 8
42934 fi
42935 fi
42936 ;;
42937 esac
42938 shift
42939done # iterate cmdline words
42940
42941#
1e9e8aba 42942if [ -z "${D}inputFiles" ]; then
473276a9
VS
42943 echo "dllar: no input files"
42944 PrintHelp
42945fi
42946
42947# Now extract all .o files from .a files
42948newInputFiles=""
42949for file in ${D}inputFiles ; do
42950 case ${D}file in
42951 *.a | *.lib)
42952 case ${D}file in
42953 *.a)
42954 suffix=".a"
42955 AR="ar"
42956 ;;
42957 *.lib)
42958 suffix=".lib"
42959 AR="emxomfar"
42960 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42961 ;;
42962 *)
42963 ;;
42964 esac
42965 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42966 mkdir ${D}dirname
1e9e8aba 42967 if [ ${D}? -ne 0 ]; then
473276a9
VS
42968 echo "Failed to create subdirectory ./${D}dirname"
42969 CleanUp
42970 exit 8;
42971 fi
42972 # Append '!' to indicate archive
42973 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42974 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42975 cd ${D}curDir
42976 found=0;
42977 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42978 if [ -f ${D}subfile ]; then
473276a9 42979 found=1
1e9e8aba 42980 if [ -s ${D}subfile ]; then
473276a9
VS
42981 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42982 newInputFiles="${D}newInputFiles ${D}subfile"
42983 fi
42984 fi
42985 done
1e9e8aba
DE
42986 if [ ${D}found -eq 0 ]; then
42987 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42988 fi
42989 ;;
42990 *)
42991 newInputFiles="${D}{newInputFiles} ${D}file"
42992 ;;
42993 esac
42994done
42995inputFiles="${D}newInputFiles"
42996
42997# Output filename(s).
42998do_backup=0;
1e9e8aba 42999if [ -z ${D}outFile ]; then
473276a9
VS
43000 do_backup=1;
43001 set outFile ${D}inputFiles; outFile=${D}2
43002fi
43003
43004# If it is an archive, remove the '!' and the '_%' suffixes
43005case ${D}outFile in
43006*_%!)
43007 outFile=\`basnam ${D}outFile _%!\`
43008 ;;
43009*)
43010 ;;
43011esac
43012case ${D}outFile in
43013*.dll)
43014 outFile=\`basnam ${D}outFile .dll\`
43015 ;;
43016*.DLL)
43017 outFile=\`basnam ${D}outFile .DLL\`
43018 ;;
43019*.o)
43020 outFile=\`basnam ${D}outFile .o\`
43021 ;;
43022*.obj)
43023 outFile=\`basnam ${D}outFile .obj\`
43024 ;;
43025*.a)
43026 outFile=\`basnam ${D}outFile .a\`
43027 ;;
43028*.lib)
43029 outFile=\`basnam ${D}outFile .lib\`
43030 ;;
43031*)
43032 ;;
43033esac
43034case ${D}outimpFile in
43035*.a)
43036 outimpFile=\`basnam ${D}outimpFile .a\`
43037 ;;
43038*.lib)
43039 outimpFile=\`basnam ${D}outimpFile .lib\`
43040 ;;
43041*)
43042 ;;
43043esac
1e9e8aba 43044if [ -z ${D}outimpFile ]; then
473276a9
VS
43045 outimpFile=${D}outFile
43046fi
43047defFile="${D}{outFile}.def"
43048arcFile="${D}{outimpFile}.a"
43049arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43050
43051#create ${D}dllFile as something matching 8.3 restrictions,
43052if [ -z ${D}renameScript ] ; then
43053 dllFile="${D}outFile"
43054else
43055 dllFile=\`${D}renameScript ${D}outimpFile\`
43056fi
473276a9 43057
1e9e8aba
DE
43058if [ ${D}do_backup -ne 0 ] ; then
43059 if [ -f ${D}arcFile ] ; then
473276a9
VS
43060 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43061 fi
1e9e8aba 43062 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43063 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43064 fi
43065fi
43066
43067# Extract public symbols from all the object files.
43068tmpdefFile=${D}{defFile}_%
43069rm -f ${D}tmpdefFile
43070for file in ${D}inputFiles ; do
43071 case ${D}file in
43072 *!)
43073 ;;
43074 *)
43075 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43076 ;;
43077 esac
43078done
43079
43080# Create the def file.
43081rm -f ${D}defFile
43082echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43083dllFile="${D}{dllFile}.dll"
43084if [ ! -z ${D}description ]; then
1e9e8aba 43085 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43086fi
43087echo "EXPORTS" >> ${D}defFile
43088
43089doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43090grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43091
43092# Checks if the export is ok or not.
43093for word in ${D}exclude_symbols; do
43094 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43095 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43096done
43097
43098
1e9e8aba
DE
43099if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43100 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43101 sed '
43102 N
43103 : loop
1e9e8aba 43104 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43105 t loop
43106 ' > ${D}{tmpdefFile}%
43107 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43108else
43109 rm -f ${D}{tmpdefFile}%
43110fi
43111cat ${D}tmpdefFile >> ${D}defFile
43112rm -f ${D}tmpdefFile
43113
43114# Do linking, create implib, and apply lxlite.
43115gccCmdl="";
43116for file in ${D}inputFiles ; do
43117 case ${D}file in
43118 *!)
43119 ;;
43120 *)
43121 gccCmdl="${D}gccCmdl ${D}file"
43122 ;;
43123 esac
43124done
43125doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43126touch "${D}{outFile}.dll"
43127
43128doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43129if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43130 add_flags="";
1e9e8aba 43131 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43132 add_flags="-ynd"
43133 fi
43134 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43135fi
43136doCommand "emxomf -s -l ${D}arcFile"
43137
43138# Successful exit.
43139CleanUp 1
43140exit 0
43141EOF
43142
43143 chmod +x dllar.sh
a848cd7e
SC
43144 ;;
43145
1e9e8aba 43146 powerpc-apple-macos* | \
a848cd7e
SC
43147 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43148 *-*-sunos4* | \
43149 *-*-osf* | \
43150 *-*-dgux5* | \
47a7e797
MW
43151 *-*-sysv5* | \
43152 *-pc-msdosdjgpp )
a848cd7e
SC
43153 ;;
43154
43155 *)
43156 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43157echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43158 { (exit 1); exit 1; }; }
43159 esac
43160
2057db16
VS
43161 if test "x$PIC_FLAG" != "x" ; then
43162 PIC_FLAG="$PIC_FLAG -DPIC"
43163 fi
43164
a848cd7e
SC
43165 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43166 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43167 fi
43168 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43169 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43170 fi
43171
43172
43173
43174
43175
43176
43177
43178
810b94f0 43179
a848cd7e
SC
43180 USE_SOVERSION=0
43181 USE_SOVERLINUX=0
43182 USE_SOVERSOLARIS=0
810b94f0 43183 USE_SOVERCYGWIN=0
a848cd7e
SC
43184 USE_SOSYMLINKS=0
43185 USE_MACVERSION=0
43186 SONAME_FLAG=
43187
43188 case "${BAKEFILE_HOST}" in
b1d22ded 43189 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43190 SONAME_FLAG="-Wl,-soname,"
43191 USE_SOVERSION=1
43192 USE_SOVERLINUX=1
43193 USE_SOSYMLINKS=1
43194 ;;
43195
a848cd7e
SC
43196 *-*-solaris2* )
43197 SONAME_FLAG="-h "
43198 USE_SOVERSION=1
43199 USE_SOVERSOLARIS=1
43200 USE_SOSYMLINKS=1
43201 ;;
43202
43203 *-*-darwin* )
43204 USE_MACVERSION=1
43205 USE_SOVERSION=1
43206 USE_SOSYMLINKS=1
43207 ;;
810b94f0
MW
43208
43209 *-*-cygwin* )
43210 USE_SOVERSION=1
43211 USE_SOVERCYGWIN=1
43212 ;;
a848cd7e
SC
43213 esac
43214
43215
43216
43217
43218
43219
43220
43221
43222
810b94f0 43223
a848cd7e
SC
43224 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43225echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43226 DEPS_TRACKING=0
43227
43228 if test "x$GCC" = "xyes"; then
43229 DEPSMODE=gcc
43230 DEPS_TRACKING=1
43231 case "${BAKEFILE_HOST}" in
43232 powerpc-*-darwin* )
43233 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43234 ;;
43235 * )
43236 DEPSFLAG_GCC="-MMD"
43237 ;;
43238 esac
43239 echo "$as_me:$LINENO: result: gcc" >&5
43240echo "${ECHO_T}gcc" >&6
b1d22ded 43241 elif test "x$MWCC" = "xyes"; then
81f90336 43242 DEPSMODE=mwcc
b1d22ded 43243 DEPS_TRACKING=1
81f90336 43244 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43245 echo "$as_me:$LINENO: result: mwcc" >&5
43246echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43247 elif test "x$SUNCC" = "xyes"; then
43248 DEPSMODE=suncc
43249 DEPS_TRACKING=1
43250 DEPSFLAG_SUNCC="-xM1"
43251 echo "$as_me:$LINENO: result: suncc" >&5
43252echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43253 else
43254 echo "$as_me:$LINENO: result: none" >&5
43255echo "${ECHO_T}none" >&6
43256 fi
43257
43258 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43259
43260D='$'
43261cat <<EOF >bk-deps
a848cd7e
SC
43262#!/bin/sh
43263
43264# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43265# script. It is used to track C/C++ files dependencies in portable way.
43266#
43267# Permission is given to use this file in any way.
43268
473276a9 43269DEPSMODE=${DEPSMODE}
a848cd7e 43270DEPSDIR=.deps
473276a9 43271DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43272DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43273DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43274
473276a9 43275mkdir -p ${D}DEPSDIR
a848cd7e 43276
473276a9
VS
43277if test ${D}DEPSMODE = gcc ; then
43278 ${D}* ${D}{DEPSFLAG_GCC}
43279 status=${D}?
43280 if test ${D}{status} != 0 ; then
43281 exit ${D}{status}
a848cd7e
SC
43282 fi
43283 # move created file to the location we want it in:
473276a9
VS
43284 while test ${D}# -gt 0; do
43285 case "${D}1" in
a848cd7e
SC
43286 -o )
43287 shift
473276a9 43288 objfile=${D}1
a848cd7e
SC
43289 ;;
43290 -* )
43291 ;;
43292 * )
473276a9 43293 srcfile=${D}1
a848cd7e
SC
43294 ;;
43295 esac
43296 shift
43297 done
1e9e8aba
DE
43298 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43299 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43300 if test -f ${D}depfile ; then
43301 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43302 rm -f ${D}depfile
a848cd7e 43303 else
1e9e8aba 43304 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43305 if test -f ${D}depfile ; then
43306 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43307 rm -f ${D}depfile
a848cd7e
SC
43308 fi
43309 fi
43310 exit 0
81f90336
MW
43311elif test ${D}DEPSMODE = mwcc ; then
43312 ${D}*
43313 status=${D}?
43314 if test ${D}{status} != 0 ; then
43315 exit ${D}{status}
43316 fi
43317 # Run mwcc again with -MM and redirect into the dep file we want
43318 # NOTE: We can't use shift here because we need ${D}* to be valid
43319 prevarg=
43320 for arg in ${D}* ; do
43321 if test "${D}prevarg" = "-o"; then
43322 objfile=${D}arg
43323 else
43324 case "${D}arg" in
43325 -* )
43326 ;;
43327 * )
43328 srcfile=${D}arg
43329 ;;
43330 esac
43331 fi
43332 prevarg="${D}arg"
43333 done
43334 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43335 exit 0
a9e5b1f0
MW
43336elif test ${D}DEPSMODE = suncc; then
43337 ${D}* || exit
43338 # Run compiler again with deps flag and redirect into the dep file.
43339 # It doesn't work if the '-o FILE' option is used, but without it the
43340 # dependency file will contain the wrong name for the object. So it is
43341 # removed from the command line, and the dep file is fixed with sed.
43342 cmd=""
43343 while test ${D}# -gt 0; do
43344 case "${D}1" in
43345 -o )
43346 shift
43347 objfile=${D}1
43348 ;;
43349 * )
43350 eval arg${D}#=\\${D}1
43351 cmd="${D}cmd \\${D}arg${D}#"
43352 ;;
43353 esac
43354 shift
43355 done
43356 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43357 exit 0
a848cd7e 43358else
473276a9
VS
43359 ${D}*
43360 exit ${D}?
a848cd7e
SC
43361fi
43362EOF
473276a9 43363
a848cd7e
SC
43364 chmod +x bk-deps
43365 fi
43366
43367
43368
43369
43370 RESCOMP=
43371 SETFILE=
43372
43373 case ${BAKEFILE_HOST} in
43374 *-*-cygwin* | *-*-mingw32* )
43375 if test "$build" != "$host" ; then
43376 RESCOMP=$host_alias-windres
43377 else
43378 # Extract the first word of "windres", so it can be a program name with args.
43379set dummy windres; ac_word=$2
43380echo "$as_me:$LINENO: checking for $ac_word" >&5
43381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43382if test "${ac_cv_prog_RESCOMP+set}" = set; then
43383 echo $ECHO_N "(cached) $ECHO_C" >&6
43384else
43385 if test -n "$RESCOMP"; then
43386 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43387else
43388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43389for as_dir in $PATH
43390do
43391 IFS=$as_save_IFS
43392 test -z "$as_dir" && as_dir=.
43393 for ac_exec_ext in '' $ac_executable_extensions; do
43394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43395 ac_cv_prog_RESCOMP="windres"
43396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43397 break 2
43398 fi
43399done
43400done
43401
43402 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43403fi
43404fi
43405RESCOMP=$ac_cv_prog_RESCOMP
43406if test -n "$RESCOMP"; then
43407 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43408echo "${ECHO_T}$RESCOMP" >&6
43409else
43410 echo "$as_me:$LINENO: result: no" >&5
43411echo "${ECHO_T}no" >&6
43412fi
43413
43414 fi
43415 ;;
43416
1e9e8aba 43417 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43418 # Extract the first word of "Rez", so it can be a program name with args.
43419set dummy Rez; ac_word=$2
43420echo "$as_me:$LINENO: checking for $ac_word" >&5
43421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43422if test "${ac_cv_prog_RESCOMP+set}" = set; then
43423 echo $ECHO_N "(cached) $ECHO_C" >&6
43424else
43425 if test -n "$RESCOMP"; then
43426 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43427else
43428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43429for as_dir in $PATH
43430do
43431 IFS=$as_save_IFS
43432 test -z "$as_dir" && as_dir=.
43433 for ac_exec_ext in '' $ac_executable_extensions; do
43434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43435 ac_cv_prog_RESCOMP="Rez"
43436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43437 break 2
43438 fi
43439done
43440done
43441
43442 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43443fi
43444fi
43445RESCOMP=$ac_cv_prog_RESCOMP
43446if test -n "$RESCOMP"; then
43447 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43448echo "${ECHO_T}$RESCOMP" >&6
43449else
43450 echo "$as_me:$LINENO: result: no" >&5
43451echo "${ECHO_T}no" >&6
43452fi
43453
43454 # Extract the first word of "SetFile", so it can be a program name with args.
43455set dummy SetFile; ac_word=$2
43456echo "$as_me:$LINENO: checking for $ac_word" >&5
43457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43458if test "${ac_cv_prog_SETFILE+set}" = set; then
43459 echo $ECHO_N "(cached) $ECHO_C" >&6
43460else
43461 if test -n "$SETFILE"; then
43462 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43463else
43464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43465for as_dir in $PATH
43466do
43467 IFS=$as_save_IFS
43468 test -z "$as_dir" && as_dir=.
43469 for ac_exec_ext in '' $ac_executable_extensions; do
43470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43471 ac_cv_prog_SETFILE="SetFile"
43472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43473 break 2
43474 fi
43475done
43476done
43477
43478 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43479fi
43480fi
43481SETFILE=$ac_cv_prog_SETFILE
43482if test -n "$SETFILE"; then
43483 echo "$as_me:$LINENO: result: $SETFILE" >&5
43484echo "${ECHO_T}$SETFILE" >&6
43485else
43486 echo "$as_me:$LINENO: result: no" >&5
43487echo "${ECHO_T}no" >&6
43488fi
43489
43490 ;;
43491 esac
43492
43493
43494
43495
43496
c9469659 43497 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43498
dcc1b6ad 43499
c9469659 43500BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43501
646b6ec1 43502
74b84332 43503
a848cd7e
SC
43504 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43505if test "${enable_precomp_headers+set}" = set; then
43506 enableval="$enable_precomp_headers"
43507 bk_use_pch="$enableval"
43508fi;
43509
43510 GCC_PCH=0
43511
43512 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43513 if test "x$GCC" = "xyes"; then
43514 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43515echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43516 cat >conftest.$ac_ext <<_ACEOF
43517/* confdefs.h. */
43518_ACEOF
43519cat confdefs.h >>conftest.$ac_ext
43520cat >>conftest.$ac_ext <<_ACEOF
43521/* end confdefs.h. */
43522
43523int
43524main ()
43525{
43526
43527 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43528 #error "no pch support"
43529 #endif
43530 #if (__GNUC__ < 3)
43531 #error "no pch support"
43532 #endif
43533 #if (__GNUC__ == 3) && \
43534 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43535 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43536 #error "no pch support"
43537 #endif
43538
43539 ;
43540 return 0;
43541}
43542_ACEOF
43543rm -f conftest.$ac_objext
43544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43545 (eval $ac_compile) 2>conftest.er1
a848cd7e 43546 ac_status=$?
ac1cb8d3
VS
43547 grep -v '^ *+' conftest.er1 >conftest.err
43548 rm -f conftest.er1
43549 cat conftest.err >&5
a848cd7e
SC
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); } &&
6ebeb4c7 43552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43555 ac_status=$?
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; } &&
43558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43560 (eval $ac_try) 2>&5
43561 ac_status=$?
43562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43563 (exit $ac_status); }; }; then
43564
43565 echo "$as_me:$LINENO: result: yes" >&5
43566echo "${ECHO_T}yes" >&6
a848cd7e
SC
43567 GCC_PCH=1
43568
43569else
43570 echo "$as_me: failed program was:" >&5
43571sed 's/^/| /' conftest.$ac_ext >&5
43572
43573
43574 echo "$as_me:$LINENO: result: no" >&5
43575echo "${ECHO_T}no" >&6
43576
43577fi
ac1cb8d3 43578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43579 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43580
43581D='$'
43582cat <<EOF >bk-make-pch
a848cd7e
SC
43583#!/bin/sh
43584
43585# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43586# script. It is used to generated precompiled headers.
43587#
43588# Permission is given to use this file in any way.
43589
1e9e8aba
DE
43590outfile="${D}{1}"
43591header="${D}{2}"
a848cd7e
SC
43592shift
43593shift
43594
43595compiler=
43596headerfile=
1e9e8aba
DE
43597while test ${D}{#} -gt 0; do
43598 case "${D}{1}" in
a848cd7e 43599 -I* )
1e9e8aba
DE
43600 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43601 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43602 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43603 fi
43604 ;;
43605 esac
1e9e8aba 43606 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43607 shift
43608done
43609
1e9e8aba
DE
43610if test "x${D}{headerfile}" = "x" ; then
43611 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43612else
1e9e8aba
DE
43613 if test -f ${D}{outfile} ; then
43614 rm -f ${D}{outfile}
a848cd7e 43615 else
1e9e8aba 43616 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43617 fi
1e9e8aba 43618 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43619 mkdir -p .deps
43620 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43621 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43622 exit ${D}{?}
a848cd7e
SC
43623fi
43624EOF
1e9e8aba 43625
a848cd7e
SC
43626 chmod +x bk-make-pch
43627 fi
43628 fi
43629 fi
43630
43631
43632
a848cd7e
SC
43633 COND_BUILD_DEBUG="#"
43634 if test "x$BUILD" = "xdebug" ; then
43635 COND_BUILD_DEBUG=""
43636 fi
43637
43638 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43639 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43640 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43641 fi
43642
43643 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43644 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43645 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43646 fi
43647
43648 COND_BUILD_DEBUG_UNICODE_0="#"
43649 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43650 COND_BUILD_DEBUG_UNICODE_0=""
43651 fi
43652
43653 COND_BUILD_DEBUG_UNICODE_1="#"
43654 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43655 COND_BUILD_DEBUG_UNICODE_1=""
43656 fi
43657
43658 COND_BUILD_RELEASE="#"
43659 if test "x$BUILD" = "xrelease" ; then
43660 COND_BUILD_RELEASE=""
43661 fi
43662
43663 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43664 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43665 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43666 fi
43667
43668 COND_BUILD_RELEASE_UNICODE_0="#"
43669 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43670 COND_BUILD_RELEASE_UNICODE_0=""
43671 fi
43672
43673 COND_BUILD_RELEASE_UNICODE_1="#"
43674 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43675 COND_BUILD_RELEASE_UNICODE_1=""
43676 fi
43677
43678 COND_DEBUG_FLAG_1="#"
43679 if test "x$DEBUG_FLAG" = "x1" ; then
43680 COND_DEBUG_FLAG_1=""
43681 fi
43682
43683 COND_DEBUG_INFO_0="#"
43684 if test "x$DEBUG_INFO" = "x0" ; then
43685 COND_DEBUG_INFO_0=""
43686 fi
43687
43688 COND_DEBUG_INFO_1="#"
43689 if test "x$DEBUG_INFO" = "x1" ; then
43690 COND_DEBUG_INFO_1=""
43691 fi
43692
43693 COND_DEPS_TRACKING_0="#"
43694 if test "x$DEPS_TRACKING" = "x0" ; then
43695 COND_DEPS_TRACKING_0=""
43696 fi
43697
43698 COND_DEPS_TRACKING_1="#"
43699 if test "x$DEPS_TRACKING" = "x1" ; then
43700 COND_DEPS_TRACKING_1=""
43701 fi
43702
43703 COND_GCC_PCH_1="#"
43704 if test "x$GCC_PCH" = "x1" ; then
43705 COND_GCC_PCH_1=""
43706 fi
43707
43708 COND_MONOLITHIC_0="#"
43709 if test "x$MONOLITHIC" = "x0" ; then
43710 COND_MONOLITHIC_0=""
43711 fi
43712
43713 COND_MONOLITHIC_0_SHARED_0="#"
43714 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43715 COND_MONOLITHIC_0_SHARED_0=""
43716 fi
43717
43718 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43719 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43720 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43721 fi
43722
90970d69
DE
43723 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43724 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43725 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43726 fi
43727
a848cd7e
SC
43728 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43729 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43730 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43731 fi
43732
6671c68b
VZ
43733 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43734 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43735 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43736 fi
43737
a848cd7e
SC
43738 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43739 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43740 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43741 fi
43742
ceec2216
RL
43743 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43744 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43745 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43746 fi
43747
a848cd7e
SC
43748 COND_MONOLITHIC_0_SHARED_1="#"
43749 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43750 COND_MONOLITHIC_0_SHARED_1=""
43751 fi
43752
43753 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43754 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43755 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43756 fi
43757
90970d69
DE
43758 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43759 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43760 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43761 fi
43762
a848cd7e
SC
43763 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43764 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43765 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43766 fi
43767
6671c68b
VZ
43768 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43769 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43770 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43771 fi
43772
a848cd7e
SC
43773 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43774 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43775 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43776 fi
43777
ceec2216
RL
43778 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43779 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43780 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43781 fi
43782
a848cd7e
SC
43783 COND_MONOLITHIC_0_USE_ODBC_1="#"
43784 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43785 COND_MONOLITHIC_0_USE_ODBC_1=""
43786 fi
43787
43788 COND_MONOLITHIC_1="#"
43789 if test "x$MONOLITHIC" = "x1" ; then
43790 COND_MONOLITHIC_1=""
43791 fi
43792
43793 COND_MONOLITHIC_1_SHARED_0="#"
43794 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43795 COND_MONOLITHIC_1_SHARED_0=""
43796 fi
43797
43798 COND_MONOLITHIC_1_SHARED_1="#"
43799 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43800 COND_MONOLITHIC_1_SHARED_1=""
43801 fi
43802
43803 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43804 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43805 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43806 fi
43807
43808 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43809 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43810 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43811 fi
43812
eb730a0c
JS
43813 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43814 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43815 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43816 fi
43817
a848cd7e
SC
43818 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43819 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43820 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43821 fi
43822
43823 COND_PLATFORM_MACOSX_1="#"
43824 if test "x$PLATFORM_MACOSX" = "x1" ; then
43825 COND_PLATFORM_MACOSX_1=""
43826 fi
43827
a30f955f
VS
43828 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43829 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43830 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43831 fi
43832
a848cd7e
SC
43833 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43834 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43835 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43836 fi
43837
43838 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43839 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43840 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43841 fi
43842
43843 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43844 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43845 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43846 fi
43847
fc480dc1
DE
43848 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43849 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43850 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43851 fi
43852
1e9e8aba
DE
43853 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43854 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43855 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43856 fi
43857
ebee3cd0
VS
43858 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43859 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43860 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43861 fi
43862
43863 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43864 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43865 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43866 fi
43867
a848cd7e
SC
43868 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43869 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43870 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43871 fi
43872
43873 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43874 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43875 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43876 fi
43877
b48a2016
DE
43878 COND_PLATFORM_MACOS_1="#"
43879 if test "x$PLATFORM_MACOS" = "x1" ; then
43880 COND_PLATFORM_MACOS_1=""
43881 fi
43882
083508af
MW
43883 COND_PLATFORM_MAC_1="#"
43884 if test "x$PLATFORM_MAC" = "x1" ; then
43885 COND_PLATFORM_MAC_1=""
43886 fi
43887
83d8eb47
MW
43888 COND_PLATFORM_MSDOS_1="#"
43889 if test "x$PLATFORM_MSDOS" = "x1" ; then
43890 COND_PLATFORM_MSDOS_1=""
43891 fi
43892
a848cd7e
SC
43893 COND_PLATFORM_OS2_1="#"
43894 if test "x$PLATFORM_OS2" = "x1" ; then
43895 COND_PLATFORM_OS2_1=""
43896 fi
43897
43898 COND_PLATFORM_UNIX_0="#"
43899 if test "x$PLATFORM_UNIX" = "x0" ; then
43900 COND_PLATFORM_UNIX_0=""
43901 fi
43902
43903 COND_PLATFORM_UNIX_1="#"
43904 if test "x$PLATFORM_UNIX" = "x1" ; then
43905 COND_PLATFORM_UNIX_1=""
43906 fi
43907
43908 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43909 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43910 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43911 fi
43912
43913 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43914 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43915 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43916 fi
43917
43918 COND_PLATFORM_WIN32_0="#"
43919 if test "x$PLATFORM_WIN32" = "x0" ; then
43920 COND_PLATFORM_WIN32_0=""
43921 fi
43922
43923 COND_PLATFORM_WIN32_1="#"
43924 if test "x$PLATFORM_WIN32" = "x1" ; then
43925 COND_PLATFORM_WIN32_1=""
43926 fi
43927
43928 COND_SHARED_0="#"
43929 if test "x$SHARED" = "x0" ; then
43930 COND_SHARED_0=""
43931 fi
43932
083508af
MW
43933 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43934 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43935 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43936 fi
43937
43938 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43939 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43940 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43941 fi
43942
43943 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43944 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43945 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43946 fi
43947
a848cd7e
SC
43948 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43949 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43950 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43951 fi
43952
43953 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43954 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43955 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43956 fi
43957
43958 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43959 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43960 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43961 fi
43962
43963 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43964 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43965 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43966 fi
43967
083508af
MW
43968 COND_SHARED_0_USE_XRC_1="#"
43969 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43970 COND_SHARED_0_USE_XRC_1=""
43971 fi
43972
a848cd7e
SC
43973 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43974 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43975 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43976 fi
43977
43978 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43979 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43980 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43981 fi
43982
43983 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43984 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43985 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43986 fi
43987
43988 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43989 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43990 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43991 fi
43992
43993 COND_SHARED_1="#"
43994 if test "x$SHARED" = "x1" ; then
43995 COND_SHARED_1=""
43996 fi
43997
43998 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43999 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44000 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44001 fi
44002
083508af
MW
44003 COND_SHARED_1_USE_XRC_1="#"
44004 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44005 COND_SHARED_1_USE_XRC_1=""
44006 fi
44007
a30f955f
VS
44008 COND_TOOLKIT_="#"
44009 if test "x$TOOLKIT" = "x" ; then
44010 COND_TOOLKIT_=""
44011 fi
44012
a848cd7e
SC
44013 COND_TOOLKIT_COCOA="#"
44014 if test "x$TOOLKIT" = "xCOCOA" ; then
44015 COND_TOOLKIT_COCOA=""
44016 fi
44017
a49baeab
DE
44018 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44019 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44020 COND_TOOLKIT_COCOA_USE_GUI_1=""
44021 fi
44022
a848cd7e
SC
44023 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44024 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44025 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44026 fi
44027
44028 COND_TOOLKIT_GTK="#"
44029 if test "x$TOOLKIT" = "xGTK" ; then
44030 COND_TOOLKIT_GTK=""
44031 fi
44032
44033 COND_TOOLKIT_GTK_USE_GUI_1="#"
44034 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44035 COND_TOOLKIT_GTK_USE_GUI_1=""
44036 fi
44037
44038 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44039 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44040 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44041 fi
44042
44043 COND_TOOLKIT_MAC="#"
44044 if test "x$TOOLKIT" = "xMAC" ; then
44045 COND_TOOLKIT_MAC=""
44046 fi
44047
44048 COND_TOOLKIT_MAC_USE_GUI_1="#"
44049 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44050 COND_TOOLKIT_MAC_USE_GUI_1=""
44051 fi
44052
44053 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44054 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44055 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44056 fi
44057
44058 COND_TOOLKIT_MGL="#"
44059 if test "x$TOOLKIT" = "xMGL" ; then
44060 COND_TOOLKIT_MGL=""
44061 fi
44062
44063 COND_TOOLKIT_MGL_USE_GUI_1="#"
44064 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44065 COND_TOOLKIT_MGL_USE_GUI_1=""
44066 fi
44067
44068 COND_TOOLKIT_MOTIF="#"
44069 if test "x$TOOLKIT" = "xMOTIF" ; then
44070 COND_TOOLKIT_MOTIF=""
44071 fi
44072
44073 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44074 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44075 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44076 fi
44077
44078 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44079 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44080 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44081 fi
44082
44083 COND_TOOLKIT_MSW="#"
44084 if test "x$TOOLKIT" = "xMSW" ; then
44085 COND_TOOLKIT_MSW=""
44086 fi
44087
44088 COND_TOOLKIT_MSW_USE_GUI_1="#"
44089 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44090 COND_TOOLKIT_MSW_USE_GUI_1=""
44091 fi
44092
44093 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44094 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44095 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44096 fi
44097
44098 COND_TOOLKIT_PM="#"
44099 if test "x$TOOLKIT" = "xPM" ; then
44100 COND_TOOLKIT_PM=""
44101 fi
44102
44103 COND_TOOLKIT_PM_USE_GUI_1="#"
44104 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44105 COND_TOOLKIT_PM_USE_GUI_1=""
44106 fi
44107
44108 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44109 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44110 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44111 fi
44112
3fd9c298
DE
44113 COND_TOOLKIT_WINCE="#"
44114 if test "x$TOOLKIT" = "xWINCE" ; then
44115 COND_TOOLKIT_WINCE=""
44116 fi
44117
44118 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44119 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44120 COND_TOOLKIT_WINCE_USE_GUI_1=""
44121 fi
44122
44123 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44124 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44125 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44126 fi
44127
a848cd7e
SC
44128 COND_TOOLKIT_X11="#"
44129 if test "x$TOOLKIT" = "xX11" ; then
44130 COND_TOOLKIT_X11=""
44131 fi
44132
44133 COND_TOOLKIT_X11_USE_GUI_1="#"
44134 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44135 COND_TOOLKIT_X11_USE_GUI_1=""
44136 fi
44137
44138 COND_UNICODE_1="#"
44139 if test "x$UNICODE" = "x1" ; then
44140 COND_UNICODE_1=""
44141 fi
44142
44143 COND_USE_EXCEPTIONS_0="#"
44144 if test "x$USE_EXCEPTIONS" = "x0" ; then
44145 COND_USE_EXCEPTIONS_0=""
44146 fi
44147
44148 COND_USE_EXCEPTIONS_1="#"
44149 if test "x$USE_EXCEPTIONS" = "x1" ; then
44150 COND_USE_EXCEPTIONS_1=""
44151 fi
44152
44153 COND_USE_GUI_0="#"
44154 if test "x$USE_GUI" = "x0" ; then
44155 COND_USE_GUI_0=""
44156 fi
44157
44158 COND_USE_GUI_1="#"
44159 if test "x$USE_GUI" = "x1" ; then
44160 COND_USE_GUI_1=""
44161 fi
44162
44163 COND_USE_GUI_1_WXUNIV_0="#"
44164 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44165 COND_USE_GUI_1_WXUNIV_0=""
44166 fi
44167
44168 COND_USE_GUI_1_WXUNIV_1="#"
44169 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44170 COND_USE_GUI_1_WXUNIV_1=""
44171 fi
44172
44173 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44174 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44175 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44176 fi
44177
44178 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44179 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44180 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44181 fi
44182
44183 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44184 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44185 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44186 fi
44187
083508af
MW
44188 COND_USE_ODBC_1="#"
44189 if test "x$USE_ODBC" = "x1" ; then
44190 COND_USE_ODBC_1=""
44191 fi
44192
44193 COND_USE_OPENGL_1="#"
44194 if test "x$USE_OPENGL" = "x1" ; then
44195 COND_USE_OPENGL_1=""
44196 fi
44197
a848cd7e
SC
44198 COND_USE_PLUGINS_0="#"
44199 if test "x$USE_PLUGINS" = "x0" ; then
44200 COND_USE_PLUGINS_0=""
44201 fi
44202
0b78747f
MW
44203 COND_USE_RTTI_0="#"
44204 if test "x$USE_RTTI" = "x0" ; then
44205 COND_USE_RTTI_0=""
44206 fi
44207
44208 COND_USE_RTTI_1="#"
44209 if test "x$USE_RTTI" = "x1" ; then
44210 COND_USE_RTTI_1=""
44211 fi
44212
a848cd7e
SC
44213 COND_USE_SOSYMLINKS_1="#"
44214 if test "x$USE_SOSYMLINKS" = "x1" ; then
44215 COND_USE_SOSYMLINKS_1=""
44216 fi
44217
eb730a0c
JS
44218 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44219 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44220 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44221 fi
44222
a848cd7e
SC
44223 COND_USE_SOVERLINUX_1="#"
44224 if test "x$USE_SOVERLINUX" = "x1" ; then
44225 COND_USE_SOVERLINUX_1=""
44226 fi
44227
44228 COND_USE_SOVERSION_0="#"
44229 if test "x$USE_SOVERSION" = "x0" ; then
44230 COND_USE_SOVERSION_0=""
44231 fi
44232
44233 COND_USE_SOVERSOLARIS_1="#"
44234 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44235 COND_USE_SOVERSOLARIS_1=""
44236 fi
44237
0b78747f
MW
44238 COND_USE_THREADS_0="#"
44239 if test "x$USE_THREADS" = "x0" ; then
44240 COND_USE_THREADS_0=""
44241 fi
44242
44243 COND_USE_THREADS_1="#"
44244 if test "x$USE_THREADS" = "x1" ; then
44245 COND_USE_THREADS_1=""
44246 fi
44247
a13a7f89
RL
44248 COND_USE_XRC_1="#"
44249 if test "x$USE_XRC" = "x1" ; then
44250 COND_USE_XRC_1=""
44251 fi
44252
eb730a0c
JS
44253 COND_WINDOWS_IMPLIB_1="#"
44254 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44255 COND_WINDOWS_IMPLIB_1=""
44256 fi
44257
a848cd7e
SC
44258 COND_WITH_PLUGIN_SDL_1="#"
44259 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44260 COND_WITH_PLUGIN_SDL_1=""
44261 fi
44262
1e6eb025
VZ
44263 COND_WXUNIV_0="#"
44264 if test "x$WXUNIV" = "x0" ; then
44265 COND_WXUNIV_0=""
44266 fi
44267
a848cd7e
SC
44268 COND_WXUNIV_1="#"
44269 if test "x$WXUNIV" = "x1" ; then
44270 COND_WXUNIV_1=""
44271 fi
44272
44273 COND_WXUSE_EXPAT_BUILTIN="#"
44274 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44275 COND_WXUSE_EXPAT_BUILTIN=""
44276 fi
44277
44278 COND_WXUSE_LIBJPEG_BUILTIN="#"
44279 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44280 COND_WXUSE_LIBJPEG_BUILTIN=""
44281 fi
44282
44283 COND_WXUSE_LIBPNG_BUILTIN="#"
44284 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44285 COND_WXUSE_LIBPNG_BUILTIN=""
44286 fi
44287
44288 COND_WXUSE_LIBTIFF_BUILTIN="#"
44289 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44290 COND_WXUSE_LIBTIFF_BUILTIN=""
44291 fi
44292
44293 COND_WXUSE_ODBC_BUILTIN="#"
44294 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44295 COND_WXUSE_ODBC_BUILTIN=""
44296 fi
44297
44298 COND_WXUSE_REGEX_BUILTIN="#"
44299 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44300 COND_WXUSE_REGEX_BUILTIN=""
44301 fi
44302
44303 COND_WXUSE_ZLIB_BUILTIN="#"
44304 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44305 COND_WXUSE_ZLIB_BUILTIN=""
44306 fi
44307
44308
44309
810b94f0
MW
44310 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44311 { { 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
44312echo "$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;}
44313 { (exit 1); exit 1; }; }
44314 fi
44315
2057db16
VS
44316 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44317 { { 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
44318echo "$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;}
44319 { (exit 1); exit 1; }; }
44320 fi
44321
a848cd7e 44322
fb00f58d
JS
44323if test "$wxUSE_WINE" = "yes"; then
44324 RESCOMP=wrc
44325fi
44326
ceec2216
RL
44327if test "$wxUSE_SHARED" = "yes"; then
44328
44329 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44330 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44331
5b674b9d
DE
44332 case "${host}" in
44333 *-pc-os2_emx | *-pc-os2-emx )
44334 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44335 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44336 cp -p ${srcdir}/src/os2/dllnames.sh .
44337 cp -p ${srcdir}/src/os2/dllar.sh .
44338 ;;
44339 esac
ceec2216
RL
44340else
44341
44342 EXE_LINKER="$CXX -o"
44343
44344fi
69120ee4
VZ
44345if test "$wxUSE_OMF" = "yes"; then
44346 case "${host}" in
44347 *-pc-os2_emx | *-pc-os2-emx )
44348 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44349 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44350 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44351 ;;
44352 esac
44353fi
a848cd7e 44354
ddd14b14
RR
44355GCC_PRAGMA_FLAGS=""
44356PCH_FLAGS=""
87dd70d3 44357
c08ebc62 44358if test $GCC_PCH = 1 ; then
ddd14b14 44359 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44360 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44361else
44362 if test "$GCC" = yes; then
44363 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44364echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44365 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44366/* confdefs.h. */
44367_ACEOF
44368cat confdefs.h >>conftest.$ac_ext
44369cat >>conftest.$ac_ext <<_ACEOF
44370/* end confdefs.h. */
44371
44372int
44373main ()
44374{
44375#if (__GNUC__ < 4)
87ae5038
RR
44376 #error "Not GCC 4.0 or greater"
44377 #endif
87dd70d3
RR
44378
44379 ;
44380 return 0;
44381}
44382_ACEOF
44383rm -f conftest.$ac_objext
44384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44385 (eval $ac_compile) 2>conftest.er1
44386 ac_status=$?
44387 grep -v '^ *+' conftest.er1 >conftest.err
44388 rm -f conftest.er1
44389 cat conftest.err >&5
44390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391 (exit $ac_status); } &&
6ebeb4c7 44392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44394 (eval $ac_try) 2>&5
44395 ac_status=$?
44396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44397 (exit $ac_status); }; } &&
44398 { ac_try='test -s conftest.$ac_objext'
44399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44400 (eval $ac_try) 2>&5
44401 ac_status=$?
44402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403 (exit $ac_status); }; }; then
44404 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44405 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44406echo "${ECHO_T}yes" >&6
44407else
44408 echo "$as_me: failed program was:" >&5
44409sed 's/^/| /' conftest.$ac_ext >&5
44410
44411echo "$as_me:$LINENO: result: no" >&5
44412echo "${ECHO_T}no" >&6
87ae5038
RR
44413 case "${host}" in
44414 powerpc-*-darwin* )
44415 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44416 ;;
44417 *-*-mingw32* )
44418 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44419 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44420 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44421 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44422echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44423 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44424/* confdefs.h. */
44425_ACEOF
44426cat confdefs.h >>conftest.$ac_ext
44427cat >>conftest.$ac_ext <<_ACEOF
44428/* end confdefs.h. */
44429
44430int
44431main ()
44432{
44433#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44434 #error "Not GCC 3.2 or greater"
44435 #endif
ddd14b14
RR
44436
44437 ;
44438 return 0;
44439}
44440_ACEOF
44441rm -f conftest.$ac_objext
44442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44443 (eval $ac_compile) 2>conftest.er1
44444 ac_status=$?
44445 grep -v '^ *+' conftest.er1 >conftest.err
44446 rm -f conftest.er1
44447 cat conftest.err >&5
44448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44449 (exit $ac_status); } &&
6ebeb4c7 44450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44452 (eval $ac_try) 2>&5
44453 ac_status=$?
44454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44455 (exit $ac_status); }; } &&
44456 { ac_try='test -s conftest.$ac_objext'
44457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44458 (eval $ac_try) 2>&5
44459 ac_status=$?
44460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44461 (exit $ac_status); }; }; then
44462 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44463 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44464echo "${ECHO_T}yes" >&6
44465else
44466 echo "$as_me: failed program was:" >&5
44467sed 's/^/| /' conftest.$ac_ext >&5
44468
44469echo "$as_me:$LINENO: result: no" >&5
44470echo "${ECHO_T}no" >&6
3314e67b 44471fi
ddd14b14 44472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44473 fi
44474 ;;
44475 *-pc-os2_emx | *-pc-os2-emx )
44476 if test "$wxUSE_STL" = "yes"; then
44477 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44478echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44479 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44480/* confdefs.h. */
44481_ACEOF
44482cat confdefs.h >>conftest.$ac_ext
44483cat >>conftest.$ac_ext <<_ACEOF
44484/* end confdefs.h. */
44485
44486int
44487main ()
44488{
44489#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44490 #error "Not GCC 3.2 or greater"
44491 #endif
ddd14b14
RR
44492
44493 ;
44494 return 0;
44495}
44496_ACEOF
44497rm -f conftest.$ac_objext
44498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44499 (eval $ac_compile) 2>conftest.er1
44500 ac_status=$?
44501 grep -v '^ *+' conftest.er1 >conftest.err
44502 rm -f conftest.er1
44503 cat conftest.err >&5
44504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44505 (exit $ac_status); } &&
6ebeb4c7 44506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44508 (eval $ac_try) 2>&5
44509 ac_status=$?
44510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511 (exit $ac_status); }; } &&
44512 { ac_try='test -s conftest.$ac_objext'
44513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44514 (eval $ac_try) 2>&5
44515 ac_status=$?
44516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517 (exit $ac_status); }; }; then
44518 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44519 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44520echo "${ECHO_T}yes" >&6
44521else
44522 echo "$as_me: failed program was:" >&5
44523sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44524
ddd14b14
RR
44525echo "$as_me:$LINENO: result: no" >&5
44526echo "${ECHO_T}no" >&6
44527fi
44528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44529 fi
44530 ;;
44531 esac
44532
44533fi
44534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44535 fi
ddd14b14
RR
44536fi
44537CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44538
44539
44540SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44541
44542
44543
44544
44545
44546
44547
44548
44549
44550
44551
44552
44553
44554
44555
44556
44557
44558
44559
44560
44561
44562
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
a848cd7e
SC
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
ddd14b14 44601
a848cd7e
SC
44602
44603
44604echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44606set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44607if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44608 echo $ECHO_N "(cached) $ECHO_C" >&6
44609else
44610 cat >conftest.make <<\_ACEOF
44611all:
44612 @echo 'ac_maketemp="$(MAKE)"'
44613_ACEOF
44614# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44615eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44616if test -n "$ac_maketemp"; then
44617 eval ac_cv_prog_make_${ac_make}_set=yes
44618else
44619 eval ac_cv_prog_make_${ac_make}_set=no
44620fi
44621rm -f conftest.make
44622fi
44623if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44624 echo "$as_me:$LINENO: result: yes" >&5
44625echo "${ECHO_T}yes" >&6
44626 SET_MAKE=
44627else
44628 echo "$as_me:$LINENO: result: no" >&5
44629echo "${ECHO_T}no" >&6
44630 SET_MAKE="MAKE=${MAKE-make}"
44631fi
44632
44633
a848cd7e 44634
ceec2216
RL
44635 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44636
a848cd7e 44637
ceec2216 44638 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44639
a848cd7e 44640
ceec2216 44641 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44642
ceec2216
RL
44643
44644 ac_config_files="$ac_config_files version-script Makefile"
44645
44646
44647 ac_config_commands="$ac_config_commands wx-config
44648 "
a848cd7e
SC
44649
44650
9103d280
RL
44651
44652
a848cd7e
SC
44653if test "$wxUSE_GUI" = "yes"; then
44654 SUBDIRS="samples demos utils contrib"
44655else SUBDIRS="samples utils"
44656fi
44657
44658
44659
44660# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44661if test "${with_cppunit_prefix+set}" = set; then
44662 withval="$with_cppunit_prefix"
44663 cppunit_config_prefix="$withval"
44664else
44665 cppunit_config_prefix=""
44666fi;
44667
44668# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44669if test "${with_cppunit_exec_prefix+set}" = set; then
44670 withval="$with_cppunit_exec_prefix"
44671 cppunit_config_exec_prefix="$withval"
44672else
44673 cppunit_config_exec_prefix=""
44674fi;
44675
44676 if test x$cppunit_config_exec_prefix != x ; then
44677 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44678 if test x${CPPUNIT_CONFIG+set} != xset ; then
44679 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44680 fi
44681 fi
44682 if test x$cppunit_config_prefix != x ; then
44683 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44684 if test x${CPPUNIT_CONFIG+set} != xset ; then
44685 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44686 fi
44687 fi
44688
44689 # Extract the first word of "cppunit-config", so it can be a program name with args.
44690set dummy cppunit-config; ac_word=$2
44691echo "$as_me:$LINENO: checking for $ac_word" >&5
44692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44693if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44694 echo $ECHO_N "(cached) $ECHO_C" >&6
44695else
44696 case $CPPUNIT_CONFIG in
44697 [\\/]* | ?:[\\/]*)
44698 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44699 ;;
44700 *)
44701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44702for as_dir in $PATH
44703do
44704 IFS=$as_save_IFS
44705 test -z "$as_dir" && as_dir=.
44706 for ac_exec_ext in '' $ac_executable_extensions; do
44707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44708 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44710 break 2
44711 fi
44712done
44713done
44714
44715 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44716 ;;
44717esac
44718fi
44719CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44720
44721if test -n "$CPPUNIT_CONFIG"; then
44722 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44723echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44724else
44725 echo "$as_me:$LINENO: result: no" >&5
44726echo "${ECHO_T}no" >&6
44727fi
44728
44729 cppunit_version_min=1.8.0
44730
44731 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44732echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44733 no_cppunit=""
44734 if test "$CPPUNIT_CONFIG" = "no" ; then
44735 no_cppunit=yes
44736 else
44737 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44738 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44739 cppunit_version=`$CPPUNIT_CONFIG --version`
44740
44741 cppunit_major_version=`echo $cppunit_version | \
44742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44743 cppunit_minor_version=`echo $cppunit_version | \
44744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44745 cppunit_micro_version=`echo $cppunit_version | \
44746 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44747
44748 cppunit_major_min=`echo $cppunit_version_min | \
44749 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44750 cppunit_minor_min=`echo $cppunit_version_min | \
44751 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44752 cppunit_micro_min=`echo $cppunit_version_min | \
44753 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44754
44755 cppunit_version_proper=`expr \
44756 $cppunit_major_version \> $cppunit_major_min \| \
44757 $cppunit_major_version \= $cppunit_major_min \& \
44758 $cppunit_minor_version \> $cppunit_minor_min \| \
44759 $cppunit_major_version \= $cppunit_major_min \& \
44760 $cppunit_minor_version \= $cppunit_minor_min \& \
44761 $cppunit_micro_version \>= $cppunit_micro_min `
44762
44763 if test "$cppunit_version_proper" = "1" ; then
44764 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44765echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44766 else
44767 echo "$as_me:$LINENO: result: no" >&5
44768echo "${ECHO_T}no" >&6
44769 no_cppunit=yes
44770 fi
44771 fi
44772
44773 if test "x$no_cppunit" = x ; then
c2218763 44774 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44775 else
44776 CPPUNIT_CFLAGS=""
44777 CPPUNIT_LIBS=""
c2218763 44778 :
a848cd7e
SC
44779 fi
44780
44781
44782
44783
44784
44785for subdir in `echo $SUBDIRS`; do
44786 if test -d ${srcdir}/${subdir} ; then
44787 if test "$wxUSE_GUI" = "yes"; then
44788 if test ${subdir} = "samples"; then
44789 makefiles="samples/Makefile.in $makefiles"
44790 for sample in `echo $SAMPLES_SUBDIRS`; do
44791 if test -d $srcdir/samples/$sample; then
44792 makefiles="samples/$sample/Makefile.in $makefiles"
44793 fi
44794 done
9c112555
MW
44795 else
44796 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44797 eval "disabled=\$$disabled_var"
44798 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44799 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44800 fi
44801 else if test ${subdir} = "samples"; then
44802 makefiles="samples/Makefile.in samples/console/Makefile.in"
44803 elif test ${subdir} = "utils"; then
6537ccf8
VS
44804 makefiles=""
44805 for util in HelpGen tex2rtf ; do
44806 if test -d $srcdir/utils/$util ; then
44807 makefiles="utils/$util/Makefile.in \
44808 utils/$util/src/Makefile.in \
44809 $makefiles"
44810 fi
44811 done
a848cd7e
SC
44812 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44813 fi
44814 fi
44815
44816 for mkin in $makefiles ; do
44817 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44818 ac_config_files="$ac_config_files $mk"
44819
44820 done
44821 fi
44822done
44823
44824
44825cat >confcache <<\_ACEOF
44826# This file is a shell script that caches the results of configure
44827# tests run on this system so they can be shared between configure
44828# scripts and configure runs, see configure's option --config-cache.
44829# It is not useful on other systems. If it contains results you don't
44830# want to keep, you may remove or edit it.
44831#
44832# config.status only pays attention to the cache file if you give it
44833# the --recheck option to rerun configure.
44834#
44835# `ac_cv_env_foo' variables (set or unset) will be overridden when
44836# loading this file, other *unset* `ac_cv_foo' will be assigned the
44837# following values.
44838
44839_ACEOF
44840
44841# The following way of writing the cache mishandles newlines in values,
44842# but we know of no workaround that is simple, portable, and efficient.
44843# So, don't put newlines in cache variables' values.
44844# Ultrix sh set writes to stderr and can't be redirected directly,
44845# and sets the high bit in the cache file unless we assign to the vars.
44846{
44847 (set) 2>&1 |
44848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44849 *ac_space=\ *)
44850 # `set' does not quote correctly, so add quotes (double-quote
44851 # substitution turns \\\\ into \\, and sed turns \\ into \).
44852 sed -n \
ac1cb8d3
VS
44853 "s/'/'\\\\''/g;
44854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44855 ;;
44856 *)
44857 # `set' quotes correctly as required by POSIX, so do not add quotes.
44858 sed -n \
ac1cb8d3 44859 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44860 ;;
44861 esac;
44862} |
44863 sed '
44864 t clear
44865 : clear
44866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44867 t end
44868 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44869 : end' >>confcache
44870if diff $cache_file confcache >/dev/null 2>&1; then :; else
44871 if test -w $cache_file; then
44872 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44873 cat confcache >$cache_file
44874 else
44875 echo "not updating unwritable cache $cache_file"
44876 fi
44877fi
44878rm -f confcache
44879
44880test "x$prefix" = xNONE && prefix=$ac_default_prefix
44881# Let make expand exec_prefix.
44882test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44883
44884# VPATH may cause trouble with some makes, so we remove $(srcdir),
44885# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44886# trailing colons and then remove the whole line if VPATH becomes empty
44887# (actually we leave an empty line to preserve line numbers).
44888if test "x$srcdir" = x.; then
ac1cb8d3 44889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44890s/:*\$(srcdir):*/:/;
44891s/:*\${srcdir}:*/:/;
44892s/:*@srcdir@:*/:/;
ac1cb8d3 44893s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44894s/:*$//;
ac1cb8d3 44895s/^[^=]*=[ ]*$//;
a848cd7e
SC
44896}'
44897fi
44898
44899DEFS=-DHAVE_CONFIG_H
44900
44901ac_libobjs=
44902ac_ltlibobjs=
44903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44904 # 1. Remove the extension, and $U if already installed.
44905 ac_i=`echo "$ac_i" |
ac1cb8d3 44906 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44907 # 2. Add them.
44908 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44909 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44910done
44911LIBOBJS=$ac_libobjs
44912
44913LTLIBOBJS=$ac_ltlibobjs
44914
44915
44916
44917: ${CONFIG_STATUS=./config.status}
44918ac_clean_files_save=$ac_clean_files
44919ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44920{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44921echo "$as_me: creating $CONFIG_STATUS" >&6;}
44922cat >$CONFIG_STATUS <<_ACEOF
44923#! $SHELL
44924# Generated by $as_me.
44925# Run this file to recreate the current configuration.
44926# Compiler output produced by configure, useful for debugging
44927# configure, is in config.log if it exists.
44928
44929debug=false
44930ac_cs_recheck=false
44931ac_cs_silent=false
44932SHELL=\${CONFIG_SHELL-$SHELL}
44933_ACEOF
44934
44935cat >>$CONFIG_STATUS <<\_ACEOF
44936## --------------------- ##
44937## M4sh Initialization. ##
44938## --------------------- ##
44939
44940# Be Bourne compatible
44941if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44942 emulate sh
44943 NULLCMD=:
44944 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44945 # is contrary to our usage. Disable this feature.
44946 alias -g '${1+"$@"}'='"$@"'
44947elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44948 set -o posix
44949fi
ac1cb8d3 44950DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44951
44952# Support unset when possible.
ac1cb8d3 44953if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44954 as_unset=unset
44955else
44956 as_unset=false
44957fi
44958
44959
44960# Work around bugs in pre-3.0 UWIN ksh.
44961$as_unset ENV MAIL MAILPATH
44962PS1='$ '
44963PS2='> '
44964PS4='+ '
44965
44966# NLS nuisances.
44967for as_var in \
44968 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44969 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44970 LC_TELEPHONE LC_TIME
44971do
ac1cb8d3 44972 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44973 eval $as_var=C; export $as_var
44974 else
44975 $as_unset $as_var
44976 fi
44977done
44978
44979# Required to use basename.
44980if expr a : '\(a\)' >/dev/null 2>&1; then
44981 as_expr=expr
44982else
44983 as_expr=false
44984fi
44985
44986if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44987 as_basename=basename
44988else
44989 as_basename=false
44990fi
44991
44992
44993# Name of the executable.
44994as_me=`$as_basename "$0" ||
44995$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44996 X"$0" : 'X\(//\)$' \| \
44997 X"$0" : 'X\(/\)$' \| \
44998 . : '\(.\)' 2>/dev/null ||
44999echo X/"$0" |
45000 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45001 /^X\/\(\/\/\)$/{ s//\1/; q; }
45002 /^X\/\(\/\).*/{ s//\1/; q; }
45003 s/.*/./; q'`
45004
45005
45006# PATH needs CR, and LINENO needs CR and PATH.
45007# Avoid depending upon Character Ranges.
45008as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45009as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45010as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45011as_cr_digits='0123456789'
45012as_cr_alnum=$as_cr_Letters$as_cr_digits
45013
45014# The user is always right.
45015if test "${PATH_SEPARATOR+set}" != set; then
45016 echo "#! /bin/sh" >conf$$.sh
45017 echo "exit 0" >>conf$$.sh
45018 chmod +x conf$$.sh
45019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45020 PATH_SEPARATOR=';'
45021 else
45022 PATH_SEPARATOR=:
45023 fi
45024 rm -f conf$$.sh
45025fi
45026
45027
45028 as_lineno_1=$LINENO
45029 as_lineno_2=$LINENO
45030 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45031 test "x$as_lineno_1" != "x$as_lineno_2" &&
45032 test "x$as_lineno_3" = "x$as_lineno_2" || {
45033 # Find who we are. Look in the path if we contain no path at all
45034 # relative or not.
45035 case $0 in
45036 *[\\/]* ) as_myself=$0 ;;
45037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45038for as_dir in $PATH
45039do
45040 IFS=$as_save_IFS
45041 test -z "$as_dir" && as_dir=.
45042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45043done
45044
45045 ;;
45046 esac
45047 # We did not find ourselves, most probably we were run as `sh COMMAND'
45048 # in which case we are not to be found in the path.
45049 if test "x$as_myself" = x; then
45050 as_myself=$0
45051 fi
45052 if test ! -f "$as_myself"; then
45053 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45054echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45055 { (exit 1); exit 1; }; }
45056 fi
45057 case $CONFIG_SHELL in
45058 '')
45059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45060for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45061do
45062 IFS=$as_save_IFS
45063 test -z "$as_dir" && as_dir=.
45064 for as_base in sh bash ksh sh5; do
45065 case $as_dir in
45066 /*)
45067 if ("$as_dir/$as_base" -c '
45068 as_lineno_1=$LINENO
45069 as_lineno_2=$LINENO
45070 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45071 test "x$as_lineno_1" != "x$as_lineno_2" &&
45072 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45073 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45074 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45075 CONFIG_SHELL=$as_dir/$as_base
45076 export CONFIG_SHELL
45077 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45078 fi;;
45079 esac
45080 done
45081done
45082;;
45083 esac
45084
45085 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45086 # uniformly replaced by the line number. The first 'sed' inserts a
45087 # line-number line before each line; the second 'sed' does the real
45088 # work. The second script uses 'N' to pair each line-number line
45089 # with the numbered line, and appends trailing '-' during
45090 # substitution so that $LINENO is not a special case at line end.
45091 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45092 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45093 sed '=' <$as_myself |
45094 sed '
45095 N
45096 s,$,-,
45097 : loop
45098 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45099 t loop
45100 s,-$,,
45101 s,^['$as_cr_digits']*\n,,
45102 ' >$as_me.lineno &&
45103 chmod +x $as_me.lineno ||
45104 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45105echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45106 { (exit 1); exit 1; }; }
45107
45108 # Don't try to exec as it changes $[0], causing all sort of problems
45109 # (the dirname of $[0] is not the place where we might find the
45110 # original and so on. Autoconf is especially sensible to this).
45111 . ./$as_me.lineno
45112 # Exit status is that of the last command.
45113 exit
45114}
45115
45116
45117case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45118 *c*,-n*) ECHO_N= ECHO_C='
45119' ECHO_T=' ' ;;
45120 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45121 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45122esac
45123
45124if expr a : '\(a\)' >/dev/null 2>&1; then
45125 as_expr=expr
45126else
45127 as_expr=false
45128fi
45129
45130rm -f conf$$ conf$$.exe conf$$.file
45131echo >conf$$.file
45132if ln -s conf$$.file conf$$ 2>/dev/null; then
45133 # We could just check for DJGPP; but this test a) works b) is more generic
45134 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45135 if test -f conf$$.exe; then
45136 # Don't use ln at all; we don't have any links
45137 as_ln_s='cp -p'
45138 else
45139 as_ln_s='ln -s'
45140 fi
45141elif ln conf$$.file conf$$ 2>/dev/null; then
45142 as_ln_s=ln
45143else
45144 as_ln_s='cp -p'
45145fi
45146rm -f conf$$ conf$$.exe conf$$.file
45147
45148if mkdir -p . 2>/dev/null; then
45149 as_mkdir_p=:
45150else
ac1cb8d3 45151 test -d ./-p && rmdir ./-p
a848cd7e
SC
45152 as_mkdir_p=false
45153fi
45154
45155as_executable_p="test -f"
45156
45157# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45158as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45159
45160# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45161as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45162
45163
45164# IFS
45165# We need space, tab and new line, in precisely that order.
45166as_nl='
45167'
45168IFS=" $as_nl"
45169
45170# CDPATH.
45171$as_unset CDPATH
45172
45173exec 6>&1
45174
45175# Open the log real soon, to keep \$[0] and so on meaningful, and to
45176# report actual input values of CONFIG_FILES etc. instead of their
45177# values after options handling. Logging --version etc. is OK.
45178exec 5>>config.log
45179{
45180 echo
45181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45182## Running $as_me. ##
45183_ASBOX
45184} >&5
45185cat >&5 <<_CSEOF
45186
eb730a0c 45187This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45188generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45189
45190 CONFIG_FILES = $CONFIG_FILES
45191 CONFIG_HEADERS = $CONFIG_HEADERS
45192 CONFIG_LINKS = $CONFIG_LINKS
45193 CONFIG_COMMANDS = $CONFIG_COMMANDS
45194 $ $0 $@
45195
45196_CSEOF
45197echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45198echo >&5
45199_ACEOF
45200
45201# Files that config.status was made for.
45202if test -n "$ac_config_files"; then
45203 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45204fi
45205
45206if test -n "$ac_config_headers"; then
45207 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45208fi
45209
45210if test -n "$ac_config_links"; then
45211 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45212fi
45213
45214if test -n "$ac_config_commands"; then
45215 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45216fi
45217
45218cat >>$CONFIG_STATUS <<\_ACEOF
45219
45220ac_cs_usage="\
45221\`$as_me' instantiates files from templates according to the
45222current configuration.
45223
45224Usage: $0 [OPTIONS] [FILE]...
45225
45226 -h, --help print this help, then exit
45227 -V, --version print version number, then exit
45228 -q, --quiet do not print progress messages
45229 -d, --debug don't remove temporary files
45230 --recheck update $as_me by reconfiguring in the same conditions
45231 --file=FILE[:TEMPLATE]
ac1cb8d3 45232 instantiate the configuration file FILE
a848cd7e 45233 --header=FILE[:TEMPLATE]
ac1cb8d3 45234 instantiate the configuration header FILE
a848cd7e
SC
45235
45236Configuration files:
45237$config_files
45238
45239Configuration headers:
45240$config_headers
45241
45242Configuration commands:
45243$config_commands
45244
45245Report bugs to <bug-autoconf@gnu.org>."
45246_ACEOF
45247
45248cat >>$CONFIG_STATUS <<_ACEOF
45249ac_cs_version="\\
eb730a0c 45250wxWidgets config.status 2.6.2
ac1cb8d3 45251configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45252 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45253
ac1cb8d3 45254Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45255This config.status script is free software; the Free Software Foundation
45256gives unlimited permission to copy, distribute and modify it."
45257srcdir=$srcdir
45258INSTALL="$INSTALL"
45259_ACEOF
45260
45261cat >>$CONFIG_STATUS <<\_ACEOF
45262# If no file are specified by the user, then we need to provide default
45263# value. By we need to know if files were specified by the user.
45264ac_need_defaults=:
45265while test $# != 0
45266do
45267 case $1 in
45268 --*=*)
45269 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45270 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45271 ac_shift=:
45272 ;;
45273 -*)
45274 ac_option=$1
45275 ac_optarg=$2
45276 ac_shift=shift
45277 ;;
45278 *) # This is not an option, so the user has probably given explicit
45279 # arguments.
45280 ac_option=$1
45281 ac_need_defaults=false;;
45282 esac
45283
45284 case $ac_option in
45285 # Handling of the options.
45286_ACEOF
45287cat >>$CONFIG_STATUS <<\_ACEOF
45288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45289 ac_cs_recheck=: ;;
45290 --version | --vers* | -V )
45291 echo "$ac_cs_version"; exit 0 ;;
45292 --he | --h)
45293 # Conflict between --help and --header
45294 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45295Try \`$0 --help' for more information." >&5
45296echo "$as_me: error: ambiguous option: $1
45297Try \`$0 --help' for more information." >&2;}
45298 { (exit 1); exit 1; }; };;
45299 --help | --hel | -h )
45300 echo "$ac_cs_usage"; exit 0 ;;
45301 --debug | --d* | -d )
45302 debug=: ;;
45303 --file | --fil | --fi | --f )
45304 $ac_shift
45305 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45306 ac_need_defaults=false;;
45307 --header | --heade | --head | --hea )
45308 $ac_shift
45309 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45310 ac_need_defaults=false;;
45311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45312 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45313 ac_cs_silent=: ;;
45314
45315 # This is an error.
45316 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45317Try \`$0 --help' for more information." >&5
45318echo "$as_me: error: unrecognized option: $1
45319Try \`$0 --help' for more information." >&2;}
45320 { (exit 1); exit 1; }; } ;;
45321
45322 *) ac_config_targets="$ac_config_targets $1" ;;
45323
45324 esac
45325 shift
45326done
45327
45328ac_configure_extra_args=
45329
45330if $ac_cs_silent; then
45331 exec 6>/dev/null
45332 ac_configure_extra_args="$ac_configure_extra_args --silent"
45333fi
45334
45335_ACEOF
45336cat >>$CONFIG_STATUS <<_ACEOF
45337if \$ac_cs_recheck; then
45338 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45339 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45340fi
45341
45342_ACEOF
45343
45344cat >>$CONFIG_STATUS <<_ACEOF
45345#
45346# INIT-COMMANDS section.
45347#
45348
ceec2216
RL
45349 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45350 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45351 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45352 LN_S="${LN_S}"
a848cd7e
SC
45353
45354
45355_ACEOF
45356
45357
45358
45359cat >>$CONFIG_STATUS <<\_ACEOF
45360for ac_config_target in $ac_config_targets
45361do
45362 case "$ac_config_target" in
45363 # Handling of arguments.
ceec2216
RL
45364 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45365 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45366 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45367 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45368 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45369 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45370 "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
45371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45372echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45373 { (exit 1); exit 1; }; };;
45374 esac
45375done
45376
45377# If the user did not use the arguments to specify the items to instantiate,
45378# then the envvar interface is used. Set only those that are not.
45379# We use the long form for the default assignment because of an extremely
45380# bizarre bug on SunOS 4.1.3.
45381if $ac_need_defaults; then
45382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45385fi
45386
45387# Have a temporary directory for convenience. Make it in the build tree
45388# simply because there is no reason to put it here, and in addition,
45389# creating and moving files from /tmp can sometimes cause problems.
45390# Create a temporary directory, and hook for its removal unless debugging.
45391$debug ||
45392{
45393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45394 trap '{ (exit 1); exit 1; }' 1 2 13 15
45395}
45396
45397# Create a (secure) tmp directory for tmp files.
45398
45399{
45400 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45401 test -n "$tmp" && test -d "$tmp"
45402} ||
45403{
45404 tmp=./confstat$$-$RANDOM
45405 (umask 077 && mkdir $tmp)
45406} ||
45407{
45408 echo "$me: cannot create a temporary directory in ." >&2
45409 { (exit 1); exit 1; }
45410}
45411
45412_ACEOF
45413
45414cat >>$CONFIG_STATUS <<_ACEOF
45415
45416#
45417# CONFIG_FILES section.
45418#
45419
45420# No need to generate the scripts if there are no CONFIG_FILES.
45421# This happens for instance when ./config.status config.h
45422if test -n "\$CONFIG_FILES"; then
45423 # Protect against being on the right side of a sed subst in config.status.
45424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45426s,@SHELL@,$SHELL,;t t
45427s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45428s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45429s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45430s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45431s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45432s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45433s,@exec_prefix@,$exec_prefix,;t t
45434s,@prefix@,$prefix,;t t
45435s,@program_transform_name@,$program_transform_name,;t t
45436s,@bindir@,$bindir,;t t
45437s,@sbindir@,$sbindir,;t t
45438s,@libexecdir@,$libexecdir,;t t
45439s,@datadir@,$datadir,;t t
45440s,@sysconfdir@,$sysconfdir,;t t
45441s,@sharedstatedir@,$sharedstatedir,;t t
45442s,@localstatedir@,$localstatedir,;t t
45443s,@libdir@,$libdir,;t t
45444s,@includedir@,$includedir,;t t
45445s,@oldincludedir@,$oldincludedir,;t t
45446s,@infodir@,$infodir,;t t
45447s,@mandir@,$mandir,;t t
45448s,@build_alias@,$build_alias,;t t
45449s,@host_alias@,$host_alias,;t t
45450s,@target_alias@,$target_alias,;t t
45451s,@DEFS@,$DEFS,;t t
45452s,@ECHO_C@,$ECHO_C,;t t
45453s,@ECHO_N@,$ECHO_N,;t t
45454s,@ECHO_T@,$ECHO_T,;t t
45455s,@LIBS@,$LIBS,;t t
45456s,@build@,$build,;t t
45457s,@build_cpu@,$build_cpu,;t t
45458s,@build_vendor@,$build_vendor,;t t
45459s,@build_os@,$build_os,;t t
45460s,@host@,$host,;t t
45461s,@host_cpu@,$host_cpu,;t t
45462s,@host_vendor@,$host_vendor,;t t
45463s,@host_os@,$host_os,;t t
45464s,@target@,$target,;t t
45465s,@target_cpu@,$target_cpu,;t t
45466s,@target_vendor@,$target_vendor,;t t
45467s,@target_os@,$target_os,;t t
45468s,@CC@,$CC,;t t
45469s,@CFLAGS@,$CFLAGS,;t t
45470s,@LDFLAGS@,$LDFLAGS,;t t
45471s,@CPPFLAGS@,$CPPFLAGS,;t t
45472s,@ac_ct_CC@,$ac_ct_CC,;t t
45473s,@EXEEXT@,$EXEEXT,;t t
45474s,@OBJEXT@,$OBJEXT,;t t
45475s,@CPP@,$CPP,;t t
45476s,@EGREP@,$EGREP,;t t
45477s,@CXX@,$CXX,;t t
45478s,@CXXFLAGS@,$CXXFLAGS,;t t
45479s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45480s,@RANLIB@,$RANLIB,;t t
45481s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45482s,@AR@,$AR,;t t
45483s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45484s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45485s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45486s,@STRIP@,$STRIP,;t t
45487s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45488s,@LN_S@,$LN_S,;t t
45489s,@CXXCPP@,$CXXCPP,;t t
45490s,@subdirs@,$subdirs,;t t
45491s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45492s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45493s,@GTK_LIBS@,$GTK_LIBS,;t t
45494s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45495s,@X_CFLAGS@,$X_CFLAGS,;t t
45496s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45497s,@X_LIBS@,$X_LIBS,;t t
45498s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45499s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45500s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45501s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45502s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45503s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45504s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45505s,@RESCOMP@,$RESCOMP,;t t
45506s,@DEREZ@,$DEREZ,;t t
45507s,@SETFILE@,$SETFILE,;t t
45508s,@LIBICONV@,$LIBICONV,;t t
45509s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45510s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45511s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45512s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45513s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45514s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45515s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45516s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45517s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45518s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45519s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45520s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45521s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45522s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45523s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45524s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45525s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45526s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45527s,@VENDOR@,$VENDOR,;t t
45528s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45529s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45530s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45531s,@WXUNIV@,$WXUNIV,;t t
45532s,@MONOLITHIC@,$MONOLITHIC,;t t
45533s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45534s,@EXTRALIBS@,$EXTRALIBS,;t t
45535s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45536s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45537s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45538s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45539s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45540s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45541s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45542s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45543s,@UNICODE@,$UNICODE,;t t
45544s,@BUILD@,$BUILD,;t t
45545s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45546s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45547s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45548s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45549s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45550s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45551s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45552s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45553s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45554s,@SET_MAKE@,$SET_MAKE,;t t
45555s,@MAKE_SET@,$MAKE_SET,;t t
45556s,@ac_ct_AR@,$ac_ct_AR,;t t
45557s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45558s,@NM@,$NM,;t t
45559s,@ac_ct_NM@,$ac_ct_NM,;t t
45560s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45561s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45562s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45563s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45564s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45565s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45566s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45567s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45568s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45569s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45570s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45571s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45572s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45573s,@LIBPREFIX@,$LIBPREFIX,;t t
45574s,@LIBEXT@,$LIBEXT,;t t
45575s,@DLLPREFIX@,$DLLPREFIX,;t t
45576s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45577s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45578s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45579s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45580s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45581s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45582s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45583s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45584s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45585s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45586s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45587s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45588s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45589s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45590s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45591s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45592s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45593s,@GCC_PCH@,$GCC_PCH,;t t
45594s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45595s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45596s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45597s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45598s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45599s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45600s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45601s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45602s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45603s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45604s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45605s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45606s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45607s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45608s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45609s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45610s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45611s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45612s,@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 45613s,@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 45614s,@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 45615s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45616s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45617s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45618s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45619s,@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 45620s,@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 45621s,@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 45622s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45623s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45624s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45625s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45626s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45627s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45628s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45629s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45630s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45631s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45632s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45633s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45634s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45635s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45636s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45637s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45638s,@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
45639s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45640s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45641s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45642s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45643s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45644s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45645s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45646s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45647s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45648s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45649s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45650s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45651s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45652s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45653s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45654s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45655s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45656s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45657s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45658s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45659s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45660s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45661s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45662s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45663s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45664s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45665s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45666s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45667s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45668s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45669s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45670s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45671s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45672s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45673s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45674s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45675s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45676s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45677s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45678s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45679s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45680s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45681s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45682s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45683s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45684s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45685s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45686s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45687s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45688s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45689s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45690s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45691s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45692s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45693s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45694s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45695s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45696s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45697s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45698s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45699s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45700s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45701s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45702s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45703s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45704s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45705s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45706s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45707s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45708s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45709s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45710s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45711s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45712s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45713s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45714s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45715s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45716s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45717s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45718s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45719s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45720s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45721s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45722s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45723s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45724s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45725s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45726s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45727s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45728s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45729s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45730s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45731s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45732s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45733s,@USE_GUI@,$USE_GUI,;t t
45734s,@AFMINSTALL@,$AFMINSTALL,;t t
45735s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45736s,@TOOLKIT@,$TOOLKIT,;t t
45737s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45738s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45739s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45740s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45741s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45742s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45743s,@WIDGET_SET@,$WIDGET_SET,;t t
45744s,@WX_RELEASE@,$WX_RELEASE,;t t
45745s,@WX_VERSION@,$WX_VERSION,;t t
45746s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45747s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45748s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45749s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45750s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45751s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45752s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45753s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45754s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45755s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45756s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45757s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45758s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45759s,@DISTDIR@,$DISTDIR,;t t
45760s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45761s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45762s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45763s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45764s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45765s,@RESFLAGS@,$RESFLAGS,;t t
45766s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45767s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45768s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45769s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45770s,@MACRESCOMP@,$MACRESCOMP,;t t
45771s,@MACSETFILE@,$MACSETFILE,;t t
45772s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45773s,@GCC@,$GCC,;t t
a848cd7e 45774s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45775s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45776s,@LIBOBJS@,$LIBOBJS,;t t
45777s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45778CEOF
45779
45780_ACEOF
45781
45782 cat >>$CONFIG_STATUS <<\_ACEOF
45783 # Split the substitutions into bite-sized pieces for seds with
45784 # small command number limits, like on Digital OSF/1 and HP-UX.
45785 ac_max_sed_lines=48
45786 ac_sed_frag=1 # Number of current file.
45787 ac_beg=1 # First line for current file.
45788 ac_end=$ac_max_sed_lines # Line after last line for current file.
45789 ac_more_lines=:
45790 ac_sed_cmds=
45791 while $ac_more_lines; do
45792 if test $ac_beg -gt 1; then
45793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45794 else
45795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45796 fi
45797 if test ! -s $tmp/subs.frag; then
45798 ac_more_lines=false
45799 else
45800 # The purpose of the label and of the branching condition is to
45801 # speed up the sed processing (if there are no `@' at all, there
45802 # is no need to browse any of the substitutions).
45803 # These are the two extra sed commands mentioned above.
45804 (echo ':t
45805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45806 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45808 else
ac1cb8d3 45809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45810 fi
45811 ac_sed_frag=`expr $ac_sed_frag + 1`
45812 ac_beg=$ac_end
45813 ac_end=`expr $ac_end + $ac_max_sed_lines`
45814 fi
45815 done
45816 if test -z "$ac_sed_cmds"; then
45817 ac_sed_cmds=cat
45818 fi
45819fi # test -n "$CONFIG_FILES"
45820
45821_ACEOF
45822cat >>$CONFIG_STATUS <<\_ACEOF
45823for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45825 case $ac_file in
45826 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45827 cat >$tmp/stdin
45828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45832 * ) ac_file_in=$ac_file.in ;;
45833 esac
45834
45835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45838 X"$ac_file" : 'X\(//\)[^/]' \| \
45839 X"$ac_file" : 'X\(//\)$' \| \
45840 X"$ac_file" : 'X\(/\)' \| \
45841 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45842echo X"$ac_file" |
45843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45845 /^X\(\/\/\)$/{ s//\1/; q; }
45846 /^X\(\/\).*/{ s//\1/; q; }
45847 s/.*/./; q'`
45848 { if $as_mkdir_p; then
45849 mkdir -p "$ac_dir"
45850 else
45851 as_dir="$ac_dir"
45852 as_dirs=
45853 while test ! -d "$as_dir"; do
45854 as_dirs="$as_dir $as_dirs"
45855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45857 X"$as_dir" : 'X\(//\)[^/]' \| \
45858 X"$as_dir" : 'X\(//\)$' \| \
45859 X"$as_dir" : 'X\(/\)' \| \
45860 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45861echo X"$as_dir" |
45862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45864 /^X\(\/\/\)$/{ s//\1/; q; }
45865 /^X\(\/\).*/{ s//\1/; q; }
45866 s/.*/./; q'`
45867 done
45868 test ! -n "$as_dirs" || mkdir $as_dirs
45869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45871 { (exit 1); exit 1; }; }; }
45872
45873 ac_builddir=.
45874
45875if test "$ac_dir" != .; then
45876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45877 # A "../" for each directory in $ac_dir_suffix.
45878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45879else
45880 ac_dir_suffix= ac_top_builddir=
45881fi
45882
45883case $srcdir in
45884 .) # No --srcdir option. We are building in place.
45885 ac_srcdir=.
45886 if test -z "$ac_top_builddir"; then
45887 ac_top_srcdir=.
45888 else
45889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45890 fi ;;
45891 [\\/]* | ?:[\\/]* ) # Absolute path.
45892 ac_srcdir=$srcdir$ac_dir_suffix;
45893 ac_top_srcdir=$srcdir ;;
45894 *) # Relative path.
45895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45897esac
ac1cb8d3
VS
45898
45899# Do not use `cd foo && pwd` to compute absolute paths, because
45900# the directories may not exist.
45901case `pwd` in
45902.) ac_abs_builddir="$ac_dir";;
45903*)
45904 case "$ac_dir" in
45905 .) ac_abs_builddir=`pwd`;;
45906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45908 esac;;
45909esac
45910case $ac_abs_builddir in
45911.) ac_abs_top_builddir=${ac_top_builddir}.;;
45912*)
45913 case ${ac_top_builddir}. in
45914 .) ac_abs_top_builddir=$ac_abs_builddir;;
45915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45917 esac;;
45918esac
45919case $ac_abs_builddir in
45920.) ac_abs_srcdir=$ac_srcdir;;
45921*)
45922 case $ac_srcdir in
45923 .) ac_abs_srcdir=$ac_abs_builddir;;
45924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45926 esac;;
45927esac
45928case $ac_abs_builddir in
45929.) ac_abs_top_srcdir=$ac_top_srcdir;;
45930*)
45931 case $ac_top_srcdir in
45932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45935 esac;;
45936esac
a848cd7e
SC
45937
45938
45939 case $INSTALL in
45940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45941 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45942 esac
45943
a848cd7e
SC
45944 # Let's still pretend it is `configure' which instantiates (i.e., don't
45945 # use $as_me), people would be surprised to read:
45946 # /* config.h. Generated by config.status. */
45947 if test x"$ac_file" = x-; then
45948 configure_input=
45949 else
45950 configure_input="$ac_file. "
45951 fi
45952 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45953 sed 's,.*/,,'` by configure."
a848cd7e
SC
45954
45955 # First look for the input files in the build tree, otherwise in the
45956 # src tree.
45957 ac_file_inputs=`IFS=:
45958 for f in $ac_file_in; do
45959 case $f in
45960 -) echo $tmp/stdin ;;
45961 [\\/$]*)
ac1cb8d3
VS
45962 # Absolute (can't be DOS-style, as IFS=:)
45963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45964echo "$as_me: error: cannot find input file: $f" >&2;}
45965 { (exit 1); exit 1; }; }
ac1cb8d3 45966 echo "$f";;
a848cd7e 45967 *) # Relative
ac1cb8d3
VS
45968 if test -f "$f"; then
45969 # Build tree
45970 echo "$f"
45971 elif test -f "$srcdir/$f"; then
45972 # Source tree
45973 echo "$srcdir/$f"
45974 else
45975 # /dev/null tree
45976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45977echo "$as_me: error: cannot find input file: $f" >&2;}
45978 { (exit 1); exit 1; }; }
ac1cb8d3 45979 fi;;
a848cd7e
SC
45980 esac
45981 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
45982
45983 if test x"$ac_file" != x-; then
45984 { echo "$as_me:$LINENO: creating $ac_file" >&5
45985echo "$as_me: creating $ac_file" >&6;}
45986 rm -f "$ac_file"
45987 fi
a848cd7e
SC
45988_ACEOF
45989cat >>$CONFIG_STATUS <<_ACEOF
45990 sed "$ac_vpsub
45991$extrasub
45992_ACEOF
45993cat >>$CONFIG_STATUS <<\_ACEOF
45994:t
45995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45996s,@configure_input@,$configure_input,;t t
45997s,@srcdir@,$ac_srcdir,;t t
45998s,@abs_srcdir@,$ac_abs_srcdir,;t t
45999s,@top_srcdir@,$ac_top_srcdir,;t t
46000s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46001s,@builddir@,$ac_builddir,;t t
46002s,@abs_builddir@,$ac_abs_builddir,;t t
46003s,@top_builddir@,$ac_top_builddir,;t t
46004s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46005s,@INSTALL@,$ac_INSTALL,;t t
46006" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46007 rm -f $tmp/stdin
46008 if test x"$ac_file" != x-; then
46009 mv $tmp/out $ac_file
46010 else
46011 cat $tmp/out
46012 rm -f $tmp/out
46013 fi
46014
ceec2216
RL
46015 # Run the commands associated with the file.
46016 case $ac_file in
46017 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46018 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46019 esac
a848cd7e
SC
46020done
46021_ACEOF
46022cat >>$CONFIG_STATUS <<\_ACEOF
46023
46024#
46025# CONFIG_HEADER section.
46026#
46027
46028# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46029# NAME is the cpp macro being defined and VALUE is the value it is being given.
46030#
46031# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46032ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46033ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46034ac_dC=' '
46035ac_dD=',;t'
46036# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46037ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46038ac_uB='$,\1#\2define\3'
46039ac_uC=' '
46040ac_uD=',;t'
46041
46042for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46044 case $ac_file in
46045 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46046 cat >$tmp/stdin
46047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46051 * ) ac_file_in=$ac_file.in ;;
46052 esac
46053
46054 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46055echo "$as_me: creating $ac_file" >&6;}
46056
46057 # First look for the input files in the build tree, otherwise in the
46058 # src tree.
46059 ac_file_inputs=`IFS=:
46060 for f in $ac_file_in; do
46061 case $f in
46062 -) echo $tmp/stdin ;;
46063 [\\/$]*)
ac1cb8d3
VS
46064 # Absolute (can't be DOS-style, as IFS=:)
46065 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46066echo "$as_me: error: cannot find input file: $f" >&2;}
46067 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46068 # Do quote $f, to prevent DOS paths from being IFS'd.
46069 echo "$f";;
a848cd7e 46070 *) # Relative
ac1cb8d3
VS
46071 if test -f "$f"; then
46072 # Build tree
46073 echo "$f"
46074 elif test -f "$srcdir/$f"; then
46075 # Source tree
46076 echo "$srcdir/$f"
46077 else
46078 # /dev/null tree
46079 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46080echo "$as_me: error: cannot find input file: $f" >&2;}
46081 { (exit 1); exit 1; }; }
ac1cb8d3 46082 fi;;
a848cd7e
SC
46083 esac
46084 done` || { (exit 1); exit 1; }
46085 # Remove the trailing spaces.
ac1cb8d3 46086 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46087
46088_ACEOF
46089
46090# Transform confdefs.h into two sed scripts, `conftest.defines' and
46091# `conftest.undefs', that substitutes the proper values into
46092# config.h.in to produce config.h. The first handles `#define'
46093# templates, and the second `#undef' templates.
46094# And first: Protect against being on the right side of a sed subst in
46095# config.status. Protect against being in an unquoted here document
46096# in config.status.
46097rm -f conftest.defines conftest.undefs
46098# Using a here document instead of a string reduces the quoting nightmare.
46099# Putting comments in sed scripts is not portable.
46100#
46101# `end' is used to avoid that the second main sed command (meant for
46102# 0-ary CPP macros) applies to n-ary macro definitions.
46103# See the Autoconf documentation for `clear'.
46104cat >confdef2sed.sed <<\_ACEOF
46105s/[\\&,]/\\&/g
46106s,[\\$`],\\&,g
46107t clear
46108: clear
ac1cb8d3 46109s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46110t end
ac1cb8d3 46111s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46112: end
46113_ACEOF
46114# If some macros were called several times there might be several times
46115# the same #defines, which is useless. Nevertheless, we may not want to
46116# sort them, since we want the *last* AC-DEFINE to be honored.
46117uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46118sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46119rm -f confdef2sed.sed
46120
46121# This sed command replaces #undef with comments. This is necessary, for
46122# example, in the case of _POSIX_SOURCE, which is predefined and required
46123# on some systems where configure will not decide to define it.
46124cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46125s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46126_ACEOF
46127
46128# Break up conftest.defines because some shells have a limit on the size
46129# of here documents, and old seds have small limits too (100 cmds).
46130echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46131echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46132echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46133echo ' :' >>$CONFIG_STATUS
46134rm -f conftest.tail
46135while grep . conftest.defines >/dev/null
46136do
46137 # Write a limited-size here document to $tmp/defines.sed.
46138 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46139 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46140 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46141 # Work around the forget-to-reset-the-flag bug.
46142 echo 't clr' >>$CONFIG_STATUS
46143 echo ': clr' >>$CONFIG_STATUS
46144 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46145 echo 'CEOF
46146 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46147 rm -f $tmp/in
46148 mv $tmp/out $tmp/in
46149' >>$CONFIG_STATUS
46150 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46151 rm -f conftest.defines
46152 mv conftest.tail conftest.defines
46153done
46154rm -f conftest.defines
46155echo ' fi # grep' >>$CONFIG_STATUS
46156echo >>$CONFIG_STATUS
46157
46158# Break up conftest.undefs because some shells have a limit on the size
46159# of here documents, and old seds have small limits too (100 cmds).
46160echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46161rm -f conftest.tail
46162while grep . conftest.undefs >/dev/null
46163do
46164 # Write a limited-size here document to $tmp/undefs.sed.
46165 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46166 # Speed up: don't consider the non `#undef'
ac1cb8d3 46167 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46168 # Work around the forget-to-reset-the-flag bug.
46169 echo 't clr' >>$CONFIG_STATUS
46170 echo ': clr' >>$CONFIG_STATUS
46171 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46172 echo 'CEOF
46173 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46174 rm -f $tmp/in
46175 mv $tmp/out $tmp/in
46176' >>$CONFIG_STATUS
46177 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46178 rm -f conftest.undefs
46179 mv conftest.tail conftest.undefs
46180done
46181rm -f conftest.undefs
46182
46183cat >>$CONFIG_STATUS <<\_ACEOF
46184 # Let's still pretend it is `configure' which instantiates (i.e., don't
46185 # use $as_me), people would be surprised to read:
46186 # /* config.h. Generated by config.status. */
46187 if test x"$ac_file" = x-; then
46188 echo "/* Generated by configure. */" >$tmp/config.h
46189 else
46190 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46191 fi
46192 cat $tmp/in >>$tmp/config.h
46193 rm -f $tmp/in
46194 if test x"$ac_file" != x-; then
46195 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46197echo "$as_me: $ac_file is unchanged" >&6;}
46198 else
46199 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46200$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46201 X"$ac_file" : 'X\(//\)[^/]' \| \
46202 X"$ac_file" : 'X\(//\)$' \| \
46203 X"$ac_file" : 'X\(/\)' \| \
46204 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46205echo X"$ac_file" |
46206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46208 /^X\(\/\/\)$/{ s//\1/; q; }
46209 /^X\(\/\).*/{ s//\1/; q; }
46210 s/.*/./; q'`
46211 { if $as_mkdir_p; then
46212 mkdir -p "$ac_dir"
46213 else
46214 as_dir="$ac_dir"
46215 as_dirs=
46216 while test ! -d "$as_dir"; do
46217 as_dirs="$as_dir $as_dirs"
46218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46220 X"$as_dir" : 'X\(//\)[^/]' \| \
46221 X"$as_dir" : 'X\(//\)$' \| \
46222 X"$as_dir" : 'X\(/\)' \| \
46223 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46224echo X"$as_dir" |
46225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46227 /^X\(\/\/\)$/{ s//\1/; q; }
46228 /^X\(\/\).*/{ s//\1/; q; }
46229 s/.*/./; q'`
46230 done
46231 test ! -n "$as_dirs" || mkdir $as_dirs
46232 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46233echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46234 { (exit 1); exit 1; }; }; }
46235
46236 rm -f $ac_file
46237 mv $tmp/config.h $ac_file
46238 fi
46239 else
46240 cat $tmp/config.h
46241 rm -f $tmp/config.h
46242 fi
46243done
46244_ACEOF
46245cat >>$CONFIG_STATUS <<\_ACEOF
46246
46247#
46248# CONFIG_COMMANDS section.
46249#
46250for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46251 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46252 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46253 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46254$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46255 X"$ac_dest" : 'X\(//\)[^/]' \| \
46256 X"$ac_dest" : 'X\(//\)$' \| \
46257 X"$ac_dest" : 'X\(/\)' \| \
46258 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46259echo X"$ac_dest" |
46260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46262 /^X\(\/\/\)$/{ s//\1/; q; }
46263 /^X\(\/\).*/{ s//\1/; q; }
46264 s/.*/./; q'`
ac1cb8d3
VS
46265 { if $as_mkdir_p; then
46266 mkdir -p "$ac_dir"
46267 else
46268 as_dir="$ac_dir"
46269 as_dirs=
46270 while test ! -d "$as_dir"; do
46271 as_dirs="$as_dir $as_dirs"
46272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46274 X"$as_dir" : 'X\(//\)[^/]' \| \
46275 X"$as_dir" : 'X\(//\)$' \| \
46276 X"$as_dir" : 'X\(/\)' \| \
46277 . : '\(.\)' 2>/dev/null ||
46278echo X"$as_dir" |
46279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46281 /^X\(\/\/\)$/{ s//\1/; q; }
46282 /^X\(\/\).*/{ s//\1/; q; }
46283 s/.*/./; q'`
46284 done
46285 test ! -n "$as_dirs" || mkdir $as_dirs
46286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46287echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46288 { (exit 1); exit 1; }; }; }
46289
a848cd7e
SC
46290 ac_builddir=.
46291
46292if test "$ac_dir" != .; then
46293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46294 # A "../" for each directory in $ac_dir_suffix.
46295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46296else
46297 ac_dir_suffix= ac_top_builddir=
46298fi
46299
46300case $srcdir in
46301 .) # No --srcdir option. We are building in place.
46302 ac_srcdir=.
46303 if test -z "$ac_top_builddir"; then
46304 ac_top_srcdir=.
46305 else
46306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46307 fi ;;
46308 [\\/]* | ?:[\\/]* ) # Absolute path.
46309 ac_srcdir=$srcdir$ac_dir_suffix;
46310 ac_top_srcdir=$srcdir ;;
46311 *) # Relative path.
46312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46313 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46314esac
ac1cb8d3
VS
46315
46316# Do not use `cd foo && pwd` to compute absolute paths, because
46317# the directories may not exist.
46318case `pwd` in
46319.) ac_abs_builddir="$ac_dir";;
46320*)
46321 case "$ac_dir" in
46322 .) ac_abs_builddir=`pwd`;;
46323 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46324 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46325 esac;;
46326esac
46327case $ac_abs_builddir in
46328.) ac_abs_top_builddir=${ac_top_builddir}.;;
46329*)
46330 case ${ac_top_builddir}. in
46331 .) ac_abs_top_builddir=$ac_abs_builddir;;
46332 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46333 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46334 esac;;
46335esac
46336case $ac_abs_builddir in
46337.) ac_abs_srcdir=$ac_srcdir;;
46338*)
46339 case $ac_srcdir in
46340 .) ac_abs_srcdir=$ac_abs_builddir;;
46341 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46342 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46343 esac;;
46344esac
46345case $ac_abs_builddir in
46346.) ac_abs_top_srcdir=$ac_top_srcdir;;
46347*)
46348 case $ac_top_srcdir in
46349 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46350 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46351 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46352 esac;;
46353esac
a848cd7e
SC
46354
46355
46356 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46357echo "$as_me: executing $ac_dest commands" >&6;}
46358 case $ac_dest in
ceec2216
RL
46359 wx-config ) rm -f wx-config
46360 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46361 ;;
a848cd7e
SC
46362 esac
46363done
46364_ACEOF
46365
46366cat >>$CONFIG_STATUS <<\_ACEOF
46367
46368{ (exit 0); exit 0; }
46369_ACEOF
46370chmod +x $CONFIG_STATUS
46371ac_clean_files=$ac_clean_files_save
46372
46373
46374# configure is writing to config.log, and then calls config.status.
46375# config.status does its own redirection, appending to config.log.
46376# Unfortunately, on DOS this fails, as config.log is still kept open
46377# by configure, so config.status won't be able to write to it; its
46378# output is simply discarded. So we exec the FD to /dev/null,
46379# effectively closing config.log, so it can be properly (re)opened and
46380# appended to by config.status. When coming back to configure, we
46381# need to make the FD available again.
46382if test "$no_create" != yes; then
46383 ac_cs_success=:
46384 ac_config_status_args=
46385 test "$silent" = yes &&
46386 ac_config_status_args="$ac_config_status_args --quiet"
46387 exec 5>/dev/null
46388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46389 exec 5>>config.log
46390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46391 # would make configure fail if this is the last instruction.
46392 $ac_cs_success || { (exit 1); exit 1; }
46393fi
46394
46395#
46396# CONFIG_SUBDIRS section.
46397#
46398if test "$no_recursion" != yes; then
46399
46400 # Remove --cache-file and --srcdir arguments so they do not pile up.
46401 ac_sub_configure_args=
46402 ac_prev=
46403 for ac_arg in $ac_configure_args; do
46404 if test -n "$ac_prev"; then
46405 ac_prev=
46406 continue
46407 fi
46408 case $ac_arg in
46409 -cache-file | --cache-file | --cache-fil | --cache-fi \
46410 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46411 ac_prev=cache_file ;;
46412 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46413 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46414 | --c=*)
46415 ;;
46416 --config-cache | -C)
46417 ;;
46418 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46419 ac_prev=srcdir ;;
46420 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46421 ;;
46422 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46423 ac_prev=prefix ;;
46424 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46425 ;;
46426 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46427 esac
46428 done
46429
46430 # Always prepend --prefix to ensure using the same prefix
46431 # in subdir configurations.
46432 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46433
46434 ac_popdir=`pwd`
46435 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46436
46437 # Do not complain, so a configure script can configure whichever
46438 # parts of a large source tree are present.
46439 test -d $srcdir/$ac_dir || continue
46440
46441 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46442echo "$as_me: configuring in $ac_dir" >&6;}
46443 { if $as_mkdir_p; then
46444 mkdir -p "$ac_dir"
46445 else
46446 as_dir="$ac_dir"
46447 as_dirs=
46448 while test ! -d "$as_dir"; do
46449 as_dirs="$as_dir $as_dirs"
46450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46452 X"$as_dir" : 'X\(//\)[^/]' \| \
46453 X"$as_dir" : 'X\(//\)$' \| \
46454 X"$as_dir" : 'X\(/\)' \| \
46455 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46456echo X"$as_dir" |
46457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46459 /^X\(\/\/\)$/{ s//\1/; q; }
46460 /^X\(\/\).*/{ s//\1/; q; }
46461 s/.*/./; q'`
46462 done
46463 test ! -n "$as_dirs" || mkdir $as_dirs
46464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46465echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46466 { (exit 1); exit 1; }; }; }
46467
46468 ac_builddir=.
46469
46470if test "$ac_dir" != .; then
46471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46472 # A "../" for each directory in $ac_dir_suffix.
46473 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46474else
46475 ac_dir_suffix= ac_top_builddir=
46476fi
46477
46478case $srcdir in
46479 .) # No --srcdir option. We are building in place.
46480 ac_srcdir=.
46481 if test -z "$ac_top_builddir"; then
46482 ac_top_srcdir=.
46483 else
46484 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46485 fi ;;
46486 [\\/]* | ?:[\\/]* ) # Absolute path.
46487 ac_srcdir=$srcdir$ac_dir_suffix;
46488 ac_top_srcdir=$srcdir ;;
46489 *) # Relative path.
46490 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46491 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46492esac
ac1cb8d3
VS
46493
46494# Do not use `cd foo && pwd` to compute absolute paths, because
46495# the directories may not exist.
46496case `pwd` in
46497.) ac_abs_builddir="$ac_dir";;
46498*)
46499 case "$ac_dir" in
46500 .) ac_abs_builddir=`pwd`;;
46501 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46502 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46503 esac;;
46504esac
46505case $ac_abs_builddir in
46506.) ac_abs_top_builddir=${ac_top_builddir}.;;
46507*)
46508 case ${ac_top_builddir}. in
46509 .) ac_abs_top_builddir=$ac_abs_builddir;;
46510 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46511 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46512 esac;;
46513esac
46514case $ac_abs_builddir in
46515.) ac_abs_srcdir=$ac_srcdir;;
46516*)
46517 case $ac_srcdir in
46518 .) ac_abs_srcdir=$ac_abs_builddir;;
46519 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46520 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46521 esac;;
46522esac
46523case $ac_abs_builddir in
46524.) ac_abs_top_srcdir=$ac_top_srcdir;;
46525*)
46526 case $ac_top_srcdir in
46527 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46528 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46529 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46530 esac;;
46531esac
a848cd7e
SC
46532
46533
46534 cd $ac_dir
46535
46536 # Check for guested configure; otherwise get Cygnus style configure.
46537 if test -f $ac_srcdir/configure.gnu; then
46538 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46539 elif test -f $ac_srcdir/configure; then
46540 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46541 elif test -f $ac_srcdir/configure.in; then
46542 ac_sub_configure=$ac_configure
46543 else
46544 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46545echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46546 ac_sub_configure=
46547 fi
46548
46549 # The recursion is here.
46550 if test -n "$ac_sub_configure"; then
46551 # Make the cache file name correct relative to the subdirectory.
46552 case $cache_file in
46553 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46554 *) # Relative path.
ac1cb8d3 46555 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46556 esac
46557
46558 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46559echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46560 # The eval makes quoting arguments work.
46561 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46562 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46563 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46564echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46565 { (exit 1); exit 1; }; }
46566 fi
46567
6ebeb4c7 46568 cd "$ac_popdir"
a848cd7e
SC
46569 done
46570fi
46571
46572
46573echo
77ffb593 46574echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46575echo ""
4d4ff94c 46576echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46577echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46578
77ffb593
JS
46579echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46580echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46581echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46582
77ffb593
JS
46583echo " What level of wxWidgets compatibility should be enabled?"
46584echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46585echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46586
77ffb593 46587echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46588echo " jpeg ${wxUSE_LIBJPEG-none}"
46589echo " png ${wxUSE_LIBPNG-none}"
46590echo " regex ${wxUSE_REGEX}"
46591echo " tiff ${wxUSE_LIBTIFF-none}"
46592if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46593echo " xpm ${wxUSE_LIBXPM-none}"
46594fi
46595echo " zlib ${wxUSE_ZLIB}"
46596echo " odbc ${wxUSE_ODBC}"
46597echo " expat ${wxUSE_EXPAT}"
46598echo " libmspack ${wxUSE_LIBMSPACK}"
46599echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46600echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46601
46602echo ""
46603