]> git.saurik.com Git - wxWidgets.git/blame - configure
REWRITE wxStringBase::append and wxString::Replace.
[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.
63c4f6da 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
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'
63c4f6da
MW
273PACKAGE_VERSION='2.5.5'
274PACKAGE_STRING='wxWidgets 2.5.5'
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"
6671c68b 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_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_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_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
63c4f6da 797\`configure' configures wxWidgets 2.5.5 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
63c4f6da 863 short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
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
9f45f08e 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
1028 --enable-validators use wxValidator and derived classes
1029 --enable-busyinfo use wxBusyInfo
4cb1d3da 1030 --enable-joystick use wxJoystick
a848cd7e
SC
1031 --enable-metafiles use wxMetaFile (Windows only)
1032 --enable-dragimage use wxDragImage
1033 --enable-accessibility enable accessibility support
1034 --enable-palette use wxPalette class
1035 --enable-image use wxImage class
1036 --enable-gif use gif images (GIF file format)
1037 --enable-pcx use pcx images (PCX file format)
1038 --enable-iff use iff images (IFF file format)
1039 --enable-pnm use pnm images (PNM file format)
1040 --enable-xpm use xpm images (XPM file format)
1041 --enable-icocur use Windows ICO and CUR formats
77ffb593 1042 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1043 --enable-vendor=VENDOR vendor name (win32 DLL only)
1044 --disable-largefile omit support for large files
1045 --disable-gtktest do not try to compile and run a test GTK+ program
1046 --disable-gtktest Do not try to compile and run a test GTK program
1047 --disable-sdltest Do not try to compile and run a test SDL program
1048 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1049 --disable-precomp-headers
1050 don't use precompiled headers even if compiler can
a848cd7e
SC
1051
1052Optional Packages:
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1055 --with-gtk use GTK+
1056 --with-motif use Motif/Lesstif
1057 --with-mac use Mac OS X
1058 --with-cocoa use Cocoa
1059 --with-wine use Wine
1060 --with-msw use MS-Windows
1061 --with-pm use OS/2 Presentation Manager
1062 --with-mgl use SciTech MGL
1063 --with-microwin use MicroWindows
1064 --with-x11 use X11
1065 --with-libpng use libpng (PNG image format)
1066 --with-libjpeg use libjpeg (JPEG file format)
1067 --with-libtiff use libtiff (TIFF file format)
1068 --with-libxpm use libxpm (XPM file format)
1069 --with-libmspack use libmspack (CHM help files loading)
1070 --with-sdl use SDL for audio on Unix
d51253e8 1071 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1072 --with-opengl use OpenGL (or Mesa)
1073 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1074 --with-regex enable support for wxRegEx class
1075 --with-zlib use zlib for LZW compression
1076 --with-odbc use the IODBC and wxODBC classes
1077 --with-expat enable XML support using expat parser
ceec2216 1078 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1079 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1080 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1081 --with-x use the X Window System
1082 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1083 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1084 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1085 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1086 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1087
1088Some influential environment variables:
dcc1b6ad
VS
1089 CC C compiler command
1090 CFLAGS C compiler flags
1091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1092 nonstandard directory <lib dir>
1093 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1094 headers in a nonstandard directory <include dir>
1095 CPP C preprocessor
1096 CXX C++ compiler command
1097 CXXFLAGS C++ compiler flags
1098 CXXCPP C++ preprocessor
a848cd7e
SC
1099
1100Use these variables to override the choices made by `configure' or to help
1101it to find libraries and programs with nonstandard names/locations.
1102
77ffb593 1103Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1104_ACEOF
1105fi
1106
1107if test "$ac_init_help" = "recursive"; then
1108 # If there are subdirs, report their specific --help.
1109 ac_popdir=`pwd`
1110 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111 test -d $ac_dir || continue
1112 ac_builddir=.
1113
1114if test "$ac_dir" != .; then
1115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116 # A "../" for each directory in $ac_dir_suffix.
1117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118else
1119 ac_dir_suffix= ac_top_builddir=
1120fi
1121
1122case $srcdir in
1123 .) # No --srcdir option. We are building in place.
1124 ac_srcdir=.
1125 if test -z "$ac_top_builddir"; then
1126 ac_top_srcdir=.
1127 else
1128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129 fi ;;
1130 [\\/]* | ?:[\\/]* ) # Absolute path.
1131 ac_srcdir=$srcdir$ac_dir_suffix;
1132 ac_top_srcdir=$srcdir ;;
1133 *) # Relative path.
1134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136esac
ac1cb8d3
VS
1137
1138# Do not use `cd foo && pwd` to compute absolute paths, because
1139# the directories may not exist.
1140case `pwd` in
1141.) ac_abs_builddir="$ac_dir";;
1142*)
1143 case "$ac_dir" in
1144 .) ac_abs_builddir=`pwd`;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_builddir=${ac_top_builddir}.;;
1151*)
1152 case ${ac_top_builddir}. in
1153 .) ac_abs_top_builddir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156 esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_srcdir=$ac_srcdir;;
1160*)
1161 case $ac_srcdir in
1162 .) ac_abs_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165 esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_srcdir=$ac_top_srcdir;;
1169*)
1170 case $ac_top_srcdir in
1171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174 esac;;
1175esac
a848cd7e
SC
1176
1177 cd $ac_dir
1178 # Check for guested configure; otherwise get Cygnus style configure.
1179 if test -f $ac_srcdir/configure.gnu; then
1180 echo
1181 $SHELL $ac_srcdir/configure.gnu --help=recursive
1182 elif test -f $ac_srcdir/configure; then
1183 echo
1184 $SHELL $ac_srcdir/configure --help=recursive
1185 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1186 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1187 echo
1188 $ac_configure --help
1189 else
1190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191 fi
9dd0f6c2 1192 cd "$ac_popdir"
a848cd7e
SC
1193 done
1194fi
1195
1196test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then
1198 cat <<\_ACEOF
63c4f6da 1199wxWidgets configure 2.5.5
ac1cb8d3 1200generated by GNU Autoconf 2.59
a848cd7e 1201
ac1cb8d3 1202Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1203This configure script is free software; the Free Software Foundation
1204gives unlimited permission to copy, distribute and modify it.
1205_ACEOF
1206 exit 0
1207fi
1208exec 5>config.log
1209cat >&5 <<_ACEOF
1210This file contains any messages produced by compilers while
1211running configure, to aid debugging if configure makes a mistake.
1212
63c4f6da 1213It was created by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 1214generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1215
1216 $ $0 $@
1217
1218_ACEOF
1219{
1220cat <<_ASUNAME
1221## --------- ##
1222## Platform. ##
1223## --------- ##
1224
1225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1233
1234/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1235/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1238/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1239/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1240/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1241
1242_ASUNAME
1243
1244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245for as_dir in $PATH
1246do
1247 IFS=$as_save_IFS
1248 test -z "$as_dir" && as_dir=.
1249 echo "PATH: $as_dir"
1250done
1251
1252} >&5
1253
1254cat >&5 <<_ACEOF
1255
1256
1257## ----------- ##
1258## Core tests. ##
1259## ----------- ##
1260
1261_ACEOF
1262
1263
1264# Keep a trace of the command line.
1265# Strip out --no-create and --no-recursion so they do not pile up.
1266# Strip out --silent because we don't want to record it for future runs.
1267# Also quote any args containing shell meta-characters.
1268# Make two passes to allow for proper duplicate-argument suppression.
1269ac_configure_args=
1270ac_configure_args0=
1271ac_configure_args1=
1272ac_sep=
1273ac_must_keep_next=false
1274for ac_pass in 1 2
1275do
1276 for ac_arg
1277 do
1278 case $ac_arg in
1279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1282 continue ;;
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 esac
1286 case $ac_pass in
1287 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288 2)
1289 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290 if test $ac_must_keep_next = true; then
ac1cb8d3 1291 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1292 else
ac1cb8d3
VS
1293 case $ac_arg in
1294 *=* | --config-cache | -C | -disable-* | --disable-* \
1295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297 | -with-* | --with-* | -without-* | --without-* | --x)
1298 case "$ac_configure_args0 " in
1299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300 esac
1301 ;;
1302 -* ) ac_must_keep_next=true ;;
1303 esac
a848cd7e
SC
1304 fi
1305 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306 # Get rid of the leading space.
1307 ac_sep=" "
1308 ;;
1309 esac
1310 done
1311done
1312$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315# When interrupted or exit'd, cleanup temporary files, and complete
1316# config.log. We remove comments because anyway the quotes in there
1317# would cause problems or look ugly.
1318# WARNING: Be sure not to use single quotes in there, as some shells,
1319# such as our DU 5.0 friend, will then `close' the trap.
1320trap 'exit_status=$?
1321 # Save into config.log some information that might help in debugging.
1322 {
1323 echo
1324
1325 cat <<\_ASBOX
1326## ---------------- ##
1327## Cache variables. ##
1328## ---------------- ##
1329_ASBOX
1330 echo
1331 # The following way of writing the cache mishandles newlines in values,
1332{
1333 (set) 2>&1 |
1334 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335 *ac_space=\ *)
1336 sed -n \
ac1cb8d3
VS
1337 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1339 ;;
1340 *)
1341 sed -n \
ac1cb8d3 1342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1343 ;;
1344 esac;
1345}
1346 echo
1347
1348 cat <<\_ASBOX
1349## ----------------- ##
1350## Output variables. ##
1351## ----------------- ##
1352_ASBOX
1353 echo
1354 for ac_var in $ac_subst_vars
1355 do
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1360
1361 if test -n "$ac_subst_files"; then
1362 cat <<\_ASBOX
1363## ------------- ##
1364## Output files. ##
1365## ------------- ##
1366_ASBOX
1367 echo
1368 for ac_var in $ac_subst_files
1369 do
1370 eval ac_val=$`echo $ac_var`
ac1cb8d3 1371 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1372 done | sort
1373 echo
1374 fi
1375
1376 if test -s confdefs.h; then
1377 cat <<\_ASBOX
1378## ----------- ##
1379## confdefs.h. ##
1380## ----------- ##
1381_ASBOX
1382 echo
1383 sed "/^$/d" confdefs.h | sort
1384 echo
1385 fi
1386 test "$ac_signal" != 0 &&
1387 echo "$as_me: caught signal $ac_signal"
1388 echo "$as_me: exit $exit_status"
1389 } >&5
ac1cb8d3 1390 rm -f core *.core &&
a848cd7e
SC
1391 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392 exit $exit_status
1393 ' 0
1394for ac_signal in 1 2 13 15; do
1395 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396done
1397ac_signal=0
1398
1399# confdefs.h avoids OS command line length limits that DEFS can exceed.
1400rm -rf conftest* confdefs.h
1401# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402echo >confdefs.h
1403
1404# Predefined preprocessor variables.
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_NAME "$PACKAGE_NAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_VERSION "$PACKAGE_VERSION"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_STRING "$PACKAGE_STRING"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428_ACEOF
1429
1430
1431# Let the site file select an alternate cache file if it wants to.
1432# Prefer explicitly selected file to automatically selected ones.
1433if test -z "$CONFIG_SITE"; then
1434 if test "x$prefix" != xNONE; then
1435 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436 else
1437 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438 fi
1439fi
1440for ac_site_file in $CONFIG_SITE; do
1441 if test -r "$ac_site_file"; then
1442 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443echo "$as_me: loading site script $ac_site_file" >&6;}
1444 sed 's/^/| /' "$ac_site_file" >&5
1445 . "$ac_site_file"
1446 fi
1447done
1448
1449if test -r "$cache_file"; then
1450 # Some versions of bash will fail to source /dev/null (special
1451 # files actually), so we avoid doing that.
1452 if test -f "$cache_file"; then
1453 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454echo "$as_me: loading cache $cache_file" >&6;}
1455 case $cache_file in
1456 [\\/]* | ?:[\\/]* ) . $cache_file;;
1457 *) . ./$cache_file;;
1458 esac
1459 fi
1460else
1461 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462echo "$as_me: creating cache $cache_file" >&6;}
1463 >$cache_file
1464fi
1465
1466# Check that the precious variables saved in the cache have kept the same
1467# value.
1468ac_cache_corrupted=false
1469for ac_var in `(set) 2>&1 |
ac1cb8d3 1470 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472 eval ac_new_set=\$ac_env_${ac_var}_set
1473 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474 eval ac_new_val="\$ac_env_${ac_var}_value"
1475 case $ac_old_set,$ac_new_set in
1476 set,)
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1480 ,set)
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1484 ,);;
1485 *)
1486 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1487 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1488echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1489 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1490echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1492echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1493 ac_cache_corrupted=:
a848cd7e
SC
1494 fi;;
1495 esac
1496 # Pass precious variables to config.status.
1497 if test "$ac_new_set" = set; then
1498 case $ac_new_val in
1499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501 *) ac_arg=$ac_var=$ac_new_val ;;
1502 esac
1503 case " $ac_configure_args " in
1504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1505 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506 esac
1507 fi
1508done
1509if $ac_cache_corrupted; then
1510 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516
1517ac_ext=c
1518ac_cpp='$CPP $CPPFLAGS'
1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552ac_aux_dir=
1553for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554 if test -f $ac_dir/install-sh; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install-sh -c"
1557 break
1558 elif test -f $ac_dir/install.sh; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/install.sh -c"
1561 break
1562 elif test -f $ac_dir/shtool; then
1563 ac_aux_dir=$ac_dir
1564 ac_install_sh="$ac_aux_dir/shtool install -c"
1565 break
1566 fi
1567done
1568if test -z "$ac_aux_dir"; then
1569 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571 { (exit 1); exit 1; }; }
1572fi
1573ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1576
1577# Make sure we can run config.sub.
1578$ac_config_sub sun4 >/dev/null 2>&1 ||
1579 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1580echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583echo "$as_me:$LINENO: checking build system type" >&5
1584echo $ECHO_N "checking build system type... $ECHO_C" >&6
1585if test "${ac_cv_build+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 ac_cv_build_alias=$build_alias
1589test -z "$ac_cv_build_alias" &&
1590 ac_cv_build_alias=`$ac_config_guess`
1591test -z "$ac_cv_build_alias" &&
1592 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1593echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1594 { (exit 1); exit 1; }; }
1595ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1596 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1597echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1598 { (exit 1); exit 1; }; }
1599
1600fi
1601echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1602echo "${ECHO_T}$ac_cv_build" >&6
1603build=$ac_cv_build
1604build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609echo "$as_me:$LINENO: checking host system type" >&5
1610echo $ECHO_N "checking host system type... $ECHO_C" >&6
1611if test "${ac_cv_host+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614 ac_cv_host_alias=$host_alias
1615test -z "$ac_cv_host_alias" &&
1616 ac_cv_host_alias=$ac_cv_build_alias
1617ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1619echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622fi
1623echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1624echo "${ECHO_T}$ac_cv_host" >&6
1625host=$ac_cv_host
1626host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631echo "$as_me:$LINENO: checking target system type" >&5
1632echo $ECHO_N "checking target system type... $ECHO_C" >&6
1633if test "${ac_cv_target+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 ac_cv_target_alias=$target_alias
1637test "x$ac_cv_target_alias" = "x" &&
1638 ac_cv_target_alias=$ac_cv_host_alias
1639ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1646echo "${ECHO_T}$ac_cv_target" >&6
1647target=$ac_cv_target
1648target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653# The aliases save the names the user supplied, while $host etc.
1654# will get canonicalized.
1655test -n "$target_alias" &&
1656 test "$program_prefix$program_suffix$program_transform_name" = \
1657 NONENONEs,x,x, &&
1658 program_prefix=${target_alias}-
1659
1660
1661
ceec2216
RL
1662wx_major_version_number=2
1663wx_minor_version_number=5
63c4f6da 1664wx_release_number=5
94e3a893 1665wx_subrelease_number=1
a848cd7e 1666
ceec2216
RL
1667WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1668WX_VERSION=$WX_RELEASE.$wx_release_number
1669WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1670
ceec2216 1671WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1672
63c4f6da 1673WX_CURRENT=5
a848cd7e 1674WX_REVISION=0
63c4f6da 1675WX_AGE=5
a848cd7e
SC
1676
1677
1678
1679USE_UNIX=1
1680USE_OS2=0
1681USE_WIN32=0
1682USE_DOS=0
1683USE_BEOS=0
1684USE_MAC=0
1685
1686USE_AIX=
1687USE_BSD= USE_DARWIN= USE_FREEBSD=
1688USE_GNU= USE_HPUX=
1689USE_LINUX=
1690USE_NETBSD=
1691USE_OPENBSD=
1692USE_OSF= USE_SGI=
1693USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1694USE_ULTRIX=
1695USE_UNIXWARE=
1696
1697USE_ALPHA=
1698
1699NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1700
1701ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1702
1703DEFAULT_wxUSE_COCOA=0
1704DEFAULT_wxUSE_GTK=0
1705DEFAULT_wxUSE_MAC=0
1706DEFAULT_wxUSE_MGL=0
1707DEFAULT_wxUSE_MICROWIN=0
1708DEFAULT_wxUSE_MOTIF=0
1709DEFAULT_wxUSE_MSW=0
1710DEFAULT_wxUSE_PM=0
1711DEFAULT_wxUSE_X11=0
1712
1713DEFAULT_DEFAULT_wxUSE_COCOA=0
1714DEFAULT_DEFAULT_wxUSE_GTK=0
1715DEFAULT_DEFAULT_wxUSE_MAC=0
1716DEFAULT_DEFAULT_wxUSE_MGL=0
1717DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1718DEFAULT_DEFAULT_wxUSE_MOTIF=0
1719DEFAULT_DEFAULT_wxUSE_MSW=0
1720DEFAULT_DEFAULT_wxUSE_PM=0
1721DEFAULT_DEFAULT_wxUSE_X11=0
1722
1723PROGRAM_EXT=
1724SO_SUFFIX=so
1725SAMPLES_RPATH_FLAG=
1726SAMPLES_RPATH_POSTLINK=
1727
1728case "${host}" in
1729 *-hp-hpux* )
1730 USE_HPUX=1
1731 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1732 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1733 SO_SUFFIX=sl
1734 cat >>confdefs.h <<\_ACEOF
1735#define __HPUX__ 1
1736_ACEOF
1737
1738 ;;
1739 *-*-linux* )
1740 USE_LINUX=1
1741 cat >>confdefs.h <<\_ACEOF
1742#define __LINUX__ 1
1743_ACEOF
1744
1745 TMP=`uname -m`
1746 if test "x$TMP" = "xalpha"; then
1747 USE_ALPHA=1
1748 cat >>confdefs.h <<\_ACEOF
1749#define __ALPHA__ 1
1750_ACEOF
1751
1752 fi
1753 DEFAULT_DEFAULT_wxUSE_GTK=1
1754 ;;
1755 *-*-gnu* | *-*-k*bsd*-gnu )
1756 USE_GNU=1
1757 TMP=`uname -m`
1758 if test "x$TMP" = "xalpha"; then
1759 USE_ALPHA=1
1760 cat >>confdefs.h <<\_ACEOF
1761#define __ALPHA__ 1
1762_ACEOF
1763
1764 fi
1765 DEFAULT_DEFAULT_wxUSE_GTK=1
1766 ;;
1767 *-*-irix5* | *-*-irix6* )
1768 USE_SGI=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SGI__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SVR4__ 1
1776_ACEOF
1777
1778 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1779 ;;
1780 *-*-solaris2* )
1781 USE_SUN=1
1782 USE_SOLARIS=1
1783 USE_SVR4=1
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SUN__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SOLARIS__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SVR4__ 1
1794_ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1798 ;;
1799 *-*-sunos4* )
1800 USE_SUN=1
1801 USE_SUNOS=1
1802 USE_BSD=1
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SUN__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUNOS__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __BSD__ 1
1813_ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1816 ;;
1817 *-*-freebsd*)
1818 USE_BSD=1
1819 USE_FREEBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __FREEBSD__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __BSD__ 1
1826_ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-openbsd*)
1831 USE_BSD=1
1832 USE_OPENBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834#define __OPENBSD__ 1
1835_ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838#define __BSD__ 1
1839_ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-netbsd*)
1844 USE_BSD=1
1845 USE_NETBSD=1
1846 cat >>confdefs.h <<\_ACEOF
1847#define __NETBSD__ 1
1848_ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851#define __BSD__ 1
1852_ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_GTK=1
1855 ;;
1856 *-*-osf* )
1857 USE_ALPHA=1
1858 USE_OSF=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __OSF__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1869 ;;
1870 *-*-dgux5* )
1871 USE_ALPHA=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __ALPHA__ 1
1875_ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SVR4__ 1
1879_ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-sysv5* )
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 cat >>confdefs.h <<\_ACEOF
1887#define __SYSV__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SVR4__ 1
1892_ACEOF
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896 *-*-aix* )
1897 USE_AIX=1
1898 USE_SYSV=1
1899 USE_SVR4=1
1900 SO_SUFFIX=a
1901 cat >>confdefs.h <<\_ACEOF
1902#define __AIX__ 1
1903_ACEOF
1904
1905 cat >>confdefs.h <<\_ACEOF
1906#define __SYSV__ 1
1907_ACEOF
1908
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SVR4__ 1
1911_ACEOF
1912
1913 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1914 ;;
1915
1916 *-*-*UnixWare*)
1917 USE_SYSV=1
1918 USE_SVR4=1
1919 USE_UNIXWARE=1
1920 cat >>confdefs.h <<\_ACEOF
1921#define __UNIXWARE__ 1
1922_ACEOF
1923
1924 ;;
1925
1926 *-*-cygwin* | *-*-mingw32* )
1927 SO_SUFFIX=dll
1928 PROGRAM_EXT=".exe"
1929 RESCOMP=windres
1930 DEFAULT_DEFAULT_wxUSE_MSW=1
1931 ;;
1932
1933 *-pc-msdosdjgpp )
1934 USE_UNIX=0
1935 USE_DOS=1
1936 cat >>confdefs.h <<\_ACEOF
1937#define __DOS__ 1
1938_ACEOF
1939
1940 PROGRAM_EXT=".exe"
1941 DEFAULT_DEFAULT_wxUSE_MGL=1
1942 LIBS="$LIBS -lstdc++"
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
1974 ;;
1975
1976 powerpc-*-darwin* )
1977 USE_BSD=1
1978 USE_DARWIN=1
1979 SO_SUFFIX=dylib
1980 cat >>confdefs.h <<\_ACEOF
1981#define __BSD__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define __DARWIN__ 1
a848cd7e
SC
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define TARGET_CARBON 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MAC=1
1993 ;;
1e9e8aba
DE
1994 powerpc-apple-macos* )
1995 USE_UNIX=0
1996 ac_cv_c_bigendian=yes
1997 SO_SUFFIX=shlib
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
1999 ;;
a848cd7e
SC
2000
2001 *-*-beos* )
2002 USE_BEOS=1
2003 cat >>confdefs.h <<\_ACEOF
2004#define __BEOS__ 1
2005_ACEOF
2006
2007 ;;
2008
2009 *)
2010 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2011echo "$as_me: error: unknown system type ${host}." >&2;}
2012 { (exit 1); exit 1; }; }
2013esac
2014
2015
2016
2017
2018 wx_arg_cache_file="configarg.cache"
2019 echo "loading argument cache $wx_arg_cache_file"
2020 rm -f ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}
2023
2024
2025DEBUG_CONFIGURE=0
2026if test $DEBUG_CONFIGURE = 1; then
2027 DEFAULT_wxUSE_UNIVERSAL=no
2028 DEFAULT_wxUSE_STL=no
2029
2030 DEFAULT_wxUSE_NANOX=no
2031
2032 DEFAULT_wxUSE_THREADS=yes
2033
2034 DEFAULT_wxUSE_SHARED=yes
2035 DEFAULT_wxUSE_OPTIMISE=no
2036 DEFAULT_wxUSE_PROFILE=no
2037 DEFAULT_wxUSE_NO_DEPS=no
2038 DEFAULT_wxUSE_NO_RTTI=no
2039 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2040 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2041 DEFAULT_wxUSE_PERMISSIVE=no
2042 DEFAULT_wxUSE_DEBUG_FLAG=yes
2043 DEFAULT_wxUSE_DEBUG_INFO=yes
2044 DEFAULT_wxUSE_DEBUG_GDB=yes
2045 DEFAULT_wxUSE_MEM_TRACING=no
2046 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2047 DEFAULT_wxUSE_DMALLOC=no
2048 DEFAULT_wxUSE_APPLE_IEEE=no
2049
2050 DEFAULT_wxUSE_EXCEPTIONS=no
2051 DEFAULT_wxUSE_LOG=yes
2052 DEFAULT_wxUSE_LOGWINDOW=no
2053 DEFAULT_wxUSE_LOGGUI=no
2054 DEFAULT_wxUSE_LOGDIALOG=no
2055
2056 DEFAULT_wxUSE_GUI=yes
2057 DEFAULT_wxUSE_CONTROLS=no
2058
2059 DEFAULT_wxUSE_REGEX=no
2060 DEFAULT_wxUSE_XML=no
2061 DEFAULT_wxUSE_EXPAT=no
2062 DEFAULT_wxUSE_ZLIB=no
2063 DEFAULT_wxUSE_LIBPNG=no
2064 DEFAULT_wxUSE_LIBJPEG=no
2065 DEFAULT_wxUSE_LIBTIFF=no
2066 DEFAULT_wxUSE_LIBXPM=no
2067 DEFAULT_wxUSE_LIBMSPACK=no
2068 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2069 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2070 DEFAULT_wxUSE_ODBC=no
2071 DEFAULT_wxUSE_OPENGL=no
2072
2073 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2074 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2075 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2077 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2078 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2079 DEFAULT_wxUSE_CMDLINE_PARSER=no
2080 DEFAULT_wxUSE_DATETIME=no
2081 DEFAULT_wxUSE_TIMER=no
2082 DEFAULT_wxUSE_STOPWATCH=no
2083 DEFAULT_wxUSE_FILE=no
2084 DEFAULT_wxUSE_FFILE=no
07158944 2085 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2086 DEFAULT_wxUSE_TEXTBUFFER=no
2087 DEFAULT_wxUSE_TEXTFILE=no
2088 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2089 DEFAULT_wxUSE_MEDIACTRL=no
2090 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2091 DEFAULT_wxUSE_INTL=no
2092 DEFAULT_wxUSE_CONFIG=no
2093 DEFAULT_wxUSE_FONTMAP=no
2094 DEFAULT_wxUSE_STREAMS=no
2095 DEFAULT_wxUSE_SOCKETS=no
2096 DEFAULT_wxUSE_OLE=no
2097 DEFAULT_wxUSE_DATAOBJ=no
2098 DEFAULT_wxUSE_DIALUP_MANAGER=no
2099 DEFAULT_wxUSE_JOYSTICK=no
2100 DEFAULT_wxUSE_DYNLIB_CLASS=no
2101 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2102 DEFAULT_wxUSE_LONGLONG=no
2103 DEFAULT_wxUSE_GEOMETRY=no
2104
2105 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2106 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2107 DEFAULT_wxUSE_POSTSCRIPT=no
2108
2109 DEFAULT_wxUSE_CLIPBOARD=no
2110 DEFAULT_wxUSE_TOOLTIPS=no
2111 DEFAULT_wxUSE_DRAG_AND_DROP=no
2112 DEFAULT_wxUSE_DRAGIMAGE=no
2113 DEFAULT_wxUSE_SPLINES=no
2114
8a7b1113 2115 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2116 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2117 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2118 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2119
2120 DEFAULT_wxUSE_RESOURCES=no
2121 DEFAULT_wxUSE_CONSTRAINTS=no
2122 DEFAULT_wxUSE_IPC=no
2123 DEFAULT_wxUSE_HELP=no
2124 DEFAULT_wxUSE_MS_HTML_HELP=no
2125 DEFAULT_wxUSE_WXHTML_HELP=no
2126 DEFAULT_wxUSE_TREELAYOUT=no
2127 DEFAULT_wxUSE_METAFILE=no
2128 DEFAULT_wxUSE_MIMETYPE=no
2129 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2130 DEFAULT_wxUSE_PROTOCOL=no
2131 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2132 DEFAULT_wxUSE_PROTOCOL_FTP=no
2133 DEFAULT_wxUSE_PROTOCOL_FILE=no
2134 DEFAULT_wxUSE_URL=no
2135
2136 DEFAULT_wxUSE_COMMONDLGS=no
2137 DEFAULT_wxUSE_CHOICEDLG=no
2138 DEFAULT_wxUSE_COLOURDLG=no
2139 DEFAULT_wxUSE_DIRDLG=no
2140 DEFAULT_wxUSE_FILEDLG=no
2141 DEFAULT_wxUSE_FINDREPLDLG=no
2142 DEFAULT_wxUSE_FONTDLG=no
2143 DEFAULT_wxUSE_MSGDLG=no
2144 DEFAULT_wxUSE_NUMBERDLG=no
2145 DEFAULT_wxUSE_TEXTDLG=no
2146 DEFAULT_wxUSE_SPLASH=no
2147 DEFAULT_wxUSE_STARTUP_TIPS=no
2148 DEFAULT_wxUSE_PROGRESSDLG=no
2149 DEFAULT_wxUSE_WIZARDDLG=no
2150
2151 DEFAULT_wxUSE_MENUS=no
2152 DEFAULT_wxUSE_MINIFRAME=no
2153 DEFAULT_wxUSE_HTML=no
9a8f0513 2154 DEFAULT_wxUSE_XRC=no
646b6ec1 2155 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2156 DEFAULT_wxUSE_FILESYSTEM=no
2157 DEFAULT_wxUSE_FS_INET=no
2158 DEFAULT_wxUSE_FS_ZIP=no
2159 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2160 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2161 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2162 DEFAULT_wxUSE_VALIDATORS=no
2163
2164 DEFAULT_wxUSE_ACCEL=no
2165 DEFAULT_wxUSE_BUTTON=no
2166 DEFAULT_wxUSE_BMPBUTTON=no
2167 DEFAULT_wxUSE_CALCTRL=no
2168 DEFAULT_wxUSE_CARET=no
2169 DEFAULT_wxUSE_CHECKBOX=no
2170 DEFAULT_wxUSE_CHECKLST=no
2171 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2172 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2173 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2174 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2175 DEFAULT_wxUSE_DISPLAY=no
2176 DEFAULT_wxUSE_GAUGE=no
2177 DEFAULT_wxUSE_GRID=no
2178 DEFAULT_wxUSE_IMAGLIST=no
2179 DEFAULT_wxUSE_LISTBOOK=no
2180 DEFAULT_wxUSE_LISTBOX=no
2181 DEFAULT_wxUSE_LISTCTRL=no
2182 DEFAULT_wxUSE_NOTEBOOK=no
2183 DEFAULT_wxUSE_RADIOBOX=no
2184 DEFAULT_wxUSE_RADIOBTN=no
2185 DEFAULT_wxUSE_SASH=no
2186 DEFAULT_wxUSE_SCROLLBAR=no
2187 DEFAULT_wxUSE_SLIDER=no
2188 DEFAULT_wxUSE_SPINBTN=no
2189 DEFAULT_wxUSE_SPINCTRL=no
2190 DEFAULT_wxUSE_SPLITTER=no
2191 DEFAULT_wxUSE_STATBMP=no
2192 DEFAULT_wxUSE_STATBOX=no
2193 DEFAULT_wxUSE_STATLINE=no
2194 DEFAULT_wxUSE_STATTEXT=no
2195 DEFAULT_wxUSE_STATUSBAR=yes
2196 DEFAULT_wxUSE_TABDIALOG=no
2197 DEFAULT_wxUSE_TEXTCTRL=no
2198 DEFAULT_wxUSE_TOGGLEBTN=no
2199 DEFAULT_wxUSE_TOOLBAR=no
2200 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2201 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2202 DEFAULT_wxUSE_TREECTRL=no
2203 DEFAULT_wxUSE_POPUPWIN=no
2204 DEFAULT_wxUSE_TIPWINDOW=no
2205
2206 DEFAULT_wxUSE_UNICODE=no
2207 DEFAULT_wxUSE_UNICODE_MSLU=no
2208 DEFAULT_wxUSE_WCSRTOMBS=no
2209
2210 DEFAULT_wxUSE_PALETTE=no
2211 DEFAULT_wxUSE_IMAGE=no
2212 DEFAULT_wxUSE_GIF=no
2213 DEFAULT_wxUSE_PCX=no
2214 DEFAULT_wxUSE_PNM=no
2215 DEFAULT_wxUSE_IFF=no
2216 DEFAULT_wxUSE_XPM=no
2217 DEFAULT_wxUSE_ICO_CUR=no
2218 DEFAULT_wxUSE_ACCESSIBILITY=no
2219
2220 DEFAULT_wxUSE_MONOLITHIC=no
2221 DEFAULT_wxUSE_PLUGINS=no
2222 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2223else
2224 DEFAULT_wxUSE_UNIVERSAL=no
2225 DEFAULT_wxUSE_STL=no
2226
2227 DEFAULT_wxUSE_NANOX=no
2228
2229 DEFAULT_wxUSE_THREADS=yes
2230
2231 DEFAULT_wxUSE_SHARED=yes
2232 DEFAULT_wxUSE_OPTIMISE=yes
2233 DEFAULT_wxUSE_PROFILE=no
2234 DEFAULT_wxUSE_NO_DEPS=no
2235 DEFAULT_wxUSE_NO_RTTI=no
2236 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2237 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2238 DEFAULT_wxUSE_PERMISSIVE=no
2239 DEFAULT_wxUSE_DEBUG_FLAG=no
2240 DEFAULT_wxUSE_DEBUG_INFO=no
2241 DEFAULT_wxUSE_DEBUG_GDB=no
2242 DEFAULT_wxUSE_MEM_TRACING=no
2243 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2244 DEFAULT_wxUSE_DMALLOC=no
2245 DEFAULT_wxUSE_APPLE_IEEE=yes
2246
2247 DEFAULT_wxUSE_EXCEPTIONS=yes
2248 DEFAULT_wxUSE_LOG=yes
2249 DEFAULT_wxUSE_LOGWINDOW=yes
2250 DEFAULT_wxUSE_LOGGUI=yes
2251 DEFAULT_wxUSE_LOGDIALOG=yes
2252
2253 DEFAULT_wxUSE_GUI=yes
2254
2255 DEFAULT_wxUSE_REGEX=yes
2256 DEFAULT_wxUSE_XML=yes
2257 DEFAULT_wxUSE_EXPAT=yes
2258 DEFAULT_wxUSE_ZLIB=yes
2259 DEFAULT_wxUSE_LIBPNG=yes
2260 DEFAULT_wxUSE_LIBJPEG=yes
2261 DEFAULT_wxUSE_LIBTIFF=yes
2262 DEFAULT_wxUSE_LIBXPM=yes
2263 DEFAULT_wxUSE_LIBMSPACK=yes
2264 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2265 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2266 DEFAULT_wxUSE_ODBC=no
2267 DEFAULT_wxUSE_OPENGL=no
2268
2269 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2270 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2271 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2272 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2273 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2274 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2275 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2276 DEFAULT_wxUSE_DATETIME=yes
2277 DEFAULT_wxUSE_TIMER=yes
2278 DEFAULT_wxUSE_STOPWATCH=yes
2279 DEFAULT_wxUSE_FILE=yes
2280 DEFAULT_wxUSE_FFILE=yes
07158944 2281 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2282 DEFAULT_wxUSE_TEXTBUFFER=yes
2283 DEFAULT_wxUSE_TEXTFILE=yes
2284 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2285 DEFAULT_wxUSE_MEDIACTRL=no
2286 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2287 DEFAULT_wxUSE_INTL=yes
2288 DEFAULT_wxUSE_CONFIG=yes
2289 DEFAULT_wxUSE_FONTMAP=yes
2290 DEFAULT_wxUSE_STREAMS=yes
2291 DEFAULT_wxUSE_SOCKETS=yes
2292 DEFAULT_wxUSE_OLE=yes
2293 DEFAULT_wxUSE_DATAOBJ=yes
2294 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2295 DEFAULT_wxUSE_JOYSTICK=yes
2296 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2297 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2298 DEFAULT_wxUSE_LONGLONG=yes
2299 DEFAULT_wxUSE_GEOMETRY=yes
2300
2301 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2302 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2303 DEFAULT_wxUSE_POSTSCRIPT=yes
2304
2305 DEFAULT_wxUSE_CLIPBOARD=yes
2306 DEFAULT_wxUSE_TOOLTIPS=yes
2307 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2308 DEFAULT_wxUSE_DRAGIMAGE=yes
2309 DEFAULT_wxUSE_SPLINES=yes
2310
8a7b1113 2311 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2312 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2313 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2314 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2315
2316 DEFAULT_wxUSE_RESOURCES=no
2317 DEFAULT_wxUSE_CONSTRAINTS=yes
2318 DEFAULT_wxUSE_IPC=yes
2319 DEFAULT_wxUSE_HELP=yes
2320 DEFAULT_wxUSE_MS_HTML_HELP=yes
2321 DEFAULT_wxUSE_WXHTML_HELP=yes
2322 DEFAULT_wxUSE_TREELAYOUT=yes
2323 DEFAULT_wxUSE_METAFILE=yes
2324 DEFAULT_wxUSE_MIMETYPE=yes
2325 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2326 DEFAULT_wxUSE_PROTOCOL=yes
2327 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2328 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2329 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2330 DEFAULT_wxUSE_URL=yes
2331
2332 DEFAULT_wxUSE_COMMONDLGS=yes
2333 DEFAULT_wxUSE_CHOICEDLG=yes
2334 DEFAULT_wxUSE_COLOURDLG=yes
2335 DEFAULT_wxUSE_DIRDLG=yes
2336 DEFAULT_wxUSE_FILEDLG=yes
2337 DEFAULT_wxUSE_FINDREPLDLG=yes
2338 DEFAULT_wxUSE_FONTDLG=yes
2339 DEFAULT_wxUSE_MSGDLG=yes
2340 DEFAULT_wxUSE_NUMBERDLG=yes
2341 DEFAULT_wxUSE_TEXTDLG=yes
2342 DEFAULT_wxUSE_SPLASH=yes
2343 DEFAULT_wxUSE_STARTUP_TIPS=yes
2344 DEFAULT_wxUSE_PROGRESSDLG=yes
2345 DEFAULT_wxUSE_WIZARDDLG=yes
2346
2347 DEFAULT_wxUSE_MENUS=yes
2348 DEFAULT_wxUSE_MINIFRAME=yes
2349 DEFAULT_wxUSE_HTML=yes
9a8f0513 2350 DEFAULT_wxUSE_XRC=yes
646b6ec1 2351 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2352 DEFAULT_wxUSE_FILESYSTEM=yes
2353 DEFAULT_wxUSE_FS_INET=yes
2354 DEFAULT_wxUSE_FS_ZIP=yes
2355 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2356 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2357 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_VALIDATORS=yes
2359
2360 DEFAULT_wxUSE_ACCEL=yes
2361 DEFAULT_wxUSE_BUTTON=yes
2362 DEFAULT_wxUSE_BMPBUTTON=yes
2363 DEFAULT_wxUSE_CALCTRL=yes
2364 DEFAULT_wxUSE_CARET=yes
2365 DEFAULT_wxUSE_CHECKBOX=yes
2366 DEFAULT_wxUSE_CHECKLST=yes
2367 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2368 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2369 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2370 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2371 DEFAULT_wxUSE_DISPLAY=yes
2372 DEFAULT_wxUSE_GAUGE=yes
2373 DEFAULT_wxUSE_GRID=yes
2374 DEFAULT_wxUSE_IMAGLIST=yes
2375 DEFAULT_wxUSE_LISTBOOK=yes
2376 DEFAULT_wxUSE_LISTBOX=yes
2377 DEFAULT_wxUSE_LISTCTRL=yes
2378 DEFAULT_wxUSE_NOTEBOOK=yes
2379 DEFAULT_wxUSE_RADIOBOX=yes
2380 DEFAULT_wxUSE_RADIOBTN=yes
2381 DEFAULT_wxUSE_SASH=yes
2382 DEFAULT_wxUSE_SCROLLBAR=yes
2383 DEFAULT_wxUSE_SLIDER=yes
2384 DEFAULT_wxUSE_SPINBTN=yes
2385 DEFAULT_wxUSE_SPINCTRL=yes
2386 DEFAULT_wxUSE_SPLITTER=yes
2387 DEFAULT_wxUSE_STATBMP=yes
2388 DEFAULT_wxUSE_STATBOX=yes
2389 DEFAULT_wxUSE_STATLINE=yes
2390 DEFAULT_wxUSE_STATTEXT=yes
2391 DEFAULT_wxUSE_STATUSBAR=yes
2392 DEFAULT_wxUSE_TABDIALOG=no
2393 DEFAULT_wxUSE_TEXTCTRL=yes
2394 DEFAULT_wxUSE_TOGGLEBTN=yes
2395 DEFAULT_wxUSE_TOOLBAR=yes
2396 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2397 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2398 DEFAULT_wxUSE_TREECTRL=yes
2399 DEFAULT_wxUSE_POPUPWIN=yes
2400 DEFAULT_wxUSE_TIPWINDOW=yes
2401
2402 DEFAULT_wxUSE_UNICODE=no
2403 DEFAULT_wxUSE_UNICODE_MSLU=yes
2404 DEFAULT_wxUSE_WCSRTOMBS=no
2405
2406 DEFAULT_wxUSE_PALETTE=yes
2407 DEFAULT_wxUSE_IMAGE=yes
2408 DEFAULT_wxUSE_GIF=yes
2409 DEFAULT_wxUSE_PCX=yes
2410 DEFAULT_wxUSE_IFF=no
2411 DEFAULT_wxUSE_PNM=yes
2412 DEFAULT_wxUSE_XPM=yes
2413 DEFAULT_wxUSE_ICO_CUR=yes
2414 DEFAULT_wxUSE_ACCESSIBILITY=no
2415
2416 DEFAULT_wxUSE_MONOLITHIC=no
2417 DEFAULT_wxUSE_PLUGINS=no
2418 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2419
2420 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2421fi
2422
2423
2424
2425for toolkit in `echo $ALL_TOOLKITS`; do
2426 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2427 if test "x$LINE" != "x" ; then
2428 has_toolkit_in_cache=1
2429 eval "DEFAULT_$LINE"
2430 eval "CACHE_$toolkit=1"
2431 fi
2432done
2433
2434
2435
2436 enablestring=
2437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2438echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2439 no_cache=0
2440 # Check whether --enable-gui or --disable-gui was given.
2441if test "${enable_gui+set}" = set; then
2442 enableval="$enable_gui"
2443
2444 if test "$enableval" = yes; then
2445 ac_cv_use_gui='wxUSE_GUI=yes'
2446 else
2447 ac_cv_use_gui='wxUSE_GUI=no'
2448 fi
2449
2450else
2451
2452 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2453 if test "x$LINE" != x ; then
2454 eval "DEFAULT_$LINE"
2455 else
2456 no_cache=1
2457 fi
2458
2459 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2460
2461fi;
2462
2463 eval "$ac_cv_use_gui"
2464 if test "$no_cache" != 1; then
2465 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2466 fi
2467
2468 if test "$wxUSE_GUI" = yes; then
2469 echo "$as_me:$LINENO: result: yes" >&5
2470echo "${ECHO_T}yes" >&6
2471 else
2472 echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6
2474 fi
2475
2476
2477 enablestring=
2478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2479echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2480 no_cache=0
2481 # Check whether --enable-monolithic or --disable-monolithic was given.
2482if test "${enable_monolithic+set}" = set; then
2483 enableval="$enable_monolithic"
2484
2485 if test "$enableval" = yes; then
2486 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2487 else
2488 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2489 fi
2490
2491else
2492
2493 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2494 if test "x$LINE" != x ; then
2495 eval "DEFAULT_$LINE"
2496 else
2497 no_cache=1
2498 fi
2499
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2501
2502fi;
2503
2504 eval "$ac_cv_use_monolithic"
2505 if test "$no_cache" != 1; then
2506 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2507 fi
2508
2509 if test "$wxUSE_MONOLITHIC" = yes; then
2510 echo "$as_me:$LINENO: result: yes" >&5
2511echo "${ECHO_T}yes" >&6
2512 else
2513 echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6
2515 fi
2516
2517
2518 enablestring=
2519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2520echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2521 no_cache=0
2522 # Check whether --enable-plugins or --disable-plugins was given.
2523if test "${enable_plugins+set}" = set; then
2524 enableval="$enable_plugins"
2525
2526 if test "$enableval" = yes; then
2527 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2528 else
2529 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2530 fi
2531
2532else
2533
2534 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2535 if test "x$LINE" != x ; then
2536 eval "DEFAULT_$LINE"
2537 else
2538 no_cache=1
2539 fi
2540
2541 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2542
2543fi;
2544
2545 eval "$ac_cv_use_plugins"
2546 if test "$no_cache" != 1; then
2547 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2548 fi
2549
2550 if test "$wxUSE_PLUGINS" = yes; then
2551 echo "$as_me:$LINENO: result: yes" >&5
2552echo "${ECHO_T}yes" >&6
2553 else
2554 echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6
2556 fi
2557
2558
2559if test "$wxUSE_GUI" = "yes"; then
2560
2561
2562 enablestring=
2563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2564echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2565 no_cache=0
2566 # Check whether --enable-universal or --disable-universal was given.
2567if test "${enable_universal+set}" = set; then
2568 enableval="$enable_universal"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2572 else
2573 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2574 fi
2575
2576else
2577
2578 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2579 if test "x$LINE" != x ; then
2580 eval "DEFAULT_$LINE"
2581 else
2582 no_cache=1
2583 fi
2584
2585 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2586
2587fi;
2588
2589 eval "$ac_cv_use_universal"
2590 if test "$no_cache" != 1; then
2591 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2592 fi
2593
2594 if test "$wxUSE_UNIVERSAL" = yes; then
2595 echo "$as_me:$LINENO: result: yes" >&5
2596echo "${ECHO_T}yes" >&6
2597 else
2598 echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6
2600 fi
2601
2602
2603# Check whether --with-gtk or --without-gtk was given.
2604if test "${with_gtk+set}" = set; then
2605 withval="$with_gtk"
2606 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-motif or --without-motif was given.
2610if test "${with_motif+set}" = set; then
2611 withval="$with_motif"
2612 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-mac or --without-mac was given.
2616if test "${with_mac+set}" = set; then
2617 withval="$with_mac"
c228d3a4 2618 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2619fi;
2620
2621# Check whether --with-cocoa or --without-cocoa was given.
2622if test "${with_cocoa+set}" = set; then
2623 withval="$with_cocoa"
c228d3a4 2624 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2625fi;
2626
2627# Check whether --with-wine or --without-wine was given.
2628if test "${with_wine+set}" = set; then
2629 withval="$with_wine"
2630 wxUSE_WINE="$withval" CACHE_WINE=1
2631fi;
2632
2633# Check whether --with-msw or --without-msw was given.
2634if test "${with_msw+set}" = set; then
2635 withval="$with_msw"
2636 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2637fi;
2638
2639# Check whether --with-pm or --without-pm was given.
2640if test "${with_pm+set}" = set; then
2641 withval="$with_pm"
2642 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2643fi;
2644
2645# Check whether --with-mgl or --without-mgl was given.
2646if test "${with_mgl+set}" = set; then
2647 withval="$with_mgl"
2648 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2649fi;
2650
2651# Check whether --with-microwin or --without-microwin was given.
2652if test "${with_microwin+set}" = set; then
2653 withval="$with_microwin"
2654 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2655fi;
2656
2657# Check whether --with-x11 or --without-x11 was given.
2658if test "${with_x11+set}" = set; then
2659 withval="$with_x11"
2660 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663 enablestring=
2664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2665echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2666 no_cache=0
2667 # Check whether --enable-nanox or --disable-nanox was given.
2668if test "${enable_nanox+set}" = set; then
2669 enableval="$enable_nanox"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_nanox='wxUSE_NANOX=yes'
2673 else
2674 ac_cv_use_nanox='wxUSE_NANOX=no'
2675 fi
2676
2677else
2678
2679 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2687
2688fi;
2689
2690 eval "$ac_cv_use_nanox"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_NANOX" = yes; then
2696 echo "$as_me:$LINENO: result: yes" >&5
2697echo "${ECHO_T}yes" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6
2701 fi
2702
2703
2704
2705 enablestring=
2706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2707echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2708 no_cache=0
2709 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2710if test "${enable_gtk2+set}" = set; then
2711 enableval="$enable_gtk2"
2712
2713 if test "$enableval" = yes; then
2714 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2715 else
2716 ac_cv_use_gtk2='wxUSE_GTK2=no'
2717 fi
2718
2719else
2720
2721 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2722 if test "x$LINE" != x ; then
2723 eval "DEFAULT_$LINE"
2724 else
2725 no_cache=1
2726 fi
2727
2728 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2729
2730fi;
2731
2732 eval "$ac_cv_use_gtk2"
2733 if test "$no_cache" != 1; then
2734 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2735 fi
2736
2737 if test "$wxUSE_GTK2" = yes; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739echo "${ECHO_T}yes" >&6
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742echo "${ECHO_T}no" >&6
2743 fi
2744
2745
2746 enablestring=
2747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2748echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2749 no_cache=0
2750 # Check whether --enable-gpe or --disable-gpe was given.
2751if test "${enable_gpe+set}" = set; then
2752 enableval="$enable_gpe"
2753
2754 if test "$enableval" = yes; then
2755 ac_cv_use_gpe='wxUSE_GPE=yes'
2756 else
2757 ac_cv_use_gpe='wxUSE_GPE=no'
2758 fi
2759
2760else
2761
2762 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2763 if test "x$LINE" != x ; then
2764 eval "DEFAULT_$LINE"
2765 else
2766 no_cache=1
2767 fi
2768
2769 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2770
2771fi;
2772
2773 eval "$ac_cv_use_gpe"
2774 if test "$no_cache" != 1; then
2775 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2776 fi
2777
2778 if test "$wxUSE_GPE" = yes; then
2779 echo "$as_me:$LINENO: result: yes" >&5
2780echo "${ECHO_T}yes" >&6
2781 else
2782 echo "$as_me:$LINENO: result: no" >&5
2783echo "${ECHO_T}no" >&6
2784 fi
2785
2786
2787
2788 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2789echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2790 no_cache=0
2791
2792# Check whether --with-libpng or --without-libpng was given.
2793if test "${with_libpng+set}" = set; then
2794 withval="$with_libpng"
2795
2796 if test "$withval" = yes; then
2797 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2798 elif test "$withval" = no; then
2799 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2800 elif test "$withval" = sys; then
2801 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2802 elif test "$withval" = builtin; then
2803 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2804 else
2805 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2806echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2807 { (exit 1); exit 1; }; }
2808 fi
2809
2810else
2811
2812 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2813 if test "x$LINE" != x ; then
2814 eval "DEFAULT_$LINE"
2815 else
2816 no_cache=1
2817 fi
2818
2819 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2820
2821fi;
2822
2823 eval "$ac_cv_use_libpng"
2824 if test "$no_cache" != 1; then
2825 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2826 fi
2827
2828 if test "$wxUSE_LIBPNG" = yes; then
2829 echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6
2831 elif test "$wxUSE_LIBPNG" = no; then
2832 echo "$as_me:$LINENO: result: no" >&5
2833echo "${ECHO_T}no" >&6
2834 elif test "$wxUSE_LIBPNG" = sys; then
2835 echo "$as_me:$LINENO: result: system version" >&5
2836echo "${ECHO_T}system version" >&6
2837 elif test "$wxUSE_LIBPNG" = builtin; then
2838 echo "$as_me:$LINENO: result: builtin version" >&5
2839echo "${ECHO_T}builtin version" >&6
2840 else
2841 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2842echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845
2846
2847 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2848echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2849 no_cache=0
2850
2851# Check whether --with-libjpeg or --without-libjpeg was given.
2852if test "${with_libjpeg+set}" = set; then
2853 withval="$with_libjpeg"
2854
2855 if test "$withval" = yes; then
2856 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2857 elif test "$withval" = no; then
2858 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2859 elif test "$withval" = sys; then
2860 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2861 elif test "$withval" = builtin; then
2862 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2863 else
2864 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2865echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2866 { (exit 1); exit 1; }; }
2867 fi
2868
2869else
2870
2871 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2872 if test "x$LINE" != x ; then
2873 eval "DEFAULT_$LINE"
2874 else
2875 no_cache=1
2876 fi
2877
2878 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2879
2880fi;
2881
2882 eval "$ac_cv_use_libjpeg"
2883 if test "$no_cache" != 1; then
2884 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2885 fi
2886
2887 if test "$wxUSE_LIBJPEG" = yes; then
2888 echo "$as_me:$LINENO: result: yes" >&5
2889echo "${ECHO_T}yes" >&6
2890 elif test "$wxUSE_LIBJPEG" = no; then
2891 echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
2893 elif test "$wxUSE_LIBJPEG" = sys; then
2894 echo "$as_me:$LINENO: result: system version" >&5
2895echo "${ECHO_T}system version" >&6
2896 elif test "$wxUSE_LIBJPEG" = builtin; then
2897 echo "$as_me:$LINENO: result: builtin version" >&5
2898echo "${ECHO_T}builtin version" >&6
2899 else
2900 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2901echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2902 { (exit 1); exit 1; }; }
2903 fi
2904
2905
2906 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2907echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2908 no_cache=0
2909
2910# Check whether --with-libtiff or --without-libtiff was given.
2911if test "${with_libtiff+set}" = set; then
2912 withval="$with_libtiff"
2913
2914 if test "$withval" = yes; then
2915 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2916 elif test "$withval" = no; then
2917 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2918 elif test "$withval" = sys; then
2919 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2920 elif test "$withval" = builtin; then
2921 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2922 else
2923 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2924echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2925 { (exit 1); exit 1; }; }
2926 fi
2927
2928else
2929
2930 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2931 if test "x$LINE" != x ; then
2932 eval "DEFAULT_$LINE"
2933 else
2934 no_cache=1
2935 fi
2936
2937 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2938
2939fi;
2940
2941 eval "$ac_cv_use_libtiff"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$wxUSE_LIBTIFF" = yes; then
2947 echo "$as_me:$LINENO: result: yes" >&5
2948echo "${ECHO_T}yes" >&6
2949 elif test "$wxUSE_LIBTIFF" = no; then
2950 echo "$as_me:$LINENO: result: no" >&5
2951echo "${ECHO_T}no" >&6
2952 elif test "$wxUSE_LIBTIFF" = sys; then
2953 echo "$as_me:$LINENO: result: system version" >&5
2954echo "${ECHO_T}system version" >&6
2955 elif test "$wxUSE_LIBTIFF" = builtin; then
2956 echo "$as_me:$LINENO: result: builtin version" >&5
2957echo "${ECHO_T}builtin version" >&6
2958 else
2959 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2960echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963
2964
2965 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2966echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2967 no_cache=0
2968
2969# Check whether --with-libxpm or --without-libxpm was given.
2970if test "${with_libxpm+set}" = set; then
2971 withval="$with_libxpm"
2972
2973 if test "$withval" = yes; then
2974 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2975 elif test "$withval" = no; then
2976 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2977 elif test "$withval" = sys; then
2978 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2979 elif test "$withval" = builtin; then
2980 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2981 else
2982 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2983echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2984 { (exit 1); exit 1; }; }
2985 fi
2986
2987else
2988
2989 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2997
2998fi;
2999
3000 eval "$ac_cv_use_libxpm"
3001 if test "$no_cache" != 1; then
3002 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3003 fi
3004
3005 if test "$wxUSE_LIBXPM" = yes; then
3006 echo "$as_me:$LINENO: result: yes" >&5
3007echo "${ECHO_T}yes" >&6
3008 elif test "$wxUSE_LIBXPM" = no; then
3009 echo "$as_me:$LINENO: result: no" >&5
3010echo "${ECHO_T}no" >&6
3011 elif test "$wxUSE_LIBXPM" = sys; then
3012 echo "$as_me:$LINENO: result: system version" >&5
3013echo "${ECHO_T}system version" >&6
3014 elif test "$wxUSE_LIBXPM" = builtin; then
3015 echo "$as_me:$LINENO: result: builtin version" >&5
3016echo "${ECHO_T}builtin version" >&6
3017 else
3018 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3019echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3020 { (exit 1); exit 1; }; }
3021 fi
3022
3023
3024 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3025echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3026 no_cache=0
3027
3028# Check whether --with-libmspack or --without-libmspack was given.
3029if test "${with_libmspack+set}" = set; then
3030 withval="$with_libmspack"
3031
3032 if test "$withval" = yes; then
3033 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3034 else
3035 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3036 fi
3037
3038else
3039
3040 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3048
3049fi;
3050
3051 eval "$ac_cv_use_libmspack"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$wxUSE_LIBMSPACK" = yes; then
3057 echo "$as_me:$LINENO: result: yes" >&5
3058echo "${ECHO_T}yes" >&6
3059 else
3060 echo "$as_me:$LINENO: result: no" >&5
3061echo "${ECHO_T}no" >&6
3062 fi
3063
3064
3065 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3066echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3067 no_cache=0
3068
3069# Check whether --with-sdl or --without-sdl was given.
3070if test "${with_sdl+set}" = set; then
3071 withval="$with_sdl"
3072
3073 if test "$withval" = yes; then
3074 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3075 else
3076 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3077 fi
3078
3079else
3080
3081 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3082 if test "x$LINE" != x ; then
3083 eval "DEFAULT_$LINE"
3084 else
3085 no_cache=1
3086 fi
3087
3088 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3089
3090fi;
3091
3092 eval "$ac_cv_use_sdl"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$wxUSE_LIBSDL" = yes; then
3098 echo "$as_me:$LINENO: result: yes" >&5
3099echo "${ECHO_T}yes" >&6
3100 else
3101 echo "$as_me:$LINENO: result: no" >&5
3102echo "${ECHO_T}no" >&6
3103 fi
3104
3105
d1c38808
VZ
3106 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3107echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3108 no_cache=0
3109
3110# Check whether --with-gnomeprint or --without-gnomeprint was given.
3111if test "${with_gnomeprint+set}" = set; then
3112 withval="$with_gnomeprint"
3113
3114 if test "$withval" = yes; then
3115 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3116 else
3117 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3118 fi
3119
3120else
3121
3122 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3123 if test "x$LINE" != x ; then
3124 eval "DEFAULT_$LINE"
3125 else
3126 no_cache=1
3127 fi
3128
3129 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3130
3131fi;
3132
3133 eval "$ac_cv_use_gnomeprint"
3134 if test "$no_cache" != 1; then
3135 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3136 fi
3137
3138 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3139 echo "$as_me:$LINENO: result: yes" >&5
3140echo "${ECHO_T}yes" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
3144 fi
3145
3146
a848cd7e
SC
3147 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3148echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3149 no_cache=0
3150
3151# Check whether --with-opengl or --without-opengl was given.
3152if test "${with_opengl+set}" = set; then
3153 withval="$with_opengl"
3154
3155 if test "$withval" = yes; then
3156 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3157 else
3158 ac_cv_use_opengl='wxUSE_OPENGL=no'
3159 fi
3160
3161else
3162
3163 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3171
3172fi;
3173
3174 eval "$ac_cv_use_opengl"
3175 if test "$no_cache" != 1; then
3176 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3177 fi
3178
3179 if test "$wxUSE_OPENGL" = yes; then
3180 echo "$as_me:$LINENO: result: yes" >&5
3181echo "${ECHO_T}yes" >&6
3182 else
3183 echo "$as_me:$LINENO: result: no" >&5
3184echo "${ECHO_T}no" >&6
3185 fi
3186
3187
3188fi
3189
3190
3191 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3192echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3193 no_cache=0
3194
3195# Check whether --with-dmalloc or --without-dmalloc was given.
3196if test "${with_dmalloc+set}" = set; then
3197 withval="$with_dmalloc"
3198
3199 if test "$withval" = yes; then
3200 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3201 else
3202 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3203 fi
3204
3205else
3206
3207 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3215
3216fi;
3217
3218 eval "$ac_cv_use_dmalloc"
3219 if test "$no_cache" != 1; then
3220 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3221 fi
3222
3223 if test "$wxUSE_DMALLOC" = yes; then
3224 echo "$as_me:$LINENO: result: yes" >&5
3225echo "${ECHO_T}yes" >&6
3226 else
3227 echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
3229 fi
3230
3231
3232 echo "$as_me:$LINENO: checking for --with-regex" >&5
3233echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3234 no_cache=0
3235
3236# Check whether --with-regex or --without-regex was given.
3237if test "${with_regex+set}" = set; then
3238 withval="$with_regex"
3239
3240 if test "$withval" = yes; then
3241 ac_cv_use_regex='wxUSE_REGEX=yes'
3242 elif test "$withval" = no; then
3243 ac_cv_use_regex='wxUSE_REGEX=no'
3244 elif test "$withval" = sys; then
3245 ac_cv_use_regex='wxUSE_REGEX=sys'
3246 elif test "$withval" = builtin; then
3247 ac_cv_use_regex='wxUSE_REGEX=builtin'
3248 else
3249 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3250echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3251 { (exit 1); exit 1; }; }
3252 fi
3253
3254else
3255
3256 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3257 if test "x$LINE" != x ; then
3258 eval "DEFAULT_$LINE"
3259 else
3260 no_cache=1
3261 fi
3262
3263 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3264
3265fi;
3266
3267 eval "$ac_cv_use_regex"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_REGEX" = yes; then
3273 echo "$as_me:$LINENO: result: yes" >&5
3274echo "${ECHO_T}yes" >&6
3275 elif test "$wxUSE_REGEX" = no; then
3276 echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6
3278 elif test "$wxUSE_REGEX" = sys; then
3279 echo "$as_me:$LINENO: result: system version" >&5
3280echo "${ECHO_T}system version" >&6
3281 elif test "$wxUSE_REGEX" = builtin; then
3282 echo "$as_me:$LINENO: result: builtin version" >&5
3283echo "${ECHO_T}builtin version" >&6
3284 else
3285 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3286echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3287 { (exit 1); exit 1; }; }
3288 fi
3289
3290
3291 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3292echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3293 no_cache=0
3294
3295# Check whether --with-zlib or --without-zlib was given.
3296if test "${with_zlib+set}" = set; then
3297 withval="$with_zlib"
3298
3299 if test "$withval" = yes; then
3300 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3301 elif test "$withval" = no; then
3302 ac_cv_use_zlib='wxUSE_ZLIB=no'
3303 elif test "$withval" = sys; then
3304 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3305 elif test "$withval" = builtin; then
3306 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3307 else
3308 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3309echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3310 { (exit 1); exit 1; }; }
3311 fi
3312
3313else
3314
3315 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3323
3324fi;
3325
3326 eval "$ac_cv_use_zlib"
3327 if test "$no_cache" != 1; then
3328 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3329 fi
3330
3331 if test "$wxUSE_ZLIB" = yes; then
3332 echo "$as_me:$LINENO: result: yes" >&5
3333echo "${ECHO_T}yes" >&6
3334 elif test "$wxUSE_ZLIB" = no; then
3335 echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337 elif test "$wxUSE_ZLIB" = sys; then
3338 echo "$as_me:$LINENO: result: system version" >&5
3339echo "${ECHO_T}system version" >&6
3340 elif test "$wxUSE_ZLIB" = builtin; then
3341 echo "$as_me:$LINENO: result: builtin version" >&5
3342echo "${ECHO_T}builtin version" >&6
3343 else
3344 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3345echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3346 { (exit 1); exit 1; }; }
3347 fi
3348
3349
3350 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3351echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3352 no_cache=0
3353
3354# Check whether --with-odbc or --without-odbc was given.
3355if test "${with_odbc+set}" = set; then
3356 withval="$with_odbc"
3357
3358 if test "$withval" = yes; then
3359 ac_cv_use_odbc='wxUSE_ODBC=yes'
3360 elif test "$withval" = no; then
3361 ac_cv_use_odbc='wxUSE_ODBC=no'
3362 elif test "$withval" = sys; then
3363 ac_cv_use_odbc='wxUSE_ODBC=sys'
3364 elif test "$withval" = builtin; then
3365 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3366 else
3367 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3368echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3369 { (exit 1); exit 1; }; }
3370 fi
3371
3372else
3373
3374 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3382
3383fi;
3384
3385 eval "$ac_cv_use_odbc"
3386 if test "$no_cache" != 1; then
3387 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3388 fi
3389
3390 if test "$wxUSE_ODBC" = yes; then
3391 echo "$as_me:$LINENO: result: yes" >&5
3392echo "${ECHO_T}yes" >&6
3393 elif test "$wxUSE_ODBC" = no; then
3394 echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
3396 elif test "$wxUSE_ODBC" = sys; then
3397 echo "$as_me:$LINENO: result: system version" >&5
3398echo "${ECHO_T}system version" >&6
3399 elif test "$wxUSE_ODBC" = builtin; then
3400 echo "$as_me:$LINENO: result: builtin version" >&5
3401echo "${ECHO_T}builtin version" >&6
3402 else
3403 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3404echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3405 { (exit 1); exit 1; }; }
3406 fi
3407
3408
3409 echo "$as_me:$LINENO: checking for --with-expat" >&5
3410echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3411 no_cache=0
3412
3413# Check whether --with-expat or --without-expat was given.
3414if test "${with_expat+set}" = set; then
3415 withval="$with_expat"
3416
3417 if test "$withval" = yes; then
3418 ac_cv_use_expat='wxUSE_EXPAT=yes'
3419 elif test "$withval" = no; then
3420 ac_cv_use_expat='wxUSE_EXPAT=no'
3421 elif test "$withval" = sys; then
3422 ac_cv_use_expat='wxUSE_EXPAT=sys'
3423 elif test "$withval" = builtin; then
3424 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3425 else
3426 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3427echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3428 { (exit 1); exit 1; }; }
3429 fi
3430
3431else
3432
3433 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3434 if test "x$LINE" != x ; then
3435 eval "DEFAULT_$LINE"
3436 else
3437 no_cache=1
3438 fi
3439
3440 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3441
3442fi;
3443
3444 eval "$ac_cv_use_expat"
3445 if test "$no_cache" != 1; then
3446 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3447 fi
3448
3449 if test "$wxUSE_EXPAT" = yes; then
3450 echo "$as_me:$LINENO: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
3452 elif test "$wxUSE_EXPAT" = no; then
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455 elif test "$wxUSE_EXPAT" = sys; then
3456 echo "$as_me:$LINENO: result: system version" >&5
3457echo "${ECHO_T}system version" >&6
3458 elif test "$wxUSE_EXPAT" = builtin; then
3459 echo "$as_me:$LINENO: result: builtin version" >&5
3460echo "${ECHO_T}builtin version" >&6
3461 else
3462 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3463echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3464 { (exit 1); exit 1; }; }
3465 fi
3466
3467
3468
3469
3470 enablestring=
3471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3472echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3473 no_cache=0
3474 # Check whether --enable-shared or --disable-shared was given.
3475if test "${enable_shared+set}" = set; then
3476 enableval="$enable_shared"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_shared='wxUSE_SHARED=yes'
3480 else
3481 ac_cv_use_shared='wxUSE_SHARED=no'
3482 fi
3483
3484else
3485
3486 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3494
3495fi;
3496
3497 eval "$ac_cv_use_shared"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_SHARED" = yes; then
3503 echo "$as_me:$LINENO: result: yes" >&5
3504echo "${ECHO_T}yes" >&6
3505 else
3506 echo "$as_me:$LINENO: result: no" >&5
3507echo "${ECHO_T}no" >&6
3508 fi
3509
3510
3511 enablestring=
3512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3513echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3514 no_cache=0
3515 # Check whether --enable-optimise or --disable-optimise was given.
3516if test "${enable_optimise+set}" = set; then
3517 enableval="$enable_optimise"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3521 else
3522 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3523 fi
3524
3525else
3526
3527 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3535
3536fi;
3537
3538 eval "$ac_cv_use_optimise"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_OPTIMISE" = yes; then
3544 echo "$as_me:$LINENO: result: yes" >&5
3545echo "${ECHO_T}yes" >&6
3546 else
3547 echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
3549 fi
3550
3551
3552 enablestring=
3553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3554echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3555 no_cache=0
3556 # Check whether --enable-debug or --disable-debug was given.
3557if test "${enable_debug+set}" = set; then
3558 enableval="$enable_debug"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_debug='wxUSE_DEBUG=yes'
3562 else
3563 ac_cv_use_debug='wxUSE_DEBUG=no'
3564 fi
3565
3566else
3567
3568 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3576
3577fi;
3578
3579 eval "$ac_cv_use_debug"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_DEBUG" = yes; then
3585 echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
3590 fi
3591
3592
3593 enablestring=
3594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3595echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3596 no_cache=0
3597 # Check whether --enable-stl or --disable-stl was given.
3598if test "${enable_stl+set}" = set; then
3599 enableval="$enable_stl"
3600
3601 if test "$enableval" = yes; then
3602 ac_cv_use_stl='wxUSE_STL=yes'
3603 else
3604 ac_cv_use_stl='wxUSE_STL=no'
3605 fi
3606
3607else
3608
3609 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3610 if test "x$LINE" != x ; then
3611 eval "DEFAULT_$LINE"
3612 else
3613 no_cache=1
3614 fi
3615
3616 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3617
3618fi;
3619
3620 eval "$ac_cv_use_stl"
3621 if test "$no_cache" != 1; then
3622 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3623 fi
3624
3625 if test "$wxUSE_STL" = yes; then
3626 echo "$as_me:$LINENO: result: yes" >&5
3627echo "${ECHO_T}yes" >&6
3628 else
3629 echo "$as_me:$LINENO: result: no" >&5
3630echo "${ECHO_T}no" >&6
3631 fi
3632
3633if test "$USE_OS2" = "1"; then
69120ee4 3634 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3635
3636 enablestring=
3637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3638echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3639 no_cache=0
3640 # Check whether --enable-omf or --disable-omf was given.
3641if test "${enable_omf+set}" = set; then
3642 enableval="$enable_omf"
3643
3644 if test "$enableval" = yes; then
3645 ac_cv_use_omf='wxUSE_OMF=yes'
3646 else
3647 ac_cv_use_omf='wxUSE_OMF=no'
3648 fi
3649
3650else
3651
3652 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3660
3661fi;
3662
3663 eval "$ac_cv_use_omf"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_OMF" = yes; then
3669 echo "$as_me:$LINENO: result: yes" >&5
3670echo "${ECHO_T}yes" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674 fi
3675
3676fi
3677
3678if test "$wxUSE_DEBUG" = "yes"; then
3679 DEFAULT_wxUSE_DEBUG_FLAG=yes
3680 DEFAULT_wxUSE_DEBUG_INFO=yes
3681 BUILD=debug
3682elif test "$wxUSE_DEBUG" = "no"; then
3683 DEFAULT_wxUSE_DEBUG_FLAG=no
3684 DEFAULT_wxUSE_DEBUG_INFO=no
3685 BUILD=release
3686fi
3687
3688
3689 enablestring=
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3692 no_cache=0
3693 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3694if test "${enable_debug_flag+set}" = set; then
3695 enableval="$enable_debug_flag"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3699 else
3700 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3701 fi
3702
3703else
3704
3705 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3713
3714fi;
3715
3716 eval "$ac_cv_use_debug_flag"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DEBUG_FLAG" = yes; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727 fi
3728
3729
3730 enablestring=
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3733 no_cache=0
3734 # Check whether --enable-debug_info or --disable-debug_info was given.
3735if test "${enable_debug_info+set}" = set; then
3736 enableval="$enable_debug_info"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3740 else
3741 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3742 fi
3743
3744else
3745
3746 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3754
3755fi;
3756
3757 eval "$ac_cv_use_debug_info"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_DEBUG_INFO" = yes; then
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
3768 fi
3769
3770
3771 enablestring=
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3774 no_cache=0
3775 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3776if test "${enable_debug_gdb+set}" = set; then
3777 enableval="$enable_debug_gdb"
3778
3779 if test "$enableval" = yes; then
3780 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3781 else
3782 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3783 fi
3784
3785else
3786
3787 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3795
3796fi;
3797
3798 eval "$ac_cv_use_debug_gdb"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_DEBUG_GDB" = yes; then
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
3809 fi
3810
3811
3812 enablestring=
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3814echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3815 no_cache=0
3816 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3817if test "${enable_debug_cntxt+set}" = set; then
3818 enableval="$enable_debug_cntxt"
3819
3820 if test "$enableval" = yes; then
3821 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3822 else
3823 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3824 fi
3825
3826else
3827
3828 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3836
3837fi;
3838
3839 eval "$ac_cv_use_debug_cntxt"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
3850 fi
3851
3852
3853 enablestring=
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3856 no_cache=0
3857 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3858if test "${enable_mem_tracing+set}" = set; then
3859 enableval="$enable_mem_tracing"
3860
3861 if test "$enableval" = yes; then
3862 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3863 else
3864 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3865 fi
3866
3867else
3868
3869 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3877
3878fi;
3879
3880 eval "$ac_cv_use_mem_tracing"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_MEM_TRACING" = yes; then
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891 fi
3892
3893
3894 enablestring=
3895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3896echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3897 no_cache=0
3898 # Check whether --enable-profile or --disable-profile was given.
3899if test "${enable_profile+set}" = set; then
3900 enableval="$enable_profile"
3901
3902 if test "$enableval" = yes; then
3903 ac_cv_use_profile='wxUSE_PROFILE=yes'
3904 else
3905 ac_cv_use_profile='wxUSE_PROFILE=no'
3906 fi
3907
3908else
3909
3910 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3911 if test "x$LINE" != x ; then
3912 eval "DEFAULT_$LINE"
3913 else
3914 no_cache=1
3915 fi
3916
3917 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3918
3919fi;
3920
3921 eval "$ac_cv_use_profile"
3922 if test "$no_cache" != 1; then
3923 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3924 fi
3925
3926 if test "$wxUSE_PROFILE" = yes; then
3927 echo "$as_me:$LINENO: result: yes" >&5
3928echo "${ECHO_T}yes" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no" >&5
3931echo "${ECHO_T}no" >&6
3932 fi
3933
3934
3935 enablestring=
3936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3937echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3938 no_cache=0
3939 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3940if test "${enable_no_rtti+set}" = set; then
3941 enableval="$enable_no_rtti"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3945 else
3946 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3959
3960fi;
3961
3962 eval "$ac_cv_use_no_rtti"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_NO_RTTI" = yes; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969echo "${ECHO_T}yes" >&6
3970 else
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
3973 fi
3974
3975
3976 enablestring=
3977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3978echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3979 no_cache=0
3980 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3981if test "${enable_no_exceptions+set}" = set; then
3982 enableval="$enable_no_exceptions"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3986 else
3987 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3988 fi
3989
3990else
3991
3992 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4000
4001fi;
4002
4003 eval "$ac_cv_use_no_exceptions"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4009 echo "$as_me:$LINENO: result: yes" >&5
4010echo "${ECHO_T}yes" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013echo "${ECHO_T}no" >&6
4014 fi
4015
4016
4017 enablestring=
4018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4019echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4020 no_cache=0
4021 # Check whether --enable-permissive or --disable-permissive was given.
4022if test "${enable_permissive+set}" = set; then
4023 enableval="$enable_permissive"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4027 else
4028 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4029 fi
4030
4031else
4032
4033 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4041
4042fi;
4043
4044 eval "$ac_cv_use_permissive"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_PERMISSIVE" = yes; then
4050 echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
4052 else
4053 echo "$as_me:$LINENO: result: no" >&5
4054echo "${ECHO_T}no" >&6
4055 fi
4056
4057
4058 enablestring=
4059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4060echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4061 no_cache=0
4062 # Check whether --enable-no_deps or --disable-no_deps was given.
4063if test "${enable_no_deps+set}" = set; then
4064 enableval="$enable_no_deps"
4065
4066 if test "$enableval" = yes; then
4067 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4068 else
4069 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4070 fi
4071
4072else
4073
4074 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4075 if test "x$LINE" != x ; then
4076 eval "DEFAULT_$LINE"
4077 else
4078 no_cache=1
4079 fi
4080
4081 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4082
4083fi;
4084
4085 eval "$ac_cv_use_no_deps"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_NO_DEPS" = yes; then
4091 echo "$as_me:$LINENO: result: yes" >&5
4092echo "${ECHO_T}yes" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095echo "${ECHO_T}no" >&6
4096 fi
4097
4098
4099
4100 enablestring=
4101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4102echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4103 no_cache=0
4104 # Check whether --enable-compat22 or --disable-compat22 was given.
4105if test "${enable_compat22+set}" = set; then
4106 enableval="$enable_compat22"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4110 else
4111 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4112 fi
4113
4114else
4115
4116 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4117 if test "x$LINE" != x ; then
4118 eval "DEFAULT_$LINE"
4119 else
4120 no_cache=1
4121 fi
4122
4123 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4124
4125fi;
4126
4127 eval "$ac_cv_use_compat22"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4133 echo "$as_me:$LINENO: result: yes" >&5
4134echo "${ECHO_T}yes" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137echo "${ECHO_T}no" >&6
4138 fi
4139
4140
4141 enablestring=disable
4142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4143echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4144 no_cache=0
4145 # Check whether --enable-compat24 or --disable-compat24 was given.
4146if test "${enable_compat24+set}" = set; then
4147 enableval="$enable_compat24"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4151 else
4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4165
4166fi;
4167
4168 eval "$ac_cv_use_compat24"
4169 if test "$no_cache" != 1; then
4170 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4171 fi
4172
4173 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178echo "${ECHO_T}no" >&6
4179 fi
4180
4181
ffa0583f
RL
4182
4183 enablestring=
4184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4185echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4186 no_cache=0
4187 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4188if test "${enable_rpath+set}" = set; then
4189 enableval="$enable_rpath"
ffa0583f
RL
4190
4191 if test "$enableval" = yes; then
4192 ac_cv_use_rpath='wxUSE_RPATH=yes'
4193 else
4194 ac_cv_use_rpath='wxUSE_RPATH=no'
4195 fi
4196
4197else
4198
4199 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4200 if test "x$LINE" != x ; then
4201 eval "DEFAULT_$LINE"
4202 else
4203 no_cache=1
4204 fi
4205
4206 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4207
a848cd7e
SC
4208fi;
4209
ffa0583f
RL
4210 eval "$ac_cv_use_rpath"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_RPATH" = yes; then
4216 echo "$as_me:$LINENO: result: yes" >&5
4217echo "${ECHO_T}yes" >&6
4218 else
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
4221 fi
4222
a848cd7e
SC
4223
4224
4225
4226
4227 enablestring=
4228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4229echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4230 no_cache=0
4231 # Check whether --enable-intl or --disable-intl was given.
4232if test "${enable_intl+set}" = set; then
4233 enableval="$enable_intl"
4234
4235 if test "$enableval" = yes; then
4236 ac_cv_use_intl='wxUSE_INTL=yes'
4237 else
4238 ac_cv_use_intl='wxUSE_INTL=no'
4239 fi
4240
4241else
4242
4243 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4251
4252fi;
4253
4254 eval "$ac_cv_use_intl"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_INTL" = yes; then
4260 echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
4262 else
4263 echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
4265 fi
4266
4267
4268 enablestring=
4269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4270echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4271 no_cache=0
4272 # Check whether --enable-config or --disable-config was given.
4273if test "${enable_config+set}" = set; then
4274 enableval="$enable_config"
4275
4276 if test "$enableval" = yes; then
4277 ac_cv_use_config='wxUSE_CONFIG=yes'
4278 else
4279 ac_cv_use_config='wxUSE_CONFIG=no'
4280 fi
4281
4282else
4283
4284 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4285 if test "x$LINE" != x ; then
4286 eval "DEFAULT_$LINE"
4287 else
4288 no_cache=1
4289 fi
4290
4291 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4292
4293fi;
4294
4295 eval "$ac_cv_use_config"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_CONFIG" = yes; then
4301 echo "$as_me:$LINENO: result: yes" >&5
4302echo "${ECHO_T}yes" >&6
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305echo "${ECHO_T}no" >&6
4306 fi
4307
4308
4309
4310 enablestring=
4311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4312echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4313 no_cache=0
4314 # Check whether --enable-protocols or --disable-protocols was given.
4315if test "${enable_protocols+set}" = set; then
4316 enableval="$enable_protocols"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4320 else
4321 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4322 fi
4323
4324else
4325
4326 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4334
4335fi;
4336
4337 eval "$ac_cv_use_protocols"
4338 if test "$no_cache" != 1; then
4339 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4340 fi
4341
4342 if test "$wxUSE_PROTOCOL" = yes; then
4343 echo "$as_me:$LINENO: result: yes" >&5
4344echo "${ECHO_T}yes" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348 fi
4349
4350
4351 enablestring=
4352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4353echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4354 no_cache=0
4355 # Check whether --enable-ftp or --disable-ftp was given.
4356if test "${enable_ftp+set}" = set; then
4357 enableval="$enable_ftp"
4358
4359 if test "$enableval" = yes; then
4360 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4361 else
4362 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4363 fi
4364
4365else
4366
4367 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4375
4376fi;
4377
4378 eval "$ac_cv_use_ftp"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4384 echo "$as_me:$LINENO: result: yes" >&5
4385echo "${ECHO_T}yes" >&6
4386 else
4387 echo "$as_me:$LINENO: result: no" >&5
4388echo "${ECHO_T}no" >&6
4389 fi
4390
4391
4392 enablestring=
4393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4394echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4395 no_cache=0
4396 # Check whether --enable-http or --disable-http was given.
4397if test "${enable_http+set}" = set; then
4398 enableval="$enable_http"
4399
4400 if test "$enableval" = yes; then
4401 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4402 else
4403 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4404 fi
4405
4406else
4407
4408 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4416
4417fi;
4418
4419 eval "$ac_cv_use_http"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4425 echo "$as_me:$LINENO: result: yes" >&5
4426echo "${ECHO_T}yes" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430 fi
4431
4432
4433 enablestring=
4434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4435echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4436 no_cache=0
4437 # Check whether --enable-fileproto or --disable-fileproto was given.
4438if test "${enable_fileproto+set}" = set; then
4439 enableval="$enable_fileproto"
4440
4441 if test "$enableval" = yes; then
4442 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4443 else
4444 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4445 fi
4446
4447else
4448
4449 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4450 if test "x$LINE" != x ; then
4451 eval "DEFAULT_$LINE"
4452 else
4453 no_cache=1
4454 fi
4455
4456 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4457
4458fi;
4459
4460 eval "$ac_cv_use_fileproto"
4461 if test "$no_cache" != 1; then
4462 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4463 fi
4464
4465 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4466 echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
4468 else
4469 echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6
4471 fi
4472
4473
4474 enablestring=
4475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4476echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4477 no_cache=0
4478 # Check whether --enable-sockets or --disable-sockets was given.
4479if test "${enable_sockets+set}" = set; then
4480 enableval="$enable_sockets"
4481
4482 if test "$enableval" = yes; then
4483 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4484 else
4485 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4486 fi
4487
4488else
4489
4490 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4491 if test "x$LINE" != x ; then
4492 eval "DEFAULT_$LINE"
4493 else
4494 no_cache=1
4495 fi
4496
4497 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4498
4499fi;
4500
4501 eval "$ac_cv_use_sockets"
4502 if test "$no_cache" != 1; then
4503 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4504 fi
4505
4506 if test "$wxUSE_SOCKETS" = yes; then
4507 echo "$as_me:$LINENO: result: yes" >&5
4508echo "${ECHO_T}yes" >&6
4509 else
4510 echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6
4512 fi
4513
4514
4515 enablestring=
4516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4517echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4518 no_cache=0
4519 # Check whether --enable-ole or --disable-ole was given.
4520if test "${enable_ole+set}" = set; then
4521 enableval="$enable_ole"
4522
4523 if test "$enableval" = yes; then
4524 ac_cv_use_ole='wxUSE_OLE=yes'
4525 else
4526 ac_cv_use_ole='wxUSE_OLE=no'
4527 fi
4528
4529else
4530
4531 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
4538 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4539
4540fi;
4541
4542 eval "$ac_cv_use_ole"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_OLE" = yes; then
4548 echo "$as_me:$LINENO: result: yes" >&5
4549echo "${ECHO_T}yes" >&6
4550 else
4551 echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6
4553 fi
4554
4555
4556 enablestring=
4557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4558echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4559 no_cache=0
4560 # Check whether --enable-dataobj or --disable-dataobj was given.
4561if test "${enable_dataobj+set}" = set; then
4562 enableval="$enable_dataobj"
4563
4564 if test "$enableval" = yes; then
4565 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4566 else
4567 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4568 fi
4569
4570else
4571
4572 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4573 if test "x$LINE" != x ; then
4574 eval "DEFAULT_$LINE"
4575 else
4576 no_cache=1
4577 fi
4578
4579 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4580
4581fi;
4582
4583 eval "$ac_cv_use_dataobj"
4584 if test "$no_cache" != 1; then
4585 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4586 fi
4587
4588 if test "$wxUSE_DATAOBJ" = yes; then
4589 echo "$as_me:$LINENO: result: yes" >&5
4590echo "${ECHO_T}yes" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594 fi
4595
4596
4597
4598 enablestring=
4599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4600echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4601 no_cache=0
4602 # Check whether --enable-ipc or --disable-ipc was given.
4603if test "${enable_ipc+set}" = set; then
4604 enableval="$enable_ipc"
4605
4606 if test "$enableval" = yes; then
4607 ac_cv_use_ipc='wxUSE_IPC=yes'
4608 else
4609 ac_cv_use_ipc='wxUSE_IPC=no'
4610 fi
4611
4612else
4613
4614 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4622
4623fi;
4624
4625 eval "$ac_cv_use_ipc"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_IPC" = yes; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632echo "${ECHO_T}yes" >&6
4633 else
4634 echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
4636 fi
4637
4638
4639
4640 enablestring=
4641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4642echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4643 no_cache=0
4644 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4645if test "${enable_apple_ieee+set}" = set; then
4646 enableval="$enable_apple_ieee"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4650 else
4651 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4664
4665fi;
4666
4667 eval "$ac_cv_use_apple_ieee"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_APPLE_IEEE" = yes; then
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678 fi
4679
4680
81f90336
MW
4681 enablestring=
4682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4683echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4684 no_cache=0
4685 # Check whether --enable-arcstream or --disable-arcstream was given.
4686if test "${enable_arcstream+set}" = set; then
4687 enableval="$enable_arcstream"
4688
4689 if test "$enableval" = yes; then
9e8e867f 4690 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4691 else
9e8e867f 4692 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4693 fi
4694
4695else
4696
9e8e867f 4697 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
9e8e867f 4704 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4705
4706fi;
4707
4708 eval "$ac_cv_use_arcstream"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4711 fi
4712
9e8e867f 4713 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4714 echo "$as_me:$LINENO: result: yes" >&5
4715echo "${ECHO_T}yes" >&6
4716 else
4717 echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6
4719 fi
4720
4721
a848cd7e 4722 enablestring=
36b6448c
VZ
4723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4724echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4725 no_cache=0
36b6448c
VZ
4726 # Check whether --enable-backtrace or --disable-backtrace was given.
4727if test "${enable_backtrace+set}" = set; then
4728 enableval="$enable_backtrace"
a848cd7e
SC
4729
4730 if test "$enableval" = yes; then
36b6448c 4731 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4732 else
36b6448c 4733 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4734 fi
4735
4736else
4737
36b6448c 4738 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
36b6448c 4745 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4746
4747fi;
4748
36b6448c 4749 eval "$ac_cv_use_backtrace"
a848cd7e 4750 if test "$no_cache" != 1; then
36b6448c 4751 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4752 fi
4753
36b6448c 4754 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
4757 else
4758 echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
4760 fi
4761
4762
eaff0f0d 4763 enablestring=
36b6448c
VZ
4764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4765echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4766 no_cache=0
36b6448c
VZ
4767 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4768if test "${enable_catch_segvs+set}" = set; then
4769 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4770
4771 if test "$enableval" = yes; then
36b6448c 4772 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4773 else
36b6448c 4774 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4775 fi
4776
4777else
4778
36b6448c 4779 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
36b6448c 4786 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4787
4788fi;
4789
36b6448c 4790 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4791 if test "$no_cache" != 1; then
36b6448c 4792 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4793 fi
4794
36b6448c 4795 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4796 echo "$as_me:$LINENO: result: yes" >&5
4797echo "${ECHO_T}yes" >&6
4798 else
4799 echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6
4801 fi
4802
4803
a848cd7e
SC
4804 enablestring=
4805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4806echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4807 no_cache=0
4808 # Check whether --enable-cmdline or --disable-cmdline was given.
4809if test "${enable_cmdline+set}" = set; then
4810 enableval="$enable_cmdline"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4814 else
4815 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4816 fi
4817
4818else
4819
4820 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4828
4829fi;
4830
4831 eval "$ac_cv_use_cmdline"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4837 echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
4839 else
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
4842 fi
4843
4844
4845 enablestring=
4846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4847echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4848 no_cache=0
4849 # Check whether --enable-datetime or --disable-datetime was given.
4850if test "${enable_datetime+set}" = set; then
4851 enableval="$enable_datetime"
4852
4853 if test "$enableval" = yes; then
4854 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4855 else
4856 ac_cv_use_datetime='wxUSE_DATETIME=no'
4857 fi
4858
4859else
4860
4861 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4869
4870fi;
4871
4872 eval "$ac_cv_use_datetime"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_DATETIME" = yes; then
4878 echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
4880 else
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883 fi
4884
4885
36b6448c
VZ
4886 enablestring=
4887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4888echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4889 no_cache=0
4890 # Check whether --enable-debugreport or --disable-debugreport was given.
4891if test "${enable_debugreport+set}" = set; then
4892 enableval="$enable_debugreport"
4893
4894 if test "$enableval" = yes; then
4895 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4896 else
4897 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4898 fi
4899
4900else
4901
4902 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4910
4911fi;
4912
4913 eval "$ac_cv_use_debugreport"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_DEBUGREPORT" = yes; then
4919 echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
4921 else
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924 fi
4925
4926
a848cd7e
SC
4927 enablestring=
4928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4929echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4930 no_cache=0
4931 # Check whether --enable-dialupman or --disable-dialupman was given.
4932if test "${enable_dialupman+set}" = set; then
4933 enableval="$enable_dialupman"
4934
4935 if test "$enableval" = yes; then
4936 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4937 else
4938 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4939 fi
4940
4941else
4942
4943 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4951
4952fi;
4953
4954 eval "$ac_cv_use_dialupman"
4955 if test "$no_cache" != 1; then
4956 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4957 fi
4958
4959 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4960 echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
4962 else
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
4965 fi
4966
4967
4968 enablestring=
4969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4970echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4971 no_cache=0
4972 # Check whether --enable-dynlib or --disable-dynlib was given.
4973if test "${enable_dynlib+set}" = set; then
4974 enableval="$enable_dynlib"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4978 else
4979 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4980 fi
4981
4982else
4983
4984 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4992
4993fi;
4994
4995 eval "$ac_cv_use_dynlib"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5001 echo "$as_me:$LINENO: result: yes" >&5
5002echo "${ECHO_T}yes" >&6
5003 else
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006 fi
5007
5008
5009 enablestring=
5010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5011echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5012 no_cache=0
5013 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5014if test "${enable_dynamicloader+set}" = set; then
5015 enableval="$enable_dynamicloader"
5016
5017 if test "$enableval" = yes; then
5018 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5019 else
5020 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5021 fi
5022
5023else
5024
5025 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5033
5034fi;
5035
5036 eval "$ac_cv_use_dynamicloader"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
5044 else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047 fi
5048
5049
5050 enablestring=
5051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5052echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5053 no_cache=0
5054 # Check whether --enable-exceptions or --disable-exceptions was given.
5055if test "${enable_exceptions+set}" = set; then
5056 enableval="$enable_exceptions"
5057
5058 if test "$enableval" = yes; then
5059 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5060 else
5061 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5062 fi
5063
5064else
5065
5066 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5074
5075fi;
5076
5077 eval "$ac_cv_use_exceptions"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_EXCEPTIONS" = yes; then
5083 echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
5085 else
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
5088 fi
5089
5090
5091 enablestring=
5092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5093echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5094 no_cache=0
5095 # Check whether --enable-ffile or --disable-ffile was given.
5096if test "${enable_ffile+set}" = set; then
5097 enableval="$enable_ffile"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_ffile='wxUSE_FFILE=yes'
5101 else
5102 ac_cv_use_ffile='wxUSE_FFILE=no'
5103 fi
5104
5105else
5106
5107 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5115
5116fi;
5117
5118 eval "$ac_cv_use_ffile"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_FFILE" = yes; then
5124 echo "$as_me:$LINENO: result: yes" >&5
5125echo "${ECHO_T}yes" >&6
5126 else
5127 echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
5129 fi
5130
5131
5132 enablestring=
5133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5134echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5135 no_cache=0
5136 # Check whether --enable-file or --disable-file was given.
5137if test "${enable_file+set}" = set; then
5138 enableval="$enable_file"
5139
5140 if test "$enableval" = yes; then
5141 ac_cv_use_file='wxUSE_FILE=yes'
5142 else
5143 ac_cv_use_file='wxUSE_FILE=no'
5144 fi
5145
5146else
5147
5148 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5156
5157fi;
5158
5159 eval "$ac_cv_use_file"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_FILE" = yes; then
5165 echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
5167 else
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170 fi
5171
5172
5173 enablestring=
5174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5175echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5176 no_cache=0
5177 # Check whether --enable-filesystem or --disable-filesystem was given.
5178if test "${enable_filesystem+set}" = set; then
5179 enableval="$enable_filesystem"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5183 else
5184 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5197
5198fi;
5199
5200 eval "$ac_cv_use_filesystem"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_FILESYSTEM" = yes; then
5206 echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
5208 else
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211 fi
5212
5213
5214 enablestring=
5215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5216echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5217 no_cache=0
5218 # Check whether --enable-fontmap or --disable-fontmap was given.
5219if test "${enable_fontmap+set}" = set; then
5220 enableval="$enable_fontmap"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5224 else
5225 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5226 fi
5227
5228else
5229
5230 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5238
5239fi;
5240
5241 eval "$ac_cv_use_fontmap"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_FONTMAP" = yes; then
5247 echo "$as_me:$LINENO: result: yes" >&5
5248echo "${ECHO_T}yes" >&6
5249 else
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252 fi
5253
5254
5255 enablestring=
5256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5257echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5258 no_cache=0
5259 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5260if test "${enable_fs_inet+set}" = set; then
5261 enableval="$enable_fs_inet"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5265 else
5266 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5267 fi
5268
5269else
5270
5271 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5279
5280fi;
5281
5282 eval "$ac_cv_use_fs_inet"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_FS_INET" = yes; then
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
5290 else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293 fi
5294
5295
5296 enablestring=
5297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5298echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5299 no_cache=0
5300 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5301if test "${enable_fs_zip+set}" = set; then
5302 enableval="$enable_fs_zip"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5306 else
5307 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5320
5321fi;
5322
5323 eval "$ac_cv_use_fs_zip"
5324 if test "$no_cache" != 1; then
5325 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5326 fi
5327
5328 if test "$wxUSE_FS_ZIP" = yes; then
5329 echo "$as_me:$LINENO: result: yes" >&5
5330echo "${ECHO_T}yes" >&6
5331 else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334 fi
5335
5336
5337 enablestring=
5338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5339echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5340 no_cache=0
5341 # Check whether --enable-geometry or --disable-geometry was given.
5342if test "${enable_geometry+set}" = set; then
5343 enableval="$enable_geometry"
5344
5345 if test "$enableval" = yes; then
5346 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5347 else
5348 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5349 fi
5350
5351else
5352
5353 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5361
5362fi;
5363
5364 eval "$ac_cv_use_geometry"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_GEOMETRY" = yes; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371echo "${ECHO_T}yes" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375 fi
5376
5377
5378 enablestring=
5379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5380echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5381 no_cache=0
5382 # Check whether --enable-log or --disable-log was given.
5383if test "${enable_log+set}" = set; then
5384 enableval="$enable_log"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_log='wxUSE_LOG=yes'
5388 else
5389 ac_cv_use_log='wxUSE_LOG=no'
5390 fi
5391
5392else
5393
5394 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5402
5403fi;
5404
5405 eval "$ac_cv_use_log"
5406 if test "$no_cache" != 1; then
5407 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5408 fi
5409
5410 if test "$wxUSE_LOG" = yes; then
5411 echo "$as_me:$LINENO: result: yes" >&5
5412echo "${ECHO_T}yes" >&6
5413 else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416 fi
5417
5418
5419 enablestring=
5420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5421echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5422 no_cache=0
5423 # Check whether --enable-longlong or --disable-longlong was given.
5424if test "${enable_longlong+set}" = set; then
5425 enableval="$enable_longlong"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5429 else
5430 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5443
5444fi;
5445
5446 eval "$ac_cv_use_longlong"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_LONGLONG" = yes; then
5452 echo "$as_me:$LINENO: result: yes" >&5
5453echo "${ECHO_T}yes" >&6
5454 else
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457 fi
5458
5459
5460 enablestring=
5461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5462echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5463 no_cache=0
5464 # Check whether --enable-mimetype or --disable-mimetype was given.
5465if test "${enable_mimetype+set}" = set; then
5466 enableval="$enable_mimetype"
5467
5468 if test "$enableval" = yes; then
5469 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5470 else
5471 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5472 fi
5473
5474else
5475
5476 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5484
5485fi;
5486
5487 eval "$ac_cv_use_mimetype"
5488 if test "$no_cache" != 1; then
5489 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5490 fi
5491
5492 if test "$wxUSE_MIMETYPE" = yes; then
5493 echo "$as_me:$LINENO: result: yes" >&5
5494echo "${ECHO_T}yes" >&6
5495 else
5496 echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
5498 fi
5499
5500
5501 enablestring=
5502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5503echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5504 no_cache=0
5505 # Check whether --enable-mslu or --disable-mslu was given.
5506if test "${enable_mslu+set}" = set; then
5507 enableval="$enable_mslu"
5508
5509 if test "$enableval" = yes; then
5510 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5511 else
5512 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5513 fi
5514
5515else
5516
5517 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
5524 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5525
5526fi;
5527
5528 eval "$ac_cv_use_mslu"
5529 if test "$no_cache" != 1; then
5530 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5531 fi
5532
5533 if test "$wxUSE_UNICODE_MSLU" = yes; then
5534 echo "$as_me:$LINENO: result: yes" >&5
5535echo "${ECHO_T}yes" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
5539 fi
5540
5541
5542 enablestring=
5543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5544echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5545 no_cache=0
5546 # Check whether --enable-snglinst or --disable-snglinst was given.
5547if test "${enable_snglinst+set}" = set; then
5548 enableval="$enable_snglinst"
5549
5550 if test "$enableval" = yes; then
5551 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5552 else
5553 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5554 fi
5555
5556else
5557
5558 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5566
5567fi;
5568
5569 eval "$ac_cv_use_snglinst"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5575 echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580 fi
5581
5582
5583 enablestring=
07158944
VZ
5584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5585echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5586 no_cache=0
07158944
VZ
5587 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5588if test "${enable_std_iostreams+set}" = set; then
5589 enableval="$enable_std_iostreams"
a848cd7e
SC
5590
5591 if test "$enableval" = yes; then
07158944 5592 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5593 else
07158944 5594 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5595 fi
5596
5597else
5598
07158944 5599 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
07158944 5606 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5607
5608fi;
5609
07158944 5610 eval "$ac_cv_use_std_iostreams"
a848cd7e 5611 if test "$no_cache" != 1; then
07158944 5612 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5613 fi
5614
07158944 5615 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5616 echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
5618 else
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
5621 fi
5622
5623
59746b65
MW
5624 enablestring=
5625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5626echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5627 no_cache=0
5628 # Check whether --enable-std_string or --disable-std_string was given.
5629if test "${enable_std_string+set}" = set; then
5630 enableval="$enable_std_string"
5631
5632 if test "$enableval" = yes; then
5633 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5634 else
5635 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5636 fi
5637
5638else
5639
5640 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5641 if test "x$LINE" != x ; then
5642 eval "DEFAULT_$LINE"
5643 else
5644 no_cache=1
5645 fi
5646
5647 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5648
5649fi;
5650
5651 eval "$ac_cv_use_std_string"
5652 if test "$no_cache" != 1; then
5653 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5654 fi
5655
5656 if test "$wxUSE_STD_STRING" = yes; then
5657 echo "$as_me:$LINENO: result: yes" >&5
5658echo "${ECHO_T}yes" >&6
5659 else
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662 fi
5663
5664
a848cd7e 5665 enablestring=
07158944
VZ
5666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5667echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5668 no_cache=0
07158944
VZ
5669 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5670if test "${enable_stdpaths+set}" = set; then
5671 enableval="$enable_stdpaths"
a848cd7e
SC
5672
5673 if test "$enableval" = yes; then
07158944 5674 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5675 else
07158944 5676 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5677 fi
5678
5679else
5680
07158944 5681 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
07158944 5688 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5689
5690fi;
5691
07158944 5692 eval "$ac_cv_use_stdpaths"
a848cd7e 5693 if test "$no_cache" != 1; then
07158944 5694 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5695 fi
5696
07158944 5697 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5698 echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6
5700 else
5701 echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
5703 fi
5704
5705
5706 enablestring=
5707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5708echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5709 no_cache=0
5710 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5711if test "${enable_stopwatch+set}" = set; then
5712 enableval="$enable_stopwatch"
5713
5714 if test "$enableval" = yes; then
5715 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5716 else
5717 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5718 fi
5719
5720else
5721
5722 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5730
5731fi;
5732
5733 eval "$ac_cv_use_stopwatch"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_STOPWATCH" = yes; then
5739 echo "$as_me:$LINENO: result: yes" >&5
5740echo "${ECHO_T}yes" >&6
5741 else
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744 fi
5745
5746
07158944
VZ
5747 enablestring=
5748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5749echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5750 no_cache=0
5751 # Check whether --enable-streams or --disable-streams was given.
5752if test "${enable_streams+set}" = set; then
5753 enableval="$enable_streams"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_streams='wxUSE_STREAMS=yes'
5757 else
5758 ac_cv_use_streams='wxUSE_STREAMS=no'
5759 fi
5760
5761else
5762
5763 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5771
5772fi;
5773
5774 eval "$ac_cv_use_streams"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_STREAMS" = yes; then
5780 echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6
5782 else
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785 fi
5786
5787
a848cd7e
SC
5788 enablestring=
5789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5790echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5791 no_cache=0
5792 # Check whether --enable-system_options or --disable-system_options was given.
5793if test "${enable_system_options+set}" = set; then
5794 enableval="$enable_system_options"
5795
5796 if test "$enableval" = yes; then
5797 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5798 else
5799 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5800 fi
5801
5802else
5803
5804 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5812
5813fi;
5814
5815 eval "$ac_cv_use_system_options"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5821 echo "$as_me:$LINENO: result: yes" >&5
5822echo "${ECHO_T}yes" >&6
5823 else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826 fi
5827
5828
5829 enablestring=
5830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5831echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5832 no_cache=0
5833 # Check whether --enable-textbuf or --disable-textbuf was given.
5834if test "${enable_textbuf+set}" = set; then
5835 enableval="$enable_textbuf"
5836
5837 if test "$enableval" = yes; then
5838 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5839 else
5840 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5841 fi
5842
5843else
5844
5845 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5846 if test "x$LINE" != x ; then
5847 eval "DEFAULT_$LINE"
5848 else
5849 no_cache=1
5850 fi
5851
5852 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5853
5854fi;
5855
5856 eval "$ac_cv_use_textbuf"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_TEXTBUFFER" = yes; then
5862 echo "$as_me:$LINENO: result: yes" >&5
5863echo "${ECHO_T}yes" >&6
5864 else
5865 echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867 fi
5868
5869
5870 enablestring=
5871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5872echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5873 no_cache=0
5874 # Check whether --enable-textfile or --disable-textfile was given.
5875if test "${enable_textfile+set}" = set; then
5876 enableval="$enable_textfile"
5877
5878 if test "$enableval" = yes; then
5879 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5880 else
5881 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5882 fi
5883
5884else
5885
5886 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5887 if test "x$LINE" != x ; then
5888 eval "DEFAULT_$LINE"
5889 else
5890 no_cache=1
5891 fi
5892
5893 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5894
5895fi;
5896
5897 eval "$ac_cv_use_textfile"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_TEXTFILE" = yes; then
5903 echo "$as_me:$LINENO: result: yes" >&5
5904echo "${ECHO_T}yes" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908 fi
5909
5910
5911 enablestring=
5912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5913echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5914 no_cache=0
5915 # Check whether --enable-timer or --disable-timer was given.
5916if test "${enable_timer+set}" = set; then
5917 enableval="$enable_timer"
5918
5919 if test "$enableval" = yes; then
5920 ac_cv_use_timer='wxUSE_TIMER=yes'
5921 else
5922 ac_cv_use_timer='wxUSE_TIMER=no'
5923 fi
5924
5925else
5926
5927 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5928 if test "x$LINE" != x ; then
5929 eval "DEFAULT_$LINE"
5930 else
5931 no_cache=1
5932 fi
5933
5934 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5935
5936fi;
5937
5938 eval "$ac_cv_use_timer"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_TIMER" = yes; then
5944 echo "$as_me:$LINENO: result: yes" >&5
5945echo "${ECHO_T}yes" >&6
5946 else
5947 echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949 fi
5950
5951
5952 enablestring=
5953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5954echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5955 no_cache=0
5956 # Check whether --enable-unicode or --disable-unicode was given.
5957if test "${enable_unicode+set}" = set; then
5958 enableval="$enable_unicode"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5962 else
5963 ac_cv_use_unicode='wxUSE_UNICODE=no'
5964 fi
5965
5966else
5967
5968 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5976
5977fi;
5978
5979 eval "$ac_cv_use_unicode"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_UNICODE" = yes; then
5985 echo "$as_me:$LINENO: result: yes" >&5
5986echo "${ECHO_T}yes" >&6
5987 else
5988 echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990 fi
5991
5992
5993 enablestring=
5994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5995echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5996 no_cache=0
5997 # Check whether --enable-sound or --disable-sound was given.
5998if test "${enable_sound+set}" = set; then
5999 enableval="$enable_sound"
6000
6001 if test "$enableval" = yes; then
6002 ac_cv_use_sound='wxUSE_SOUND=yes'
6003 else
6004 ac_cv_use_sound='wxUSE_SOUND=no'
6005 fi
6006
6007else
6008
6009 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6010 if test "x$LINE" != x ; then
6011 eval "DEFAULT_$LINE"
6012 else
6013 no_cache=1
6014 fi
6015
6016 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6017
6018fi;
6019
6020 eval "$ac_cv_use_sound"
6021 if test "$no_cache" != 1; then
6022 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6023 fi
6024
6025 if test "$wxUSE_SOUND" = yes; then
6026 echo "$as_me:$LINENO: result: yes" >&5
6027echo "${ECHO_T}yes" >&6
6028 else
6029 echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6
6031 fi
6032
6033
3b57de8b
RL
6034 enablestring=
6035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6036echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6037 no_cache=0
6038 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6039if test "${enable_mediactrl+set}" = set; then
6040 enableval="$enable_mediactrl"
6041
6042 if test "$enableval" = yes; then
6043 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6044 else
6045 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6046 fi
6047
6048else
6049
6050 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6051 if test "x$LINE" != x ; then
6052 eval "DEFAULT_$LINE"
6053 else
6054 no_cache=1
6055 fi
6056
6057 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6058
6059fi;
6060
6061 eval "$ac_cv_use_mediactrl"
6062 if test "$no_cache" != 1; then
6063 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6064 fi
6065
6066 if test "$wxUSE_MEDIACTRL" = yes; then
6067 echo "$as_me:$LINENO: result: yes" >&5
6068echo "${ECHO_T}yes" >&6
6069 else
6070 echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6
6072 fi
6073
6074
a848cd7e
SC
6075 enablestring=
6076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6077echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6078 no_cache=0
6079 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6080if test "${enable_wxprintfv+set}" = set; then
6081 enableval="$enable_wxprintfv"
6082
6083 if test "$enableval" = yes; then
6084 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6085 else
6086 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6087 fi
6088
6089else
6090
6091 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6092 if test "x$LINE" != x ; then
6093 eval "DEFAULT_$LINE"
6094 else
6095 no_cache=1
6096 fi
6097
6098 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6099
6100fi;
6101
6102 eval "$ac_cv_use_wxprintfv"
6103 if test "$no_cache" != 1; then
6104 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6105 fi
6106
6107 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6108 echo "$as_me:$LINENO: result: yes" >&5
6109echo "${ECHO_T}yes" >&6
6110 else
6111 echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6
6113 fi
6114
6115
6116 enablestring=
6117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6118echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6119 no_cache=0
6120 # Check whether --enable-zipstream or --disable-zipstream was given.
6121if test "${enable_zipstream+set}" = set; then
6122 enableval="$enable_zipstream"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6126 else
6127 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6128 fi
6129
6130else
6131
6132 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6140
6141fi;
6142
6143 eval "$ac_cv_use_zipstream"
6144 if test "$no_cache" != 1; then
6145 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6146 fi
6147
6148 if test "$wxUSE_ZIPSTREAM" = yes; then
6149 echo "$as_me:$LINENO: result: yes" >&5
6150echo "${ECHO_T}yes" >&6
6151 else
6152 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6
6154 fi
6155
6156
a848cd7e
SC
6157
6158 enablestring=
6159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6160echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6161 no_cache=0
6162 # Check whether --enable-url or --disable-url was given.
6163if test "${enable_url+set}" = set; then
6164 enableval="$enable_url"
6165
6166 if test "$enableval" = yes; then
6167 ac_cv_use_url='wxUSE_URL=yes'
6168 else
6169 ac_cv_use_url='wxUSE_URL=no'
6170 fi
6171
6172else
6173
6174 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6175 if test "x$LINE" != x ; then
6176 eval "DEFAULT_$LINE"
6177 else
6178 no_cache=1
6179 fi
6180
6181 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6182
6183fi;
6184
6185 eval "$ac_cv_use_url"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_URL" = yes; then
6191 echo "$as_me:$LINENO: result: yes" >&5
6192echo "${ECHO_T}yes" >&6
6193 else
6194 echo "$as_me:$LINENO: result: no" >&5
6195echo "${ECHO_T}no" >&6
6196 fi
6197
6198
6199 enablestring=
6200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6201echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6202 no_cache=0
6203 # Check whether --enable-protocol or --disable-protocol was given.
6204if test "${enable_protocol+set}" = set; then
6205 enableval="$enable_protocol"
6206
6207 if test "$enableval" = yes; then
6208 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6209 else
6210 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6211 fi
6212
6213else
6214
6215 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6216 if test "x$LINE" != x ; then
6217 eval "DEFAULT_$LINE"
6218 else
6219 no_cache=1
6220 fi
6221
6222 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6223
6224fi;
6225
6226 eval "$ac_cv_use_protocol"
6227 if test "$no_cache" != 1; then
6228 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6229 fi
6230
6231 if test "$wxUSE_PROTOCOL" = yes; then
6232 echo "$as_me:$LINENO: result: yes" >&5
6233echo "${ECHO_T}yes" >&6
6234 else
6235 echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6
6237 fi
6238
6239
6240 enablestring=
6241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6242echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6243 no_cache=0
6244 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6245if test "${enable_protocol_http+set}" = set; then
6246 enableval="$enable_protocol_http"
6247
6248 if test "$enableval" = yes; then
6249 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6250 else
6251 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6252 fi
6253
6254else
6255
6256 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
6263 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6264
6265fi;
6266
6267 eval "$ac_cv_use_protocol_http"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6273 echo "$as_me:$LINENO: result: yes" >&5
6274echo "${ECHO_T}yes" >&6
6275 else
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278 fi
6279
6280
6281 enablestring=
6282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6283echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6284 no_cache=0
6285 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6286if test "${enable_protocol_ftp+set}" = set; then
6287 enableval="$enable_protocol_ftp"
6288
6289 if test "$enableval" = yes; then
6290 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6291 else
6292 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6293 fi
6294
6295else
6296
6297 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6298 if test "x$LINE" != x ; then
6299 eval "DEFAULT_$LINE"
6300 else
6301 no_cache=1
6302 fi
6303
6304 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6305
6306fi;
6307
6308 eval "$ac_cv_use_protocol_ftp"
6309 if test "$no_cache" != 1; then
6310 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6311 fi
6312
6313 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6314 echo "$as_me:$LINENO: result: yes" >&5
6315echo "${ECHO_T}yes" >&6
6316 else
6317 echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319 fi
6320
6321
6322 enablestring=
6323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6324echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6325 no_cache=0
6326 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6327if test "${enable_protocol_file+set}" = set; then
6328 enableval="$enable_protocol_file"
6329
6330 if test "$enableval" = yes; then
6331 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6332 else
6333 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6334 fi
6335
6336else
6337
6338 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6346
6347fi;
6348
6349 eval "$ac_cv_use_protocol_file"
6350 if test "$no_cache" != 1; then
6351 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6352 fi
6353
6354 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6355 echo "$as_me:$LINENO: result: yes" >&5
6356echo "${ECHO_T}yes" >&6
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360 fi
6361
6362
6363
6364
6365
6366 enablestring=
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6369 no_cache=0
6370 # Check whether --enable-threads or --disable-threads was given.
6371if test "${enable_threads+set}" = set; then
6372 enableval="$enable_threads"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_threads='wxUSE_THREADS=yes'
6376 else
6377 ac_cv_use_threads='wxUSE_THREADS=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6390
6391fi;
6392
6393 eval "$ac_cv_use_threads"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_THREADS" = yes; then
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
6401 else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404 fi
6405
6406
6407if test "$wxUSE_GUI" = "yes"; then
6408
6409
6410
6411 enablestring=
6412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6413echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6414 no_cache=0
6415 # Check whether --enable-docview or --disable-docview was given.
6416if test "${enable_docview+set}" = set; then
6417 enableval="$enable_docview"
6418
6419 if test "$enableval" = yes; then
6420 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6421 else
6422 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6423 fi
6424
6425else
6426
6427 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6435
6436fi;
6437
6438 eval "$ac_cv_use_docview"
6439 if test "$no_cache" != 1; then
6440 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6441 fi
6442
6443 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6444 echo "$as_me:$LINENO: result: yes" >&5
6445echo "${ECHO_T}yes" >&6
6446 else
6447 echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6
6449 fi
6450
6451
6452 enablestring=
6453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6454echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6455 no_cache=0
6456 # Check whether --enable-help or --disable-help was given.
6457if test "${enable_help+set}" = set; then
6458 enableval="$enable_help"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_help='wxUSE_HELP=yes'
6462 else
6463 ac_cv_use_help='wxUSE_HELP=no'
6464 fi
6465
6466else
6467
6468 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6476
6477fi;
6478
6479 eval "$ac_cv_use_help"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_HELP" = yes; then
6485 echo "$as_me:$LINENO: result: yes" >&5
6486echo "${ECHO_T}yes" >&6
6487 else
6488 echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
6490 fi
6491
6492
6493 enablestring=
6494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6495echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6496 no_cache=0
6497 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6498if test "${enable_mshtmlhelp+set}" = set; then
6499 enableval="$enable_mshtmlhelp"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6503 else
6504 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6505 fi
6506
6507else
6508
6509 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6517
6518fi;
6519
6520 eval "$ac_cv_use_mshtmlhelp"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_MS_HTML_HELP" = yes; then
6526 echo "$as_me:$LINENO: result: yes" >&5
6527echo "${ECHO_T}yes" >&6
6528 else
6529 echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6
6531 fi
6532
6533
6534 enablestring=
6535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6536echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6537 no_cache=0
6538 # Check whether --enable-html or --disable-html was given.
6539if test "${enable_html+set}" = set; then
6540 enableval="$enable_html"
6541
6542 if test "$enableval" = yes; then
6543 ac_cv_use_html='wxUSE_HTML=yes'
6544 else
6545 ac_cv_use_html='wxUSE_HTML=no'
6546 fi
6547
6548else
6549
6550 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6551 if test "x$LINE" != x ; then
6552 eval "DEFAULT_$LINE"
6553 else
6554 no_cache=1
6555 fi
6556
6557 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6558
6559fi;
6560
6561 eval "$ac_cv_use_html"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_HTML" = yes; then
6567 echo "$as_me:$LINENO: result: yes" >&5
6568echo "${ECHO_T}yes" >&6
6569 else
6570 echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6
6572 fi
6573
6574
6575 enablestring=
6576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6577echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6578 no_cache=0
6579 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6580if test "${enable_htmlhelp+set}" = set; then
6581 enableval="$enable_htmlhelp"
6582
6583 if test "$enableval" = yes; then
6584 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6585 else
6586 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6587 fi
6588
6589else
6590
6591 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6599
6600fi;
6601
6602 eval "$ac_cv_use_htmlhelp"
6603 if test "$no_cache" != 1; then
6604 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6605 fi
6606
6607 if test "$wxUSE_WXHTML_HELP" = yes; then
6608 echo "$as_me:$LINENO: result: yes" >&5
6609echo "${ECHO_T}yes" >&6
6610 else
6611 echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
6613 fi
6614
6615
9a8f0513
VS
6616 enablestring=
6617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6618echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6619 no_cache=0
6620 # Check whether --enable-xrc or --disable-xrc was given.
6621if test "${enable_xrc+set}" = set; then
6622 enableval="$enable_xrc"
6623
6624 if test "$enableval" = yes; then
6625 ac_cv_use_xrc='wxUSE_XRC=yes'
6626 else
6627 ac_cv_use_xrc='wxUSE_XRC=no'
6628 fi
6629
6630else
6631
6632 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6640
6641fi;
6642
6643 eval "$ac_cv_use_xrc"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_XRC" = yes; then
6649 echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6
6651 else
6652 echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6
6654 fi
6655
6656
a848cd7e
SC
6657 enablestring=
6658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6659echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6660 no_cache=0
6661 # Check whether --enable-constraints or --disable-constraints was given.
6662if test "${enable_constraints+set}" = set; then
6663 enableval="$enable_constraints"
6664
6665 if test "$enableval" = yes; then
6666 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6667 else
6668 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6669 fi
6670
6671else
6672
6673 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6681
6682fi;
6683
6684 eval "$ac_cv_use_constraints"
6685 if test "$no_cache" != 1; then
6686 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6687 fi
6688
6689 if test "$wxUSE_CONSTRAINTS" = yes; then
6690 echo "$as_me:$LINENO: result: yes" >&5
6691echo "${ECHO_T}yes" >&6
6692 else
6693 echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6
6695 fi
6696
6697
6698 enablestring=
6699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6700echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6701 no_cache=0
6702 # Check whether --enable-printarch or --disable-printarch was given.
6703if test "${enable_printarch+set}" = set; then
6704 enableval="$enable_printarch"
6705
6706 if test "$enableval" = yes; then
6707 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6708 else
6709 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6710 fi
6711
6712else
6713
6714 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6722
6723fi;
6724
6725 eval "$ac_cv_use_printarch"
6726 if test "$no_cache" != 1; then
6727 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6728 fi
6729
6730 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6731 echo "$as_me:$LINENO: result: yes" >&5
6732echo "${ECHO_T}yes" >&6
6733 else
6734 echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6
6736 fi
6737
6738
6739 enablestring=
6740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6741echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6742 no_cache=0
6743 # Check whether --enable-mdi or --disable-mdi was given.
6744if test "${enable_mdi+set}" = set; then
6745 enableval="$enable_mdi"
6746
6747 if test "$enableval" = yes; then
8a7b1113 6748 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6749 else
8a7b1113 6750 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6751 fi
6752
6753else
6754
8a7b1113 6755 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6756 if test "x$LINE" != x ; then
6757 eval "DEFAULT_$LINE"
6758 else
6759 no_cache=1
6760 fi
6761
8a7b1113 6762 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6763
6764fi;
6765
6766 eval "$ac_cv_use_mdi"
6767 if test "$no_cache" != 1; then
6768 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6769 fi
6770
8a7b1113
VZ
6771 if test "$wxUSE_MDI" = yes; then
6772 echo "$as_me:$LINENO: result: yes" >&5
6773echo "${ECHO_T}yes" >&6
6774 else
6775 echo "$as_me:$LINENO: result: no" >&5
6776echo "${ECHO_T}no" >&6
6777 fi
6778
6779
6780 enablestring=
6781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6782echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6783 no_cache=0
6784 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6785if test "${enable_mdidoc+set}" = set; then
6786 enableval="$enable_mdidoc"
6787
6788 if test "$enableval" = yes; then
6789 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6790 else
6791 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6792 fi
6793
6794else
6795
6796 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6797 if test "x$LINE" != x ; then
6798 eval "DEFAULT_$LINE"
6799 else
6800 no_cache=1
6801 fi
6802
6803 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6804
6805fi;
6806
6807 eval "$ac_cv_use_mdidoc"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6810 fi
6811
a848cd7e
SC
6812 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6813 echo "$as_me:$LINENO: result: yes" >&5
6814echo "${ECHO_T}yes" >&6
6815 else
6816 echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6
6818 fi
6819
6820
6821 enablestring=
6822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6823echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6824 no_cache=0
6825 # Check whether --enable-loggui or --disable-loggui was given.
6826if test "${enable_loggui+set}" = set; then
6827 enableval="$enable_loggui"
6828
6829 if test "$enableval" = yes; then
6830 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6831 else
6832 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6833 fi
6834
6835else
6836
6837 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6845
6846fi;
6847
6848 eval "$ac_cv_use_loggui"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_LOGGUI" = yes; then
6854 echo "$as_me:$LINENO: result: yes" >&5
6855echo "${ECHO_T}yes" >&6
6856 else
6857 echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
6859 fi
6860
6861
6862 enablestring=
6863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6864echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6865 no_cache=0
6866 # Check whether --enable-logwin or --disable-logwin was given.
6867if test "${enable_logwin+set}" = set; then
6868 enableval="$enable_logwin"
6869
6870 if test "$enableval" = yes; then
6871 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6872 else
6873 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6874 fi
6875
6876else
6877
6878 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6879 if test "x$LINE" != x ; then
6880 eval "DEFAULT_$LINE"
6881 else
6882 no_cache=1
6883 fi
6884
6885 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6886
6887fi;
6888
6889 eval "$ac_cv_use_logwin"
6890 if test "$no_cache" != 1; then
6891 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6892 fi
6893
6894 if test "$wxUSE_LOGWINDOW" = yes; then
6895 echo "$as_me:$LINENO: result: yes" >&5
6896echo "${ECHO_T}yes" >&6
6897 else
6898 echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
6900 fi
6901
6902
6903 enablestring=
6904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6905echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6906 no_cache=0
6907 # Check whether --enable-logdialog or --disable-logdialog was given.
6908if test "${enable_logdialog+set}" = set; then
6909 enableval="$enable_logdialog"
6910
6911 if test "$enableval" = yes; then
6912 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6913 else
6914 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6915 fi
6916
6917else
6918
6919 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6920 if test "x$LINE" != x ; then
6921 eval "DEFAULT_$LINE"
6922 else
6923 no_cache=1
6924 fi
6925
6926 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6927
6928fi;
6929
6930 eval "$ac_cv_use_logdialog"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_LOGDIALOG" = yes; then
6936 echo "$as_me:$LINENO: result: yes" >&5
6937echo "${ECHO_T}yes" >&6
6938 else
6939 echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6
6941 fi
6942
6943
646b6ec1
VS
6944 enablestring=
6945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6946echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6947 no_cache=0
6948 # Check whether --enable-webkit or --disable-webkit was given.
6949if test "${enable_webkit+set}" = set; then
6950 enableval="$enable_webkit"
6951
6952 if test "$enableval" = yes; then
6953 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6954 else
6955 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6956 fi
6957
6958else
6959
6960 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
6967 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6968
6969fi;
6970
6971 eval "$ac_cv_use_webkit"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_WEBKIT" = yes; then
6977 echo "$as_me:$LINENO: result: yes" >&5
6978echo "${ECHO_T}yes" >&6
6979 else
6980 echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6
6982 fi
6983
6984
a848cd7e
SC
6985
6986 enablestring=
6987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6988echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6989 no_cache=0
6990 # Check whether --enable-postscript or --disable-postscript was given.
6991if test "${enable_postscript+set}" = set; then
6992 enableval="$enable_postscript"
6993
6994 if test "$enableval" = yes; then
6995 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6996 else
6997 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6998 fi
6999
7000else
7001
7002 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7003 if test "x$LINE" != x ; then
7004 eval "DEFAULT_$LINE"
7005 else
7006 no_cache=1
7007 fi
7008
7009 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7010
7011fi;
7012
7013 eval "$ac_cv_use_postscript"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_POSTSCRIPT" = yes; then
7019 echo "$as_me:$LINENO: result: yes" >&5
7020echo "${ECHO_T}yes" >&6
7021 else
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
7024 fi
7025
7026
7027
7028
7029
7030 enablestring=
7031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7032echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7033 no_cache=0
7034 # Check whether --enable-prologio or --disable-prologio was given.
7035if test "${enable_prologio+set}" = set; then
7036 enableval="$enable_prologio"
7037
7038 if test "$enableval" = yes; then
7039 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7040 else
7041 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7042 fi
7043
7044else
7045
7046 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7054
7055fi;
7056
7057 eval "$ac_cv_use_prologio"
7058 if test "$no_cache" != 1; then
7059 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7060 fi
7061
7062 if test "$wxUSE_PROLOGIO" = yes; then
7063 echo "$as_me:$LINENO: result: yes" >&5
7064echo "${ECHO_T}yes" >&6
7065 else
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
7068 fi
7069
7070
7071 enablestring=
7072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7073echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7074 no_cache=0
7075 # Check whether --enable-resources or --disable-resources was given.
7076if test "${enable_resources+set}" = set; then
7077 enableval="$enable_resources"
7078
7079 if test "$enableval" = yes; then
7080 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7081 else
7082 ac_cv_use_resources='wxUSE_RESOURCES=no'
7083 fi
7084
7085else
7086
7087 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7088 if test "x$LINE" != x ; then
7089 eval "DEFAULT_$LINE"
7090 else
7091 no_cache=1
7092 fi
7093
7094 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7095
7096fi;
7097
7098 eval "$ac_cv_use_resources"
7099 if test "$no_cache" != 1; then
7100 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7101 fi
7102
7103 if test "$wxUSE_RESOURCES" = yes; then
7104 echo "$as_me:$LINENO: result: yes" >&5
7105echo "${ECHO_T}yes" >&6
7106 else
7107 echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
7109 fi
7110
7111
7112
7113
7114 enablestring=
7115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7116echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7117 no_cache=0
7118 # Check whether --enable-clipboard or --disable-clipboard was given.
7119if test "${enable_clipboard+set}" = set; then
7120 enableval="$enable_clipboard"
7121
7122 if test "$enableval" = yes; then
7123 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7124 else
7125 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7126 fi
7127
7128else
7129
7130 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7138
7139fi;
7140
7141 eval "$ac_cv_use_clipboard"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_CLIPBOARD" = yes; then
7147 echo "$as_me:$LINENO: result: yes" >&5
7148echo "${ECHO_T}yes" >&6
7149 else
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
7152 fi
7153
7154
7155 enablestring=
7156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7157echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7158 no_cache=0
7159 # Check whether --enable-dnd or --disable-dnd was given.
7160if test "${enable_dnd+set}" = set; then
7161 enableval="$enable_dnd"
7162
7163 if test "$enableval" = yes; then
7164 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7165 else
7166 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7167 fi
7168
7169else
7170
7171 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7179
7180fi;
7181
7182 eval "$ac_cv_use_dnd"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7188 echo "$as_me:$LINENO: result: yes" >&5
7189echo "${ECHO_T}yes" >&6
7190 else
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
7193 fi
7194
7195
7196 enablestring=
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7199 no_cache=0
7200 # Check whether --enable-metafile or --disable-metafile was given.
7201if test "${enable_metafile+set}" = set; then
7202 enableval="$enable_metafile"
7203
7204 if test "$enableval" = yes; then
7205 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7206 else
7207 ac_cv_use_metafile='wxUSE_METAFILE=no'
7208 fi
7209
7210else
7211
7212 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7220
7221fi;
7222
7223 eval "$ac_cv_use_metafile"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_METAFILE" = yes; then
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
7231 else
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
7234 fi
7235
7236
7237
7238
7239
7240 enablestring=
7241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7242echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7243 no_cache=0
7244 # Check whether --enable-controls or --disable-controls was given.
7245if test "${enable_controls+set}" = set; then
7246 enableval="$enable_controls"
7247
7248 if test "$enableval" = yes; then
7249 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7250 else
7251 ac_cv_use_controls='wxUSE_CONTROLS=no'
7252 fi
7253
7254else
7255
7256 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7264
7265fi;
7266
7267 eval "$ac_cv_use_controls"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_CONTROLS" = yes; then
7273 echo "$as_me:$LINENO: result: yes" >&5
7274echo "${ECHO_T}yes" >&6
7275 else
7276 echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6
7278 fi
7279
7280
7281if test "$wxUSE_CONTROLS" = "yes"; then
7282 DEFAULT_wxUSE_ACCEL=yes
7283 DEFAULT_wxUSE_BMPBUTTON=yes
7284 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7285 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7286 DEFAULT_wxUSE_CARET=yes
7287 DEFAULT_wxUSE_COMBOBOX=yes
7288 DEFAULT_wxUSE_CHECKBOX=yes
7289 DEFAULT_wxUSE_CHECKLISTBOX=yes
7290 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7291 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7292 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7293 DEFAULT_wxUSE_GAUGE=yes
7294 DEFAULT_wxUSE_GRID=yes
7295 DEFAULT_wxUSE_IMAGLIST=yes
7296 DEFAULT_wxUSE_LISTBOOK=yes
7297 DEFAULT_wxUSE_LISTBOX=yes
7298 DEFAULT_wxUSE_LISTCTRL=yes
7299 DEFAULT_wxUSE_NOTEBOOK=yes
7300 DEFAULT_wxUSE_RADIOBOX=yes
7301 DEFAULT_wxUSE_RADIOBTN=yes
7302 DEFAULT_wxUSE_SASH=yes
7303 DEFAULT_wxUSE_SCROLLBAR=yes
7304 DEFAULT_wxUSE_SLIDER=yes
7305 DEFAULT_wxUSE_SPINBTN=yes
7306 DEFAULT_wxUSE_SPINCTRL=yes
7307 DEFAULT_wxUSE_SPLITTER=yes
7308 DEFAULT_wxUSE_STATBMP=yes
7309 DEFAULT_wxUSE_STATBOX=yes
7310 DEFAULT_wxUSE_STATLINE=yes
7311 DEFAULT_wxUSE_STATUSBAR=yes
7312 DEFAULT_wxUSE_TAB_DIALOG=yes
7313 DEFAULT_wxUSE_TOGGLEBTN=yes
7314 DEFAULT_wxUSE_TOOLBAR=yes
7315 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7316 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7317 DEFAULT_wxUSE_TOOLTIPS=yes
7318 DEFAULT_wxUSE_TREECTRL=yes
7319 DEFAULT_wxUSE_POPUPWIN=yes
7320 DEFAULT_wxUSE_TIPWINDOW=yes
7321elif test "$wxUSE_CONTROLS" = "no"; then
7322 DEFAULT_wxUSE_ACCEL=no
7323 DEFAULT_wxUSE_BMPBUTTON=no
7324 DEFAULT_wxUSE_BUTTON=no
7325 DEFAULT_wxUSE_CALCTRL=no
7326 DEFAULT_wxUSE_CARET=no
7327 DEFAULT_wxUSE_COMBOBOX=no
7328 DEFAULT_wxUSE_CHECKBOX=no
7329 DEFAULT_wxUSE_CHECKLISTBOX=no
7330 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7331 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7332 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7333 DEFAULT_wxUSE_GAUGE=no
7334 DEFAULT_wxUSE_GRID=no
7335 DEFAULT_wxUSE_IMAGLIST=no
7336 DEFAULT_wxUSE_LISTBOOK=no
7337 DEFAULT_wxUSE_LISTBOX=no
7338 DEFAULT_wxUSE_LISTCTRL=no
7339 DEFAULT_wxUSE_NOTEBOOK=no
7340 DEFAULT_wxUSE_RADIOBOX=no
7341 DEFAULT_wxUSE_RADIOBTN=no
7342 DEFAULT_wxUSE_SASH=no
7343 DEFAULT_wxUSE_SCROLLBAR=no
7344 DEFAULT_wxUSE_SLIDER=no
7345 DEFAULT_wxUSE_SPINBTN=no
7346 DEFAULT_wxUSE_SPINCTRL=no
7347 DEFAULT_wxUSE_SPLITTER=no
7348 DEFAULT_wxUSE_STATBMP=no
7349 DEFAULT_wxUSE_STATBOX=no
7350 DEFAULT_wxUSE_STATLINE=no
7351 DEFAULT_wxUSE_STATUSBAR=no
7352 DEFAULT_wxUSE_TAB_DIALOG=no
7353 DEFAULT_wxUSE_TOGGLEBTN=no
7354 DEFAULT_wxUSE_TOOLBAR=no
7355 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7356 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7357 DEFAULT_wxUSE_TOOLTIPS=no
7358 DEFAULT_wxUSE_TREECTRL=no
7359 DEFAULT_wxUSE_POPUPWIN=no
7360 DEFAULT_wxUSE_TIPWINDOW=no
7361fi
7362
a848cd7e
SC
7363
7364 enablestring=
7365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7366echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7367 no_cache=0
7368 # Check whether --enable-accel or --disable-accel was given.
7369if test "${enable_accel+set}" = set; then
7370 enableval="$enable_accel"
7371
7372 if test "$enableval" = yes; then
7373 ac_cv_use_accel='wxUSE_ACCEL=yes'
7374 else
7375 ac_cv_use_accel='wxUSE_ACCEL=no'
7376 fi
7377
7378else
7379
7380 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7381 if test "x$LINE" != x ; then
7382 eval "DEFAULT_$LINE"
7383 else
7384 no_cache=1
7385 fi
7386
7387 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7388
7389fi;
7390
7391 eval "$ac_cv_use_accel"
7392 if test "$no_cache" != 1; then
7393 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7394 fi
7395
7396 if test "$wxUSE_ACCEL" = yes; then
7397 echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6
7399 else
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
7402 fi
7403
7404
7405 enablestring=
7406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7407echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7408 no_cache=0
7409 # Check whether --enable-button or --disable-button was given.
7410if test "${enable_button+set}" = set; then
7411 enableval="$enable_button"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_button='wxUSE_BUTTON=yes'
7415 else
7416 ac_cv_use_button='wxUSE_BUTTON=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7429
7430fi;
7431
7432 eval "$ac_cv_use_button"
7433 if test "$no_cache" != 1; then
7434 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7435 fi
7436
7437 if test "$wxUSE_BUTTON" = yes; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439echo "${ECHO_T}yes" >&6
7440 else
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
7443 fi
7444
7445
7446 enablestring=
7447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7448echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7449 no_cache=0
7450 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7451if test "${enable_bmpbutton+set}" = set; then
7452 enableval="$enable_bmpbutton"
7453
7454 if test "$enableval" = yes; then
7455 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7456 else
7457 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7458 fi
7459
7460else
7461
7462 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7463 if test "x$LINE" != x ; then
7464 eval "DEFAULT_$LINE"
7465 else
7466 no_cache=1
7467 fi
7468
7469 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7470
7471fi;
7472
7473 eval "$ac_cv_use_bmpbutton"
7474 if test "$no_cache" != 1; then
7475 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7476 fi
7477
7478 if test "$wxUSE_BMPBUTTON" = yes; then
7479 echo "$as_me:$LINENO: result: yes" >&5
7480echo "${ECHO_T}yes" >&6
7481 else
7482 echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484 fi
7485
7486
7487 enablestring=
7488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7489echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7490 no_cache=0
7491 # Check whether --enable-calendar or --disable-calendar was given.
7492if test "${enable_calendar+set}" = set; then
7493 enableval="$enable_calendar"
7494
7495 if test "$enableval" = yes; then
7496 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7497 else
7498 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7499 fi
7500
7501else
7502
7503 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7504 if test "x$LINE" != x ; then
7505 eval "DEFAULT_$LINE"
7506 else
7507 no_cache=1
7508 fi
7509
7510 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7511
7512fi;
7513
7514 eval "$ac_cv_use_calendar"
7515 if test "$no_cache" != 1; then
7516 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7517 fi
7518
7519 if test "$wxUSE_CALCTRL" = yes; then
7520 echo "$as_me:$LINENO: result: yes" >&5
7521echo "${ECHO_T}yes" >&6
7522 else
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525 fi
7526
7527
7528 enablestring=
7529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7530echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7531 no_cache=0
7532 # Check whether --enable-caret or --disable-caret was given.
7533if test "${enable_caret+set}" = set; then
7534 enableval="$enable_caret"
7535
7536 if test "$enableval" = yes; then
7537 ac_cv_use_caret='wxUSE_CARET=yes'
7538 else
7539 ac_cv_use_caret='wxUSE_CARET=no'
7540 fi
7541
7542else
7543
7544 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7545 if test "x$LINE" != x ; then
7546 eval "DEFAULT_$LINE"
7547 else
7548 no_cache=1
7549 fi
7550
7551 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7552
7553fi;
7554
7555 eval "$ac_cv_use_caret"
7556 if test "$no_cache" != 1; then
7557 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7558 fi
7559
7560 if test "$wxUSE_CARET" = yes; then
7561 echo "$as_me:$LINENO: result: yes" >&5
7562echo "${ECHO_T}yes" >&6
7563 else
7564 echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
7566 fi
7567
7568
7569 enablestring=
7570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7571echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7572 no_cache=0
7573 # Check whether --enable-checkbox or --disable-checkbox was given.
7574if test "${enable_checkbox+set}" = set; then
7575 enableval="$enable_checkbox"
7576
7577 if test "$enableval" = yes; then
7578 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7579 else
7580 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7581 fi
7582
7583else
7584
7585 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7586 if test "x$LINE" != x ; then
7587 eval "DEFAULT_$LINE"
7588 else
7589 no_cache=1
7590 fi
7591
7592 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7593
7594fi;
7595
7596 eval "$ac_cv_use_checkbox"
7597 if test "$no_cache" != 1; then
7598 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7599 fi
7600
7601 if test "$wxUSE_CHECKBOX" = yes; then
7602 echo "$as_me:$LINENO: result: yes" >&5
7603echo "${ECHO_T}yes" >&6
7604 else
7605 echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6
7607 fi
7608
7609
7610 enablestring=
7611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7612echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7613 no_cache=0
7614 # Check whether --enable-checklst or --disable-checklst was given.
7615if test "${enable_checklst+set}" = set; then
7616 enableval="$enable_checklst"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7620 else
7621 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7622 fi
7623
7624else
7625
7626 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7634
7635fi;
7636
7637 eval "$ac_cv_use_checklst"
7638 if test "$no_cache" != 1; then
7639 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7640 fi
7641
7642 if test "$wxUSE_CHECKLST" = yes; then
7643 echo "$as_me:$LINENO: result: yes" >&5
7644echo "${ECHO_T}yes" >&6
7645 else
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7648 fi
7649
7650
7651 enablestring=
7652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7653echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7654 no_cache=0
7655 # Check whether --enable-choice or --disable-choice was given.
7656if test "${enable_choice+set}" = set; then
7657 enableval="$enable_choice"
7658
7659 if test "$enableval" = yes; then
7660 ac_cv_use_choice='wxUSE_CHOICE=yes'
7661 else
7662 ac_cv_use_choice='wxUSE_CHOICE=no'
7663 fi
7664
7665else
7666
7667 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7668 if test "x$LINE" != x ; then
7669 eval "DEFAULT_$LINE"
7670 else
7671 no_cache=1
7672 fi
7673
7674 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7675
7676fi;
7677
7678 eval "$ac_cv_use_choice"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_CHOICE" = yes; then
7684 echo "$as_me:$LINENO: result: yes" >&5
7685echo "${ECHO_T}yes" >&6
7686 else
7687 echo "$as_me:$LINENO: result: no" >&5
7688echo "${ECHO_T}no" >&6
7689 fi
7690
7691
92bbdbcd
WS
7692 enablestring=
7693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7694echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7695 no_cache=0
7696 # Check whether --enable-choicebook or --disable-choicebook was given.
7697if test "${enable_choicebook+set}" = set; then
7698 enableval="$enable_choicebook"
7699
7700 if test "$enableval" = yes; then
7701 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7702 else
7703 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7704 fi
7705
7706else
7707
7708 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7709 if test "x$LINE" != x ; then
7710 eval "DEFAULT_$LINE"
7711 else
7712 no_cache=1
7713 fi
7714
7715 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7716
7717fi;
7718
7719 eval "$ac_cv_use_choicebook"
7720 if test "$no_cache" != 1; then
7721 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7722 fi
7723
7724 if test "$wxUSE_CHOICEBOOK" = yes; then
7725 echo "$as_me:$LINENO: result: yes" >&5
7726echo "${ECHO_T}yes" >&6
7727 else
7728 echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
7730 fi
7731
7732
a848cd7e
SC
7733 enablestring=
7734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7735echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7736 no_cache=0
7737 # Check whether --enable-combobox or --disable-combobox was given.
7738if test "${enable_combobox+set}" = set; then
7739 enableval="$enable_combobox"
7740
7741 if test "$enableval" = yes; then
7742 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7743 else
7744 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7745 fi
7746
7747else
7748
7749 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7750 if test "x$LINE" != x ; then
7751 eval "DEFAULT_$LINE"
7752 else
7753 no_cache=1
7754 fi
7755
7756 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7757
7758fi;
7759
7760 eval "$ac_cv_use_combobox"
7761 if test "$no_cache" != 1; then
7762 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7763 fi
7764
7765 if test "$wxUSE_COMBOBOX" = yes; then
7766 echo "$as_me:$LINENO: result: yes" >&5
7767echo "${ECHO_T}yes" >&6
7768 else
7769 echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
7771 fi
7772
7773
da98e9be
VZ
7774 enablestring=
7775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7776echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7777 no_cache=0
7778 # Check whether --enable-datepick or --disable-datepick was given.
7779if test "${enable_datepick+set}" = set; then
7780 enableval="$enable_datepick"
7781
7782 if test "$enableval" = yes; then
7783 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7784 else
7785 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7786 fi
7787
7788else
7789
7790 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
7797 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7798
7799fi;
7800
7801 eval "$ac_cv_use_datepick"
7802 if test "$no_cache" != 1; then
7803 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7804 fi
7805
7806 if test "$wxUSE_DATEPICKCTRL" = yes; then
7807 echo "$as_me:$LINENO: result: yes" >&5
7808echo "${ECHO_T}yes" >&6
7809 else
7810 echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
7812 fi
7813
7814
a848cd7e
SC
7815 enablestring=
7816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7817echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7818 no_cache=0
7819 # Check whether --enable-display or --disable-display was given.
7820if test "${enable_display+set}" = set; then
7821 enableval="$enable_display"
7822
7823 if test "$enableval" = yes; then
7824 ac_cv_use_display='wxUSE_DISPLAY=yes'
7825 else
7826 ac_cv_use_display='wxUSE_DISPLAY=no'
7827 fi
7828
7829else
7830
7831 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7832 if test "x$LINE" != x ; then
7833 eval "DEFAULT_$LINE"
7834 else
7835 no_cache=1
7836 fi
7837
7838 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7839
7840fi;
7841
7842 eval "$ac_cv_use_display"
7843 if test "$no_cache" != 1; then
7844 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7845 fi
7846
7847 if test "$wxUSE_DISPLAY" = yes; then
7848 echo "$as_me:$LINENO: result: yes" >&5
7849echo "${ECHO_T}yes" >&6
7850 else
7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853 fi
7854
7855
7856 enablestring=
7857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7858echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7859 no_cache=0
7860 # Check whether --enable-gauge or --disable-gauge was given.
7861if test "${enable_gauge+set}" = set; then
7862 enableval="$enable_gauge"
7863
7864 if test "$enableval" = yes; then
7865 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7866 else
7867 ac_cv_use_gauge='wxUSE_GAUGE=no'
7868 fi
7869
7870else
7871
7872 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7873 if test "x$LINE" != x ; then
7874 eval "DEFAULT_$LINE"
7875 else
7876 no_cache=1
7877 fi
7878
7879 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7880
7881fi;
7882
7883 eval "$ac_cv_use_gauge"
7884 if test "$no_cache" != 1; then
7885 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7886 fi
7887
7888 if test "$wxUSE_GAUGE" = yes; then
7889 echo "$as_me:$LINENO: result: yes" >&5
7890echo "${ECHO_T}yes" >&6
7891 else
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
7894 fi
7895
7896
7897 enablestring=
7898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7899echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7900 no_cache=0
7901 # Check whether --enable-grid or --disable-grid was given.
7902if test "${enable_grid+set}" = set; then
7903 enableval="$enable_grid"
7904
7905 if test "$enableval" = yes; then
7906 ac_cv_use_grid='wxUSE_GRID=yes'
7907 else
7908 ac_cv_use_grid='wxUSE_GRID=no'
7909 fi
7910
7911else
7912
7913 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7914 if test "x$LINE" != x ; then
7915 eval "DEFAULT_$LINE"
7916 else
7917 no_cache=1
7918 fi
7919
7920 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7921
7922fi;
7923
7924 eval "$ac_cv_use_grid"
7925 if test "$no_cache" != 1; then
7926 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7927 fi
7928
7929 if test "$wxUSE_GRID" = yes; then
7930 echo "$as_me:$LINENO: result: yes" >&5
7931echo "${ECHO_T}yes" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935 fi
7936
7937
7938 enablestring=
7939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7940echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7941 no_cache=0
7942 # Check whether --enable-imaglist or --disable-imaglist was given.
7943if test "${enable_imaglist+set}" = set; then
7944 enableval="$enable_imaglist"
7945
7946 if test "$enableval" = yes; then
7947 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7948 else
7949 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7950 fi
7951
7952else
7953
7954 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7955 if test "x$LINE" != x ; then
7956 eval "DEFAULT_$LINE"
7957 else
7958 no_cache=1
7959 fi
7960
7961 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7962
7963fi;
7964
7965 eval "$ac_cv_use_imaglist"
7966 if test "$no_cache" != 1; then
7967 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7968 fi
7969
7970 if test "$wxUSE_IMAGLIST" = yes; then
7971 echo "$as_me:$LINENO: result: yes" >&5
7972echo "${ECHO_T}yes" >&6
7973 else
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
7976 fi
7977
7978
7979 enablestring=
7980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7981echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7982 no_cache=0
7983 # Check whether --enable-listbook or --disable-listbook was given.
7984if test "${enable_listbook+set}" = set; then
7985 enableval="$enable_listbook"
7986
7987 if test "$enableval" = yes; then
7988 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7989 else
7990 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7991 fi
7992
7993else
7994
7995 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8003
8004fi;
8005
8006 eval "$ac_cv_use_listbook"
8007 if test "$no_cache" != 1; then
8008 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8009 fi
8010
8011 if test "$wxUSE_LISTBOOK" = yes; then
8012 echo "$as_me:$LINENO: result: yes" >&5
8013echo "${ECHO_T}yes" >&6
8014 else
8015 echo "$as_me:$LINENO: result: no" >&5
8016echo "${ECHO_T}no" >&6
8017 fi
8018
8019
8020 enablestring=
8021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8022echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8023 no_cache=0
8024 # Check whether --enable-listbox or --disable-listbox was given.
8025if test "${enable_listbox+set}" = set; then
8026 enableval="$enable_listbox"
8027
8028 if test "$enableval" = yes; then
8029 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8030 else
8031 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8032 fi
8033
8034else
8035
8036 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8037 if test "x$LINE" != x ; then
8038 eval "DEFAULT_$LINE"
8039 else
8040 no_cache=1
8041 fi
8042
8043 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8044
8045fi;
8046
8047 eval "$ac_cv_use_listbox"
8048 if test "$no_cache" != 1; then
8049 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8050 fi
8051
8052 if test "$wxUSE_LISTBOX" = yes; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054echo "${ECHO_T}yes" >&6
8055 else
8056 echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6
8058 fi
8059
8060
8061 enablestring=
8062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8063echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8064 no_cache=0
8065 # Check whether --enable-listctrl or --disable-listctrl was given.
8066if test "${enable_listctrl+set}" = set; then
8067 enableval="$enable_listctrl"
8068
8069 if test "$enableval" = yes; then
8070 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8071 else
8072 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8073 fi
8074
8075else
8076
8077 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8085
8086fi;
8087
8088 eval "$ac_cv_use_listctrl"
8089 if test "$no_cache" != 1; then
8090 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8091 fi
8092
8093 if test "$wxUSE_LISTCTRL" = yes; then
8094 echo "$as_me:$LINENO: result: yes" >&5
8095echo "${ECHO_T}yes" >&6
8096 else
8097 echo "$as_me:$LINENO: result: no" >&5
8098echo "${ECHO_T}no" >&6
8099 fi
8100
8101
8102 enablestring=
8103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8104echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8105 no_cache=0
8106 # Check whether --enable-notebook or --disable-notebook was given.
8107if test "${enable_notebook+set}" = set; then
8108 enableval="$enable_notebook"
8109
8110 if test "$enableval" = yes; then
8111 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8112 else
8113 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8114 fi
8115
8116else
8117
8118 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8119 if test "x$LINE" != x ; then
8120 eval "DEFAULT_$LINE"
8121 else
8122 no_cache=1
8123 fi
8124
8125 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8126
8127fi;
8128
8129 eval "$ac_cv_use_notebook"
8130 if test "$no_cache" != 1; then
8131 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8132 fi
8133
8134 if test "$wxUSE_NOTEBOOK" = yes; then
8135 echo "$as_me:$LINENO: result: yes" >&5
8136echo "${ECHO_T}yes" >&6
8137 else
8138 echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
8140 fi
8141
8142
8143 enablestring=
8144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8145echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8146 no_cache=0
8147 # Check whether --enable-radiobox or --disable-radiobox was given.
8148if test "${enable_radiobox+set}" = set; then
8149 enableval="$enable_radiobox"
8150
8151 if test "$enableval" = yes; then
8152 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8153 else
8154 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8155 fi
8156
8157else
8158
8159 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8160 if test "x$LINE" != x ; then
8161 eval "DEFAULT_$LINE"
8162 else
8163 no_cache=1
8164 fi
8165
8166 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8167
8168fi;
8169
8170 eval "$ac_cv_use_radiobox"
8171 if test "$no_cache" != 1; then
8172 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8173 fi
8174
8175 if test "$wxUSE_RADIOBOX" = yes; then
8176 echo "$as_me:$LINENO: result: yes" >&5
8177echo "${ECHO_T}yes" >&6
8178 else
8179 echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6
8181 fi
8182
8183
8184 enablestring=
8185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8186echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8187 no_cache=0
8188 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8189if test "${enable_radiobtn+set}" = set; then
8190 enableval="$enable_radiobtn"
8191
8192 if test "$enableval" = yes; then
8193 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8194 else
8195 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8196 fi
8197
8198else
8199
8200 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8201 if test "x$LINE" != x ; then
8202 eval "DEFAULT_$LINE"
8203 else
8204 no_cache=1
8205 fi
8206
8207 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8208
8209fi;
8210
8211 eval "$ac_cv_use_radiobtn"
8212 if test "$no_cache" != 1; then
8213 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8214 fi
8215
8216 if test "$wxUSE_RADIOBTN" = yes; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218echo "${ECHO_T}yes" >&6
8219 else
8220 echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6
8222 fi
8223
8224
8225 enablestring=
8226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8227echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8228 no_cache=0
8229 # Check whether --enable-sash or --disable-sash was given.
8230if test "${enable_sash+set}" = set; then
8231 enableval="$enable_sash"
8232
8233 if test "$enableval" = yes; then
8234 ac_cv_use_sash='wxUSE_SASH=yes'
8235 else
8236 ac_cv_use_sash='wxUSE_SASH=no'
8237 fi
8238
8239else
8240
8241 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8242 if test "x$LINE" != x ; then
8243 eval "DEFAULT_$LINE"
8244 else
8245 no_cache=1
8246 fi
8247
8248 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8249
8250fi;
8251
8252 eval "$ac_cv_use_sash"
8253 if test "$no_cache" != 1; then
8254 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8255 fi
8256
8257 if test "$wxUSE_SASH" = yes; then
8258 echo "$as_me:$LINENO: result: yes" >&5
8259echo "${ECHO_T}yes" >&6
8260 else
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
8263 fi
8264
8265
8266 enablestring=
8267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8268echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8269 no_cache=0
8270 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8271if test "${enable_scrollbar+set}" = set; then
8272 enableval="$enable_scrollbar"
8273
8274 if test "$enableval" = yes; then
8275 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8276 else
8277 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8278 fi
8279
8280else
8281
8282 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8283 if test "x$LINE" != x ; then
8284 eval "DEFAULT_$LINE"
8285 else
8286 no_cache=1
8287 fi
8288
8289 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8290
8291fi;
8292
8293 eval "$ac_cv_use_scrollbar"
8294 if test "$no_cache" != 1; then
8295 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8296 fi
8297
8298 if test "$wxUSE_SCROLLBAR" = yes; then
8299 echo "$as_me:$LINENO: result: yes" >&5
8300echo "${ECHO_T}yes" >&6
8301 else
8302 echo "$as_me:$LINENO: result: no" >&5
8303echo "${ECHO_T}no" >&6
8304 fi
8305
8306
8307 enablestring=
8308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8309echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8310 no_cache=0
8311 # Check whether --enable-slider or --disable-slider was given.
8312if test "${enable_slider+set}" = set; then
8313 enableval="$enable_slider"
8314
8315 if test "$enableval" = yes; then
8316 ac_cv_use_slider='wxUSE_SLIDER=yes'
8317 else
8318 ac_cv_use_slider='wxUSE_SLIDER=no'
8319 fi
8320
8321else
8322
8323 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8324 if test "x$LINE" != x ; then
8325 eval "DEFAULT_$LINE"
8326 else
8327 no_cache=1
8328 fi
8329
8330 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8331
8332fi;
8333
8334 eval "$ac_cv_use_slider"
8335 if test "$no_cache" != 1; then
8336 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8337 fi
8338
8339 if test "$wxUSE_SLIDER" = yes; then
8340 echo "$as_me:$LINENO: result: yes" >&5
8341echo "${ECHO_T}yes" >&6
8342 else
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
8345 fi
8346
8347
8348 enablestring=
8349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8350echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8351 no_cache=0
8352 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8353if test "${enable_spinbtn+set}" = set; then
8354 enableval="$enable_spinbtn"
8355
8356 if test "$enableval" = yes; then
8357 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8358 else
8359 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8360 fi
8361
8362else
8363
8364 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
8371 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8372
8373fi;
8374
8375 eval "$ac_cv_use_spinbtn"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_SPINBTN" = yes; then
8381 echo "$as_me:$LINENO: result: yes" >&5
8382echo "${ECHO_T}yes" >&6
8383 else
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
8386 fi
8387
8388
8389 enablestring=
8390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8391echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8392 no_cache=0
8393 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8394if test "${enable_spinctrl+set}" = set; then
8395 enableval="$enable_spinctrl"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8399 else
8400 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8401 fi
8402
8403else
8404
8405 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8413
8414fi;
8415
8416 eval "$ac_cv_use_spinctrl"
8417 if test "$no_cache" != 1; then
8418 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8419 fi
8420
8421 if test "$wxUSE_SPINCTRL" = yes; then
8422 echo "$as_me:$LINENO: result: yes" >&5
8423echo "${ECHO_T}yes" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
8427 fi
8428
8429
8430 enablestring=
8431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8432echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8433 no_cache=0
8434 # Check whether --enable-splitter or --disable-splitter was given.
8435if test "${enable_splitter+set}" = set; then
8436 enableval="$enable_splitter"
8437
8438 if test "$enableval" = yes; then
8439 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8440 else
8441 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8442 fi
8443
8444else
8445
8446 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8447 if test "x$LINE" != x ; then
8448 eval "DEFAULT_$LINE"
8449 else
8450 no_cache=1
8451 fi
8452
8453 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8454
8455fi;
8456
8457 eval "$ac_cv_use_splitter"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_SPLITTER" = yes; then
8463 echo "$as_me:$LINENO: result: yes" >&5
8464echo "${ECHO_T}yes" >&6
8465 else
8466 echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6
8468 fi
8469
8470
8471 enablestring=
8472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8473echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8474 no_cache=0
8475 # Check whether --enable-statbmp or --disable-statbmp was given.
8476if test "${enable_statbmp+set}" = set; then
8477 enableval="$enable_statbmp"
8478
8479 if test "$enableval" = yes; then
8480 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8481 else
8482 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8483 fi
8484
8485else
8486
8487 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8488 if test "x$LINE" != x ; then
8489 eval "DEFAULT_$LINE"
8490 else
8491 no_cache=1
8492 fi
8493
8494 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8495
8496fi;
8497
8498 eval "$ac_cv_use_statbmp"
8499 if test "$no_cache" != 1; then
8500 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8501 fi
8502
8503 if test "$wxUSE_STATBMP" = yes; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505echo "${ECHO_T}yes" >&6
8506 else
8507 echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6
8509 fi
8510
8511
8512 enablestring=
8513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8514echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8515 no_cache=0
8516 # Check whether --enable-statbox or --disable-statbox was given.
8517if test "${enable_statbox+set}" = set; then
8518 enableval="$enable_statbox"
8519
8520 if test "$enableval" = yes; then
8521 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8522 else
8523 ac_cv_use_statbox='wxUSE_STATBOX=no'
8524 fi
8525
8526else
8527
8528 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8529 if test "x$LINE" != x ; then
8530 eval "DEFAULT_$LINE"
8531 else
8532 no_cache=1
8533 fi
8534
8535 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8536
8537fi;
8538
8539 eval "$ac_cv_use_statbox"
8540 if test "$no_cache" != 1; then
8541 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8542 fi
8543
8544 if test "$wxUSE_STATBOX" = yes; then
8545 echo "$as_me:$LINENO: result: yes" >&5
8546echo "${ECHO_T}yes" >&6
8547 else
8548 echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
8550 fi
8551
8552
8553 enablestring=
8554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8555echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8556 no_cache=0
8557 # Check whether --enable-statline or --disable-statline was given.
8558if test "${enable_statline+set}" = set; then
8559 enableval="$enable_statline"
8560
8561 if test "$enableval" = yes; then
8562 ac_cv_use_statline='wxUSE_STATLINE=yes'
8563 else
8564 ac_cv_use_statline='wxUSE_STATLINE=no'
8565 fi
8566
8567else
8568
8569 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8570 if test "x$LINE" != x ; then
8571 eval "DEFAULT_$LINE"
8572 else
8573 no_cache=1
8574 fi
8575
8576 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8577
8578fi;
8579
8580 eval "$ac_cv_use_statline"
8581 if test "$no_cache" != 1; then
8582 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8583 fi
8584
8585 if test "$wxUSE_STATLINE" = yes; then
8586 echo "$as_me:$LINENO: result: yes" >&5
8587echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
8591 fi
8592
8593
8594 enablestring=
8595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8596echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8597 no_cache=0
8598 # Check whether --enable-stattext or --disable-stattext was given.
8599if test "${enable_stattext+set}" = set; then
8600 enableval="$enable_stattext"
8601
8602 if test "$enableval" = yes; then
8603 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8604 else
8605 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8606 fi
8607
8608else
8609
8610 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8611 if test "x$LINE" != x ; then
8612 eval "DEFAULT_$LINE"
8613 else
8614 no_cache=1
8615 fi
8616
8617 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8618
8619fi;
8620
8621 eval "$ac_cv_use_stattext"
8622 if test "$no_cache" != 1; then
8623 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8624 fi
8625
8626 if test "$wxUSE_STATTEXT" = yes; then
8627 echo "$as_me:$LINENO: result: yes" >&5
8628echo "${ECHO_T}yes" >&6
8629 else
8630 echo "$as_me:$LINENO: result: no" >&5
8631echo "${ECHO_T}no" >&6
8632 fi
8633
8634
8635 enablestring=
8636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8637echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8638 no_cache=0
8639 # Check whether --enable-statusbar or --disable-statusbar was given.
8640if test "${enable_statusbar+set}" = set; then
8641 enableval="$enable_statusbar"
8642
8643 if test "$enableval" = yes; then
8644 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8645 else
8646 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8647 fi
8648
8649else
8650
8651 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8652 if test "x$LINE" != x ; then
8653 eval "DEFAULT_$LINE"
8654 else
8655 no_cache=1
8656 fi
8657
8658 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8659
8660fi;
8661
8662 eval "$ac_cv_use_statusbar"
8663 if test "$no_cache" != 1; then
8664 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8665 fi
8666
8667 if test "$wxUSE_STATUSBAR" = yes; then
8668 echo "$as_me:$LINENO: result: yes" >&5
8669echo "${ECHO_T}yes" >&6
8670 else
8671 echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
8673 fi
8674
8675
8676 enablestring=
8677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8678echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8679 no_cache=0
8680 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8681if test "${enable_tabdialog+set}" = set; then
8682 enableval="$enable_tabdialog"
8683
8684 if test "$enableval" = yes; then
8685 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8686 else
8687 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8688 fi
8689
8690else
8691
8692 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8693 if test "x$LINE" != x ; then
8694 eval "DEFAULT_$LINE"
8695 else
8696 no_cache=1
8697 fi
8698
8699 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8700
8701fi;
8702
8703 eval "$ac_cv_use_tabdialog"
8704 if test "$no_cache" != 1; then
8705 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8706 fi
8707
8708 if test "$wxUSE_TABDIALOG" = yes; then
8709 echo "$as_me:$LINENO: result: yes" >&5
8710echo "${ECHO_T}yes" >&6
8711 else
8712 echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
8714 fi
8715
8716
8717 enablestring=
8718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8719echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8720 no_cache=0
8721 # Check whether --enable-textctrl or --disable-textctrl was given.
8722if test "${enable_textctrl+set}" = set; then
8723 enableval="$enable_textctrl"
8724
8725 if test "$enableval" = yes; then
8726 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8727 else
8728 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8729 fi
8730
8731else
8732
8733 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8741
8742fi;
8743
8744 eval "$ac_cv_use_textctrl"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_TEXTCTRL" = yes; then
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
8752 else
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
8755 fi
8756
8757
8758 enablestring=
8759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8760echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8761 no_cache=0
8762 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8763if test "${enable_togglebtn+set}" = set; then
8764 enableval="$enable_togglebtn"
8765
8766 if test "$enableval" = yes; then
8767 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8768 else
8769 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8770 fi
8771
8772else
8773
8774 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8775 if test "x$LINE" != x ; then
8776 eval "DEFAULT_$LINE"
8777 else
8778 no_cache=1
8779 fi
8780
8781 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8782
8783fi;
8784
8785 eval "$ac_cv_use_togglebtn"
8786 if test "$no_cache" != 1; then
8787 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8788 fi
8789
8790 if test "$wxUSE_TOGGLEBTN" = yes; then
8791 echo "$as_me:$LINENO: result: yes" >&5
8792echo "${ECHO_T}yes" >&6
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
8796 fi
8797
8798
8799 enablestring=
8800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8801echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8802 no_cache=0
8803 # Check whether --enable-toolbar or --disable-toolbar was given.
8804if test "${enable_toolbar+set}" = set; then
8805 enableval="$enable_toolbar"
8806
8807 if test "$enableval" = yes; then
8808 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8809 else
8810 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8811 fi
8812
8813else
8814
8815 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8823
8824fi;
8825
8826 eval "$ac_cv_use_toolbar"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_TOOLBAR" = yes; then
8832 echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
8834 else
8835 echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
8837 fi
8838
8839
8840 enablestring=
8841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8842echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8843 no_cache=0
8844 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8845if test "${enable_tbarnative+set}" = set; then
8846 enableval="$enable_tbarnative"
8847
8848 if test "$enableval" = yes; then
8849 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8850 else
8851 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8852 fi
8853
8854else
8855
8856 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8857 if test "x$LINE" != x ; then
8858 eval "DEFAULT_$LINE"
8859 else
8860 no_cache=1
8861 fi
8862
8863 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8864
8865fi;
8866
8867 eval "$ac_cv_use_tbarnative"
8868 if test "$no_cache" != 1; then
8869 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8870 fi
8871
8872 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8873 echo "$as_me:$LINENO: result: yes" >&5
8874echo "${ECHO_T}yes" >&6
8875 else
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
8878 fi
8879
8880
8881 enablestring=
8882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8883echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8884 no_cache=0
8885 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8886if test "${enable_tbarsmpl+set}" = set; then
8887 enableval="$enable_tbarsmpl"
8888
8889 if test "$enableval" = yes; then
8890 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8891 else
8892 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8893 fi
8894
8895else
8896
8897 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8898 if test "x$LINE" != x ; then
8899 eval "DEFAULT_$LINE"
8900 else
8901 no_cache=1
8902 fi
8903
8904 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8905
8906fi;
8907
8908 eval "$ac_cv_use_tbarsmpl"
8909 if test "$no_cache" != 1; then
8910 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8911 fi
8912
8913 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8914 echo "$as_me:$LINENO: result: yes" >&5
8915echo "${ECHO_T}yes" >&6
8916 else
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
8919 fi
8920
8921
8922 enablestring=
8923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8924echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8925 no_cache=0
8926 # Check whether --enable-treectrl or --disable-treectrl was given.
8927if test "${enable_treectrl+set}" = set; then
8928 enableval="$enable_treectrl"
8929
8930 if test "$enableval" = yes; then
8931 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8932 else
8933 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8934 fi
8935
8936else
8937
8938 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8939 if test "x$LINE" != x ; then
8940 eval "DEFAULT_$LINE"
8941 else
8942 no_cache=1
8943 fi
8944
8945 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8946
8947fi;
8948
8949 eval "$ac_cv_use_treectrl"
8950 if test "$no_cache" != 1; then
8951 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8952 fi
8953
8954 if test "$wxUSE_TREECTRL" = yes; then
8955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
8957 else
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
8960 fi
8961
8962
8963 enablestring=
8964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8965echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8966 no_cache=0
8967 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8968if test "${enable_tipwindow+set}" = set; then
8969 enableval="$enable_tipwindow"
8970
8971 if test "$enableval" = yes; then
8972 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8973 else
8974 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8975 fi
8976
8977else
8978
8979 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8980 if test "x$LINE" != x ; then
8981 eval "DEFAULT_$LINE"
8982 else
8983 no_cache=1
8984 fi
8985
8986 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8987
8988fi;
8989
8990 eval "$ac_cv_use_tipwindow"
8991 if test "$no_cache" != 1; then
8992 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8993 fi
8994
8995 if test "$wxUSE_TIPWINDOW" = yes; then
8996 echo "$as_me:$LINENO: result: yes" >&5
8997echo "${ECHO_T}yes" >&6
8998 else
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
9001 fi
9002
9003
9004 enablestring=
9005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9006echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9007 no_cache=0
9008 # Check whether --enable-popupwin or --disable-popupwin was given.
9009if test "${enable_popupwin+set}" = set; then
9010 enableval="$enable_popupwin"
9011
9012 if test "$enableval" = yes; then
9013 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9014 else
9015 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9016 fi
9017
9018else
9019
9020 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9021 if test "x$LINE" != x ; then
9022 eval "DEFAULT_$LINE"
9023 else
9024 no_cache=1
9025 fi
9026
9027 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9028
9029fi;
9030
9031 eval "$ac_cv_use_popupwin"
9032 if test "$no_cache" != 1; then
9033 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9034 fi
9035
9036 if test "$wxUSE_POPUPWIN" = yes; then
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
9039 else
9040 echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
9042 fi
9043
9044
9045
9046
9047 enablestring=
9048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9049echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9050 no_cache=0
9051 # Check whether --enable-commondlg or --disable-commondlg was given.
9052if test "${enable_commondlg+set}" = set; then
9053 enableval="$enable_commondlg"
9054
9055 if test "$enableval" = yes; then
9056 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9057 else
9058 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9059 fi
9060
9061else
9062
9063 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9064 if test "x$LINE" != x ; then
9065 eval "DEFAULT_$LINE"
9066 else
9067 no_cache=1
9068 fi
9069
9070 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9071
9072fi;
9073
9074 eval "$ac_cv_use_commondlg"
9075 if test "$no_cache" != 1; then
9076 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9077 fi
9078
9079 if test "$wxUSE_COMMONDLGS" = yes; then
9080 echo "$as_me:$LINENO: result: yes" >&5
9081echo "${ECHO_T}yes" >&6
9082 else
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
9085 fi
9086
9087
9088 enablestring=
9089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9090echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9091 no_cache=0
9092 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9093if test "${enable_choicedlg+set}" = set; then
9094 enableval="$enable_choicedlg"
9095
9096 if test "$enableval" = yes; then
9097 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9098 else
9099 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9100 fi
9101
9102else
9103
9104 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9105 if test "x$LINE" != x ; then
9106 eval "DEFAULT_$LINE"
9107 else
9108 no_cache=1
9109 fi
9110
9111 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9112
9113fi;
9114
9115 eval "$ac_cv_use_choicedlg"
9116 if test "$no_cache" != 1; then
9117 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9118 fi
9119
9120 if test "$wxUSE_CHOICEDLG" = yes; then
9121 echo "$as_me:$LINENO: result: yes" >&5
9122echo "${ECHO_T}yes" >&6
9123 else
9124 echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
9126 fi
9127
9128
9129 enablestring=
9130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9131echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9132 no_cache=0
9133 # Check whether --enable-coldlg or --disable-coldlg was given.
9134if test "${enable_coldlg+set}" = set; then
9135 enableval="$enable_coldlg"
9136
9137 if test "$enableval" = yes; then
9138 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9139 else
9140 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9141 fi
9142
9143else
9144
9145 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9146 if test "x$LINE" != x ; then
9147 eval "DEFAULT_$LINE"
9148 else
9149 no_cache=1
9150 fi
9151
9152 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9153
9154fi;
9155
9156 eval "$ac_cv_use_coldlg"
9157 if test "$no_cache" != 1; then
9158 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9159 fi
9160
9161 if test "$wxUSE_COLOURDLG" = yes; then
9162 echo "$as_me:$LINENO: result: yes" >&5
9163echo "${ECHO_T}yes" >&6
9164 else
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
9167 fi
9168
9169
9170 enablestring=
9171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9172echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9173 no_cache=0
9174 # Check whether --enable-filedlg or --disable-filedlg was given.
9175if test "${enable_filedlg+set}" = set; then
9176 enableval="$enable_filedlg"
9177
9178 if test "$enableval" = yes; then
9179 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9180 else
9181 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9182 fi
9183
9184else
9185
9186 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9187 if test "x$LINE" != x ; then
9188 eval "DEFAULT_$LINE"
9189 else
9190 no_cache=1
9191 fi
9192
9193 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9194
9195fi;
9196
9197 eval "$ac_cv_use_filedlg"
9198 if test "$no_cache" != 1; then
9199 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9200 fi
9201
9202 if test "$wxUSE_FILEDLG" = yes; then
9203 echo "$as_me:$LINENO: result: yes" >&5
9204echo "${ECHO_T}yes" >&6
9205 else
9206 echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
9208 fi
9209
9210
9211 enablestring=
9212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9213echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9214 no_cache=0
9215 # Check whether --enable-finddlg or --disable-finddlg was given.
9216if test "${enable_finddlg+set}" = set; then
9217 enableval="$enable_finddlg"
9218
9219 if test "$enableval" = yes; then
9220 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9221 else
9222 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9223 fi
9224
9225else
9226
9227 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9228 if test "x$LINE" != x ; then
9229 eval "DEFAULT_$LINE"
9230 else
9231 no_cache=1
9232 fi
9233
9234 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9235
9236fi;
9237
9238 eval "$ac_cv_use_finddlg"
9239 if test "$no_cache" != 1; then
9240 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9241 fi
9242
9243 if test "$wxUSE_FINDREPLDLG" = yes; then
9244 echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
9246 else
9247 echo "$as_me:$LINENO: result: no" >&5
9248echo "${ECHO_T}no" >&6
9249 fi
9250
9251
9252 enablestring=
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9254echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9255 no_cache=0
9256 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9257if test "${enable_fontdlg+set}" = set; then
9258 enableval="$enable_fontdlg"
9259
9260 if test "$enableval" = yes; then
9261 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9262 else
9263 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9264 fi
9265
9266else
9267
9268 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
9275 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9276
9277fi;
9278
9279 eval "$ac_cv_use_fontdlg"
9280 if test "$no_cache" != 1; then
9281 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9282 fi
9283
9284 if test "$wxUSE_FONTDLG" = yes; then
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
9287 else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290 fi
9291
9292
9293 enablestring=
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9295echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9296 no_cache=0
9297 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9298if test "${enable_dirdlg+set}" = set; then
9299 enableval="$enable_dirdlg"
9300
9301 if test "$enableval" = yes; then
9302 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9303 else
9304 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9305 fi
9306
9307else
9308
9309 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9317
9318fi;
9319
9320 eval "$ac_cv_use_dirdlg"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_DIRDLG" = yes; then
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
9328 else
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
9331 fi
9332
9333
9334 enablestring=
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9337 no_cache=0
9338 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9339if test "${enable_msgdlg+set}" = set; then
9340 enableval="$enable_msgdlg"
9341
9342 if test "$enableval" = yes; then
9343 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9344 else
9345 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9346 fi
9347
9348else
9349
9350 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
9357 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9358
9359fi;
9360
9361 eval "$ac_cv_use_msgdlg"
9362 if test "$no_cache" != 1; then
9363 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9364 fi
9365
9366 if test "$wxUSE_MSGDLG" = yes; then
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
9369 else
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
9372 fi
9373
9374
9375 enablestring=
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9378 no_cache=0
9379 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9380if test "${enable_numberdlg+set}" = set; then
9381 enableval="$enable_numberdlg"
9382
9383 if test "$enableval" = yes; then
9384 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9385 else
9386 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9387 fi
9388
9389else
9390
9391 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
9398 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9399
9400fi;
9401
9402 eval "$ac_cv_use_numberdlg"
9403 if test "$no_cache" != 1; then
9404 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9405 fi
9406
9407 if test "$wxUSE_NUMBERDLG" = yes; then
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
9410 else
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
9413 fi
9414
9415
9416 enablestring=
9417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9419 no_cache=0
9420 # Check whether --enable-splash or --disable-splash was given.
9421if test "${enable_splash+set}" = set; then
9422 enableval="$enable_splash"
9423
9424 if test "$enableval" = yes; then
9425 ac_cv_use_splash='wxUSE_SPLASH=yes'
9426 else
9427 ac_cv_use_splash='wxUSE_SPLASH=no'
9428 fi
9429
9430else
9431
9432 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9433 if test "x$LINE" != x ; then
9434 eval "DEFAULT_$LINE"
9435 else
9436 no_cache=1
9437 fi
9438
9439 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9440
9441fi;
9442
9443 eval "$ac_cv_use_splash"
9444 if test "$no_cache" != 1; then
9445 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9446 fi
9447
9448 if test "$wxUSE_SPLASH" = yes; then
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
9451 else
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
9454 fi
9455
9456
9457 enablestring=
9458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9459echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9460 no_cache=0
9461 # Check whether --enable-textdlg or --disable-textdlg was given.
9462if test "${enable_textdlg+set}" = set; then
9463 enableval="$enable_textdlg"
9464
9465 if test "$enableval" = yes; then
9466 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9467 else
9468 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9469 fi
9470
9471else
9472
9473 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9474 if test "x$LINE" != x ; then
9475 eval "DEFAULT_$LINE"
9476 else
9477 no_cache=1
9478 fi
9479
9480 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9481
9482fi;
9483
9484 eval "$ac_cv_use_textdlg"
9485 if test "$no_cache" != 1; then
9486 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9487 fi
9488
9489 if test "$wxUSE_TEXTDLG" = yes; then
9490 echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6
9492 else
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
9495 fi
9496
9497
9498 enablestring=
9499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9500echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9501 no_cache=0
9502 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9503if test "${enable_tipdlg+set}" = set; then
9504 enableval="$enable_tipdlg"
9505
9506 if test "$enableval" = yes; then
9507 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9508 else
9509 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9510 fi
9511
9512else
9513
9514 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9515 if test "x$LINE" != x ; then
9516 eval "DEFAULT_$LINE"
9517 else
9518 no_cache=1
9519 fi
9520
9521 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9522
9523fi;
9524
9525 eval "$ac_cv_use_tipdlg"
9526 if test "$no_cache" != 1; then
9527 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test "$wxUSE_STARTUP_TIPS" = yes; then
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
9533 else
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
9536 fi
9537
9538
9539 enablestring=
9540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9541echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9542 no_cache=0
9543 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9544if test "${enable_progressdlg+set}" = set; then
9545 enableval="$enable_progressdlg"
9546
9547 if test "$enableval" = yes; then
9548 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9549 else
9550 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9551 fi
9552
9553else
9554
9555 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9556 if test "x$LINE" != x ; then
9557 eval "DEFAULT_$LINE"
9558 else
9559 no_cache=1
9560 fi
9561
9562 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9563
9564fi;
9565
9566 eval "$ac_cv_use_progressdlg"
9567 if test "$no_cache" != 1; then
9568 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9569 fi
9570
9571 if test "$wxUSE_PROGRESSDLG" = yes; then
9572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
9574 else
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
9577 fi
9578
9579
9580 enablestring=
9581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9582echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9583 no_cache=0
9584 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9585if test "${enable_wizarddlg+set}" = set; then
9586 enableval="$enable_wizarddlg"
9587
9588 if test "$enableval" = yes; then
9589 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9590 else
9591 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9592 fi
9593
9594else
9595
9596 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9597 if test "x$LINE" != x ; then
9598 eval "DEFAULT_$LINE"
9599 else
9600 no_cache=1
9601 fi
9602
9603 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9604
9605fi;
9606
9607 eval "$ac_cv_use_wizarddlg"
9608 if test "$no_cache" != 1; then
9609 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9610 fi
9611
9612 if test "$wxUSE_WIZARDDLG" = yes; then
9613 echo "$as_me:$LINENO: result: yes" >&5
9614echo "${ECHO_T}yes" >&6
9615 else
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
9618 fi
9619
9620
9621
9622
9623 enablestring=
9624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9625echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9626 no_cache=0
9627 # Check whether --enable-menus or --disable-menus was given.
9628if test "${enable_menus+set}" = set; then
9629 enableval="$enable_menus"
9630
9631 if test "$enableval" = yes; then
9632 ac_cv_use_menus='wxUSE_MENUS=yes'
9633 else
9634 ac_cv_use_menus='wxUSE_MENUS=no'
9635 fi
9636
9637else
9638
9639 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9640 if test "x$LINE" != x ; then
9641 eval "DEFAULT_$LINE"
9642 else
9643 no_cache=1
9644 fi
9645
9646 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9647
9648fi;
9649
9650 eval "$ac_cv_use_menus"
9651 if test "$no_cache" != 1; then
9652 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9653 fi
9654
9655 if test "$wxUSE_MENUS" = yes; then
9656 echo "$as_me:$LINENO: result: yes" >&5
9657echo "${ECHO_T}yes" >&6
9658 else
9659 echo "$as_me:$LINENO: result: no" >&5
9660echo "${ECHO_T}no" >&6
9661 fi
9662
9663
9664 enablestring=
9665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9666echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9667 no_cache=0
9668 # Check whether --enable-miniframe or --disable-miniframe was given.
9669if test "${enable_miniframe+set}" = set; then
9670 enableval="$enable_miniframe"
9671
9672 if test "$enableval" = yes; then
9673 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9674 else
9675 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9676 fi
9677
9678else
9679
9680 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9681 if test "x$LINE" != x ; then
9682 eval "DEFAULT_$LINE"
9683 else
9684 no_cache=1
9685 fi
9686
9687 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9688
9689fi;
9690
9691 eval "$ac_cv_use_miniframe"
9692 if test "$no_cache" != 1; then
9693 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9694 fi
9695
9696 if test "$wxUSE_MINIFRAME" = yes; then
9697 echo "$as_me:$LINENO: result: yes" >&5
9698echo "${ECHO_T}yes" >&6
9699 else
9700 echo "$as_me:$LINENO: result: no" >&5
9701echo "${ECHO_T}no" >&6
9702 fi
9703
9704
9705 enablestring=
9706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9707echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9708 no_cache=0
9709 # Check whether --enable-tooltips or --disable-tooltips was given.
9710if test "${enable_tooltips+set}" = set; then
9711 enableval="$enable_tooltips"
9712
9713 if test "$enableval" = yes; then
9714 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9715 else
9716 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9717 fi
9718
9719else
9720
9721 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9722 if test "x$LINE" != x ; then
9723 eval "DEFAULT_$LINE"
9724 else
9725 no_cache=1
9726 fi
9727
9728 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9729
9730fi;
9731
9732 eval "$ac_cv_use_tooltips"
9733 if test "$no_cache" != 1; then
9734 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9735 fi
9736
9737 if test "$wxUSE_TOOLTIPS" = yes; then
9738 echo "$as_me:$LINENO: result: yes" >&5
9739echo "${ECHO_T}yes" >&6
9740 else
9741 echo "$as_me:$LINENO: result: no" >&5
9742echo "${ECHO_T}no" >&6
9743 fi
9744
9745
9746 enablestring=
9747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9748echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9749 no_cache=0
9750 # Check whether --enable-splines or --disable-splines was given.
9751if test "${enable_splines+set}" = set; then
9752 enableval="$enable_splines"
9753
9754 if test "$enableval" = yes; then
9755 ac_cv_use_splines='wxUSE_SPLINES=yes'
9756 else
9757 ac_cv_use_splines='wxUSE_SPLINES=no'
9758 fi
9759
9760else
9761
9762 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9763 if test "x$LINE" != x ; then
9764 eval "DEFAULT_$LINE"
9765 else
9766 no_cache=1
9767 fi
9768
9769 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9770
9771fi;
9772
9773 eval "$ac_cv_use_splines"
9774 if test "$no_cache" != 1; then
9775 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9776 fi
9777
9778 if test "$wxUSE_SPLINES" = yes; then
9779 echo "$as_me:$LINENO: result: yes" >&5
9780echo "${ECHO_T}yes" >&6
9781 else
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
9784 fi
9785
9786
9787 enablestring=
9788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9789echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9790 no_cache=0
9791 # Check whether --enable-validators or --disable-validators was given.
9792if test "${enable_validators+set}" = set; then
9793 enableval="$enable_validators"
9794
9795 if test "$enableval" = yes; then
9796 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9797 else
9798 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9799 fi
9800
9801else
9802
9803 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9804 if test "x$LINE" != x ; then
9805 eval "DEFAULT_$LINE"
9806 else
9807 no_cache=1
9808 fi
9809
9810 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9811
9812fi;
9813
9814 eval "$ac_cv_use_validators"
9815 if test "$no_cache" != 1; then
9816 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9817 fi
9818
9819 if test "$wxUSE_VALIDATORS" = yes; then
9820 echo "$as_me:$LINENO: result: yes" >&5
9821echo "${ECHO_T}yes" >&6
9822 else
9823 echo "$as_me:$LINENO: result: no" >&5
9824echo "${ECHO_T}no" >&6
9825 fi
9826
9827
9828 enablestring=
9829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9830echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9831 no_cache=0
9832 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9833if test "${enable_busyinfo+set}" = set; then
9834 enableval="$enable_busyinfo"
9835
9836 if test "$enableval" = yes; then
9837 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9838 else
9839 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9840 fi
9841
9842else
9843
9844 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9845 if test "x$LINE" != x ; then
9846 eval "DEFAULT_$LINE"
9847 else
9848 no_cache=1
9849 fi
9850
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9852
9853fi;
9854
9855 eval "$ac_cv_use_busyinfo"
9856 if test "$no_cache" != 1; then
9857 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9858 fi
9859
9860 if test "$wxUSE_BUSYINFO" = yes; then
9861 echo "$as_me:$LINENO: result: yes" >&5
9862echo "${ECHO_T}yes" >&6
9863 else
9864 echo "$as_me:$LINENO: result: no" >&5
9865echo "${ECHO_T}no" >&6
9866 fi
9867
9868
9869 enablestring=
9870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9871echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9872 no_cache=0
9873 # Check whether --enable-joystick or --disable-joystick was given.
9874if test "${enable_joystick+set}" = set; then
9875 enableval="$enable_joystick"
9876
9877 if test "$enableval" = yes; then
9878 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9879 else
9880 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9881 fi
9882
9883else
9884
9885 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9886 if test "x$LINE" != x ; then
9887 eval "DEFAULT_$LINE"
9888 else
9889 no_cache=1
9890 fi
9891
9892 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9893
9894fi;
9895
9896 eval "$ac_cv_use_joystick"
9897 if test "$no_cache" != 1; then
9898 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9899 fi
9900
9901 if test "$wxUSE_JOYSTICK" = yes; then
9902 echo "$as_me:$LINENO: result: yes" >&5
9903echo "${ECHO_T}yes" >&6
9904 else
9905 echo "$as_me:$LINENO: result: no" >&5
9906echo "${ECHO_T}no" >&6
9907 fi
9908
9909
9910 enablestring=
9911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9912echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9913 no_cache=0
9914 # Check whether --enable-metafile or --disable-metafile was given.
9915if test "${enable_metafile+set}" = set; then
9916 enableval="$enable_metafile"
9917
9918 if test "$enableval" = yes; then
9919 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9920 else
9921 ac_cv_use_metafile='wxUSE_METAFILE=no'
9922 fi
9923
9924else
9925
9926 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9927 if test "x$LINE" != x ; then
9928 eval "DEFAULT_$LINE"
9929 else
9930 no_cache=1
9931 fi
9932
9933 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9934
9935fi;
9936
9937 eval "$ac_cv_use_metafile"
9938 if test "$no_cache" != 1; then
9939 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9940 fi
9941
9942 if test "$wxUSE_METAFILE" = yes; then
9943 echo "$as_me:$LINENO: result: yes" >&5
9944echo "${ECHO_T}yes" >&6
9945 else
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
9948 fi
9949
9950
9951 enablestring=
9952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9953echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9954 no_cache=0
9955 # Check whether --enable-dragimage or --disable-dragimage was given.
9956if test "${enable_dragimage+set}" = set; then
9957 enableval="$enable_dragimage"
9958
9959 if test "$enableval" = yes; then
9960 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9961 else
9962 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9963 fi
9964
9965else
9966
9967 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9968 if test "x$LINE" != x ; then
9969 eval "DEFAULT_$LINE"
9970 else
9971 no_cache=1
9972 fi
9973
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9975
9976fi;
9977
9978 eval "$ac_cv_use_dragimage"
9979 if test "$no_cache" != 1; then
9980 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9981 fi
9982
9983 if test "$wxUSE_DRAGIMAGE" = yes; then
9984 echo "$as_me:$LINENO: result: yes" >&5
9985echo "${ECHO_T}yes" >&6
9986 else
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
9989 fi
9990
9991
9992 enablestring=
9993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9994echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9995 no_cache=0
9996 # Check whether --enable-accessibility or --disable-accessibility was given.
9997if test "${enable_accessibility+set}" = set; then
9998 enableval="$enable_accessibility"
9999
10000 if test "$enableval" = yes; then
10001 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10002 else
10003 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10004 fi
10005
10006else
10007
10008 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10009 if test "x$LINE" != x ; then
10010 eval "DEFAULT_$LINE"
10011 else
10012 no_cache=1
10013 fi
10014
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10016
10017fi;
10018
10019 eval "$ac_cv_use_accessibility"
10020 if test "$no_cache" != 1; then
10021 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10022 fi
10023
10024 if test "$wxUSE_ACCESSIBILITY" = yes; then
10025 echo "$as_me:$LINENO: result: yes" >&5
10026echo "${ECHO_T}yes" >&6
10027 else
10028 echo "$as_me:$LINENO: result: no" >&5
10029echo "${ECHO_T}no" >&6
10030 fi
10031
10032
10033
10034
10035 enablestring=
10036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10037echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10038 no_cache=0
10039 # Check whether --enable-palette or --disable-palette was given.
10040if test "${enable_palette+set}" = set; then
10041 enableval="$enable_palette"
10042
10043 if test "$enableval" = yes; then
10044 ac_cv_use_palette='wxUSE_PALETTE=yes'
10045 else
10046 ac_cv_use_palette='wxUSE_PALETTE=no'
10047 fi
10048
10049else
10050
10051 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10052 if test "x$LINE" != x ; then
10053 eval "DEFAULT_$LINE"
10054 else
10055 no_cache=1
10056 fi
10057
10058 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10059
10060fi;
10061
10062 eval "$ac_cv_use_palette"
10063 if test "$no_cache" != 1; then
10064 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10065 fi
10066
10067 if test "$wxUSE_PALETTE" = yes; then
10068 echo "$as_me:$LINENO: result: yes" >&5
10069echo "${ECHO_T}yes" >&6
10070 else
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
10073 fi
10074
10075
10076 enablestring=
10077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10078echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10079 no_cache=0
10080 # Check whether --enable-image or --disable-image was given.
10081if test "${enable_image+set}" = set; then
10082 enableval="$enable_image"
10083
10084 if test "$enableval" = yes; then
10085 ac_cv_use_image='wxUSE_IMAGE=yes'
10086 else
10087 ac_cv_use_image='wxUSE_IMAGE=no'
10088 fi
10089
10090else
10091
10092 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10093 if test "x$LINE" != x ; then
10094 eval "DEFAULT_$LINE"
10095 else
10096 no_cache=1
10097 fi
10098
10099 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10100
10101fi;
10102
10103 eval "$ac_cv_use_image"
10104 if test "$no_cache" != 1; then
10105 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10106 fi
10107
10108 if test "$wxUSE_IMAGE" = yes; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me:$LINENO: result: no" >&5
10113echo "${ECHO_T}no" >&6
10114 fi
10115
10116
10117 enablestring=
10118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10119echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10120 no_cache=0
10121 # Check whether --enable-gif or --disable-gif was given.
10122if test "${enable_gif+set}" = set; then
10123 enableval="$enable_gif"
10124
10125 if test "$enableval" = yes; then
10126 ac_cv_use_gif='wxUSE_GIF=yes'
10127 else
10128 ac_cv_use_gif='wxUSE_GIF=no'
10129 fi
10130
10131else
10132
10133 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10134 if test "x$LINE" != x ; then
10135 eval "DEFAULT_$LINE"
10136 else
10137 no_cache=1
10138 fi
10139
10140 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10141
10142fi;
10143
10144 eval "$ac_cv_use_gif"
10145 if test "$no_cache" != 1; then
10146 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10147 fi
10148
10149 if test "$wxUSE_GIF" = yes; then
10150 echo "$as_me:$LINENO: result: yes" >&5
10151echo "${ECHO_T}yes" >&6
10152 else
10153 echo "$as_me:$LINENO: result: no" >&5
10154echo "${ECHO_T}no" >&6
10155 fi
10156
10157
10158 enablestring=
10159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10160echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10161 no_cache=0
10162 # Check whether --enable-pcx or --disable-pcx was given.
10163if test "${enable_pcx+set}" = set; then
10164 enableval="$enable_pcx"
10165
10166 if test "$enableval" = yes; then
10167 ac_cv_use_pcx='wxUSE_PCX=yes'
10168 else
10169 ac_cv_use_pcx='wxUSE_PCX=no'
10170 fi
10171
10172else
10173
10174 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10175 if test "x$LINE" != x ; then
10176 eval "DEFAULT_$LINE"
10177 else
10178 no_cache=1
10179 fi
10180
10181 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10182
10183fi;
10184
10185 eval "$ac_cv_use_pcx"
10186 if test "$no_cache" != 1; then
10187 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10188 fi
10189
10190 if test "$wxUSE_PCX" = yes; then
10191 echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6
10193 else
10194 echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
10196 fi
10197
10198
10199 enablestring=
10200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10201echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10202 no_cache=0
10203 # Check whether --enable-iff or --disable-iff was given.
10204if test "${enable_iff+set}" = set; then
10205 enableval="$enable_iff"
10206
10207 if test "$enableval" = yes; then
10208 ac_cv_use_iff='wxUSE_IFF=yes'
10209 else
10210 ac_cv_use_iff='wxUSE_IFF=no'
10211 fi
10212
10213else
10214
10215 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10216 if test "x$LINE" != x ; then
10217 eval "DEFAULT_$LINE"
10218 else
10219 no_cache=1
10220 fi
10221
10222 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10223
10224fi;
10225
10226 eval "$ac_cv_use_iff"
10227 if test "$no_cache" != 1; then
10228 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10229 fi
10230
10231 if test "$wxUSE_IFF" = yes; then
10232 echo "$as_me:$LINENO: result: yes" >&5
10233echo "${ECHO_T}yes" >&6
10234 else
10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
10237 fi
10238
10239
10240 enablestring=
10241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10242echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10243 no_cache=0
10244 # Check whether --enable-pnm or --disable-pnm was given.
10245if test "${enable_pnm+set}" = set; then
10246 enableval="$enable_pnm"
10247
10248 if test "$enableval" = yes; then
10249 ac_cv_use_pnm='wxUSE_PNM=yes'
10250 else
10251 ac_cv_use_pnm='wxUSE_PNM=no'
10252 fi
10253
10254else
10255
10256 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10257 if test "x$LINE" != x ; then
10258 eval "DEFAULT_$LINE"
10259 else
10260 no_cache=1
10261 fi
10262
10263 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10264
10265fi;
10266
10267 eval "$ac_cv_use_pnm"
10268 if test "$no_cache" != 1; then
10269 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10270 fi
10271
10272 if test "$wxUSE_PNM" = yes; then
10273 echo "$as_me:$LINENO: result: yes" >&5
10274echo "${ECHO_T}yes" >&6
10275 else
10276 echo "$as_me:$LINENO: result: no" >&5
10277echo "${ECHO_T}no" >&6
10278 fi
10279
10280
10281 enablestring=
10282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10283echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10284 no_cache=0
10285 # Check whether --enable-xpm or --disable-xpm was given.
10286if test "${enable_xpm+set}" = set; then
10287 enableval="$enable_xpm"
10288
10289 if test "$enableval" = yes; then
10290 ac_cv_use_xpm='wxUSE_XPM=yes'
10291 else
10292 ac_cv_use_xpm='wxUSE_XPM=no'
10293 fi
10294
10295else
10296
10297 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10298 if test "x$LINE" != x ; then
10299 eval "DEFAULT_$LINE"
10300 else
10301 no_cache=1
10302 fi
10303
10304 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10305
10306fi;
10307
10308 eval "$ac_cv_use_xpm"
10309 if test "$no_cache" != 1; then
10310 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10311 fi
10312
10313 if test "$wxUSE_XPM" = yes; then
10314 echo "$as_me:$LINENO: result: yes" >&5
10315echo "${ECHO_T}yes" >&6
10316 else
10317 echo "$as_me:$LINENO: result: no" >&5
10318echo "${ECHO_T}no" >&6
10319 fi
10320
10321
10322 enablestring=
10323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10324echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10325 no_cache=0
10326 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10327if test "${enable_ico_cur+set}" = set; then
10328 enableval="$enable_ico_cur"
10329
10330 if test "$enableval" = yes; then
10331 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10332 else
10333 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10334 fi
10335
10336else
10337
10338 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10339 if test "x$LINE" != x ; then
10340 eval "DEFAULT_$LINE"
10341 else
10342 no_cache=1
10343 fi
10344
10345 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10346
10347fi;
10348
10349 eval "$ac_cv_use_ico_cur"
10350 if test "$no_cache" != 1; then
10351 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10352 fi
10353
10354 if test "$wxUSE_ICO_CUR" = yes; then
10355 echo "$as_me:$LINENO: result: yes" >&5
10356echo "${ECHO_T}yes" >&6
10357 else
10358 echo "$as_me:$LINENO: result: no" >&5
10359echo "${ECHO_T}no" >&6
10360 fi
10361
10362
10363fi
10364
10365
10366
ceec2216
RL
10367# Check whether --with-flavour or --without-flavour was given.
10368if test "${with_flavour+set}" = set; then
10369 withval="$with_flavour"
10370 WX_FLAVOUR="$withval"
10371fi;
10372
10373
10374
a848cd7e
SC
10375 enablestring=
10376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10377echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10378 no_cache=0
10379 # Check whether --enable-official_build or --disable-official_build was given.
10380if test "${enable_official_build+set}" = set; then
10381 enableval="$enable_official_build"
10382
10383 if test "$enableval" = yes; then
10384 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10385 else
10386 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10387 fi
10388
10389else
10390
10391 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10392 if test "x$LINE" != x ; then
10393 eval "DEFAULT_$LINE"
10394 else
10395 no_cache=1
10396 fi
10397
10398 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10399
10400fi;
10401
10402 eval "$ac_cv_use_official_build"
10403 if test "$no_cache" != 1; then
10404 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10405 fi
10406
10407 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10408 echo "$as_me:$LINENO: result: yes" >&5
10409echo "${ECHO_T}yes" >&6
10410 else
10411 echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
10413 fi
10414
10415# Check whether --enable-vendor or --disable-vendor was given.
10416if test "${enable_vendor+set}" = set; then
10417 enableval="$enable_vendor"
10418 VENDOR="$enableval"
10419fi;
10420if test "x$VENDOR" = "x"; then
10421 VENDOR="custom"
10422fi
10423
a848cd7e
SC
10424
10425
10426
10427 echo "saving argument cache $wx_arg_cache_file"
10428 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10429
10430
10431
10432echo "$as_me:$LINENO: checking for toolkit" >&5
10433echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10434
10435# In Wine, we need to default to MSW, not GTK or MOTIF
10436if test "$wxUSE_WINE" = "yes"; then
10437 DEFAULT_DEFAULT_wxUSE_GTK=0
10438 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10439 DEFAULT_DEFAULT_wxUSE_MSW=1
10440 wxUSE_SHARED=no
10441fi
10442
10443if test "$wxUSE_GUI" = "yes"; then
10444
10445 if test "$USE_BEOS" = 1; then
10446 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10447echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10448 { (exit 1); exit 1; }; }
10449 fi
10450
10451 if test "$TOOLKIT_GIVEN" = 1; then
10452 for toolkit in `echo $ALL_TOOLKITS`; do
10453 var=wxUSE_$toolkit
10454 eval "value=\$${var}"
10455 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10456 done
10457 else
10458 for toolkit in `echo $ALL_TOOLKITS`; do
10459 if test "$has_toolkit_in_cache" != 1; then
10460 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10461 else
10462 var=DEFAULT_wxUSE_$toolkit
10463 fi
10464 eval "wxUSE_$toolkit=\$${var}"
10465 done
10466 fi
10467
10468 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10469 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10470 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10471
10472 case "${host}" in
10473 *-pc-os2_emx | *-pc-os2-emx )
10474 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10475 esac
10476
10477 case "$NUM_TOOLKITS" in
10478 1)
10479 ;;
10480 0)
10481 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10482echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10483 { (exit 1); exit 1; }; }
10484 ;;
10485 *)
10486 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10487echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10488 { (exit 1); exit 1; }; }
10489 esac
10490
10491 for toolkit in `echo $ALL_TOOLKITS`; do
10492 var=wxUSE_$toolkit
10493 eval "value=\$${var}"
10494 if test "x$value" != x; then
10495 cache_var=CACHE_$toolkit
10496 eval "cache=\$${cache_var}"
10497 if test "$cache" = 1; then
10498 echo "$var=$value" >> ${wx_arg_cache_file}
10499 fi
10500 if test "$value" = 1; then
10501 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10502 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10503echo "${ECHO_T}$toolkit_echo" >&6
10504 fi
10505 fi
10506 done
10507else
10508 if test "x$host_alias" != "x"; then
10509 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10510echo "${ECHO_T}base ($host_alias hosted) only" >&6
10511 else
10512 echo "$as_me:$LINENO: result: base only" >&5
10513echo "${ECHO_T}base only" >&6
10514 fi
10515fi
10516
10517wants_win32=0
10518doesnt_want_win32=0
10519case "${host}" in
10520 *-*-cygwin*)
10521 if test "$wxUSE_MSW" = 1 ; then
10522 wants_win32=1
10523 else
10524 doesnt_want_win32=1
10525 fi
10526 ;;
10527 *-*-mingw*)
10528 wants_win32=1
10529 ;;
10530esac
10531
10532if test "$wxUSE_WINE" = "yes"; then
10533 wants_win32=1
10534 CC=winegcc
10535 CXX=wineg++
10536 RESCOMP=wrc
10537 LDFLAGS_GUI="-mwindows"
10538fi
10539
10540if test "$wants_win32" = 1 ; then
10541 USE_UNIX=0
10542 USE_WIN32=1
10543 cat >>confdefs.h <<\_ACEOF
10544#define __WIN32__ 1
10545_ACEOF
10546
10547 cat >>confdefs.h <<\_ACEOF
10548#define __WIN95__ 1
10549_ACEOF
10550
10551 cat >>confdefs.h <<\_ACEOF
10552#define __WINDOWS__ 1
10553_ACEOF
10554
10555 cat >>confdefs.h <<\_ACEOF
10556#define __GNUWIN32__ 1
10557_ACEOF
10558
10559 cat >>confdefs.h <<\_ACEOF
10560#define STRICT 1
10561_ACEOF
10562
10563 cat >>confdefs.h <<\_ACEOF
10564#define WINVER 0x0400
10565_ACEOF
10566
10567fi
10568if test "$doesnt_want_win32" = 1 ; then
10569 USE_UNIX=1
10570 USE_WIN32=0
10571fi
10572
10573if test "$USE_UNIX" = 1 ; then
10574 wxUSE_UNIX=yes
10575 cat >>confdefs.h <<\_ACEOF
10576#define __UNIX__ 1
10577_ACEOF
10578
10579fi
10580
10581
10582cat >confcache <<\_ACEOF
10583# This file is a shell script that caches the results of configure
10584# tests run on this system so they can be shared between configure
10585# scripts and configure runs, see configure's option --config-cache.
10586# It is not useful on other systems. If it contains results you don't
10587# want to keep, you may remove or edit it.
10588#
10589# config.status only pays attention to the cache file if you give it
10590# the --recheck option to rerun configure.
10591#
10592# `ac_cv_env_foo' variables (set or unset) will be overridden when
10593# loading this file, other *unset* `ac_cv_foo' will be assigned the
10594# following values.
10595
10596_ACEOF
10597
10598# The following way of writing the cache mishandles newlines in values,
10599# but we know of no workaround that is simple, portable, and efficient.
10600# So, don't put newlines in cache variables' values.
10601# Ultrix sh set writes to stderr and can't be redirected directly,
10602# and sets the high bit in the cache file unless we assign to the vars.
10603{
10604 (set) 2>&1 |
10605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10606 *ac_space=\ *)
10607 # `set' does not quote correctly, so add quotes (double-quote
10608 # substitution turns \\\\ into \\, and sed turns \\ into \).
10609 sed -n \
ac1cb8d3
VS
10610 "s/'/'\\\\''/g;
10611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10612 ;;
10613 *)
10614 # `set' quotes correctly as required by POSIX, so do not add quotes.
10615 sed -n \
ac1cb8d3 10616 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10617 ;;
10618 esac;
10619} |
10620 sed '
10621 t clear
10622 : clear
10623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10624 t end
10625 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10626 : end' >>confcache
10627if diff $cache_file confcache >/dev/null 2>&1; then :; else
10628 if test -w $cache_file; then
10629 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10630 cat confcache >$cache_file
10631 else
10632 echo "not updating unwritable cache $cache_file"
10633 fi
10634fi
10635rm -f confcache
10636
10637if test "$build" != "$host" ; then
1e9e8aba 10638 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10639 CC=$host_alias-gcc
10640 CXX=$host_alias-c++
10641 AR=$host_alias-ar
10642 RANLIB=$host_alias-ranlib
10643 DLLTOOL=$host_alias-dlltool
10644 RESCOMP=$host_alias-windres
a848cd7e 10645 STRIP=$host_alias-strip
1e9e8aba
DE
10646 elif test "x$CC" '!=' "x"; then
10647 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10648 else
10649 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10650echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10651 { (exit 1); exit 1; }; }
10652 fi
10653fi
10654
10655CFLAGS=${CFLAGS:=}
6dcfc289
DE
10656
10657
10658 ac_ext=c
a848cd7e
SC
10659ac_cpp='$CPP $CPPFLAGS'
10660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662ac_compiler_gnu=$ac_cv_c_compiler_gnu
10663if test -n "$ac_tool_prefix"; then
10664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10665set dummy ${ac_tool_prefix}gcc; ac_word=$2
10666echo "$as_me:$LINENO: checking for $ac_word" >&5
10667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10668if test "${ac_cv_prog_CC+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 if test -n "$CC"; then
10672 ac_cv_prog_CC="$CC" # Let the user override the test.
10673else
10674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675for as_dir in $PATH
10676do
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10684 fi
10685done
10686done
10687
10688fi
10689fi
10690CC=$ac_cv_prog_CC
10691if test -n "$CC"; then
10692 echo "$as_me:$LINENO: result: $CC" >&5
10693echo "${ECHO_T}$CC" >&6
10694else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697fi
10698
10699fi
10700if test -z "$ac_cv_prog_CC"; then
10701 ac_ct_CC=$CC
10702 # Extract the first word of "gcc", so it can be a program name with args.
10703set dummy gcc; ac_word=$2
10704echo "$as_me:$LINENO: checking for $ac_word" >&5
10705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 if test -n "$ac_ct_CC"; then
10710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_ac_ct_CC="gcc"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
10726fi
10727fi
10728ac_ct_CC=$ac_cv_prog_ac_ct_CC
10729if test -n "$ac_ct_CC"; then
10730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10731echo "${ECHO_T}$ac_ct_CC" >&6
10732else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735fi
10736
10737 CC=$ac_ct_CC
10738else
10739 CC="$ac_cv_prog_CC"
10740fi
10741
10742if test -z "$CC"; then
10743 if test -n "$ac_tool_prefix"; then
10744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10745set dummy ${ac_tool_prefix}cc; ac_word=$2
10746echo "$as_me:$LINENO: checking for $ac_word" >&5
10747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748if test "${ac_cv_prog_CC+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 if test -n "$CC"; then
10752 ac_cv_prog_CC="$CC" # Let the user override the test.
10753else
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_CC="${ac_tool_prefix}cc"
10762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765done
10766done
10767
10768fi
10769fi
10770CC=$ac_cv_prog_CC
10771if test -n "$CC"; then
10772 echo "$as_me:$LINENO: result: $CC" >&5
10773echo "${ECHO_T}$CC" >&6
10774else
10775 echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6
10777fi
10778
10779fi
10780if test -z "$ac_cv_prog_CC"; then
10781 ac_ct_CC=$CC
10782 # Extract the first word of "cc", so it can be a program name with args.
10783set dummy cc; ac_word=$2
10784echo "$as_me:$LINENO: checking for $ac_word" >&5
10785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 if test -n "$ac_ct_CC"; then
10790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10791else
10792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799 ac_cv_prog_ac_ct_CC="cc"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803done
10804done
10805
10806fi
10807fi
10808ac_ct_CC=$ac_cv_prog_ac_ct_CC
10809if test -n "$ac_ct_CC"; then
10810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10811echo "${ECHO_T}$ac_ct_CC" >&6
10812else
10813 echo "$as_me:$LINENO: result: no" >&5
10814echo "${ECHO_T}no" >&6
10815fi
10816
10817 CC=$ac_ct_CC
10818else
10819 CC="$ac_cv_prog_CC"
10820fi
10821
10822fi
10823if test -z "$CC"; then
10824 # Extract the first word of "cc", so it can be a program name with args.
10825set dummy cc; ac_word=$2
10826echo "$as_me:$LINENO: checking for $ac_word" >&5
10827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10828if test "${ac_cv_prog_CC+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 if test -n "$CC"; then
10832 ac_cv_prog_CC="$CC" # Let the user override the test.
10833else
10834 ac_prog_rejected=no
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10843 ac_prog_rejected=yes
10844 continue
10845 fi
10846 ac_cv_prog_CC="cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853if test $ac_prog_rejected = yes; then
10854 # We found a bogon in the path, so make sure we never use it.
10855 set dummy $ac_cv_prog_CC
10856 shift
10857 if test $# != 0; then
10858 # We chose a different compiler from the bogus one.
10859 # However, it has the same basename, so the bogon will be chosen
10860 # first if we set CC to just the basename; use the full file name.
10861 shift
10862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10863 fi
10864fi
10865fi
10866fi
10867CC=$ac_cv_prog_CC
10868if test -n "$CC"; then
10869 echo "$as_me:$LINENO: result: $CC" >&5
10870echo "${ECHO_T}$CC" >&6
10871else
10872 echo "$as_me:$LINENO: result: no" >&5
10873echo "${ECHO_T}no" >&6
10874fi
10875
10876fi
10877if test -z "$CC"; then
10878 if test -n "$ac_tool_prefix"; then
10879 for ac_prog in cl
10880 do
10881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10882set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10883echo "$as_me:$LINENO: checking for $ac_word" >&5
10884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885if test "${ac_cv_prog_CC+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887else
10888 if test -n "$CC"; then
10889 ac_cv_prog_CC="$CC" # Let the user override the test.
10890else
10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $PATH
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902done
10903done
10904
10905fi
10906fi
10907CC=$ac_cv_prog_CC
10908if test -n "$CC"; then
10909 echo "$as_me:$LINENO: result: $CC" >&5
10910echo "${ECHO_T}$CC" >&6
10911else
10912 echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6
10914fi
10915
10916 test -n "$CC" && break
10917 done
10918fi
10919if test -z "$CC"; then
10920 ac_ct_CC=$CC
10921 for ac_prog in cl
10922do
10923 # Extract the first word of "$ac_prog", so it can be a program name with args.
10924set dummy $ac_prog; ac_word=$2
10925echo "$as_me:$LINENO: checking for $ac_word" >&5
10926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 if test -n "$ac_ct_CC"; then
10931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10932else
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940 ac_cv_prog_ac_ct_CC="$ac_prog"
10941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944done
10945done
10946
10947fi
10948fi
10949ac_ct_CC=$ac_cv_prog_ac_ct_CC
10950if test -n "$ac_ct_CC"; then
10951 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10952echo "${ECHO_T}$ac_ct_CC" >&6
10953else
10954 echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6
10956fi
10957
10958 test -n "$ac_ct_CC" && break
10959done
10960
10961 CC=$ac_ct_CC
10962fi
10963
10964fi
10965
10966
10967test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10968See \`config.log' for more details." >&5
10969echo "$as_me: error: no acceptable C compiler found in \$PATH
10970See \`config.log' for more details." >&2;}
10971 { (exit 1); exit 1; }; }
10972
10973# Provide some information about the compiler.
10974echo "$as_me:$LINENO:" \
10975 "checking for C compiler version" >&5
10976ac_compiler=`set X $ac_compile; echo $2`
10977{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10978 (eval $ac_compiler --version </dev/null >&5) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }
10982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10983 (eval $ac_compiler -v </dev/null >&5) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }
10987{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10988 (eval $ac_compiler -V </dev/null >&5) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }
10992
10993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h. */
10999
11000int
11001main ()
11002{
11003
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008ac_clean_files_save=$ac_clean_files
11009ac_clean_files="$ac_clean_files a.out a.exe b.out"
11010# Try to create an executable without -o first, disregard a.out.
11011# It will help us diagnose broken compilers, and finding out an intuition
11012# of exeext.
ac1cb8d3
VS
11013echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11014echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11015ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11016if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11017 (eval $ac_link_default) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; then
11021 # Find the output, starting from the most likely. This scheme is
11022# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11023# resort.
11024
11025# Be careful to initialize this variable, since it used to be cached.
11026# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11027ac_cv_exeext=
11028# b.out is created by i960 compilers.
11029for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11030do
11031 test -f "$ac_file" || continue
11032 case $ac_file in
11033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11034 ;;
a848cd7e 11035 conftest.$ac_ext )
ac1cb8d3
VS
11036 # This is the source file.
11037 ;;
a848cd7e 11038 [ab].out )
ac1cb8d3
VS
11039 # We found the default executable, but exeext='' is most
11040 # certainly right.
11041 break;;
a848cd7e 11042 *.* )
ac1cb8d3
VS
11043 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11044 # FIXME: I believe we export ac_cv_exeext for Libtool,
11045 # but it would be cool to find out if it's true. Does anybody
11046 # maintain Libtool? --akim.
11047 export ac_cv_exeext
11048 break;;
a848cd7e 11049 * )
ac1cb8d3 11050 break;;
a848cd7e
SC
11051 esac
11052done
11053else
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11058See \`config.log' for more details." >&5
11059echo "$as_me: error: C compiler cannot create executables
11060See \`config.log' for more details." >&2;}
11061 { (exit 77); exit 77; }; }
11062fi
11063
11064ac_exeext=$ac_cv_exeext
11065echo "$as_me:$LINENO: result: $ac_file" >&5
11066echo "${ECHO_T}$ac_file" >&6
11067
11068# Check the compiler produces executables we can run. If not, either
11069# the compiler is broken, or we cross compile.
11070echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11071echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11072# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11073# If not cross compiling, check that we can run a simple program.
11074if test "$cross_compiling" != yes; then
11075 if { ac_try='./$ac_file'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 cross_compiling=no
11082 else
11083 if test "$cross_compiling" = maybe; then
11084 cross_compiling=yes
11085 else
11086 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11087If you meant to cross compile, use \`--host'.
11088See \`config.log' for more details." >&5
11089echo "$as_me: error: cannot run C compiled programs.
11090If you meant to cross compile, use \`--host'.
11091See \`config.log' for more details." >&2;}
11092 { (exit 1); exit 1; }; }
11093 fi
11094 fi
11095fi
11096echo "$as_me:$LINENO: result: yes" >&5
11097echo "${ECHO_T}yes" >&6
11098
11099rm -f a.out a.exe conftest$ac_cv_exeext b.out
11100ac_clean_files=$ac_clean_files_save
11101# Check the compiler produces executables we can run. If not, either
11102# the compiler is broken, or we cross compile.
11103echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11104echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11105echo "$as_me:$LINENO: result: $cross_compiling" >&5
11106echo "${ECHO_T}$cross_compiling" >&6
11107
11108echo "$as_me:$LINENO: checking for suffix of executables" >&5
11109echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; then
11115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11116# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11117# work properly (i.e., refer to `conftest.exe'), while it won't with
11118# `rm'.
11119for ac_file in conftest.exe conftest conftest.*; do
11120 test -f "$ac_file" || continue
11121 case $ac_file in
11122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11124 export ac_cv_exeext
11125 break;;
a848cd7e
SC
11126 * ) break;;
11127 esac
11128done
11129else
11130 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11131See \`config.log' for more details." >&5
11132echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11133See \`config.log' for more details." >&2;}
11134 { (exit 1); exit 1; }; }
11135fi
11136
11137rm -f conftest$ac_cv_exeext
11138echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11139echo "${ECHO_T}$ac_cv_exeext" >&6
11140
11141rm -f conftest.$ac_ext
11142EXEEXT=$ac_cv_exeext
11143ac_exeext=$EXEEXT
11144echo "$as_me:$LINENO: checking for suffix of object files" >&5
11145echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11146if test "${ac_cv_objext+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 cat >conftest.$ac_ext <<_ACEOF
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155
11156int
11157main ()
11158{
11159
11160 ;
11161 return 0;
11162}
11163_ACEOF
11164rm -f conftest.o conftest.obj
11165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166 (eval $ac_compile) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; then
11170 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11171 case $ac_file in
11172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11174 break;;
11175 esac
11176done
11177else
11178 echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
11181{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11182See \`config.log' for more details." >&5
11183echo "$as_me: error: cannot compute suffix of object files: cannot compile
11184See \`config.log' for more details." >&2;}
11185 { (exit 1); exit 1; }; }
11186fi
11187
11188rm -f conftest.$ac_cv_objext conftest.$ac_ext
11189fi
11190echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11191echo "${ECHO_T}$ac_cv_objext" >&6
11192OBJEXT=$ac_cv_objext
11193ac_objext=$OBJEXT
11194echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11195echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11196if test "${ac_cv_c_compiler_gnu+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206int
11207main ()
11208{
11209#ifndef __GNUC__
11210 choke me
11211#endif
11212
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11219 (eval $ac_compile) 2>conftest.er1
a848cd7e 11220 ac_status=$?
ac1cb8d3
VS
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
a848cd7e
SC
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
9dd0f6c2 11226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_compiler_gnu=yes
11239else
11240 echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243ac_compiler_gnu=no
11244fi
ac1cb8d3 11245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11246ac_cv_c_compiler_gnu=$ac_compiler_gnu
11247
11248fi
11249echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11250echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11251GCC=`test $ac_compiler_gnu = yes && echo yes`
11252ac_test_CFLAGS=${CFLAGS+set}
11253ac_save_CFLAGS=$CFLAGS
74802184 11254CFLAGS="-g"
a848cd7e
SC
11255echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11256echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11257if test "${ac_cv_prog_cc_g+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
11260 cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h. */
11266
11267int
11268main ()
11269{
11270
11271 ;
11272 return 0;
11273}
11274_ACEOF
11275rm -f conftest.$ac_objext
11276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11277 (eval $ac_compile) 2>conftest.er1
a848cd7e 11278 ac_status=$?
ac1cb8d3
VS
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
a848cd7e
SC
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
9dd0f6c2 11284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_prog_cc_g=yes
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301ac_cv_prog_cc_g=no
11302fi
ac1cb8d3 11303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11304fi
11305echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11306echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11307if test "$ac_test_CFLAGS" = set; then
11308 CFLAGS=$ac_save_CFLAGS
11309elif test $ac_cv_prog_cc_g = yes; then
11310 if test "$GCC" = yes; then
11311 CFLAGS="-g -O2"
11312 else
11313 CFLAGS="-g"
11314 fi
11315else
11316 if test "$GCC" = yes; then
11317 CFLAGS="-O2"
11318 else
11319 CFLAGS=
11320 fi
11321fi
11322echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11323echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11324if test "${ac_cv_prog_cc_stdc+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 ac_cv_prog_cc_stdc=no
11328ac_save_CC=$CC
11329cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335#include <stdarg.h>
11336#include <stdio.h>
11337#include <sys/types.h>
11338#include <sys/stat.h>
11339/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11340struct buf { int x; };
11341FILE * (*rcsopen) (struct buf *, struct stat *, int);
11342static char *e (p, i)
11343 char **p;
11344 int i;
11345{
11346 return p[i];
11347}
11348static char *f (char * (*g) (char **, int), char **p, ...)
11349{
11350 char *s;
11351 va_list v;
11352 va_start (v,p);
11353 s = g (p, va_arg (v,int));
11354 va_end (v);
11355 return s;
11356}
ac1cb8d3
VS
11357
11358/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11359 function prototypes and stuff, but not '\xHH' hex character constants.
11360 These don't provoke an error unfortunately, instead are silently treated
11361 as 'x'. The following induces an error, until -std1 is added to get
11362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11363 array size at least. It's necessary to write '\x00'==0 to get something
11364 that's true only with -std1. */
11365int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11366
a848cd7e
SC
11367int test (int i, double x);
11368struct s1 {int (*f) (int a);};
11369struct s2 {int (*f) (double a);};
11370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11371int argc;
11372char **argv;
11373int
11374main ()
11375{
11376return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11377 ;
11378 return 0;
11379}
11380_ACEOF
11381# Don't try gcc -ansi; that turns off useful extensions and
11382# breaks some systems' header files.
11383# AIX -qlanglvl=ansi
11384# Ultrix and OSF/1 -std1
11385# HP-UX 10.20 and later -Ae
11386# HP-UX older versions -Aa -D_HPUX_SOURCE
11387# SVR4 -Xc -D__EXTENSIONS__
11388for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11389do
11390 CC="$ac_save_CC $ac_arg"
11391 rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11393 (eval $ac_compile) 2>conftest.er1
a848cd7e 11394 ac_status=$?
ac1cb8d3
VS
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
a848cd7e
SC
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
9dd0f6c2 11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_prog_cc_stdc=$ac_arg
11413break
11414else
11415 echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418fi
ac1cb8d3 11419rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11420done
11421rm -f conftest.$ac_ext conftest.$ac_objext
11422CC=$ac_save_CC
11423
11424fi
11425
11426case "x$ac_cv_prog_cc_stdc" in
11427 x|xno)
11428 echo "$as_me:$LINENO: result: none needed" >&5
11429echo "${ECHO_T}none needed" >&6 ;;
11430 *)
11431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11432echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11433 CC="$CC $ac_cv_prog_cc_stdc" ;;
11434esac
11435
11436# Some people use a C++ compiler to compile C. Since we use `exit',
11437# in C++ we need to declare it. In case someone uses the same compiler
11438# for both compiling C and C++ we need to have the C++ compiler decide
11439# the declaration of exit, since it's the most demanding environment.
11440cat >conftest.$ac_ext <<_ACEOF
11441#ifndef __cplusplus
11442 choke me
11443#endif
11444_ACEOF
11445rm -f conftest.$ac_objext
11446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11447 (eval $ac_compile) 2>conftest.er1
a848cd7e 11448 ac_status=$?
ac1cb8d3
VS
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
a848cd7e
SC
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
9dd0f6c2 11454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 for ac_declaration in \
ac1cb8d3 11467 '' \
a848cd7e
SC
11468 'extern "C" void std::exit (int) throw (); using std::exit;' \
11469 'extern "C" void std::exit (int); using std::exit;' \
11470 'extern "C" void exit (int) throw ();' \
11471 'extern "C" void exit (int);' \
11472 'void exit (int);'
11473do
11474 cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
de59c161 11480$ac_declaration
ac1cb8d3 11481#include <stdlib.h>
a848cd7e
SC
11482int
11483main ()
11484{
11485exit (42);
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
9dd0f6c2 11499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 :
11512else
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516continue
11517fi
ac1cb8d3 11518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
11525$ac_declaration
11526int
11527main ()
11528{
11529exit (42);
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext
11535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11536 (eval $ac_compile) 2>conftest.er1
a848cd7e 11537 ac_status=$?
ac1cb8d3
VS
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
a848cd7e
SC
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
9dd0f6c2 11543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 break
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560fi
ac1cb8d3 11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11562done
11563rm -f conftest*
11564if test -n "$ac_declaration"; then
11565 echo '#ifdef __cplusplus' >>confdefs.h
11566 echo $ac_declaration >>confdefs.h
11567 echo '#endif' >>confdefs.h
11568fi
11569
11570else
11571 echo "$as_me: failed program was:" >&5
11572sed 's/^/| /' conftest.$ac_ext >&5
11573
11574fi
ac1cb8d3 11575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11576ac_ext=c
11577ac_cpp='$CPP $CPPFLAGS'
11578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11580ac_compiler_gnu=$ac_cv_c_compiler_gnu
11581
6dcfc289 11582 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11583echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11584if test "${wx_cv_c_exto+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593
11594int
11595main ()
11596{
11597
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext conftest.$ac_ext.o
11603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; then
11608 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11609 case $ac_file in
11610 conftest.$ac_ext.o)
11611 wx_cv_c_exto="-ext o"
11612 ;;
11613 *)
11614 ;;
11615 esac
11616done
11617else
11618 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11619See \`config.log' for more details." >&5
11620echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11621See \`config.log' for more details." >&2;}
11622 { (exit 1); exit 1; }; }
11623
11624fi
11625
11626rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11627
11628fi
11629echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11630echo "${ECHO_T}$wx_cv_c_exto" >&6
11631if test "x$wx_cv_c_exto" '!=' "x"; then
11632 if test "c" = "c"; then
11633 CFLAGS="$wx_cv_c_exto $CFLAGS"
11634 fi
11635 if test "c" = "cxx"; then
11636 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11637 fi
11638fi
11639
6dcfc289
DE
11640 if test "x$wx_cv_c_exto" '!=' "x"; then
11641 unset ac_cv_prog_cc_g
11642 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11643ac_save_CFLAGS=$CFLAGS
74802184 11644CFLAGS="-g"
480ccd21
DE
11645echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11646echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11647if test "${ac_cv_prog_cc_g+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656
11657int
11658main ()
11659{
11660
11661 ;
11662 return 0;
11663}
11664_ACEOF
11665rm -f conftest.$ac_objext
11666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
9dd0f6c2 11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_prog_cc_g=yes
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691ac_cv_prog_cc_g=no
11692fi
11693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11694fi
11695echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11696echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11697if test "$ac_test_CFLAGS" = set; then
11698 CFLAGS=$ac_save_CFLAGS
11699elif test $ac_cv_prog_cc_g = yes; then
11700 if test "$GCC" = yes; then
11701 CFLAGS="-g -O2"
11702 else
11703 CFLAGS="-g"
11704 fi
11705else
11706 if test "$GCC" = yes; then
11707 CFLAGS="-O2"
11708 else
11709 CFLAGS=
11710 fi
11711fi
6dcfc289
DE
11712 fi
11713 ac_ext=c
95986553
DE
11714ac_cpp='$CPP $CPPFLAGS'
11715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11717ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718
11719echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11720echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11721if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730
11731int
11732main ()
11733{
11734#ifndef __MWERKS__
11735 choke me
11736#endif
11737
11738 ;
11739 return 0;
11740}
11741_ACEOF
11742rm -f conftest.$ac_objext
11743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744 (eval $ac_compile) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
9dd0f6c2 11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 bakefile_compiler_mwerks=yes
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768bakefile_compiler_mwerks=no
11769fi
11770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11772
11773fi
11774echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11775echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11776
0e6fa1d9 11777MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11778ac_ext=c
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
11784
6dcfc289 11785 ac_ext=c
9273ffba
DE
11786ac_cpp='$CPP $CPPFLAGS'
11787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790
11791echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11792echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11793if test "${wx_cv_c_compiler_xlc+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802
11803int
11804main ()
11805{
11806#ifndef __xlC__
11807 choke me
11808#endif
11809
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
9dd0f6c2 11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 wx_compiler_xlc=yes
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840wx_compiler_xlc=no
11841fi
11842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11844
11845fi
11846echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11847echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11848
0e6fa1d9 11849XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11850ac_ext=c
11851ac_cpp='$CPP $CPPFLAGS'
11852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854ac_compiler_gnu=$ac_cv_c_compiler_gnu
11855
11856
a848cd7e 11857
6dcfc289 11858
a848cd7e
SC
11859ac_ext=c
11860ac_cpp='$CPP $CPPFLAGS'
11861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11865echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11866# On Suns, sometimes $CPP names a directory.
11867if test -n "$CPP" && test -d "$CPP"; then
11868 CPP=
11869fi
11870if test -z "$CPP"; then
11871 if test "${ac_cv_prog_CPP+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874 # Double quotes because CPP needs to be expanded
11875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11876 do
11877 ac_preproc_ok=false
11878for ac_c_preproc_warn_flag in '' yes
11879do
11880 # Use a header file that comes with gcc, so configuring glibc
11881 # with a fresh cross-compiler works.
11882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 # <limits.h> exists even on freestanding compilers.
11884 # On the NeXT, cc -E runs the code through the compiler's parser,
11885 # not just through cpp. "Syntax error" is here to catch this case.
11886 cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
11892#ifdef __STDC__
11893# include <limits.h>
11894#else
11895# include <assert.h>
11896#endif
ac1cb8d3 11897 Syntax error
a848cd7e
SC
11898_ACEOF
11899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null; then
11907 if test -s conftest.err; then
11908 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11910 else
11911 ac_cpp_err=
11912 fi
11913else
11914 ac_cpp_err=yes
11915fi
11916if test -z "$ac_cpp_err"; then
11917 :
11918else
11919 echo "$as_me: failed program was:" >&5
11920sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 # Broken: fails on valid input.
11923continue
11924fi
11925rm -f conftest.err conftest.$ac_ext
11926
11927 # OK, works on sane cases. Now check whether non-existent headers
11928 # can be detected and how.
11929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
11935#include <ac_nonexistent.h>
11936_ACEOF
11937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } >/dev/null; then
11945 if test -s conftest.err; then
11946 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11948 else
11949 ac_cpp_err=
11950 fi
11951else
11952 ac_cpp_err=yes
11953fi
11954if test -z "$ac_cpp_err"; then
11955 # Broken: success on invalid input.
11956continue
11957else
11958 echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 # Passes both tests.
11962ac_preproc_ok=:
11963break
11964fi
11965rm -f conftest.err conftest.$ac_ext
11966
11967done
11968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11969rm -f conftest.err conftest.$ac_ext
11970if $ac_preproc_ok; then
11971 break
11972fi
11973
11974 done
11975 ac_cv_prog_CPP=$CPP
11976
11977fi
11978 CPP=$ac_cv_prog_CPP
11979else
11980 ac_cv_prog_CPP=$CPP
11981fi
11982echo "$as_me:$LINENO: result: $CPP" >&5
11983echo "${ECHO_T}$CPP" >&6
11984ac_preproc_ok=false
11985for ac_c_preproc_warn_flag in '' yes
11986do
11987 # Use a header file that comes with gcc, so configuring glibc
11988 # with a fresh cross-compiler works.
11989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990 # <limits.h> exists even on freestanding compilers.
11991 # On the NeXT, cc -E runs the code through the compiler's parser,
11992 # not just through cpp. "Syntax error" is here to catch this case.
11993 cat >conftest.$ac_ext <<_ACEOF
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999#ifdef __STDC__
12000# include <limits.h>
12001#else
12002# include <assert.h>
12003#endif
ac1cb8d3 12004 Syntax error
a848cd7e
SC
12005_ACEOF
12006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } >/dev/null; then
12014 if test -s conftest.err; then
12015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12017 else
12018 ac_cpp_err=
12019 fi
12020else
12021 ac_cpp_err=yes
12022fi
12023if test -z "$ac_cpp_err"; then
12024 :
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 # Broken: fails on valid input.
12030continue
12031fi
12032rm -f conftest.err conftest.$ac_ext
12033
12034 # OK, works on sane cases. Now check whether non-existent headers
12035 # can be detected and how.
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#include <ac_nonexistent.h>
12043_ACEOF
12044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null; then
12052 if test -s conftest.err; then
12053 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12055 else
12056 ac_cpp_err=
12057 fi
12058else
12059 ac_cpp_err=yes
12060fi
12061if test -z "$ac_cpp_err"; then
12062 # Broken: success on invalid input.
12063continue
12064else
12065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 # Passes both tests.
12069ac_preproc_ok=:
12070break
12071fi
12072rm -f conftest.err conftest.$ac_ext
12073
12074done
12075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12076rm -f conftest.err conftest.$ac_ext
12077if $ac_preproc_ok; then
12078 :
12079else
12080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12081See \`config.log' for more details." >&5
12082echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12083See \`config.log' for more details." >&2;}
12084 { (exit 1); exit 1; }; }
12085fi
12086
12087ac_ext=c
12088ac_cpp='$CPP $CPPFLAGS'
12089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12091ac_compiler_gnu=$ac_cv_c_compiler_gnu
12092
12093
12094echo "$as_me:$LINENO: checking for egrep" >&5
12095echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12096if test "${ac_cv_prog_egrep+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
12099 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12100 then ac_cv_prog_egrep='grep -E'
12101 else ac_cv_prog_egrep='egrep'
12102 fi
12103fi
12104echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12105echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12106 EGREP=$ac_cv_prog_egrep
12107
12108
12109if test $ac_cv_c_compiler_gnu = yes; then
12110 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12111echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12112if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114else
12115 ac_pattern="Autoconf.*'x'"
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122#include <sgtty.h>
12123Autoconf TIOCGETP
12124_ACEOF
12125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12126 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12127 ac_cv_prog_gcc_traditional=yes
12128else
12129 ac_cv_prog_gcc_traditional=no
12130fi
12131rm -f conftest*
12132
12133
12134 if test $ac_cv_prog_gcc_traditional = no; then
12135 cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
12141#include <termio.h>
12142Autoconf TCGETA
12143_ACEOF
12144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12145 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12146 ac_cv_prog_gcc_traditional=yes
12147fi
12148rm -f conftest*
12149
12150 fi
12151fi
12152echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12153echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12154 if test $ac_cv_prog_gcc_traditional = yes; then
12155 CC="$CC -traditional"
12156 fi
12157fi
12158
12159
12160
12161
12162ac_ext=cc
12163ac_cpp='$CXXCPP $CPPFLAGS'
12164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12167
12168
12169CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12170
12171
12172 ac_ext=cc
a848cd7e
SC
12173ac_cpp='$CXXCPP $CPPFLAGS'
12174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12177if test -n "$ac_tool_prefix"; then
12178 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12179 do
12180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12182echo "$as_me:$LINENO: checking for $ac_word" >&5
12183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12184if test "${ac_cv_prog_CXX+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 if test -n "$CXX"; then
12188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12189else
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201done
12202done
12203
12204fi
12205fi
12206CXX=$ac_cv_prog_CXX
12207if test -n "$CXX"; then
12208 echo "$as_me:$LINENO: result: $CXX" >&5
12209echo "${ECHO_T}$CXX" >&6
12210else
12211 echo "$as_me:$LINENO: result: no" >&5
12212echo "${ECHO_T}no" >&6
12213fi
12214
12215 test -n "$CXX" && break
12216 done
12217fi
12218if test -z "$CXX"; then
12219 ac_ct_CXX=$CXX
12220 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12221do
12222 # Extract the first word of "$ac_prog", so it can be a program name with args.
12223set dummy $ac_prog; ac_word=$2
12224echo "$as_me:$LINENO: checking for $ac_word" >&5
12225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12226if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 if test -n "$ac_ct_CXX"; then
12230 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12231else
12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_prog_ac_ct_CXX="$ac_prog"
12240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243done
12244done
12245
12246fi
12247fi
12248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12249if test -n "$ac_ct_CXX"; then
12250 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12251echo "${ECHO_T}$ac_ct_CXX" >&6
12252else
12253 echo "$as_me:$LINENO: result: no" >&5
12254echo "${ECHO_T}no" >&6
12255fi
12256
12257 test -n "$ac_ct_CXX" && break
12258done
12259test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12260
12261 CXX=$ac_ct_CXX
12262fi
12263
12264
12265# Provide some information about the compiler.
12266echo "$as_me:$LINENO:" \
12267 "checking for C++ compiler version" >&5
12268ac_compiler=`set X $ac_compile; echo $2`
12269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12270 (eval $ac_compiler --version </dev/null >&5) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }
12274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12275 (eval $ac_compiler -v </dev/null >&5) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }
12279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12280 (eval $ac_compiler -V </dev/null >&5) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }
12284
12285echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12286echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12287if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
12290 cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
12296
12297int
12298main ()
12299{
12300#ifndef __GNUC__
12301 choke me
12302#endif
12303
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308rm -f conftest.$ac_objext
12309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12310 (eval $ac_compile) 2>conftest.er1
a848cd7e 12311 ac_status=$?
ac1cb8d3
VS
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
a848cd7e
SC
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
9dd0f6c2 12317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_compiler_gnu=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334ac_compiler_gnu=no
12335fi
ac1cb8d3 12336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12337ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12338
12339fi
12340echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12341echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12342GXX=`test $ac_compiler_gnu = yes && echo yes`
12343ac_test_CXXFLAGS=${CXXFLAGS+set}
12344ac_save_CXXFLAGS=$CXXFLAGS
12345CXXFLAGS="-g"
12346echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12347echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12348if test "${ac_cv_prog_cxx_g+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
12356/* end confdefs.h. */
12357
12358int
12359main ()
12360{
12361
12362 ;
12363 return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext
12367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12368 (eval $ac_compile) 2>conftest.er1
a848cd7e 12369 ac_status=$?
ac1cb8d3
VS
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
a848cd7e
SC
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
9dd0f6c2 12375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_cv_prog_cxx_g=yes
12388else
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392ac_cv_prog_cxx_g=no
12393fi
ac1cb8d3 12394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12395fi
12396echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12397echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12398if test "$ac_test_CXXFLAGS" = set; then
12399 CXXFLAGS=$ac_save_CXXFLAGS
12400elif test $ac_cv_prog_cxx_g = yes; then
12401 if test "$GXX" = yes; then
74802184 12402 CXXFLAGS="-g -O2"
a848cd7e 12403 else
74802184 12404 CXXFLAGS="-g"
a848cd7e
SC
12405 fi
12406else
12407 if test "$GXX" = yes; then
12408 CXXFLAGS="-O2"
12409 else
12410 CXXFLAGS=
12411 fi
12412fi
12413for ac_declaration in \
ac1cb8d3 12414 '' \
a848cd7e
SC
12415 'extern "C" void std::exit (int) throw (); using std::exit;' \
12416 'extern "C" void std::exit (int); using std::exit;' \
12417 'extern "C" void exit (int) throw ();' \
12418 'extern "C" void exit (int);' \
12419 'void exit (int);'
12420do
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
de59c161 12427$ac_declaration
ac1cb8d3 12428#include <stdlib.h>
a848cd7e
SC
12429int
12430main ()
12431{
12432exit (42);
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437rm -f conftest.$ac_objext
12438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12439 (eval $ac_compile) 2>conftest.er1
a848cd7e 12440 ac_status=$?
ac1cb8d3
VS
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
a848cd7e
SC
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
9dd0f6c2 12446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 :
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463continue
12464fi
ac1cb8d3 12465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472$ac_declaration
12473int
12474main ()
12475{
12476exit (42);
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12483 (eval $ac_compile) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
9dd0f6c2 12490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 break
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507fi
ac1cb8d3 12508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12509done
12510rm -f conftest*
12511if test -n "$ac_declaration"; then
12512 echo '#ifdef __cplusplus' >>confdefs.h
12513 echo $ac_declaration >>confdefs.h
12514 echo '#endif' >>confdefs.h
12515fi
12516
12517ac_ext=cc
12518ac_cpp='$CXXCPP $CPPFLAGS'
12519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12522
6dcfc289 12523 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12524echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12525if test "${wx_cv_cxx_exto+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527else
12528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534
12535int
12536main ()
12537{
12538
12539 ;
12540 return 0;
12541}
12542_ACEOF
12543rm -f conftest.$ac_objext conftest.$ac_ext.o
12544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; then
12549 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12550 case $ac_file in
12551 conftest.$ac_ext.o)
12552 wx_cv_cxx_exto="-ext o"
12553 ;;
12554 *)
12555 ;;
12556 esac
12557done
12558else
12559 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12560See \`config.log' for more details." >&5
12561echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12562See \`config.log' for more details." >&2;}
12563 { (exit 1); exit 1; }; }
12564
12565fi
12566
12567rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12568
12569fi
12570echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12571echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12572if test "x$wx_cv_cxx_exto" '!=' "x"; then
12573 if test "cxx" = "c"; then
12574 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12575 fi
12576 if test "cxx" = "cxx"; then
12577 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12578 fi
12579fi
12580
6dcfc289
DE
12581 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12582 unset ac_cv_prog_cxx_g
12583 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12584ac_save_CXXFLAGS=$CXXFLAGS
12585CXXFLAGS="-g"
12586echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12587echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12588if test "${ac_cv_prog_cxx_g+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590else
12591 cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
12597
12598int
12599main ()
12600{
12601
12602 ;
12603 return 0;
12604}
12605_ACEOF
12606rm -f conftest.$ac_objext
12607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
9dd0f6c2 12615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_prog_cxx_g=yes
12628else
12629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632ac_cv_prog_cxx_g=no
12633fi
12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635fi
12636echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12637echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12638if test "$ac_test_CXXFLAGS" = set; then
12639 CXXFLAGS=$ac_save_CXXFLAGS
12640elif test $ac_cv_prog_cxx_g = yes; then
12641 if test "$GXX" = yes; then
74802184 12642 CXXFLAGS="-g -O2"
480ccd21 12643 else
74802184 12644 CXXFLAGS="-g"
480ccd21
DE
12645 fi
12646else
12647 if test "$GXX" = yes; then
12648 CXXFLAGS="-O2"
12649 else
12650 CXXFLAGS=
12651 fi
12652fi
6dcfc289
DE
12653 fi
12654 ac_ext=cc
95986553
DE
12655ac_cpp='$CXXCPP $CPPFLAGS'
12656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12659
12660echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12661echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12662if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
12671
12672int
12673main ()
12674{
12675#ifndef __MWERKS__
12676 choke me
12677#endif
12678
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
9dd0f6c2 12692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 bakefile_compiler_mwerks=yes
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709bakefile_compiler_mwerks=no
12710fi
12711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12713
12714fi
12715echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12716echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12717
0e6fa1d9 12718MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12719ac_ext=cc
12720ac_cpp='$CXXCPP $CPPFLAGS'
12721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12724
12725
6dcfc289 12726 ac_ext=cc
9273ffba
DE
12727ac_cpp='$CXXCPP $CPPFLAGS'
12728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12731
12732echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12733echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12734if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736else
12737 cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h. */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h. */
12743
12744int
12745main ()
12746{
12747#ifndef __xlC__
12748 choke me
12749#endif
12750
12751 ;
12752 return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
9dd0f6c2 12764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 wx_compiler_xlc=yes
12777else
12778 echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781wx_compiler_xlc=no
12782fi
12783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12785
12786fi
12787echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12788echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12789
0e6fa1d9 12790XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12791ac_ext=cc
12792ac_cpp='$CXXCPP $CPPFLAGS'
12793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12796
12797
95986553 12798
6dcfc289 12799
a848cd7e
SC
12800ac_ext=c
12801ac_cpp='$CPP $CPPFLAGS'
12802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804ac_compiler_gnu=$ac_cv_c_compiler_gnu
12805
12806
a848cd7e
SC
12807if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12810echo "$as_me:$LINENO: checking for $ac_word" >&5
12811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12812if test "${ac_cv_prog_RANLIB+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 if test -n "$RANLIB"; then
12816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12817else
12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12828 fi
12829done
12830done
12831
12832fi
12833fi
12834RANLIB=$ac_cv_prog_RANLIB
12835if test -n "$RANLIB"; then
12836 echo "$as_me:$LINENO: result: $RANLIB" >&5
12837echo "${ECHO_T}$RANLIB" >&6
12838else
12839 echo "$as_me:$LINENO: result: no" >&5
12840echo "${ECHO_T}no" >&6
12841fi
12842
12843fi
12844if test -z "$ac_cv_prog_RANLIB"; then
12845 ac_ct_RANLIB=$RANLIB
12846 # Extract the first word of "ranlib", so it can be a program name with args.
12847set dummy ranlib; ac_word=$2
12848echo "$as_me:$LINENO: checking for $ac_word" >&5
12849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12850if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 if test -n "$ac_ct_RANLIB"; then
12854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12855else
12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_prog_ac_ct_RANLIB="ranlib"
12864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867done
12868done
12869
12870 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12871fi
12872fi
12873ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12874if test -n "$ac_ct_RANLIB"; then
12875 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12876echo "${ECHO_T}$ac_ct_RANLIB" >&6
12877else
12878 echo "$as_me:$LINENO: result: no" >&5
12879echo "${ECHO_T}no" >&6
12880fi
12881
12882 RANLIB=$ac_ct_RANLIB
12883else
12884 RANLIB="$ac_cv_prog_RANLIB"
12885fi
12886
12887
12888# Extract the first word of "ar", so it can be a program name with args.
12889set dummy ar; ac_word=$2
12890echo "$as_me:$LINENO: checking for $ac_word" >&5
12891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12892if test "${ac_cv_prog_AR+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895 if test -n "$AR"; then
12896 ac_cv_prog_AR="$AR" # Let the user override the test.
12897else
12898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899for as_dir in $PATH
12900do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12905 ac_cv_prog_AR="ar"
12906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12908 fi
12909done
12910done
12911
12912fi
12913fi
12914AR=$ac_cv_prog_AR
12915if test -n "$AR"; then
12916 echo "$as_me:$LINENO: result: $AR" >&5
12917echo "${ECHO_T}$AR" >&6
12918else
12919 echo "$as_me:$LINENO: result: no" >&5
12920echo "${ECHO_T}no" >&6
12921fi
12922
12923if test "x$AR" = "x" ; then
77ffb593
JS
12924 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12925echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12926 { (exit 1); exit 1; }; }
12927fi
12928
12929# Find a good install program. We prefer a C program (faster),
12930# so one script is as good as another. But avoid the broken or
12931# incompatible versions:
12932# SysV /etc/install, /usr/sbin/install
12933# SunOS /usr/etc/install
12934# IRIX /sbin/install
12935# AIX /bin/install
12936# AmigaOS /C/install, which installs bootblocks on floppy discs
12937# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12938# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12939# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12940# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12941# ./install, which can be erroneously created by make from ./install.sh.
12942echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12943echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12944if test -z "$INSTALL"; then
12945if test "${ac_cv_path_install+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 # Account for people who put trailing slashes in PATH elements.
12954case $as_dir/ in
12955 ./ | .// | /cC/* | \
12956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12957 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12958 /usr/ucb/* ) ;;
12959 *)
12960 # OSF1 and SCO ODT 3.0 have their own names for install.
12961 # Don't use installbsd from OSF since it installs stuff as root
12962 # by default.
12963 for ac_prog in ginstall scoinst install; do
12964 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12965 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12966 if test $ac_prog = install &&
12967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12968 # AIX install. It has an incompatible calling convention.
12969 :
12970 elif test $ac_prog = install &&
12971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12972 # program-specific install script used by HP pwplus--don't use.
12973 :
12974 else
12975 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12976 break 3
12977 fi
12978 fi
a848cd7e
SC
12979 done
12980 done
12981 ;;
12982esac
12983done
12984
12985
12986fi
12987 if test "${ac_cv_path_install+set}" = set; then
12988 INSTALL=$ac_cv_path_install
12989 else
12990 # As a last resort, use the slow shell script. We don't cache a
12991 # path for INSTALL within a source directory, because that will
12992 # break other packages using the cache if that directory is
12993 # removed, or if the path is relative.
12994 INSTALL=$ac_install_sh
12995 fi
12996fi
12997echo "$as_me:$LINENO: result: $INSTALL" >&5
12998echo "${ECHO_T}$INSTALL" >&6
12999
13000# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13001# It thinks the first close brace ends the variable substitution.
13002test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13003
13004test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13005
13006test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13007
13008
13009case ${INSTALL} in
13010 /* ) # Absolute
13011 ;;
13012 ?:* ) # Drive letter, considered as absolute.
13013 ;;
13014 *)
13015 INSTALL=`pwd`/${INSTALL} ;;
13016esac
13017
a848cd7e
SC
13018
13019case "${host}" in
13020
13021 powerpc-*-darwin* )
13022 INSTALL_PROGRAM="cp -fp"
13023 INSTALL_DATA="cp -fp"
13024 ;;
13025 *)
13026 ;;
13027esac
13028
13029# Extract the first word of "strip", so it can be a program name with args.
13030set dummy strip; ac_word=$2
13031echo "$as_me:$LINENO: checking for $ac_word" >&5
13032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033if test "${ac_cv_prog_STRIP+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 if test -n "$STRIP"; then
13037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13046 ac_cv_prog_STRIP="strip"
13047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13049 fi
13050done
13051done
13052
13053 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13054fi
13055fi
13056STRIP=$ac_cv_prog_STRIP
13057if test -n "$STRIP"; then
13058 echo "$as_me:$LINENO: result: $STRIP" >&5
13059echo "${ECHO_T}$STRIP" >&6
13060else
13061 echo "$as_me:$LINENO: result: no" >&5
13062echo "${ECHO_T}no" >&6
13063fi
13064
13065
13066echo "$as_me:$LINENO: checking if make is GNU make" >&5
13067echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13068if test "${wx_cv_prog_makeisgnu+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071
13072 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13073 egrep -s GNU > /dev/null); then
13074 wx_cv_prog_makeisgnu="yes"
13075 else
13076 wx_cv_prog_makeisgnu="no"
13077 fi
13078
13079fi
13080echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13081echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13082
13083if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13084 IF_GNU_MAKE=""
13085else
13086 IF_GNU_MAKE="#"
13087fi
13088
13089
13090
13091if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13092echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13093echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13094if test "${wx_cv_prog_makevpath+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097
13098cat - << EOF > confMake
13099check : file
13100 cp \$? \$@
13101 cp \$? final_file
13102EOF
13103
13104if test ! -d sub ; then
13105 mkdir sub
13106fi
13107echo dummy > sub/file
13108${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13109RESULT=$?
13110rm -f sub/file check final_file confMake
13111rmdir sub
13112if test "$RESULT" = 0; then
13113 wx_cv_prog_makevpath="yes"
13114else
13115 wx_cv_prog_makevpath="no"
13116fi
13117
13118fi
13119echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13120echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13121
13122if test "x$wx_cv_prog_makevpath" != "xyes"; then
13123{ { echo "$as_me:$LINENO: error:
13124You need a make-utility that is able to use the variable
13125VPATH correctly.
13126If your version of make does not support VPATH correctly,
13127please install GNU-make (possibly as gmake), and start
13128configure with the following command:
13129export MAKE=gmake; ./configure for sh-type shells
13130setenv MAKE gmake; ./configure for csh-type shells
13131Also please do remember to use gmake in this case every time
13132you are trying to compile.
13133" >&5
13134echo "$as_me: error:
13135You need a make-utility that is able to use the variable
13136VPATH correctly.
13137If your version of make does not support VPATH correctly,
13138please install GNU-make (possibly as gmake), and start
13139configure with the following command:
13140export MAKE=gmake; ./configure for sh-type shells
13141setenv MAKE gmake; ./configure for csh-type shells
13142Also please do remember to use gmake in this case every time
13143you are trying to compile.
13144" >&2;}
13145 { (exit 1); exit 1; }; }
13146fi fi
13147echo "$as_me:$LINENO: checking whether ln -s works" >&5
13148echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13149LN_S=$as_ln_s
13150if test "$LN_S" = "ln -s"; then
13151 echo "$as_me:$LINENO: result: yes" >&5
13152echo "${ECHO_T}yes" >&6
13153else
13154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13155echo "${ECHO_T}no, using $LN_S" >&6
13156fi
13157
13158
13159
9273ffba
DE
13160if test "x$XLCXX" = "xyes"; then
13161 CXXFLAGS="$CXXFLAGS -qunique"
13162fi
13163
13164
4d7ec9f1
DE
13165case "${host}" in
13166 powerpc-*-darwin* )
13167 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13168echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13169 cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
13175
13176int
13177main ()
13178{
13179#ifndef __POWERPC__
13180 choke me for lack of PowerPC
13181#endif
13182
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187rm -f conftest.$ac_objext
13188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 (eval $ac_compile) 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
9dd0f6c2 13196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 echo "$as_me:$LINENO: result: yes" >&5
13209echo "${ECHO_T}yes" >&6
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214echo "$as_me:$LINENO: result: no" >&5
13215echo "${ECHO_T}no" >&6
13216 cat >>confdefs.h <<\_ACEOF
13217#define __POWERPC__ 1
13218_ACEOF
13219
13220
13221fi
13222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13223 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13224echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13225 cat >conftest.$ac_ext <<_ACEOF
13226/* confdefs.h. */
13227_ACEOF
13228cat confdefs.h >>conftest.$ac_ext
13229cat >>conftest.$ac_ext <<_ACEOF
13230/* end confdefs.h. */
13231#include <CoreFoundation/CFBase.h>
13232
13233int
13234main ()
13235{
13236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext
13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
9dd0f6c2 13250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 echo "$as_me:$LINENO: result: yes" >&5
13263echo "${ECHO_T}yes" >&6
13264else
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268echo "$as_me:$LINENO: result: no" >&5
13269echo "${ECHO_T}no" >&6
13270 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13271echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13272 cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278#define __CF_USE_FRAMEWORK_INCLUDES__
13279#include <CoreFoundation/CFBase.h>
13280
13281int
13282main ()
13283{
13284
13285 ;
13286 return 0;
13287}
13288_ACEOF
13289rm -f conftest.$ac_objext
13290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
9dd0f6c2 13298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 echo "$as_me:$LINENO: result: yes" >&5
13311echo "${ECHO_T}yes" >&6
13312 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13318See \`config.log' for more details." >&5
13319echo "$as_me: error: no. CoreFoundation not available.
13320See \`config.log' for more details." >&2;}
13321 { (exit 1); exit 1; }; }
13322
13323fi
13324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325
13326
13327fi
13328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 ;;
13330esac
13331
a848cd7e
SC
13332case "${host}" in
13333 *-pc-os2_emx | *-pc-os2-emx )
13334 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13335 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13336echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13337if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339else
13340 ac_check_lib_save_LIBS=$LIBS
13341LIBS="-lcExt $LIBS"
13342cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348
13349/* Override any gcc2 internal prototype to avoid an error. */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353/* We use char because int might match the return type of a gcc2
13354 builtin and then its argument prototype would still apply. */
13355char drand48 ();
13356int
13357main ()
13358{
13359drand48 ();
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364rm -f conftest.$ac_objext conftest$ac_exeext
13365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13366 (eval $ac_link) 2>conftest.er1
a848cd7e 13367 ac_status=$?
ac1cb8d3
VS
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
a848cd7e
SC
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
9dd0f6c2 13373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_cv_lib_cExt_drand48=yes
13386else
13387 echo "$as_me: failed program was:" >&5
13388sed 's/^/| /' conftest.$ac_ext >&5
13389
13390ac_cv_lib_cExt_drand48=no
13391fi
ac1cb8d3
VS
13392rm -f conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13394LIBS=$ac_check_lib_save_LIBS
13395fi
13396echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13397echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13398if test $ac_cv_lib_cExt_drand48 = yes; then
13399 LIBS="$LIBS -lcExt"
13400fi
13401
13402 else
13403 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13404 fi
69120ee4
VZ
13405 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13406echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13407if test "${wx_cv_gccversion+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13409else
13410
391a765e
VS
13411 if test "$cross_compiling" = yes; then
13412 wx_cv_gccversion="EMX2"
13413
13414else
13415 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13416/* confdefs.h. */
13417_ACEOF
13418cat confdefs.h >>conftest.$ac_ext
13419cat >>conftest.$ac_ext <<_ACEOF
13420/* end confdefs.h. */
13421
391a765e 13422 #include <stdio.h>
a848cd7e 13423
391a765e
VS
13424 int main()
13425 {
13426 FILE *f=fopen("conftestval", "w");
13427 if (!f) exit(1);
13428 fprintf(f,
a848cd7e 13429 #if (__GNUC__ < 3)
391a765e
VS
13430 "EMX2"
13431 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13432 "EMX3"
13433 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13434 "Innotek5"
13435 #else
13436 "Innotek6"
a848cd7e 13437 #endif
391a765e
VS
13438 );
13439 exit(0);
13440 }
a848cd7e 13441
a848cd7e 13442_ACEOF
391a765e
VS
13443rm -f conftest$ac_exeext
13444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>&5
ac1cb8d3
VS
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
391a765e 13454 wx_cv_gccversion=`cat conftestval`
a848cd7e 13455else
391a765e
VS
13456 echo "$as_me: program exited with status $ac_status" >&5
13457echo "$as_me: failed program was:" >&5
a848cd7e
SC
13458sed 's/^/| /' conftest.$ac_ext >&5
13459
391a765e
VS
13460( exit $ac_status )
13461wx_cv_gccversion="EMX2"
a848cd7e 13462fi
391a765e 13463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13464fi
a848cd7e
SC
13465
13466fi
13467echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13468echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13469 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13470 LIBS="$LIBS -lstdcpp"
13471 LDFLAGS="$LDFLAGS -Zsysv-signals"
13472 else
391a765e 13473 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13474 LIBS="$LIBS -lstdcxx"
13475 LDFLAGS="$LDFLAGS -Zsysv-signals"
13476 else
13477 LIBS="$LIBS -lstdc++"
13478 fi
13479 fi
94acd38e
DE
13480 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13481 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13482echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13483 wxUSE_OMF=yes
2da0c077 13484 enable_omf=yes
a848cd7e
SC
13485 fi
13486 ;;
13487 *)
13488
13489
13490
13491 ac_ext=cc
13492ac_cpp='$CXXCPP $CPPFLAGS'
13493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13496
13497
95986553 13498 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13499echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13500if test "${ac_cv_string_strcasecmp+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503
13504 cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510
13511 #include <string.h>
13512
13513int
13514main ()
13515{
13516
13517 strcasecmp("foo", "bar");
13518
13519 ;
13520 return 0;
13521}
13522_ACEOF
13523rm -f conftest.$ac_objext conftest$ac_exeext
13524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13525 (eval $ac_link) 2>conftest.er1
a848cd7e 13526 ac_status=$?
ac1cb8d3
VS
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
a848cd7e
SC
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
9dd0f6c2 13532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 ac_cv_string_strcasecmp=yes
13545else
13546 echo "$as_me: failed program was:" >&5
13547sed 's/^/| /' conftest.$ac_ext >&5
13548
13549ac_cv_string_strcasecmp=no
13550
13551fi
ac1cb8d3
VS
13552rm -f conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13554
13555fi
13556echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13557echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13558
13559 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13560 cat >>confdefs.h <<\_ACEOF
13561#define HAVE_STRCASECMP_IN_STRING_H 1
13562_ACEOF
13563
13564 else
13565 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13566echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13567if test "${ac_cv_strings_strcasecmp+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570
13571 cat >conftest.$ac_ext <<_ACEOF
13572/* confdefs.h. */
13573_ACEOF
13574cat confdefs.h >>conftest.$ac_ext
13575cat >>conftest.$ac_ext <<_ACEOF
13576/* end confdefs.h. */
13577
13578 #include <strings.h>
13579
13580int
13581main ()
13582{
13583
13584 strcasecmp("foo", "bar");
13585
13586 ;
13587 return 0;
13588}
13589_ACEOF
13590rm -f conftest.$ac_objext conftest$ac_exeext
13591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13592 (eval $ac_link) 2>conftest.er1
a848cd7e 13593 ac_status=$?
ac1cb8d3
VS
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
a848cd7e
SC
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
9dd0f6c2 13599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_cv_strings_strcasecmp=yes
13612else
13613 echo "$as_me: failed program was:" >&5
13614sed 's/^/| /' conftest.$ac_ext >&5
13615
13616ac_cv_strings_strcasecmp=no
13617
13618fi
ac1cb8d3
VS
13619rm -f conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13621
13622fi
13623echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13624echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13625
0c3c69fc 13626 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13627 cat >>confdefs.h <<\_ACEOF
13628#define HAVE_STRCASECMP_IN_STRINGS_H 1
13629_ACEOF
13630
13631 else
13632 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13633echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13634 { (exit 1); exit 1; }; }
13635 fi
13636 fi
13637
13638 ac_ext=c
13639ac_cpp='$CPP $CPPFLAGS'
13640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13642ac_compiler_gnu=$ac_cv_c_compiler_gnu
13643
13644 ;;
13645esac
13646
13647
13648echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13649echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13650if test "${ac_cv_header_stdc+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652else
13653 cat >conftest.$ac_ext <<_ACEOF
13654/* confdefs.h. */
13655_ACEOF
13656cat confdefs.h >>conftest.$ac_ext
13657cat >>conftest.$ac_ext <<_ACEOF
13658/* end confdefs.h. */
13659#include <stdlib.h>
13660#include <stdarg.h>
13661#include <string.h>
13662#include <float.h>
13663
13664int
13665main ()
13666{
13667
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672rm -f conftest.$ac_objext
13673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13674 (eval $ac_compile) 2>conftest.er1
a848cd7e 13675 ac_status=$?
ac1cb8d3
VS
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
a848cd7e
SC
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
9dd0f6c2 13681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_header_stdc=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698ac_cv_header_stdc=no
13699fi
ac1cb8d3 13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13701
13702if test $ac_cv_header_stdc = yes; then
13703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13704 cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710#include <string.h>
13711
13712_ACEOF
13713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "memchr" >/dev/null 2>&1; then
13715 :
13716else
13717 ac_cv_header_stdc=no
13718fi
13719rm -f conftest*
13720
13721fi
13722
13723if test $ac_cv_header_stdc = yes; then
13724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13725 cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
13730/* end confdefs.h. */
13731#include <stdlib.h>
13732
13733_ACEOF
13734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735 $EGREP "free" >/dev/null 2>&1; then
13736 :
13737else
13738 ac_cv_header_stdc=no
13739fi
13740rm -f conftest*
13741
13742fi
13743
13744if test $ac_cv_header_stdc = yes; then
13745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13746 if test "$cross_compiling" = yes; then
13747 :
13748else
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#include <ctype.h>
13756#if ((' ' & 0x0FF) == 0x020)
13757# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13758# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13759#else
13760# define ISLOWER(c) \
ac1cb8d3
VS
13761 (('a' <= (c) && (c) <= 'i') \
13762 || ('j' <= (c) && (c) <= 'r') \
13763 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13764# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13765#endif
13766
13767#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13768int
13769main ()
13770{
13771 int i;
13772 for (i = 0; i < 256; i++)
13773 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13774 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13775 exit(2);
13776 exit (0);
13777}
13778_ACEOF
13779rm -f conftest$ac_exeext
13780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781 (eval $ac_link) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 :
13791else
13792 echo "$as_me: program exited with status $ac_status" >&5
13793echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
13796( exit $ac_status )
13797ac_cv_header_stdc=no
13798fi
ac1cb8d3 13799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13800fi
13801fi
13802fi
13803echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13804echo "${ECHO_T}$ac_cv_header_stdc" >&6
13805if test $ac_cv_header_stdc = yes; then
13806
13807cat >>confdefs.h <<\_ACEOF
13808#define STDC_HEADERS 1
13809_ACEOF
13810
13811fi
13812
13813# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13824 inttypes.h stdint.h unistd.h
a848cd7e
SC
13825do
13826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13827echo "$as_me:$LINENO: checking for $ac_header" >&5
13828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13829if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
13837/* end confdefs.h. */
13838$ac_includes_default
13839
13840#include <$ac_header>
13841_ACEOF
13842rm -f conftest.$ac_objext
13843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13844 (eval $ac_compile) 2>conftest.er1
a848cd7e 13845 ac_status=$?
ac1cb8d3
VS
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
a848cd7e
SC
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
9dd0f6c2 13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 eval "$as_ac_Header=yes"
13864else
13865 echo "$as_me: failed program was:" >&5
13866sed 's/^/| /' conftest.$ac_ext >&5
13867
13868eval "$as_ac_Header=no"
13869fi
ac1cb8d3 13870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13871fi
13872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13874if test `eval echo '${'$as_ac_Header'}'` = yes; then
13875 cat >>confdefs.h <<_ACEOF
13876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13877_ACEOF
13878
13879fi
13880
13881done
13882
13883
13884
13885for ac_header in stdlib.h
13886do
13887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13888if eval "test \"\${$as_ac_Header+set}\" = set"; then
13889 echo "$as_me:$LINENO: checking for $ac_header" >&5
13890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13891if eval "test \"\${$as_ac_Header+set}\" = set"; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893fi
13894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13896else
13897 # Is the header compilable?
13898echo "$as_me:$LINENO: checking $ac_header usability" >&5
13899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906$ac_includes_default
13907#include <$ac_header>
13908_ACEOF
13909rm -f conftest.$ac_objext
13910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13911 (eval $ac_compile) 2>conftest.er1
a848cd7e 13912 ac_status=$?
ac1cb8d3
VS
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
a848cd7e
SC
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
9dd0f6c2 13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_header_compiler=yes
13931else
13932 echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935ac_header_compiler=no
13936fi
ac1cb8d3 13937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13939echo "${ECHO_T}$ac_header_compiler" >&6
13940
13941# Is the header present?
13942echo "$as_me:$LINENO: checking $ac_header presence" >&5
13943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950#include <$ac_header>
13951_ACEOF
13952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } >/dev/null; then
13960 if test -s conftest.err; then
13961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13963 else
13964 ac_cpp_err=
13965 fi
13966else
13967 ac_cpp_err=yes
13968fi
13969if test -z "$ac_cpp_err"; then
13970 ac_header_preproc=yes
13971else
13972 echo "$as_me: failed program was:" >&5
13973sed 's/^/| /' conftest.$ac_ext >&5
13974
13975 ac_header_preproc=no
13976fi
13977rm -f conftest.err conftest.$ac_ext
13978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13979echo "${ECHO_T}$ac_header_preproc" >&6
13980
13981# So? What about this header?
ac1cb8d3
VS
13982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13983 yes:no: )
a848cd7e
SC
13984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13988 ac_header_preproc=yes
a848cd7e 13989 ;;
ac1cb8d3 13990 no:yes:* )
a848cd7e
SC
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14003 (
14004 cat <<\_ASBOX
ac1cb8d3
VS
14005## ----------------------------------------- ##
14006## Report this to wx-dev@lists.wxwidgets.org ##
14007## ----------------------------------------- ##
a848cd7e
SC
14008_ASBOX
14009 ) |
14010 sed "s/^/$as_me: WARNING: /" >&2
14011 ;;
14012esac
14013echo "$as_me:$LINENO: checking for $ac_header" >&5
14014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14015if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017else
ac1cb8d3 14018 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14019fi
14020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022
14023fi
14024if test `eval echo '${'$as_ac_Header'}'` = yes; then
14025 cat >>confdefs.h <<_ACEOF
14026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14027_ACEOF
14028
14029fi
14030
14031done
14032
14033
14034for ac_header in malloc.h
14035do
14036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14037if eval "test \"\${$as_ac_Header+set}\" = set"; then
14038 echo "$as_me:$LINENO: checking for $ac_header" >&5
14039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042fi
14043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14045else
14046 # Is the header compilable?
14047echo "$as_me:$LINENO: checking $ac_header usability" >&5
14048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055$ac_includes_default
14056#include <$ac_header>
14057_ACEOF
14058rm -f conftest.$ac_objext
14059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14060 (eval $ac_compile) 2>conftest.er1
a848cd7e 14061 ac_status=$?
ac1cb8d3
VS
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
a848cd7e
SC
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
9dd0f6c2 14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } &&
14073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 ac_header_compiler=yes
14080else
14081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084ac_header_compiler=no
14085fi
ac1cb8d3 14086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14088echo "${ECHO_T}$ac_header_compiler" >&6
14089
14090# Is the header present?
14091echo "$as_me:$LINENO: checking $ac_header presence" >&5
14092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14093cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099#include <$ac_header>
14100_ACEOF
14101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } >/dev/null; then
14109 if test -s conftest.err; then
14110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14112 else
14113 ac_cpp_err=
14114 fi
14115else
14116 ac_cpp_err=yes
14117fi
14118if test -z "$ac_cpp_err"; then
14119 ac_header_preproc=yes
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_header_preproc=no
14125fi
14126rm -f conftest.err conftest.$ac_ext
14127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14128echo "${ECHO_T}$ac_header_preproc" >&6
14129
14130# So? What about this header?
ac1cb8d3
VS
14131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14132 yes:no: )
a848cd7e
SC
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14137 ac_header_preproc=yes
a848cd7e 14138 ;;
ac1cb8d3 14139 no:yes:* )
a848cd7e
SC
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14152 (
14153 cat <<\_ASBOX
ac1cb8d3
VS
14154## ----------------------------------------- ##
14155## Report this to wx-dev@lists.wxwidgets.org ##
14156## ----------------------------------------- ##
a848cd7e
SC
14157_ASBOX
14158 ) |
14159 sed "s/^/$as_me: WARNING: /" >&2
14160 ;;
14161esac
14162echo "$as_me:$LINENO: checking for $ac_header" >&5
14163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14164if eval "test \"\${$as_ac_Header+set}\" = set"; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166else
ac1cb8d3 14167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14168fi
14169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14171
14172fi
14173if test `eval echo '${'$as_ac_Header'}'` = yes; then
14174 cat >>confdefs.h <<_ACEOF
14175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14176_ACEOF
14177
14178fi
14179
14180done
14181
14182
14183for ac_header in unistd.h
14184do
14185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187 echo "$as_me:$LINENO: checking for $ac_header" >&5
14188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191fi
14192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14194else
14195 # Is the header compilable?
14196echo "$as_me:$LINENO: checking $ac_header usability" >&5
14197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14198cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
14204$ac_includes_default
14205#include <$ac_header>
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14209 (eval $ac_compile) 2>conftest.er1
a848cd7e 14210 ac_status=$?
ac1cb8d3
VS
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
a848cd7e
SC
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
9dd0f6c2 14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_header_compiler=yes
14229else
14230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233ac_header_compiler=no
14234fi
ac1cb8d3 14235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14237echo "${ECHO_T}$ac_header_compiler" >&6
14238
14239# Is the header present?
14240echo "$as_me:$LINENO: checking $ac_header presence" >&5
14241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14242cat >conftest.$ac_ext <<_ACEOF
14243/* confdefs.h. */
14244_ACEOF
14245cat confdefs.h >>conftest.$ac_ext
14246cat >>conftest.$ac_ext <<_ACEOF
14247/* end confdefs.h. */
14248#include <$ac_header>
14249_ACEOF
14250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } >/dev/null; then
14258 if test -s conftest.err; then
14259 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14261 else
14262 ac_cpp_err=
14263 fi
14264else
14265 ac_cpp_err=yes
14266fi
14267if test -z "$ac_cpp_err"; then
14268 ac_header_preproc=yes
14269else
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 ac_header_preproc=no
14274fi
14275rm -f conftest.err conftest.$ac_ext
14276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14277echo "${ECHO_T}$ac_header_preproc" >&6
14278
14279# So? What about this header?
ac1cb8d3
VS
14280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14281 yes:no: )
a848cd7e
SC
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14286 ac_header_preproc=yes
a848cd7e 14287 ;;
ac1cb8d3 14288 no:yes:* )
a848cd7e
SC
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14292echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14296echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14301 (
14302 cat <<\_ASBOX
ac1cb8d3
VS
14303## ----------------------------------------- ##
14304## Report this to wx-dev@lists.wxwidgets.org ##
14305## ----------------------------------------- ##
a848cd7e
SC
14306_ASBOX
14307 ) |
14308 sed "s/^/$as_me: WARNING: /" >&2
14309 ;;
14310esac
14311echo "$as_me:$LINENO: checking for $ac_header" >&5
14312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14313if eval "test \"\${$as_ac_Header+set}\" = set"; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315else
ac1cb8d3 14316 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14317fi
14318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320
14321fi
14322if test `eval echo '${'$as_ac_Header'}'` = yes; then
14323 cat >>confdefs.h <<_ACEOF
14324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14325_ACEOF
14326
14327fi
14328
14329done
14330
14331
14332for ac_header in wchar.h
14333do
14334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14335if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340fi
14341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343else
14344 # Is the header compilable?
14345echo "$as_me:$LINENO: checking $ac_header usability" >&5
14346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14347cat >conftest.$ac_ext <<_ACEOF
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
14353$ac_includes_default
14354#include <$ac_header>
14355_ACEOF
14356rm -f conftest.$ac_objext
14357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14358 (eval $ac_compile) 2>conftest.er1
a848cd7e 14359 ac_status=$?
ac1cb8d3
VS
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
a848cd7e
SC
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
9dd0f6c2 14365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler=yes
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382ac_header_compiler=no
14383fi
ac1cb8d3 14384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386echo "${ECHO_T}$ac_header_compiler" >&6
14387
14388# Is the header present?
14389echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397#include <$ac_header>
14398_ACEOF
14399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14410 else
14411 ac_cpp_err=
14412 fi
14413else
14414 ac_cpp_err=yes
14415fi
14416if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ac_header_preproc=no
14423fi
14424rm -f conftest.err conftest.$ac_ext
14425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14426echo "${ECHO_T}$ac_header_preproc" >&6
14427
14428# So? What about this header?
ac1cb8d3
VS
14429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 yes:no: )
a848cd7e
SC
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14435 ac_header_preproc=yes
a848cd7e 14436 ;;
ac1cb8d3 14437 no:yes:* )
a848cd7e
SC
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14450 (
14451 cat <<\_ASBOX
ac1cb8d3
VS
14452## ----------------------------------------- ##
14453## Report this to wx-dev@lists.wxwidgets.org ##
14454## ----------------------------------------- ##
a848cd7e
SC
14455_ASBOX
14456 ) |
14457 sed "s/^/$as_me: WARNING: /" >&2
14458 ;;
14459esac
14460echo "$as_me:$LINENO: checking for $ac_header" >&5
14461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14462if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464else
ac1cb8d3 14465 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14466fi
14467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14469
14470fi
14471if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474_ACEOF
14475
14476fi
14477
14478done
14479
14480
14481if test "$ac_cv_header_wchar_h" != "yes"; then
14482
14483for ac_header in wcstr.h
14484do
14485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491fi
14492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14494else
14495 # Is the header compilable?
14496echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h. */
14504$ac_includes_default
14505#include <$ac_header>
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14509 (eval $ac_compile) 2>conftest.er1
a848cd7e 14510 ac_status=$?
ac1cb8d3
VS
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
a848cd7e
SC
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
9dd0f6c2 14516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_header_compiler=yes
14529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
14533ac_header_compiler=no
14534fi
ac1cb8d3 14535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537echo "${ECHO_T}$ac_header_compiler" >&6
14538
14539# Is the header present?
14540echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14542cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548#include <$ac_header>
14549_ACEOF
14550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } >/dev/null; then
14558 if test -s conftest.err; then
14559 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14561 else
14562 ac_cpp_err=
14563 fi
14564else
14565 ac_cpp_err=yes
14566fi
14567if test -z "$ac_cpp_err"; then
14568 ac_header_preproc=yes
14569else
14570 echo "$as_me: failed program was:" >&5
14571sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_header_preproc=no
14574fi
14575rm -f conftest.err conftest.$ac_ext
14576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577echo "${ECHO_T}$ac_header_preproc" >&6
14578
14579# So? What about this header?
ac1cb8d3
VS
14580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14581 yes:no: )
a848cd7e
SC
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14586 ac_header_preproc=yes
a848cd7e 14587 ;;
ac1cb8d3 14588 no:yes:* )
a848cd7e
SC
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14601 (
14602 cat <<\_ASBOX
ac1cb8d3
VS
14603## ----------------------------------------- ##
14604## Report this to wx-dev@lists.wxwidgets.org ##
14605## ----------------------------------------- ##
a848cd7e
SC
14606_ASBOX
14607 ) |
14608 sed "s/^/$as_me: WARNING: /" >&2
14609 ;;
14610esac
14611echo "$as_me:$LINENO: checking for $ac_header" >&5
14612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615else
ac1cb8d3 14616 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14617fi
14618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14620
14621fi
14622if test `eval echo '${'$as_ac_Header'}'` = yes; then
14623 cat >>confdefs.h <<_ACEOF
14624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14625_ACEOF
14626
14627fi
14628
14629done
14630
14631fi
14632
14633
14634for ac_header in fnmatch.h
14635do
14636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14637if eval "test \"\${$as_ac_Header+set}\" = set"; then
14638 echo "$as_me:$LINENO: checking for $ac_header" >&5
14639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14640if eval "test \"\${$as_ac_Header+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642fi
14643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14645else
14646 # Is the header compilable?
14647echo "$as_me:$LINENO: checking $ac_header usability" >&5
14648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14649cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655$ac_includes_default
14656#include <$ac_header>
14657_ACEOF
14658rm -f conftest.$ac_objext
14659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14660 (eval $ac_compile) 2>conftest.er1
a848cd7e 14661 ac_status=$?
ac1cb8d3
VS
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
a848cd7e
SC
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
9dd0f6c2 14667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_header_compiler=yes
14680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684ac_header_compiler=no
14685fi
ac1cb8d3 14686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688echo "${ECHO_T}$ac_header_compiler" >&6
14689
14690# Is the header present?
14691echo "$as_me:$LINENO: checking $ac_header presence" >&5
14692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699#include <$ac_header>
14700_ACEOF
14701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } >/dev/null; then
14709 if test -s conftest.err; then
14710 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14712 else
14713 ac_cpp_err=
14714 fi
14715else
14716 ac_cpp_err=yes
14717fi
14718if test -z "$ac_cpp_err"; then
14719 ac_header_preproc=yes
14720else
14721 echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724 ac_header_preproc=no
14725fi
14726rm -f conftest.err conftest.$ac_ext
14727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14728echo "${ECHO_T}$ac_header_preproc" >&6
14729
14730# So? What about this header?
ac1cb8d3
VS
14731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14732 yes:no: )
a848cd7e
SC
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14737 ac_header_preproc=yes
a848cd7e 14738 ;;
ac1cb8d3 14739 no:yes:* )
a848cd7e
SC
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14752 (
14753 cat <<\_ASBOX
ac1cb8d3
VS
14754## ----------------------------------------- ##
14755## Report this to wx-dev@lists.wxwidgets.org ##
14756## ----------------------------------------- ##
a848cd7e
SC
14757_ASBOX
14758 ) |
14759 sed "s/^/$as_me: WARNING: /" >&2
14760 ;;
14761esac
14762echo "$as_me:$LINENO: checking for $ac_header" >&5
14763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14764if eval "test \"\${$as_ac_Header+set}\" = set"; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
ac1cb8d3 14767 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14768fi
14769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14771
14772fi
14773if test `eval echo '${'$as_ac_Header'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14776_ACEOF
14777
14778fi
14779
14780done
14781
14782
14783if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14784
14785for ac_func in fnmatch
14786do
14787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14788echo "$as_me:$LINENO: checking for $ac_func" >&5
14789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14790if eval "test \"\${$as_ac_var+set}\" = set"; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14792else
14793 cat >conftest.$ac_ext <<_ACEOF
14794/* confdefs.h. */
14795_ACEOF
14796cat confdefs.h >>conftest.$ac_ext
14797cat >>conftest.$ac_ext <<_ACEOF
14798/* end confdefs.h. */
ac1cb8d3
VS
14799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14801#define $ac_func innocuous_$ac_func
14802
a848cd7e
SC
14803/* System header to define __stub macros and hopefully few prototypes,
14804 which can conflict with char $ac_func (); below.
14805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14806 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14807
a848cd7e
SC
14808#ifdef __STDC__
14809# include <limits.h>
14810#else
14811# include <assert.h>
14812#endif
ac1cb8d3
VS
14813
14814#undef $ac_func
14815
a848cd7e
SC
14816/* Override any gcc2 internal prototype to avoid an error. */
14817#ifdef __cplusplus
14818extern "C"
14819{
14820#endif
14821/* We use char because int might match the return type of a gcc2
14822 builtin and then its argument prototype would still apply. */
14823char $ac_func ();
14824/* The GNU C library defines this for functions which it implements
14825 to always fail with ENOSYS. Some functions are actually named
14826 something starting with __ and the normal name is an alias. */
14827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14828choke me
14829#else
14830char (*f) () = $ac_func;
14831#endif
14832#ifdef __cplusplus
14833}
14834#endif
14835
14836int
14837main ()
14838{
14839return f != $ac_func;
14840 ;
14841 return 0;
14842}
14843_ACEOF
14844rm -f conftest.$ac_objext conftest$ac_exeext
14845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14846 (eval $ac_link) 2>conftest.er1
a848cd7e 14847 ac_status=$?
ac1cb8d3
VS
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
a848cd7e
SC
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
9dd0f6c2 14853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 eval "$as_ac_var=yes"
14866else
14867 echo "$as_me: failed program was:" >&5
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870eval "$as_ac_var=no"
14871fi
ac1cb8d3
VS
14872rm -f conftest.err conftest.$ac_objext \
14873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14874fi
14875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14877if test `eval echo '${'$as_ac_var'}'` = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14880_ACEOF
14881
14882fi
14883done
14884
14885fi
14886
14887
14888for ac_header in langinfo.h
14889do
14890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14891if eval "test \"\${$as_ac_Header+set}\" = set"; then
14892 echo "$as_me:$LINENO: checking for $ac_header" >&5
14893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14894if eval "test \"\${$as_ac_Header+set}\" = set"; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896fi
14897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14899else
14900 # Is the header compilable?
14901echo "$as_me:$LINENO: checking $ac_header usability" >&5
14902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14903cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909$ac_includes_default
14910#include <$ac_header>
14911_ACEOF
14912rm -f conftest.$ac_objext
14913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14914 (eval $ac_compile) 2>conftest.er1
a848cd7e 14915 ac_status=$?
ac1cb8d3
VS
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
a848cd7e
SC
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
9dd0f6c2 14921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_header_compiler=yes
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938ac_header_compiler=no
14939fi
ac1cb8d3 14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14942echo "${ECHO_T}$ac_header_compiler" >&6
14943
14944# Is the header present?
14945echo "$as_me:$LINENO: checking $ac_header presence" >&5
14946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953#include <$ac_header>
14954_ACEOF
14955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } >/dev/null; then
14963 if test -s conftest.err; then
14964 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14966 else
14967 ac_cpp_err=
14968 fi
14969else
14970 ac_cpp_err=yes
14971fi
14972if test -z "$ac_cpp_err"; then
14973 ac_header_preproc=yes
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 ac_header_preproc=no
14979fi
14980rm -f conftest.err conftest.$ac_ext
14981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14982echo "${ECHO_T}$ac_header_preproc" >&6
14983
14984# So? What about this header?
ac1cb8d3
VS
14985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14986 yes:no: )
a848cd7e
SC
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14991 ac_header_preproc=yes
a848cd7e 14992 ;;
ac1cb8d3 14993 no:yes:* )
a848cd7e
SC
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15006 (
15007 cat <<\_ASBOX
ac1cb8d3
VS
15008## ----------------------------------------- ##
15009## Report this to wx-dev@lists.wxwidgets.org ##
15010## ----------------------------------------- ##
a848cd7e
SC
15011_ASBOX
15012 ) |
15013 sed "s/^/$as_me: WARNING: /" >&2
15014 ;;
15015esac
15016echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15018if eval "test \"\${$as_ac_Header+set}\" = set"; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15020else
ac1cb8d3 15021 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15022fi
15023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15025
15026fi
15027if test `eval echo '${'$as_ac_Header'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15030_ACEOF
15031
15032fi
15033
15034done
15035
15036
15037case "${host}" in
15038 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15039 if test $ac_cv_header_langinfo_h = "yes" \
15040 -a \( "$wx_cv_gccversion" = "EMX2" \
15041 -o "$wx_cv_gccversion" = "EMX3" \
15042 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15043 LIBS="$LIBS -lintl"
15044 fi
15045 ;;
15046esac
15047
15048if test "$wxUSE_GUI" = "yes"; then
15049 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15050
15051for ac_header in X11/Xlib.h
15052do
15053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054if eval "test \"\${$as_ac_Header+set}\" = set"; then
15055 echo "$as_me:$LINENO: checking for $ac_header" >&5
15056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15057if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059fi
15060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15062else
15063 # Is the header compilable?
15064echo "$as_me:$LINENO: checking $ac_header usability" >&5
15065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15066cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072$ac_includes_default
15073#include <$ac_header>
15074_ACEOF
15075rm -f conftest.$ac_objext
15076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15077 (eval $ac_compile) 2>conftest.er1
a848cd7e 15078 ac_status=$?
ac1cb8d3
VS
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
a848cd7e
SC
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
9dd0f6c2 15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_header_compiler=yes
15097else
15098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101ac_header_compiler=no
15102fi
ac1cb8d3 15103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15105echo "${ECHO_T}$ac_header_compiler" >&6
15106
15107# Is the header present?
15108echo "$as_me:$LINENO: checking $ac_header presence" >&5
15109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116#include <$ac_header>
15117_ACEOF
15118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } >/dev/null; then
15126 if test -s conftest.err; then
15127 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15129 else
15130 ac_cpp_err=
15131 fi
15132else
15133 ac_cpp_err=yes
15134fi
15135if test -z "$ac_cpp_err"; then
15136 ac_header_preproc=yes
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141 ac_header_preproc=no
15142fi
15143rm -f conftest.err conftest.$ac_ext
15144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15145echo "${ECHO_T}$ac_header_preproc" >&6
15146
15147# So? What about this header?
ac1cb8d3
VS
15148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149 yes:no: )
a848cd7e
SC
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15154 ac_header_preproc=yes
a848cd7e 15155 ;;
ac1cb8d3 15156 no:yes:* )
a848cd7e
SC
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15169 (
15170 cat <<\_ASBOX
ac1cb8d3
VS
15171## ----------------------------------------- ##
15172## Report this to wx-dev@lists.wxwidgets.org ##
15173## ----------------------------------------- ##
a848cd7e
SC
15174_ASBOX
15175 ) |
15176 sed "s/^/$as_me: WARNING: /" >&2
15177 ;;
15178esac
15179echo "$as_me:$LINENO: checking for $ac_header" >&5
15180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15181if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183else
ac1cb8d3 15184 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15185fi
15186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15188
15189fi
15190if test `eval echo '${'$as_ac_Header'}'` = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15193_ACEOF
15194
15195fi
15196
15197done
15198
15199
15200for ac_header in X11/XKBlib.h
15201do
15202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203echo "$as_me:$LINENO: checking for $ac_header" >&5
15204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15205if eval "test \"\${$as_ac_Header+set}\" = set"; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207else
15208 cat >conftest.$ac_ext <<_ACEOF
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214
15215 #if HAVE_X11_XLIB_H
15216 #include <X11/Xlib.h>
15217 #endif
15218
15219
15220#include <$ac_header>
15221_ACEOF
15222rm -f conftest.$ac_objext
15223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15224 (eval $ac_compile) 2>conftest.er1
a848cd7e 15225 ac_status=$?
ac1cb8d3
VS
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
a848cd7e
SC
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
9dd0f6c2 15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 eval "$as_ac_Header=yes"
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248eval "$as_ac_Header=no"
15249fi
ac1cb8d3 15250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15251fi
15252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15254if test `eval echo '${'$as_ac_Header'}'` = yes; then
15255 cat >>confdefs.h <<_ACEOF
15256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15257_ACEOF
15258
15259fi
15260
15261done
15262
15263 fi
15264fi
15265
15266
15267echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15268echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15269if test "${ac_cv_c_const+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278
15279int
15280main ()
15281{
15282/* FIXME: Include the comments suggested by Paul. */
15283#ifndef __cplusplus
15284 /* Ultrix mips cc rejects this. */
15285 typedef int charset[2];
15286 const charset x;
15287 /* SunOS 4.1.1 cc rejects this. */
15288 char const *const *ccp;
15289 char **p;
15290 /* NEC SVR4.0.2 mips cc rejects this. */
15291 struct point {int x, y;};
15292 static struct point const zero = {0,0};
15293 /* AIX XL C 1.02.0.0 rejects this.
15294 It does not let you subtract one const X* pointer from another in
15295 an arm of an if-expression whose if-part is not a constant
15296 expression */
15297 const char *g = "string";
15298 ccp = &g + (g ? g-g : 0);
15299 /* HPUX 7.0 cc rejects these. */
15300 ++ccp;
15301 p = (char**) ccp;
15302 ccp = (char const *const *) p;
15303 { /* SCO 3.2v4 cc rejects this. */
15304 char *t;
15305 char const *s = 0 ? (char *) 0 : (char const *) 0;
15306
15307 *t++ = 0;
15308 }
15309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15310 int x[] = {25, 17};
15311 const int *foo = &x[0];
15312 ++foo;
15313 }
15314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15315 typedef const int *iptr;
15316 iptr p = 0;
15317 ++p;
15318 }
15319 { /* AIX XL C 1.02.0.0 rejects this saying
15320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15321 struct s { int j; const int *ap[3]; };
15322 struct s *b; b->j = 5;
15323 }
15324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15325 const int foo = 10;
15326 }
15327#endif
15328
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext
15334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15335 (eval $ac_compile) 2>conftest.er1
a848cd7e 15336 ac_status=$?
ac1cb8d3
VS
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
a848cd7e
SC
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
9dd0f6c2 15342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 ac_cv_c_const=yes
15355else
15356 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359ac_cv_c_const=no
15360fi
ac1cb8d3 15361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15362fi
15363echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15364echo "${ECHO_T}$ac_cv_c_const" >&6
15365if test $ac_cv_c_const = no; then
15366
15367cat >>confdefs.h <<\_ACEOF
15368#define const
15369_ACEOF
15370
15371fi
15372
15373echo "$as_me:$LINENO: checking for inline" >&5
15374echo $ECHO_N "checking for inline... $ECHO_C" >&6
15375if test "${ac_cv_c_inline+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377else
15378 ac_cv_c_inline=no
15379for ac_kw in inline __inline__ __inline; do
15380 cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386#ifndef __cplusplus
15387typedef int foo_t;
15388static $ac_kw foo_t static_foo () {return 0; }
15389$ac_kw foo_t foo () {return 0; }
15390#endif
15391
15392_ACEOF
15393rm -f conftest.$ac_objext
15394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15395 (eval $ac_compile) 2>conftest.er1
a848cd7e 15396 ac_status=$?
ac1cb8d3
VS
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
a848cd7e
SC
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
9dd0f6c2 15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_c_inline=$ac_kw; break
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419fi
ac1cb8d3 15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15421done
15422
15423fi
15424echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15425echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15426
15427
a848cd7e
SC
15428case $ac_cv_c_inline in
15429 inline | yes) ;;
ac1cb8d3
VS
15430 *)
15431 case $ac_cv_c_inline in
15432 no) ac_val=;;
15433 *) ac_val=$ac_cv_c_inline;;
15434 esac
15435 cat >>confdefs.h <<_ACEOF
15436#ifndef __cplusplus
15437#define inline $ac_val
15438#endif
de59c161 15439_ACEOF
ac1cb8d3 15440 ;;
a848cd7e
SC
15441esac
15442
15443
15444echo "$as_me:$LINENO: checking for char" >&5
15445echo $ECHO_N "checking for char... $ECHO_C" >&6
15446if test "${ac_cv_type_char+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448else
15449 cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
15455$ac_includes_default
15456int
15457main ()
15458{
15459if ((char *) 0)
15460 return 0;
15461if (sizeof (char))
15462 return 0;
15463 ;
15464 return 0;
15465}
15466_ACEOF
15467rm -f conftest.$ac_objext
15468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15469 (eval $ac_compile) 2>conftest.er1
a848cd7e 15470 ac_status=$?
ac1cb8d3
VS
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
a848cd7e
SC
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
9dd0f6c2 15476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; } &&
15482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15488 ac_cv_type_char=yes
15489else
15490 echo "$as_me: failed program was:" >&5
15491sed 's/^/| /' conftest.$ac_ext >&5
15492
15493ac_cv_type_char=no
15494fi
ac1cb8d3 15495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15496fi
15497echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15498echo "${ECHO_T}$ac_cv_type_char" >&6
15499
15500echo "$as_me:$LINENO: checking size of char" >&5
15501echo $ECHO_N "checking size of char... $ECHO_C" >&6
15502if test "${ac_cv_sizeof_char+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504else
15505 if test "$ac_cv_type_char" = yes; then
15506 # The cast to unsigned long works around a bug in the HP C Compiler
15507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15509 # This bug is HP SR number 8606223364.
15510 if test "$cross_compiling" = yes; then
15511 # Depending upon the size, compute the lo and hi bounds.
15512cat >conftest.$ac_ext <<_ACEOF
15513/* confdefs.h. */
15514_ACEOF
15515cat confdefs.h >>conftest.$ac_ext
15516cat >>conftest.$ac_ext <<_ACEOF
15517/* end confdefs.h. */
15518$ac_includes_default
15519int
15520main ()
15521{
15522static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15523test_array [0] = 0
15524
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529rm -f conftest.$ac_objext
15530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15531 (eval $ac_compile) 2>conftest.er1
a848cd7e 15532 ac_status=$?
ac1cb8d3
VS
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
a848cd7e
SC
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
9dd0f6c2 15538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_lo=0 ac_mid=0
15551 while :; do
15552 cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558$ac_includes_default
15559int
15560main ()
15561{
15562static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15563test_array [0] = 0
15564
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15571 (eval $ac_compile) 2>conftest.er1
a848cd7e 15572 ac_status=$?
ac1cb8d3
VS
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
a848cd7e
SC
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
9dd0f6c2 15578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_hi=$ac_mid; break
15591else
15592 echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
15595ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15596 if test $ac_lo -le $ac_mid; then
15597 ac_lo= ac_hi=
15598 break
15599 fi
15600 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15601fi
ac1cb8d3 15602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15603 done
15604else
15605 echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614$ac_includes_default
15615int
15616main ()
15617{
15618static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15619test_array [0] = 0
15620
15621 ;
15622 return 0;
15623}
15624_ACEOF
15625rm -f conftest.$ac_objext
15626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15627 (eval $ac_compile) 2>conftest.er1
a848cd7e 15628 ac_status=$?
ac1cb8d3
VS
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
a848cd7e
SC
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
9dd0f6c2 15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_hi=-1 ac_mid=-1
15647 while :; do
15648 cat >conftest.$ac_ext <<_ACEOF
15649/* confdefs.h. */
15650_ACEOF
15651cat confdefs.h >>conftest.$ac_ext
15652cat >>conftest.$ac_ext <<_ACEOF
15653/* end confdefs.h. */
15654$ac_includes_default
15655int
15656main ()
15657{
15658static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15659test_array [0] = 0
15660
15661 ;
15662 return 0;
15663}
15664_ACEOF
15665rm -f conftest.$ac_objext
15666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15667 (eval $ac_compile) 2>conftest.er1
a848cd7e 15668 ac_status=$?
ac1cb8d3
VS
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
a848cd7e
SC
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
9dd0f6c2 15674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_lo=$ac_mid; break
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15692 if test $ac_mid -le $ac_hi; then
15693 ac_lo= ac_hi=
15694 break
15695 fi
15696 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15697fi
ac1cb8d3 15698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15699 done
15700else
15701 echo "$as_me: failed program was:" >&5
15702sed 's/^/| /' conftest.$ac_ext >&5
15703
15704ac_lo= ac_hi=
15705fi
ac1cb8d3 15706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15707fi
ac1cb8d3 15708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15709# Binary search between lo and hi bounds.
15710while test "x$ac_lo" != "x$ac_hi"; do
15711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15712 cat >conftest.$ac_ext <<_ACEOF
15713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
15718$ac_includes_default
15719int
15720main ()
15721{
15722static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15723test_array [0] = 0
15724
15725 ;
15726 return 0;
15727}
15728_ACEOF
15729rm -f conftest.$ac_objext
15730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15731 (eval $ac_compile) 2>conftest.er1
a848cd7e 15732 ac_status=$?
ac1cb8d3
VS
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
a848cd7e
SC
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
9dd0f6c2 15738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_hi=$ac_mid
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755ac_lo=`expr '(' $ac_mid ')' + 1`
15756fi
ac1cb8d3 15757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15758done
15759case $ac_lo in
15760?*) ac_cv_sizeof_char=$ac_lo;;
15761'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15762See \`config.log' for more details." >&5
15763echo "$as_me: error: cannot compute sizeof (char), 77
15764See \`config.log' for more details." >&2;}
15765 { (exit 1); exit 1; }; } ;;
15766esac
15767else
15768 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15769 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15770echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15771 { (exit 1); exit 1; }; }
15772else
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780long longval () { return (long) (sizeof (char)); }
15781unsigned long ulongval () { return (long) (sizeof (char)); }
15782#include <stdio.h>
15783#include <stdlib.h>
15784int
15785main ()
15786{
15787
15788 FILE *f = fopen ("conftest.val", "w");
15789 if (! f)
15790 exit (1);
15791 if (((long) (sizeof (char))) < 0)
15792 {
15793 long i = longval ();
15794 if (i != ((long) (sizeof (char))))
15795 exit (1);
15796 fprintf (f, "%ld\n", i);
15797 }
15798 else
15799 {
15800 unsigned long i = ulongval ();
15801 if (i != ((long) (sizeof (char))))
15802 exit (1);
15803 fprintf (f, "%lu\n", i);
15804 }
15805 exit (ferror (f) || fclose (f) != 0);
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest$ac_exeext
15812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813 (eval $ac_link) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_sizeof_char=`cat conftest.val`
15823else
15824 echo "$as_me: program exited with status $ac_status" >&5
15825echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828( exit $ac_status )
15829{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15830See \`config.log' for more details." >&5
15831echo "$as_me: error: cannot compute sizeof (char), 77
15832See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; }
15834fi
ac1cb8d3 15835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15836fi
15837fi
15838rm -f conftest.val
15839else
15840 ac_cv_sizeof_char=0
15841fi
15842fi
15843echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15844echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15845cat >>confdefs.h <<_ACEOF
15846#define SIZEOF_CHAR $ac_cv_sizeof_char
15847_ACEOF
15848
15849
15850echo "$as_me:$LINENO: checking for short" >&5
15851echo $ECHO_N "checking for short... $ECHO_C" >&6
15852if test "${ac_cv_type_short+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854else
15855 cat >conftest.$ac_ext <<_ACEOF
15856/* confdefs.h. */
15857_ACEOF
15858cat confdefs.h >>conftest.$ac_ext
15859cat >>conftest.$ac_ext <<_ACEOF
15860/* end confdefs.h. */
15861$ac_includes_default
15862int
15863main ()
15864{
15865if ((short *) 0)
15866 return 0;
15867if (sizeof (short))
15868 return 0;
15869 ;
15870 return 0;
15871}
15872_ACEOF
15873rm -f conftest.$ac_objext
15874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15875 (eval $ac_compile) 2>conftest.er1
a848cd7e 15876 ac_status=$?
ac1cb8d3
VS
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
a848cd7e
SC
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
9dd0f6c2 15882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 ac_cv_type_short=yes
15895else
15896 echo "$as_me: failed program was:" >&5
15897sed 's/^/| /' conftest.$ac_ext >&5
15898
15899ac_cv_type_short=no
15900fi
ac1cb8d3 15901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15902fi
15903echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15904echo "${ECHO_T}$ac_cv_type_short" >&6
15905
15906echo "$as_me:$LINENO: checking size of short" >&5
15907echo $ECHO_N "checking size of short... $ECHO_C" >&6
15908if test "${ac_cv_sizeof_short+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 if test "$ac_cv_type_short" = yes; then
15912 # The cast to unsigned long works around a bug in the HP C Compiler
15913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15915 # This bug is HP SR number 8606223364.
15916 if test "$cross_compiling" = yes; then
15917 # Depending upon the size, compute the lo and hi bounds.
15918cat >conftest.$ac_ext <<_ACEOF
15919/* confdefs.h. */
15920_ACEOF
15921cat confdefs.h >>conftest.$ac_ext
15922cat >>conftest.$ac_ext <<_ACEOF
15923/* end confdefs.h. */
15924$ac_includes_default
15925int
15926main ()
15927{
15928static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15929test_array [0] = 0
15930
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext
15936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15937 (eval $ac_compile) 2>conftest.er1
a848cd7e 15938 ac_status=$?
ac1cb8d3
VS
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
a848cd7e
SC
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
9dd0f6c2 15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 ac_lo=0 ac_mid=0
15957 while :; do
15958 cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964$ac_includes_default
15965int
15966main ()
15967{
15968static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15969test_array [0] = 0
15970
15971 ;
15972 return 0;
15973}
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15977 (eval $ac_compile) 2>conftest.er1
a848cd7e 15978 ac_status=$?
ac1cb8d3
VS
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
a848cd7e
SC
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
9dd0f6c2 15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 ac_hi=$ac_mid; break
15997else
15998 echo "$as_me: failed program was:" >&5
15999sed 's/^/| /' conftest.$ac_ext >&5
16000
16001ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16002 if test $ac_lo -le $ac_mid; then
16003 ac_lo= ac_hi=
16004 break
16005 fi
16006 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16007fi
ac1cb8d3 16008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16009 done
16010else
16011 echo "$as_me: failed program was:" >&5
16012sed 's/^/| /' conftest.$ac_ext >&5
16013
16014cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021int
16022main ()
16023{
16024static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16025test_array [0] = 0
16026
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16033 (eval $ac_compile) 2>conftest.er1
a848cd7e 16034 ac_status=$?
ac1cb8d3
VS
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
a848cd7e
SC
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
9dd0f6c2 16040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_hi=-1 ac_mid=-1
16053 while :; do
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060$ac_includes_default
16061int
16062main ()
16063{
16064static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16065test_array [0] = 0
16066
16067 ;
16068 return 0;
16069}
16070_ACEOF
16071rm -f conftest.$ac_objext
16072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16073 (eval $ac_compile) 2>conftest.er1
a848cd7e 16074 ac_status=$?
ac1cb8d3
VS
16075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
a848cd7e
SC
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
9dd0f6c2 16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_lo=$ac_mid; break
16093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16098 if test $ac_mid -le $ac_hi; then
16099 ac_lo= ac_hi=
16100 break
16101 fi
16102 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16103fi
ac1cb8d3 16104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16105 done
16106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110ac_lo= ac_hi=
16111fi
ac1cb8d3 16112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16113fi
ac1cb8d3 16114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16115# Binary search between lo and hi bounds.
16116while test "x$ac_lo" != "x$ac_hi"; do
16117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16118 cat >conftest.$ac_ext <<_ACEOF
16119/* confdefs.h. */
16120_ACEOF
16121cat confdefs.h >>conftest.$ac_ext
16122cat >>conftest.$ac_ext <<_ACEOF
16123/* end confdefs.h. */
16124$ac_includes_default
16125int
16126main ()
16127{
16128static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16129test_array [0] = 0
16130
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135rm -f conftest.$ac_objext
16136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16137 (eval $ac_compile) 2>conftest.er1
a848cd7e 16138 ac_status=$?
ac1cb8d3
VS
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
a848cd7e
SC
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
9dd0f6c2 16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_hi=$ac_mid
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
16161ac_lo=`expr '(' $ac_mid ')' + 1`
16162fi
ac1cb8d3 16163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16164done
16165case $ac_lo in
16166?*) ac_cv_sizeof_short=$ac_lo;;
16167'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16168See \`config.log' for more details." >&5
16169echo "$as_me: error: cannot compute sizeof (short), 77
16170See \`config.log' for more details." >&2;}
16171 { (exit 1); exit 1; }; } ;;
16172esac
16173else
16174 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16175 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16176echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16177 { (exit 1); exit 1; }; }
16178else
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
16185$ac_includes_default
16186long longval () { return (long) (sizeof (short)); }
16187unsigned long ulongval () { return (long) (sizeof (short)); }
16188#include <stdio.h>
16189#include <stdlib.h>
16190int
16191main ()
16192{
16193
16194 FILE *f = fopen ("conftest.val", "w");
16195 if (! f)
16196 exit (1);
16197 if (((long) (sizeof (short))) < 0)
16198 {
16199 long i = longval ();
16200 if (i != ((long) (sizeof (short))))
16201 exit (1);
16202 fprintf (f, "%ld\n", i);
16203 }
16204 else
16205 {
16206 unsigned long i = ulongval ();
16207 if (i != ((long) (sizeof (short))))
16208 exit (1);
16209 fprintf (f, "%lu\n", i);
16210 }
16211 exit (ferror (f) || fclose (f) != 0);
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest$ac_exeext
16218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219 (eval $ac_link) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_cv_sizeof_short=`cat conftest.val`
16229else
16230 echo "$as_me: program exited with status $ac_status" >&5
16231echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234( exit $ac_status )
16235{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16236See \`config.log' for more details." >&5
16237echo "$as_me: error: cannot compute sizeof (short), 77
16238See \`config.log' for more details." >&2;}
16239 { (exit 1); exit 1; }; }
16240fi
ac1cb8d3 16241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16242fi
16243fi
16244rm -f conftest.val
16245else
16246 ac_cv_sizeof_short=0
16247fi
16248fi
16249echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16250echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16251cat >>confdefs.h <<_ACEOF
16252#define SIZEOF_SHORT $ac_cv_sizeof_short
16253_ACEOF
16254
16255
16256echo "$as_me:$LINENO: checking for void *" >&5
16257echo $ECHO_N "checking for void *... $ECHO_C" >&6
16258if test "${ac_cv_type_void_p+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267$ac_includes_default
16268int
16269main ()
16270{
16271if ((void * *) 0)
16272 return 0;
16273if (sizeof (void *))
16274 return 0;
16275 ;
16276 return 0;
16277}
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16281 (eval $ac_compile) 2>conftest.er1
a848cd7e 16282 ac_status=$?
ac1cb8d3
VS
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
a848cd7e
SC
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
9dd0f6c2 16288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_cv_type_void_p=yes
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305ac_cv_type_void_p=no
16306fi
ac1cb8d3 16307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16308fi
16309echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16310echo "${ECHO_T}$ac_cv_type_void_p" >&6
16311
16312echo "$as_me:$LINENO: checking size of void *" >&5
16313echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16314if test "${ac_cv_sizeof_void_p+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317 if test "$ac_cv_type_void_p" = yes; then
16318 # The cast to unsigned long works around a bug in the HP C Compiler
16319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16321 # This bug is HP SR number 8606223364.
16322 if test "$cross_compiling" = yes; then
16323 # Depending upon the size, compute the lo and hi bounds.
16324cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16335test_array [0] = 0
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16343 (eval $ac_compile) 2>conftest.er1
a848cd7e 16344 ac_status=$?
ac1cb8d3
VS
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
a848cd7e
SC
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
9dd0f6c2 16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_lo=0 ac_mid=0
16363 while :; do
16364 cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370$ac_includes_default
16371int
16372main ()
16373{
16374static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16375test_array [0] = 0
16376
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16383 (eval $ac_compile) 2>conftest.er1
a848cd7e 16384 ac_status=$?
ac1cb8d3
VS
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
a848cd7e
SC
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
9dd0f6c2 16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_hi=$ac_mid; break
16403else
16404 echo "$as_me: failed program was:" >&5
16405sed 's/^/| /' conftest.$ac_ext >&5
16406
16407ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16408 if test $ac_lo -le $ac_mid; then
16409 ac_lo= ac_hi=
16410 break
16411 fi
16412 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16413fi
ac1cb8d3 16414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16415 done
16416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16431test_array [0] = 0
16432
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16439 (eval $ac_compile) 2>conftest.er1
a848cd7e 16440 ac_status=$?
ac1cb8d3
VS
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
a848cd7e
SC
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
9dd0f6c2 16446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_hi=-1 ac_mid=-1
16459 while :; do
16460 cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
16466$ac_includes_default
16467int
16468main ()
16469{
16470static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16471test_array [0] = 0
16472
16473 ;
16474 return 0;
16475}
16476_ACEOF
16477rm -f conftest.$ac_objext
16478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16479 (eval $ac_compile) 2>conftest.er1
a848cd7e 16480 ac_status=$?
ac1cb8d3
VS
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
a848cd7e
SC
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
9dd0f6c2 16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_lo=$ac_mid; break
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16504 if test $ac_mid -le $ac_hi; then
16505 ac_lo= ac_hi=
16506 break
16507 fi
16508 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16509fi
ac1cb8d3 16510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16511 done
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
16516ac_lo= ac_hi=
16517fi
ac1cb8d3 16518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16519fi
ac1cb8d3 16520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16521# Binary search between lo and hi bounds.
16522while test "x$ac_lo" != "x$ac_hi"; do
16523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16524 cat >conftest.$ac_ext <<_ACEOF
16525/* confdefs.h. */
16526_ACEOF
16527cat confdefs.h >>conftest.$ac_ext
16528cat >>conftest.$ac_ext <<_ACEOF
16529/* end confdefs.h. */
16530$ac_includes_default
16531int
16532main ()
16533{
16534static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16535test_array [0] = 0
16536
16537 ;
16538 return 0;
16539}
16540_ACEOF
16541rm -f conftest.$ac_objext
16542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16543 (eval $ac_compile) 2>conftest.er1
a848cd7e 16544 ac_status=$?
ac1cb8d3
VS
16545 grep -v '^ *+' conftest.er1 >conftest.err
16546 rm -f conftest.er1
16547 cat conftest.err >&5
a848cd7e
SC
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
9dd0f6c2 16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_hi=$ac_mid
16563else
16564 echo "$as_me: failed program was:" >&5
16565sed 's/^/| /' conftest.$ac_ext >&5
16566
16567ac_lo=`expr '(' $ac_mid ')' + 1`
16568fi
ac1cb8d3 16569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16570done
16571case $ac_lo in
16572?*) ac_cv_sizeof_void_p=$ac_lo;;
16573'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16574See \`config.log' for more details." >&5
16575echo "$as_me: error: cannot compute sizeof (void *), 77
16576See \`config.log' for more details." >&2;}
16577 { (exit 1); exit 1; }; } ;;
16578esac
16579else
16580 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16581 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16582echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16583 { (exit 1); exit 1; }; }
16584else
16585 cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591$ac_includes_default
16592long longval () { return (long) (sizeof (void *)); }
16593unsigned long ulongval () { return (long) (sizeof (void *)); }
16594#include <stdio.h>
16595#include <stdlib.h>
16596int
16597main ()
16598{
16599
16600 FILE *f = fopen ("conftest.val", "w");
16601 if (! f)
16602 exit (1);
16603 if (((long) (sizeof (void *))) < 0)
16604 {
16605 long i = longval ();
16606 if (i != ((long) (sizeof (void *))))
16607 exit (1);
16608 fprintf (f, "%ld\n", i);
16609 }
16610 else
16611 {
16612 unsigned long i = ulongval ();
16613 if (i != ((long) (sizeof (void *))))
16614 exit (1);
16615 fprintf (f, "%lu\n", i);
16616 }
16617 exit (ferror (f) || fclose (f) != 0);
16618
16619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest$ac_exeext
16624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16625 (eval $ac_link) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_sizeof_void_p=`cat conftest.val`
16635else
16636 echo "$as_me: program exited with status $ac_status" >&5
16637echo "$as_me: failed program was:" >&5
16638sed 's/^/| /' conftest.$ac_ext >&5
16639
16640( exit $ac_status )
16641{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16642See \`config.log' for more details." >&5
16643echo "$as_me: error: cannot compute sizeof (void *), 77
16644See \`config.log' for more details." >&2;}
16645 { (exit 1); exit 1; }; }
16646fi
ac1cb8d3 16647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16648fi
16649fi
16650rm -f conftest.val
16651else
16652 ac_cv_sizeof_void_p=0
16653fi
16654fi
16655echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16656echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16657cat >>confdefs.h <<_ACEOF
16658#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16659_ACEOF
16660
16661
16662echo "$as_me:$LINENO: checking for int" >&5
16663echo $ECHO_N "checking for int... $ECHO_C" >&6
16664if test "${ac_cv_type_int+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666else
16667 cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673$ac_includes_default
16674int
16675main ()
16676{
16677if ((int *) 0)
16678 return 0;
16679if (sizeof (int))
16680 return 0;
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16687 (eval $ac_compile) 2>conftest.er1
a848cd7e 16688 ac_status=$?
ac1cb8d3
VS
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
a848cd7e
SC
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
9dd0f6c2 16694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; } &&
16700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_type_int=yes
16707else
16708 echo "$as_me: failed program was:" >&5
16709sed 's/^/| /' conftest.$ac_ext >&5
16710
16711ac_cv_type_int=no
16712fi
ac1cb8d3 16713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16714fi
16715echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16716echo "${ECHO_T}$ac_cv_type_int" >&6
16717
16718echo "$as_me:$LINENO: checking size of int" >&5
16719echo $ECHO_N "checking size of int... $ECHO_C" >&6
16720if test "${ac_cv_sizeof_int+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722else
16723 if test "$ac_cv_type_int" = yes; then
16724 # The cast to unsigned long works around a bug in the HP C Compiler
16725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16727 # This bug is HP SR number 8606223364.
16728 if test "$cross_compiling" = yes; then
16729 # Depending upon the size, compute the lo and hi bounds.
16730cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736$ac_includes_default
16737int
16738main ()
16739{
16740static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16741test_array [0] = 0
16742
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext
16748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16749 (eval $ac_compile) 2>conftest.er1
a848cd7e 16750 ac_status=$?
ac1cb8d3
VS
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
a848cd7e
SC
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
9dd0f6c2 16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_lo=0 ac_mid=0
16769 while :; do
16770 cat >conftest.$ac_ext <<_ACEOF
16771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
16776$ac_includes_default
16777int
16778main ()
16779{
16780static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16781test_array [0] = 0
16782
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext
16788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16789 (eval $ac_compile) 2>conftest.er1
a848cd7e 16790 ac_status=$?
ac1cb8d3
VS
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
a848cd7e
SC
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
9dd0f6c2 16796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_hi=$ac_mid; break
16809else
16810 echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16814 if test $ac_lo -le $ac_mid; then
16815 ac_lo= ac_hi=
16816 break
16817 fi
16818 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16819fi
ac1cb8d3 16820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16821 done
16822else
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832$ac_includes_default
16833int
16834main ()
16835{
16836static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16837test_array [0] = 0
16838
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16845 (eval $ac_compile) 2>conftest.er1
a848cd7e 16846 ac_status=$?
ac1cb8d3
VS
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
a848cd7e
SC
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
9dd0f6c2 16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_hi=-1 ac_mid=-1
16865 while :; do
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873int
16874main ()
16875{
16876static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16877test_array [0] = 0
16878
16879 ;
16880 return 0;
16881}
16882_ACEOF
16883rm -f conftest.$ac_objext
16884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16885 (eval $ac_compile) 2>conftest.er1
a848cd7e 16886 ac_status=$?
ac1cb8d3
VS
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
a848cd7e
SC
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
9dd0f6c2 16892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_lo=$ac_mid; break
16905else
16906 echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
16909ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16910 if test $ac_mid -le $ac_hi; then
16911 ac_lo= ac_hi=
16912 break
16913 fi
16914 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16915fi
ac1cb8d3 16916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16917 done
16918else
16919 echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922ac_lo= ac_hi=
16923fi
ac1cb8d3 16924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16925fi
ac1cb8d3 16926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16927# Binary search between lo and hi bounds.
16928while test "x$ac_lo" != "x$ac_hi"; do
16929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16930 cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936$ac_includes_default
16937int
16938main ()
16939{
16940static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16941test_array [0] = 0
16942
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext
16948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16949 (eval $ac_compile) 2>conftest.er1
a848cd7e 16950 ac_status=$?
ac1cb8d3
VS
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
a848cd7e
SC
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
9dd0f6c2 16956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; } &&
16962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_hi=$ac_mid
16969else
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973ac_lo=`expr '(' $ac_mid ')' + 1`
16974fi
ac1cb8d3 16975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16976done
16977case $ac_lo in
16978?*) ac_cv_sizeof_int=$ac_lo;;
16979'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16980See \`config.log' for more details." >&5
16981echo "$as_me: error: cannot compute sizeof (int), 77
16982See \`config.log' for more details." >&2;}
16983 { (exit 1); exit 1; }; } ;;
16984esac
16985else
16986 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16987 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16988echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16989 { (exit 1); exit 1; }; }
16990else
16991 cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997$ac_includes_default
16998long longval () { return (long) (sizeof (int)); }
16999unsigned long ulongval () { return (long) (sizeof (int)); }
17000#include <stdio.h>
17001#include <stdlib.h>
17002int
17003main ()
17004{
17005
17006 FILE *f = fopen ("conftest.val", "w");
17007 if (! f)
17008 exit (1);
17009 if (((long) (sizeof (int))) < 0)
17010 {
17011 long i = longval ();
17012 if (i != ((long) (sizeof (int))))
17013 exit (1);
17014 fprintf (f, "%ld\n", i);
17015 }
17016 else
17017 {
17018 unsigned long i = ulongval ();
17019 if (i != ((long) (sizeof (int))))
17020 exit (1);
17021 fprintf (f, "%lu\n", i);
17022 }
17023 exit (ferror (f) || fclose (f) != 0);
17024
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest$ac_exeext
17030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_sizeof_int=`cat conftest.val`
17041else
17042 echo "$as_me: program exited with status $ac_status" >&5
17043echo "$as_me: failed program was:" >&5
17044sed 's/^/| /' conftest.$ac_ext >&5
17045
17046( exit $ac_status )
17047{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17048See \`config.log' for more details." >&5
17049echo "$as_me: error: cannot compute sizeof (int), 77
17050See \`config.log' for more details." >&2;}
17051 { (exit 1); exit 1; }; }
17052fi
ac1cb8d3 17053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17054fi
17055fi
17056rm -f conftest.val
17057else
17058 ac_cv_sizeof_int=0
17059fi
17060fi
17061echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17062echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17063cat >>confdefs.h <<_ACEOF
17064#define SIZEOF_INT $ac_cv_sizeof_int
17065_ACEOF
17066
17067
17068echo "$as_me:$LINENO: checking for long" >&5
17069echo $ECHO_N "checking for long... $ECHO_C" >&6
17070if test "${ac_cv_type_long+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073 cat >conftest.$ac_ext <<_ACEOF
17074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
17079$ac_includes_default
17080int
17081main ()
17082{
17083if ((long *) 0)
17084 return 0;
17085if (sizeof (long))
17086 return 0;
17087 ;
17088 return 0;
17089}
17090_ACEOF
17091rm -f conftest.$ac_objext
17092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17093 (eval $ac_compile) 2>conftest.er1
a848cd7e 17094 ac_status=$?
ac1cb8d3
VS
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
a848cd7e
SC
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
9dd0f6c2 17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_type_long=yes
17113else
17114 echo "$as_me: failed program was:" >&5
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117ac_cv_type_long=no
17118fi
ac1cb8d3 17119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17120fi
17121echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17122echo "${ECHO_T}$ac_cv_type_long" >&6
17123
17124echo "$as_me:$LINENO: checking size of long" >&5
17125echo $ECHO_N "checking size of long... $ECHO_C" >&6
17126if test "${ac_cv_sizeof_long+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128else
17129 if test "$ac_cv_type_long" = yes; then
17130 # The cast to unsigned long works around a bug in the HP C Compiler
17131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17133 # This bug is HP SR number 8606223364.
17134 if test "$cross_compiling" = yes; then
17135 # Depending upon the size, compute the lo and hi bounds.
17136cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142$ac_includes_default
17143int
17144main ()
17145{
17146static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17147test_array [0] = 0
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext
17154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17155 (eval $ac_compile) 2>conftest.er1
a848cd7e 17156 ac_status=$?
ac1cb8d3
VS
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
a848cd7e
SC
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
9dd0f6c2 17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_lo=0 ac_mid=0
17175 while :; do
17176 cat >conftest.$ac_ext <<_ACEOF
17177/* confdefs.h. */
17178_ACEOF
17179cat confdefs.h >>conftest.$ac_ext
17180cat >>conftest.$ac_ext <<_ACEOF
17181/* end confdefs.h. */
17182$ac_includes_default
17183int
17184main ()
17185{
17186static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17187test_array [0] = 0
17188
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193rm -f conftest.$ac_objext
17194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17195 (eval $ac_compile) 2>conftest.er1
a848cd7e 17196 ac_status=$?
ac1cb8d3
VS
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
a848cd7e
SC
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
9dd0f6c2 17202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_hi=$ac_mid; break
17215else
17216 echo "$as_me: failed program was:" >&5
17217sed 's/^/| /' conftest.$ac_ext >&5
17218
17219ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17220 if test $ac_lo -le $ac_mid; then
17221 ac_lo= ac_hi=
17222 break
17223 fi
17224 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17225fi
ac1cb8d3 17226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17227 done
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239int
17240main ()
17241{
17242static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17243test_array [0] = 0
17244
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17251 (eval $ac_compile) 2>conftest.er1
a848cd7e 17252 ac_status=$?
ac1cb8d3
VS
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
a848cd7e
SC
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
9dd0f6c2 17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_hi=-1 ac_mid=-1
17271 while :; do
17272 cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278$ac_includes_default
17279int
17280main ()
17281{
17282static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17283test_array [0] = 0
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289rm -f conftest.$ac_objext
17290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17291 (eval $ac_compile) 2>conftest.er1
a848cd7e 17292 ac_status=$?
ac1cb8d3
VS
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
a848cd7e
SC
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
9dd0f6c2 17298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_lo=$ac_mid; break
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17316 if test $ac_mid -le $ac_hi; then
17317 ac_lo= ac_hi=
17318 break
17319 fi
17320 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17321fi
ac1cb8d3 17322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17323 done
17324else
17325 echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
17328ac_lo= ac_hi=
17329fi
ac1cb8d3 17330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17331fi
ac1cb8d3 17332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17333# Binary search between lo and hi bounds.
17334while test "x$ac_lo" != "x$ac_hi"; do
17335 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17336 cat >conftest.$ac_ext <<_ACEOF
17337/* confdefs.h. */
17338_ACEOF
17339cat confdefs.h >>conftest.$ac_ext
17340cat >>conftest.$ac_ext <<_ACEOF
17341/* end confdefs.h. */
17342$ac_includes_default
17343int
17344main ()
17345{
17346static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17347test_array [0] = 0
17348
17349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext
17354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17355 (eval $ac_compile) 2>conftest.er1
a848cd7e 17356 ac_status=$?
ac1cb8d3
VS
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
a848cd7e
SC
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
9dd0f6c2 17362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_hi=$ac_mid
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379ac_lo=`expr '(' $ac_mid ')' + 1`
17380fi
ac1cb8d3 17381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17382done
17383case $ac_lo in
17384?*) ac_cv_sizeof_long=$ac_lo;;
17385'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17386See \`config.log' for more details." >&5
17387echo "$as_me: error: cannot compute sizeof (long), 77
17388See \`config.log' for more details." >&2;}
17389 { (exit 1); exit 1; }; } ;;
17390esac
17391else
17392 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17393 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17394echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17395 { (exit 1); exit 1; }; }
17396else
17397 cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403$ac_includes_default
17404long longval () { return (long) (sizeof (long)); }
17405unsigned long ulongval () { return (long) (sizeof (long)); }
17406#include <stdio.h>
17407#include <stdlib.h>
17408int
17409main ()
17410{
17411
17412 FILE *f = fopen ("conftest.val", "w");
17413 if (! f)
17414 exit (1);
17415 if (((long) (sizeof (long))) < 0)
17416 {
17417 long i = longval ();
17418 if (i != ((long) (sizeof (long))))
17419 exit (1);
17420 fprintf (f, "%ld\n", i);
17421 }
17422 else
17423 {
17424 unsigned long i = ulongval ();
17425 if (i != ((long) (sizeof (long))))
17426 exit (1);
17427 fprintf (f, "%lu\n", i);
17428 }
17429 exit (ferror (f) || fclose (f) != 0);
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest$ac_exeext
17436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_sizeof_long=`cat conftest.val`
17447else
17448 echo "$as_me: program exited with status $ac_status" >&5
17449echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452( exit $ac_status )
17453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17454See \`config.log' for more details." >&5
17455echo "$as_me: error: cannot compute sizeof (long), 77
17456See \`config.log' for more details." >&2;}
17457 { (exit 1); exit 1; }; }
17458fi
ac1cb8d3 17459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17460fi
17461fi
17462rm -f conftest.val
17463else
17464 ac_cv_sizeof_long=0
17465fi
17466fi
17467echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17468echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17469cat >>confdefs.h <<_ACEOF
17470#define SIZEOF_LONG $ac_cv_sizeof_long
17471_ACEOF
17472
17473
17474echo "$as_me:$LINENO: checking for size_t" >&5
17475echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17476if test "${ac_cv_type_size_t+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478else
17479 cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
17485$ac_includes_default
17486int
17487main ()
17488{
17489if ((size_t *) 0)
17490 return 0;
17491if (sizeof (size_t))
17492 return 0;
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext
17498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17499 (eval $ac_compile) 2>conftest.er1
a848cd7e 17500 ac_status=$?
ac1cb8d3
VS
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
a848cd7e
SC
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
9dd0f6c2 17506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_type_size_t=yes
17519else
17520 echo "$as_me: failed program was:" >&5
17521sed 's/^/| /' conftest.$ac_ext >&5
17522
17523ac_cv_type_size_t=no
17524fi
ac1cb8d3 17525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17526fi
17527echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17528echo "${ECHO_T}$ac_cv_type_size_t" >&6
17529
17530echo "$as_me:$LINENO: checking size of size_t" >&5
17531echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17532if test "${ac_cv_sizeof_size_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535 if test "$ac_cv_type_size_t" = yes; then
17536 # The cast to unsigned long works around a bug in the HP C Compiler
17537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17539 # This bug is HP SR number 8606223364.
17540 if test "$cross_compiling" = yes; then
17541 # Depending upon the size, compute the lo and hi bounds.
17542cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549int
17550main ()
17551{
17552static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17553test_array [0] = 0
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
9dd0f6c2 17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_lo=0 ac_mid=0
17581 while :; do
17582 cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h. */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h. */
17588$ac_includes_default
17589int
17590main ()
17591{
17592static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17593test_array [0] = 0
17594
17595 ;
17596 return 0;
17597}
17598_ACEOF
17599rm -f conftest.$ac_objext
17600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17601 (eval $ac_compile) 2>conftest.er1
a848cd7e 17602 ac_status=$?
ac1cb8d3
VS
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
a848cd7e
SC
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
9dd0f6c2 17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; } &&
17614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_hi=$ac_mid; break
17621else
17622 echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17626 if test $ac_lo -le $ac_mid; then
17627 ac_lo= ac_hi=
17628 break
17629 fi
17630 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17631fi
ac1cb8d3 17632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17633 done
17634else
17635 echo "$as_me: failed program was:" >&5
17636sed 's/^/| /' conftest.$ac_ext >&5
17637
17638cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17649test_array [0] = 0
17650
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
17656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17657 (eval $ac_compile) 2>conftest.er1
a848cd7e 17658 ac_status=$?
ac1cb8d3
VS
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
a848cd7e
SC
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
9dd0f6c2 17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_hi=-1 ac_mid=-1
17677 while :; do
17678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685int
17686main ()
17687{
17688static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17689test_array [0] = 0
17690
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695rm -f conftest.$ac_objext
17696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17697 (eval $ac_compile) 2>conftest.er1
a848cd7e 17698 ac_status=$?
ac1cb8d3
VS
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
a848cd7e
SC
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
9dd0f6c2 17704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_lo=$ac_mid; break
17717else
17718 echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17722 if test $ac_mid -le $ac_hi; then
17723 ac_lo= ac_hi=
17724 break
17725 fi
17726 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17727fi
ac1cb8d3 17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17729 done
17730else
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734ac_lo= ac_hi=
17735fi
ac1cb8d3 17736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17737fi
ac1cb8d3 17738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17739# Binary search between lo and hi bounds.
17740while test "x$ac_lo" != "x$ac_hi"; do
17741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17742 cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h. */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h. */
17748$ac_includes_default
17749int
17750main ()
17751{
17752static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17753test_array [0] = 0
17754
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext
17760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17761 (eval $ac_compile) 2>conftest.er1
a848cd7e 17762 ac_status=$?
ac1cb8d3
VS
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
a848cd7e
SC
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
9dd0f6c2 17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_hi=$ac_mid
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785ac_lo=`expr '(' $ac_mid ')' + 1`
17786fi
ac1cb8d3 17787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17788done
17789case $ac_lo in
17790?*) ac_cv_sizeof_size_t=$ac_lo;;
17791'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17792See \`config.log' for more details." >&5
17793echo "$as_me: error: cannot compute sizeof (size_t), 77
17794See \`config.log' for more details." >&2;}
17795 { (exit 1); exit 1; }; } ;;
17796esac
17797else
17798 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17799 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17800echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17801 { (exit 1); exit 1; }; }
17802else
17803 cat >conftest.$ac_ext <<_ACEOF
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
17809$ac_includes_default
17810long longval () { return (long) (sizeof (size_t)); }
17811unsigned long ulongval () { return (long) (sizeof (size_t)); }
17812#include <stdio.h>
17813#include <stdlib.h>
17814int
17815main ()
17816{
17817
17818 FILE *f = fopen ("conftest.val", "w");
17819 if (! f)
17820 exit (1);
17821 if (((long) (sizeof (size_t))) < 0)
17822 {
17823 long i = longval ();
17824 if (i != ((long) (sizeof (size_t))))
17825 exit (1);
17826 fprintf (f, "%ld\n", i);
17827 }
17828 else
17829 {
17830 unsigned long i = ulongval ();
17831 if (i != ((long) (sizeof (size_t))))
17832 exit (1);
17833 fprintf (f, "%lu\n", i);
17834 }
17835 exit (ferror (f) || fclose (f) != 0);
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest$ac_exeext
17842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_sizeof_size_t=`cat conftest.val`
17853else
17854 echo "$as_me: program exited with status $ac_status" >&5
17855echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858( exit $ac_status )
17859{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17860See \`config.log' for more details." >&5
17861echo "$as_me: error: cannot compute sizeof (size_t), 77
17862See \`config.log' for more details." >&2;}
17863 { (exit 1); exit 1; }; }
17864fi
ac1cb8d3 17865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17866fi
17867fi
17868rm -f conftest.val
17869else
17870 ac_cv_sizeof_size_t=0
17871fi
17872fi
17873echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17874echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17875cat >>confdefs.h <<_ACEOF
17876#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17877_ACEOF
17878
17879
17880
17881case "${host}" in
17882 arm-*-linux* )
17883 echo "$as_me:$LINENO: checking for long long" >&5
17884echo $ECHO_N "checking for long long... $ECHO_C" >&6
17885if test "${ac_cv_type_long_long+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17887else
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894$ac_includes_default
17895int
17896main ()
17897{
17898if ((long long *) 0)
17899 return 0;
17900if (sizeof (long long))
17901 return 0;
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17908 (eval $ac_compile) 2>conftest.er1
a848cd7e 17909 ac_status=$?
ac1cb8d3
VS
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
a848cd7e
SC
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
9dd0f6c2 17915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_type_long_long=yes
17928else
17929 echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
17932ac_cv_type_long_long=no
17933fi
ac1cb8d3 17934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17935fi
17936echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17937echo "${ECHO_T}$ac_cv_type_long_long" >&6
17938
17939echo "$as_me:$LINENO: checking size of long long" >&5
17940echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17941if test "${ac_cv_sizeof_long_long+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943else
17944 if test "$ac_cv_type_long_long" = yes; then
17945 # The cast to unsigned long works around a bug in the HP C Compiler
17946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17948 # This bug is HP SR number 8606223364.
17949 if test "$cross_compiling" = yes; then
17950 # Depending upon the size, compute the lo and hi bounds.
17951cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
17957$ac_includes_default
17958int
17959main ()
17960{
17961static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17962test_array [0] = 0
17963
17964 ;
17965 return 0;
17966}
17967_ACEOF
17968rm -f conftest.$ac_objext
17969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17970 (eval $ac_compile) 2>conftest.er1
a848cd7e 17971 ac_status=$?
ac1cb8d3
VS
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
a848cd7e
SC
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
9dd0f6c2 17977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 ac_lo=0 ac_mid=0
17990 while :; do
17991 cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
17997$ac_includes_default
17998int
17999main ()
18000{
18001static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18002test_array [0] = 0
18003
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
18009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18010 (eval $ac_compile) 2>conftest.er1
a848cd7e 18011 ac_status=$?
ac1cb8d3
VS
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
a848cd7e
SC
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
9dd0f6c2 18017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_hi=$ac_mid; break
18030else
18031 echo "$as_me: failed program was:" >&5
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
18034ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18035 if test $ac_lo -le $ac_mid; then
18036 ac_lo= ac_hi=
18037 break
18038 fi
18039 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18040fi
ac1cb8d3 18041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18042 done
18043else
18044 echo "$as_me: failed program was:" >&5
18045sed 's/^/| /' conftest.$ac_ext >&5
18046
18047cat >conftest.$ac_ext <<_ACEOF
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
18053$ac_includes_default
18054int
18055main ()
18056{
18057static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18058test_array [0] = 0
18059
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18066 (eval $ac_compile) 2>conftest.er1
a848cd7e 18067 ac_status=$?
ac1cb8d3
VS
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
a848cd7e
SC
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } &&
9dd0f6c2 18073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; } &&
18079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_hi=-1 ac_mid=-1
18086 while :; do
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094int
18095main ()
18096{
18097static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18098test_array [0] = 0
18099
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext
18105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18106 (eval $ac_compile) 2>conftest.er1
a848cd7e 18107 ac_status=$?
ac1cb8d3
VS
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
a848cd7e
SC
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
9dd0f6c2 18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_lo=$ac_mid; break
18126else
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18131 if test $ac_mid -le $ac_hi; then
18132 ac_lo= ac_hi=
18133 break
18134 fi
18135 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18138 done
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143ac_lo= ac_hi=
18144fi
ac1cb8d3 18145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18146fi
ac1cb8d3 18147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18148# Binary search between lo and hi bounds.
18149while test "x$ac_lo" != "x$ac_hi"; do
18150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18151 cat >conftest.$ac_ext <<_ACEOF
18152/* confdefs.h. */
18153_ACEOF
18154cat confdefs.h >>conftest.$ac_ext
18155cat >>conftest.$ac_ext <<_ACEOF
18156/* end confdefs.h. */
18157$ac_includes_default
18158int
18159main ()
18160{
18161static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18162test_array [0] = 0
18163
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18170 (eval $ac_compile) 2>conftest.er1
a848cd7e 18171 ac_status=$?
ac1cb8d3
VS
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
a848cd7e
SC
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
9dd0f6c2 18177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_hi=$ac_mid
18190else
18191 echo "$as_me: failed program was:" >&5
18192sed 's/^/| /' conftest.$ac_ext >&5
18193
18194ac_lo=`expr '(' $ac_mid ')' + 1`
18195fi
ac1cb8d3 18196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18197done
18198case $ac_lo in
18199?*) ac_cv_sizeof_long_long=$ac_lo;;
18200'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18201See \`config.log' for more details." >&5
18202echo "$as_me: error: cannot compute sizeof (long long), 77
18203See \`config.log' for more details." >&2;}
18204 { (exit 1); exit 1; }; } ;;
18205esac
18206else
18207 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18208 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18209echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18210 { (exit 1); exit 1; }; }
18211else
18212 cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218$ac_includes_default
18219long longval () { return (long) (sizeof (long long)); }
18220unsigned long ulongval () { return (long) (sizeof (long long)); }
18221#include <stdio.h>
18222#include <stdlib.h>
18223int
18224main ()
18225{
18226
18227 FILE *f = fopen ("conftest.val", "w");
18228 if (! f)
18229 exit (1);
18230 if (((long) (sizeof (long long))) < 0)
18231 {
18232 long i = longval ();
18233 if (i != ((long) (sizeof (long long))))
18234 exit (1);
18235 fprintf (f, "%ld\n", i);
18236 }
18237 else
18238 {
18239 unsigned long i = ulongval ();
18240 if (i != ((long) (sizeof (long long))))
18241 exit (1);
18242 fprintf (f, "%lu\n", i);
18243 }
18244 exit (ferror (f) || fclose (f) != 0);
18245
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest$ac_exeext
18251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252 (eval $ac_link) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_sizeof_long_long=`cat conftest.val`
18262else
18263 echo "$as_me: program exited with status $ac_status" >&5
18264echo "$as_me: failed program was:" >&5
18265sed 's/^/| /' conftest.$ac_ext >&5
18266
18267( exit $ac_status )
18268{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18269See \`config.log' for more details." >&5
18270echo "$as_me: error: cannot compute sizeof (long long), 77
18271See \`config.log' for more details." >&2;}
18272 { (exit 1); exit 1; }; }
18273fi
ac1cb8d3 18274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18275fi
18276fi
18277rm -f conftest.val
18278else
18279 ac_cv_sizeof_long_long=0
18280fi
18281fi
18282echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18283echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18284cat >>confdefs.h <<_ACEOF
18285#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18286_ACEOF
18287
18288
18289 ;;
18290 *-hp-hpux* )
18291 echo "$as_me:$LINENO: checking for long long" >&5
18292echo $ECHO_N "checking for long long... $ECHO_C" >&6
18293if test "${ac_cv_type_long_long+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296 cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302$ac_includes_default
18303int
18304main ()
18305{
18306if ((long long *) 0)
18307 return 0;
18308if (sizeof (long long))
18309 return 0;
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18316 (eval $ac_compile) 2>conftest.er1
a848cd7e 18317 ac_status=$?
ac1cb8d3
VS
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
a848cd7e
SC
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
9dd0f6c2 18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_type_long_long=yes
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340ac_cv_type_long_long=no
18341fi
ac1cb8d3 18342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18343fi
18344echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18345echo "${ECHO_T}$ac_cv_type_long_long" >&6
18346
18347echo "$as_me:$LINENO: checking size of long long" >&5
18348echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18349if test "${ac_cv_sizeof_long_long+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351else
18352 if test "$ac_cv_type_long_long" = yes; then
18353 # The cast to unsigned long works around a bug in the HP C Compiler
18354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18356 # This bug is HP SR number 8606223364.
18357 if test "$cross_compiling" = yes; then
18358 # Depending upon the size, compute the lo and hi bounds.
18359cat >conftest.$ac_ext <<_ACEOF
18360/* confdefs.h. */
18361_ACEOF
18362cat confdefs.h >>conftest.$ac_ext
18363cat >>conftest.$ac_ext <<_ACEOF
18364/* end confdefs.h. */
18365$ac_includes_default
18366int
18367main ()
18368{
18369static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18370test_array [0] = 0
18371
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext
18377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18378 (eval $ac_compile) 2>conftest.er1
a848cd7e 18379 ac_status=$?
ac1cb8d3
VS
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
a848cd7e
SC
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
9dd0f6c2 18385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_lo=0 ac_mid=0
18398 while :; do
18399 cat >conftest.$ac_ext <<_ACEOF
18400/* confdefs.h. */
18401_ACEOF
18402cat confdefs.h >>conftest.$ac_ext
18403cat >>conftest.$ac_ext <<_ACEOF
18404/* end confdefs.h. */
18405$ac_includes_default
18406int
18407main ()
18408{
18409static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18410test_array [0] = 0
18411
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext
18417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18418 (eval $ac_compile) 2>conftest.er1
a848cd7e 18419 ac_status=$?
ac1cb8d3
VS
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
a848cd7e
SC
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
9dd0f6c2 18425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_hi=$ac_mid; break
18438else
18439 echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18443 if test $ac_lo -le $ac_mid; then
18444 ac_lo= ac_hi=
18445 break
18446 fi
18447 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18448fi
ac1cb8d3 18449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18450 done
18451else
18452 echo "$as_me: failed program was:" >&5
18453sed 's/^/| /' conftest.$ac_ext >&5
18454
18455cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
18461$ac_includes_default
18462int
18463main ()
18464{
18465static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18466test_array [0] = 0
18467
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest.$ac_objext
18473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18474 (eval $ac_compile) 2>conftest.er1
a848cd7e 18475 ac_status=$?
ac1cb8d3
VS
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
a848cd7e
SC
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
9dd0f6c2 18481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_hi=-1 ac_mid=-1
18494 while :; do
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
9dd0f6c2 18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_lo=$ac_mid; break
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18539 if test $ac_mid -le $ac_hi; then
18540 ac_lo= ac_hi=
18541 break
18542 fi
18543 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18544fi
ac1cb8d3 18545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18546 done
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551ac_lo= ac_hi=
18552fi
ac1cb8d3 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18554fi
ac1cb8d3 18555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18556# Binary search between lo and hi bounds.
18557while test "x$ac_lo" != "x$ac_hi"; do
18558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18559 cat >conftest.$ac_ext <<_ACEOF
18560/* confdefs.h. */
18561_ACEOF
18562cat confdefs.h >>conftest.$ac_ext
18563cat >>conftest.$ac_ext <<_ACEOF
18564/* end confdefs.h. */
18565$ac_includes_default
18566int
18567main ()
18568{
18569static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18570test_array [0] = 0
18571
18572 ;
18573 return 0;
18574}
18575_ACEOF
18576rm -f conftest.$ac_objext
18577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18578 (eval $ac_compile) 2>conftest.er1
a848cd7e 18579 ac_status=$?
ac1cb8d3
VS
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
a848cd7e
SC
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
9dd0f6c2 18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_hi=$ac_mid
18598else
18599 echo "$as_me: failed program was:" >&5
18600sed 's/^/| /' conftest.$ac_ext >&5
18601
18602ac_lo=`expr '(' $ac_mid ')' + 1`
18603fi
ac1cb8d3 18604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18605done
18606case $ac_lo in
18607?*) ac_cv_sizeof_long_long=$ac_lo;;
18608'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18609See \`config.log' for more details." >&5
18610echo "$as_me: error: cannot compute sizeof (long long), 77
18611See \`config.log' for more details." >&2;}
18612 { (exit 1); exit 1; }; } ;;
18613esac
18614else
18615 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18616 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18617echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18618 { (exit 1); exit 1; }; }
18619else
18620 cat >conftest.$ac_ext <<_ACEOF
18621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
18626$ac_includes_default
18627long longval () { return (long) (sizeof (long long)); }
18628unsigned long ulongval () { return (long) (sizeof (long long)); }
18629#include <stdio.h>
18630#include <stdlib.h>
18631int
18632main ()
18633{
18634
18635 FILE *f = fopen ("conftest.val", "w");
18636 if (! f)
18637 exit (1);
18638 if (((long) (sizeof (long long))) < 0)
18639 {
18640 long i = longval ();
18641 if (i != ((long) (sizeof (long long))))
18642 exit (1);
18643 fprintf (f, "%ld\n", i);
18644 }
18645 else
18646 {
18647 unsigned long i = ulongval ();
18648 if (i != ((long) (sizeof (long long))))
18649 exit (1);
18650 fprintf (f, "%lu\n", i);
18651 }
18652 exit (ferror (f) || fclose (f) != 0);
18653
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest$ac_exeext
18659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_sizeof_long_long=`cat conftest.val`
18670else
18671 echo "$as_me: program exited with status $ac_status" >&5
18672echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675( exit $ac_status )
18676{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18677See \`config.log' for more details." >&5
18678echo "$as_me: error: cannot compute sizeof (long long), 77
18679See \`config.log' for more details." >&2;}
18680 { (exit 1); exit 1; }; }
18681fi
ac1cb8d3 18682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18683fi
18684fi
18685rm -f conftest.val
18686else
18687 ac_cv_sizeof_long_long=0
18688fi
18689fi
18690echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18691echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18692cat >>confdefs.h <<_ACEOF
18693#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18694_ACEOF
18695
18696
18697 if test "$ac_cv_sizeof_long_long" != "0"; then
18698 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18699 fi
18700 ;;
18701 * )
18702 echo "$as_me:$LINENO: checking for long long" >&5
18703echo $ECHO_N "checking for long long... $ECHO_C" >&6
18704if test "${ac_cv_type_long_long+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 cat >conftest.$ac_ext <<_ACEOF
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
18713$ac_includes_default
18714int
18715main ()
18716{
18717if ((long long *) 0)
18718 return 0;
18719if (sizeof (long long))
18720 return 0;
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18727 (eval $ac_compile) 2>conftest.er1
a848cd7e 18728 ac_status=$?
ac1cb8d3
VS
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
a848cd7e
SC
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
9dd0f6c2 18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_type_long_long=yes
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751ac_cv_type_long_long=no
18752fi
ac1cb8d3 18753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18754fi
18755echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18756echo "${ECHO_T}$ac_cv_type_long_long" >&6
18757
18758echo "$as_me:$LINENO: checking size of long long" >&5
18759echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18760if test "${ac_cv_sizeof_long_long+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762else
18763 if test "$ac_cv_type_long_long" = yes; then
18764 # The cast to unsigned long works around a bug in the HP C Compiler
18765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18767 # This bug is HP SR number 8606223364.
18768 if test "$cross_compiling" = yes; then
18769 # Depending upon the size, compute the lo and hi bounds.
18770cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
18776$ac_includes_default
18777int
18778main ()
18779{
18780static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18781test_array [0] = 0
18782
18783 ;
18784 return 0;
18785}
18786_ACEOF
18787rm -f conftest.$ac_objext
18788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18789 (eval $ac_compile) 2>conftest.er1
a848cd7e 18790 ac_status=$?
ac1cb8d3
VS
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
a848cd7e
SC
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
9dd0f6c2 18796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 ac_lo=0 ac_mid=0
18809 while :; do
18810 cat >conftest.$ac_ext <<_ACEOF
18811/* confdefs.h. */
18812_ACEOF
18813cat confdefs.h >>conftest.$ac_ext
18814cat >>conftest.$ac_ext <<_ACEOF
18815/* end confdefs.h. */
18816$ac_includes_default
18817int
18818main ()
18819{
18820static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18821test_array [0] = 0
18822
18823 ;
18824 return 0;
18825}
18826_ACEOF
18827rm -f conftest.$ac_objext
18828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18829 (eval $ac_compile) 2>conftest.er1
a848cd7e 18830 ac_status=$?
ac1cb8d3
VS
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
a848cd7e
SC
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
9dd0f6c2 18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_hi=$ac_mid; break
18849else
18850 echo "$as_me: failed program was:" >&5
18851sed 's/^/| /' conftest.$ac_ext >&5
18852
18853ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18854 if test $ac_lo -le $ac_mid; then
18855 ac_lo= ac_hi=
18856 break
18857 fi
18858 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18859fi
ac1cb8d3 18860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18861 done
18862else
18863 echo "$as_me: failed program was:" >&5
18864sed 's/^/| /' conftest.$ac_ext >&5
18865
18866cat >conftest.$ac_ext <<_ACEOF
18867/* confdefs.h. */
18868_ACEOF
18869cat confdefs.h >>conftest.$ac_ext
18870cat >>conftest.$ac_ext <<_ACEOF
18871/* end confdefs.h. */
18872$ac_includes_default
18873int
18874main ()
18875{
18876static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18877test_array [0] = 0
18878
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext
18884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18885 (eval $ac_compile) 2>conftest.er1
a848cd7e 18886 ac_status=$?
ac1cb8d3
VS
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
a848cd7e
SC
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
9dd0f6c2 18892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_hi=-1 ac_mid=-1
18905 while :; do
18906 cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h. */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h. */
18912$ac_includes_default
18913int
18914main ()
18915{
18916static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18917test_array [0] = 0
18918
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext
18924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18925 (eval $ac_compile) 2>conftest.er1
a848cd7e 18926 ac_status=$?
ac1cb8d3
VS
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
a848cd7e
SC
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
9dd0f6c2 18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_lo=$ac_mid; break
18945else
18946 echo "$as_me: failed program was:" >&5
18947sed 's/^/| /' conftest.$ac_ext >&5
18948
18949ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18950 if test $ac_mid -le $ac_hi; then
18951 ac_lo= ac_hi=
18952 break
18953 fi
18954 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957 done
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962ac_lo= ac_hi=
18963fi
ac1cb8d3 18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18965fi
ac1cb8d3 18966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18967# Binary search between lo and hi bounds.
18968while test "x$ac_lo" != "x$ac_hi"; do
18969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18970 cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976$ac_includes_default
18977int
18978main ()
18979{
18980static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18981test_array [0] = 0
18982
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext
18988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18989 (eval $ac_compile) 2>conftest.er1
a848cd7e 18990 ac_status=$?
ac1cb8d3
VS
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
a848cd7e
SC
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
9dd0f6c2 18996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_hi=$ac_mid
19009else
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013ac_lo=`expr '(' $ac_mid ')' + 1`
19014fi
ac1cb8d3 19015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19016done
19017case $ac_lo in
19018?*) ac_cv_sizeof_long_long=$ac_lo;;
19019'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19020See \`config.log' for more details." >&5
19021echo "$as_me: error: cannot compute sizeof (long long), 77
19022See \`config.log' for more details." >&2;}
19023 { (exit 1); exit 1; }; } ;;
19024esac
19025else
19026 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19027 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19028echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19029 { (exit 1); exit 1; }; }
19030else
19031 cat >conftest.$ac_ext <<_ACEOF
19032/* confdefs.h. */
19033_ACEOF
19034cat confdefs.h >>conftest.$ac_ext
19035cat >>conftest.$ac_ext <<_ACEOF
19036/* end confdefs.h. */
19037$ac_includes_default
19038long longval () { return (long) (sizeof (long long)); }
19039unsigned long ulongval () { return (long) (sizeof (long long)); }
19040#include <stdio.h>
19041#include <stdlib.h>
19042int
19043main ()
19044{
19045
19046 FILE *f = fopen ("conftest.val", "w");
19047 if (! f)
19048 exit (1);
19049 if (((long) (sizeof (long long))) < 0)
19050 {
19051 long i = longval ();
19052 if (i != ((long) (sizeof (long long))))
19053 exit (1);
19054 fprintf (f, "%ld\n", i);
19055 }
19056 else
19057 {
19058 unsigned long i = ulongval ();
19059 if (i != ((long) (sizeof (long long))))
19060 exit (1);
19061 fprintf (f, "%lu\n", i);
19062 }
19063 exit (ferror (f) || fclose (f) != 0);
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest$ac_exeext
19070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19071 (eval $ac_link) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_sizeof_long_long=`cat conftest.val`
19081else
19082 echo "$as_me: program exited with status $ac_status" >&5
19083echo "$as_me: failed program was:" >&5
19084sed 's/^/| /' conftest.$ac_ext >&5
19085
19086( exit $ac_status )
19087{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19088See \`config.log' for more details." >&5
19089echo "$as_me: error: cannot compute sizeof (long long), 77
19090See \`config.log' for more details." >&2;}
19091 { (exit 1); exit 1; }; }
19092fi
ac1cb8d3 19093rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19094fi
19095fi
19096rm -f conftest.val
19097else
19098 ac_cv_sizeof_long_long=0
19099fi
19100fi
19101echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19102echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19103cat >>confdefs.h <<_ACEOF
19104#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19105_ACEOF
19106
19107
19108esac
19109
238ecede
MW
19110echo "$as_me:$LINENO: checking for wchar_t" >&5
19111echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19112if test "${ac_cv_type_wchar_t+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121
19122 /* DJGPP only has fake wchar_t: */
19123 #ifdef __DJGPP__
19124 # error "fake wchar_t"
19125 #endif
19126 #ifdef HAVE_WCHAR_H
19127 # ifdef __CYGWIN__
19128 # include <stddef.h>
19129 # endif
19130 # include <wchar.h>
19131 #endif
19132 #ifdef HAVE_STDLIB_H
19133 # include <stdlib.h>
19134 #endif
19135 #include <stdio.h>
19136
19137
19138
19139int
19140main ()
19141{
19142if ((wchar_t *) 0)
19143 return 0;
19144if (sizeof (wchar_t))
19145 return 0;
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150rm -f conftest.$ac_objext
19151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152 (eval $ac_compile) 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
9dd0f6c2 19159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest.$ac_objext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_cv_type_wchar_t=yes
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176ac_cv_type_wchar_t=no
19177fi
19178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19179fi
19180echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19181echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19182
a848cd7e
SC
19183echo "$as_me:$LINENO: checking size of wchar_t" >&5
19184echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19185if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187else
238ecede
MW
19188 if test "$ac_cv_type_wchar_t" = yes; then
19189 # The cast to unsigned long works around a bug in the HP C Compiler
19190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19192 # This bug is HP SR number 8606223364.
19193 if test "$cross_compiling" = yes; then
19194 # Depending upon the size, compute the lo and hi bounds.
19195cat >conftest.$ac_ext <<_ACEOF
19196/* confdefs.h. */
19197_ACEOF
19198cat confdefs.h >>conftest.$ac_ext
19199cat >>conftest.$ac_ext <<_ACEOF
19200/* end confdefs.h. */
19201
19202 /* DJGPP only has fake wchar_t: */
19203 #ifdef __DJGPP__
19204 # error "fake wchar_t"
19205 #endif
19206 #ifdef HAVE_WCHAR_H
19207 # ifdef __CYGWIN__
19208 # include <stddef.h>
19209 # endif
19210 # include <wchar.h>
19211 #endif
19212 #ifdef HAVE_STDLIB_H
19213 # include <stdlib.h>
19214 #endif
19215 #include <stdio.h>
19216
19217
19218
19219int
19220main ()
19221{
19222static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19223test_array [0] = 0
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>conftest.er1
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
9dd0f6c2 19238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_lo=0 ac_mid=0
19251 while :; do
19252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258
19259 /* DJGPP only has fake wchar_t: */
19260 #ifdef __DJGPP__
19261 # error "fake wchar_t"
19262 #endif
19263 #ifdef HAVE_WCHAR_H
19264 # ifdef __CYGWIN__
19265 # include <stddef.h>
19266 # endif
19267 # include <wchar.h>
19268 #endif
19269 #ifdef HAVE_STDLIB_H
19270 # include <stdlib.h>
19271 #endif
19272 #include <stdio.h>
19273
19274
19275
19276int
19277main ()
19278{
19279static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19280test_array [0] = 0
19281
19282 ;
19283 return 0;
19284}
19285_ACEOF
19286rm -f conftest.$ac_objext
19287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
9dd0f6c2 19295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest.$ac_objext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_hi=$ac_mid; break
19308else
19309 echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312ac_lo=`expr $ac_mid + 1`
19313 if test $ac_lo -le $ac_mid; then
19314 ac_lo= ac_hi=
19315 break
19316 fi
19317 ac_mid=`expr 2 '*' $ac_mid + 1`
19318fi
19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320 done
19321else
19322 echo "$as_me: failed program was:" >&5
19323sed 's/^/| /' conftest.$ac_ext >&5
19324
19325cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
19331
19332 /* DJGPP only has fake wchar_t: */
19333 #ifdef __DJGPP__
19334 # error "fake wchar_t"
19335 #endif
19336 #ifdef HAVE_WCHAR_H
19337 # ifdef __CYGWIN__
19338 # include <stddef.h>
19339 # endif
19340 # include <wchar.h>
19341 #endif
19342 #ifdef HAVE_STDLIB_H
19343 # include <stdlib.h>
19344 #endif
19345 #include <stdio.h>
19346
19347
19348
19349int
19350main ()
19351{
19352static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19353test_array [0] = 0
19354
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext
19360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361 (eval $ac_compile) 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
9dd0f6c2 19368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest.$ac_objext'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_hi=-1 ac_mid=-1
19381 while :; do
19382 cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
19388
19389 /* DJGPP only has fake wchar_t: */
19390 #ifdef __DJGPP__
19391 # error "fake wchar_t"
19392 #endif
19393 #ifdef HAVE_WCHAR_H
19394 # ifdef __CYGWIN__
19395 # include <stddef.h>
19396 # endif
19397 # include <wchar.h>
19398 #endif
19399 #ifdef HAVE_STDLIB_H
19400 # include <stdlib.h>
19401 #endif
19402 #include <stdio.h>
19403
19404
19405
19406int
19407main ()
19408{
19409static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19410test_array [0] = 0
19411
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest.$ac_objext
19417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
9dd0f6c2 19425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_lo=$ac_mid; break
19438else
19439 echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442ac_hi=`expr '(' $ac_mid ')' - 1`
19443 if test $ac_mid -le $ac_hi; then
19444 ac_lo= ac_hi=
19445 break
19446 fi
19447 ac_mid=`expr 2 '*' $ac_mid`
19448fi
19449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19450 done
19451else
19452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455ac_lo= ac_hi=
19456fi
19457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458fi
19459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460# Binary search between lo and hi bounds.
19461while test "x$ac_lo" != "x$ac_hi"; do
19462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19463 cat >conftest.$ac_ext <<_ACEOF
19464/* confdefs.h. */
19465_ACEOF
19466cat confdefs.h >>conftest.$ac_ext
19467cat >>conftest.$ac_ext <<_ACEOF
19468/* end confdefs.h. */
19469
19470 /* DJGPP only has fake wchar_t: */
19471 #ifdef __DJGPP__
19472 # error "fake wchar_t"
19473 #endif
19474 #ifdef HAVE_WCHAR_H
19475 # ifdef __CYGWIN__
19476 # include <stddef.h>
19477 # endif
19478 # include <wchar.h>
19479 #endif
19480 #ifdef HAVE_STDLIB_H
19481 # include <stdlib.h>
19482 #endif
19483 #include <stdio.h>
a848cd7e 19484
a848cd7e 19485
a848cd7e 19486
238ecede
MW
19487int
19488main ()
19489{
19490static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19491test_array [0] = 0
a848cd7e 19492
238ecede
MW
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499 (eval $ac_compile) 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
9dd0f6c2 19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_hi=$ac_mid
19519else
19520 echo "$as_me: failed program was:" >&5
19521sed 's/^/| /' conftest.$ac_ext >&5
19522
19523ac_lo=`expr '(' $ac_mid ')' + 1`
19524fi
19525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526done
19527case $ac_lo in
19528?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19529'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19530See \`config.log' for more details." >&5
19531echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19532See \`config.log' for more details." >&2;}
19533 { (exit 1); exit 1; }; } ;;
19534esac
19535else
19536 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19537 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19538echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19539 { (exit 1); exit 1; }; }
a848cd7e
SC
19540else
19541 cat >conftest.$ac_ext <<_ACEOF
19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
19547
238ecede
MW
19548 /* DJGPP only has fake wchar_t: */
19549 #ifdef __DJGPP__
19550 # error "fake wchar_t"
19551 #endif
19552 #ifdef HAVE_WCHAR_H
19553 # ifdef __CYGWIN__
19554 # include <stddef.h>
19555 # endif
19556 # include <wchar.h>
19557 #endif
19558 #ifdef HAVE_STDLIB_H
19559 # include <stdlib.h>
19560 #endif
19561 #include <stdio.h>
19562
19563
19564
19565long longval () { return (long) (sizeof (wchar_t)); }
19566unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19567#include <stdio.h>
19568#include <stdlib.h>
19569int
19570main ()
19571{
a848cd7e 19572
238ecede
MW
19573 FILE *f = fopen ("conftest.val", "w");
19574 if (! f)
19575 exit (1);
19576 if (((long) (sizeof (wchar_t))) < 0)
19577 {
19578 long i = longval ();
19579 if (i != ((long) (sizeof (wchar_t))))
19580 exit (1);
19581 fprintf (f, "%ld\n", i);
19582 }
19583 else
19584 {
19585 unsigned long i = ulongval ();
19586 if (i != ((long) (sizeof (wchar_t))))
19587 exit (1);
19588 fprintf (f, "%lu\n", i);
19589 }
19590 exit (ferror (f) || fclose (f) != 0);
19591
19592 ;
19593 return 0;
19594}
a848cd7e
SC
19595_ACEOF
19596rm -f conftest$ac_exeext
19597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19598 (eval $ac_link) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
238ecede 19607 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19608else
19609 echo "$as_me: program exited with status $ac_status" >&5
19610echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613( exit $ac_status )
238ecede
MW
19614{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19615See \`config.log' for more details." >&5
19616echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19617See \`config.log' for more details." >&2;}
19618 { (exit 1); exit 1; }; }
a848cd7e 19619fi
ac1cb8d3 19620rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19621fi
a848cd7e 19622fi
238ecede
MW
19623rm -f conftest.val
19624else
19625 ac_cv_sizeof_wchar_t=0
19626fi
19627fi
19628echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19629echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19630cat >>confdefs.h <<_ACEOF
238ecede 19631#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19632_ACEOF
19633
19634
238ecede 19635
ba3d13e1
VZ
19636echo "$as_me:$LINENO: checking for va_copy" >&5
19637echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19638if test "${wx_cv_func_va_copy+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640else
19641
19642 cat >conftest.$ac_ext <<_ACEOF
19643
19644 #include <stdarg.h>
19645 void foo(char *f, ...)
19646 {
19647 va_list ap1, ap2;
19648 va_start(ap1, f);
19649 va_copy(ap2, ap1);
19650 va_end(ap2);
19651 va_end(ap1);
19652 }
5886b072
VZ
19653 int main()
19654 {
b902e639
VZ
19655 foo("hi", 17);
19656 return 0;
5886b072 19657 }
ba3d13e1
VZ
19658_ACEOF
19659rm -f conftest.$ac_objext conftest$ac_exeext
19660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661 (eval $ac_link) 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
9dd0f6c2 19668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 wx_cv_func_va_copy=yes
19681else
19682 echo "$as_me: failed program was:" >&5
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
19685wx_cv_func_va_copy=no
19686
19687fi
19688rm -f conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690
19691
19692fi
19693echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19694echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19695
19696if test $wx_cv_func_va_copy = "yes"; then
19697 cat >>confdefs.h <<\_ACEOF
19698#define HAVE_VA_COPY 1
19699_ACEOF
19700
19701else
19702 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19703echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19704if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707
19708 if test "$cross_compiling" = yes; then
19709 wx_cv_type_va_list_lvalue=yes
19710
19711else
19712 cat >conftest.$ac_ext <<_ACEOF
19713
19714 #include <stdarg.h>
19715 int foo(char *f, ...)
19716 {
19717 va_list ap1, ap2;
19718 va_start(ap1, f);
19719 ap2 = ap1;
19720 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19721 return 1;
19722 va_end(ap2);
19723 va_end(ap1);
19724 return 0;
19725 }
19726 int main()
19727 {
19728 return foo("hi", 17);
19729 }
19730_ACEOF
19731rm -f conftest$ac_exeext
19732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 wx_cv_type_va_list_lvalue=yes
19743else
19744 echo "$as_me: program exited with status $ac_status" >&5
19745echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748( exit $ac_status )
19749wx_cv_type_va_list_lvalue=no
19750fi
19751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752fi
19753
19754
19755fi
19756echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19757echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19758
19759 if test $wx_cv_type_va_list_lvalue != "yes"; then
19760 cat >>confdefs.h <<\_ACEOF
19761#define VA_LIST_IS_ARRAY 1
19762_ACEOF
19763
19764 fi
19765fi
19766
a848cd7e
SC
19767# Check whether --enable-largefile or --disable-largefile was given.
19768if test "${enable_largefile+set}" = set; then
19769 enableval="$enable_largefile"
19770
19771fi;
19772if test "$enable_largefile" != no; then
19773 wx_largefile=no
19774
19775 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19776echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19777if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779else
19780
19781 cat >conftest.$ac_ext <<_ACEOF
19782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
19787#define _FILE_OFFSET_BITS 64
19788 #include <sys/types.h>
19789int
19790main ()
19791{
19792typedef struct {
19793 unsigned int field: sizeof(off_t) == 8;
19794} wxlf;
19795
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19802 (eval $ac_compile) 2>conftest.er1
a848cd7e 19803 ac_status=$?
ac1cb8d3
VS
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
a848cd7e
SC
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
9dd0f6c2 19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_sys_file_offset_bits=64
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826ac_cv_sys_file_offset_bits=no
19827fi
ac1cb8d3 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19829
19830
19831fi
19832echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19833echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19834
19835 if test "$ac_cv_sys_file_offset_bits" != no; then
19836 wx_largefile=yes
19837 cat >>confdefs.h <<_ACEOF
19838#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19839_ACEOF
19840
19841 fi
19842
19843 if test "x$wx_largefile" != "xyes"; then
19844
19845 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19846echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19847if test "${ac_cv_sys_large_files+set}" = set; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19849else
19850
19851 cat >conftest.$ac_ext <<_ACEOF
19852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
19856/* end confdefs.h. */
19857#define _LARGE_FILES 1
19858 #include <sys/types.h>
19859int
19860main ()
19861{
19862typedef struct {
19863 unsigned int field: sizeof(off_t) == 8;
19864} wxlf;
19865
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19872 (eval $ac_compile) 2>conftest.er1
a848cd7e 19873 ac_status=$?
ac1cb8d3
VS
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
a848cd7e
SC
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
9dd0f6c2 19879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_cv_sys_large_files=1
19892else
19893 echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896ac_cv_sys_large_files=no
19897fi
ac1cb8d3 19898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19899
19900
19901fi
19902echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19903echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19904
19905 if test "$ac_cv_sys_large_files" != no; then
19906 wx_largefile=yes
19907 cat >>confdefs.h <<_ACEOF
19908#define _LARGE_FILES $ac_cv_sys_large_files
19909_ACEOF
19910
19911 fi
19912
19913 fi
19914
19915 echo "$as_me:$LINENO: checking if large file support is available" >&5
19916echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19917 if test "x$wx_largefile" = "xyes"; then
19918 cat >>confdefs.h <<\_ACEOF
19919#define HAVE_LARGEFILE_SUPPORT 1
19920_ACEOF
19921
19922 fi
19923 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19924echo "${ECHO_T}$wx_largefile" >&6
19925fi
19926
5b674b9d
DE
19927
19928if test "x$wx_largefile" = "xyes"; then
19929 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19930 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19931 else
19932 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19933 fi
19934 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19935echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19936if test "${ac_cv_sys_largefile_source+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939 while :; do
19940 ac_cv_sys_largefile_source=no
19941 cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947#include <stdio.h>
19948int
19949main ()
19950{
19951return !fseeko;
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956rm -f conftest.$ac_objext
19957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958 (eval $ac_compile) 2>conftest.er1
19959 ac_status=$?
19960 grep -v '^ *+' conftest.er1 >conftest.err
19961 rm -f conftest.er1
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } &&
9dd0f6c2 19965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 break
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982fi
19983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19984 cat >conftest.$ac_ext <<_ACEOF
19985/* confdefs.h. */
19986_ACEOF
19987cat confdefs.h >>conftest.$ac_ext
19988cat >>conftest.$ac_ext <<_ACEOF
19989/* end confdefs.h. */
19990#define _LARGEFILE_SOURCE 1
19991#include <stdio.h>
19992int
19993main ()
19994{
19995return !fseeko;
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
9dd0f6c2 20009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try='test -s conftest.$ac_objext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 ac_cv_sys_largefile_source=1; break
20022else
20023 echo "$as_me: failed program was:" >&5
20024sed 's/^/| /' conftest.$ac_ext >&5
20025
20026fi
20027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 break
20029done
20030fi
20031echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20032echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20033if test "$ac_cv_sys_largefile_source" != no; then
20034
20035cat >>confdefs.h <<_ACEOF
20036#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20037_ACEOF
20038
20039fi
20040rm -f conftest*
20041
20042# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20043# in glibc 2.1.3, but that breaks too many other things.
20044# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20045echo "$as_me:$LINENO: checking for fseeko" >&5
20046echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20047if test "${ac_cv_func_fseeko+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20049else
20050 cat >conftest.$ac_ext <<_ACEOF
20051/* confdefs.h. */
20052_ACEOF
20053cat confdefs.h >>conftest.$ac_ext
20054cat >>conftest.$ac_ext <<_ACEOF
20055/* end confdefs.h. */
20056#include <stdio.h>
20057int
20058main ()
20059{
20060return fseeko && fseeko (stdin, 0, 0);
20061 ;
20062 return 0;
20063}
20064_ACEOF
20065rm -f conftest.$ac_objext conftest$ac_exeext
20066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
9dd0f6c2 20074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest$ac_exeext'
20081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082 (eval $ac_try) 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_func_fseeko=yes
20087else
20088 echo "$as_me: failed program was:" >&5
20089sed 's/^/| /' conftest.$ac_ext >&5
20090
20091ac_cv_func_fseeko=no
20092fi
20093rm -f conftest.err conftest.$ac_objext \
20094 conftest$ac_exeext conftest.$ac_ext
20095fi
20096echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20097echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20098if test $ac_cv_func_fseeko = yes; then
20099
20100cat >>confdefs.h <<\_ACEOF
20101#define HAVE_FSEEKO 1
20102_ACEOF
20103
20104fi
20105
5b674b9d
DE
20106 if test "$ac_cv_sys_largefile_source" != no; then
20107 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20108 fi
20109 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20110fi
20111
20112echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20113echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20114if test "${ac_cv_c_bigendian+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 ac_cv_c_bigendian=unknown
20118# See if sys/param.h defines the BYTE_ORDER macro.
20119cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
20125#include <sys/types.h>
20126#include <sys/param.h>
20127int
20128main ()
20129{
20130
20131#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20132 bogus endian macros
20133#endif
20134 ;
20135 return 0;
20136}
20137_ACEOF
20138rm -f conftest.$ac_objext
20139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20140 (eval $ac_compile) 2>conftest.er1
a848cd7e 20141 ac_status=$?
ac1cb8d3
VS
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
a848cd7e
SC
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } &&
9dd0f6c2 20147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 # It does; now see whether it defined to BIG_ENDIAN or not.
20160cat >conftest.$ac_ext <<_ACEOF
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
20166#include <sys/types.h>
20167#include <sys/param.h>
20168int
20169main ()
20170{
20171
20172#if BYTE_ORDER != BIG_ENDIAN
20173 not big endian
20174#endif
20175 ;
20176 return 0;
20177}
20178_ACEOF
20179rm -f conftest.$ac_objext
20180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20181 (eval $ac_compile) 2>conftest.er1
a848cd7e 20182 ac_status=$?
ac1cb8d3
VS
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
a848cd7e
SC
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
9dd0f6c2 20188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 ac_cv_c_bigendian=yes
20201else
20202 echo "$as_me: failed program was:" >&5
20203sed 's/^/| /' conftest.$ac_ext >&5
20204
20205ac_cv_c_bigendian=no
20206fi
ac1cb8d3 20207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212fi
ac1cb8d3 20213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20214if test $ac_cv_c_bigendian = unknown; then
20215if test "$cross_compiling" = yes; then
20216 ac_cv_c_bigendian=unknown
20217else
20218 cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
20224main () {
20225 /* Are we little or big endian? From Harbison&Steele. */
20226 union
20227 {
20228 long l;
20229 char c[sizeof (long)];
20230 } u;
20231 u.l = 1;
20232 exit (u.c[sizeof (long) - 1] == 1);
20233}
20234_ACEOF
20235rm -f conftest$ac_exeext
20236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_c_bigendian=no
20247else
20248 echo "$as_me: program exited with status $ac_status" >&5
20249echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252( exit $ac_status )
20253ac_cv_c_bigendian=yes
20254fi
ac1cb8d3 20255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20256fi
20257fi
20258fi
20259echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20260echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20261if test $ac_cv_c_bigendian = unknown; then
20262 { 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
20263echo "$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;}
20264fi
20265if test $ac_cv_c_bigendian = yes; then
20266 cat >>confdefs.h <<\_ACEOF
20267#define WORDS_BIGENDIAN 1
20268_ACEOF
20269
20270fi
20271
20272
20273ac_ext=cc
20274ac_cpp='$CXXCPP $CPPFLAGS'
20275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20278echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20279echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20280if test -z "$CXXCPP"; then
20281 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284 # Double quotes because CXXCPP needs to be expanded
20285 for CXXCPP in "$CXX -E" "/lib/cpp"
20286 do
20287 ac_preproc_ok=false
20288for ac_cxx_preproc_warn_flag in '' yes
20289do
20290 # Use a header file that comes with gcc, so configuring glibc
20291 # with a fresh cross-compiler works.
20292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 # <limits.h> exists even on freestanding compilers.
20294 # On the NeXT, cc -E runs the code through the compiler's parser,
20295 # not just through cpp. "Syntax error" is here to catch this case.
20296 cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
20302#ifdef __STDC__
20303# include <limits.h>
20304#else
20305# include <assert.h>
20306#endif
ac1cb8d3 20307 Syntax error
a848cd7e
SC
20308_ACEOF
20309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } >/dev/null; then
20317 if test -s conftest.err; then
20318 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20319 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20320 else
20321 ac_cpp_err=
20322 fi
20323else
20324 ac_cpp_err=yes
20325fi
20326if test -z "$ac_cpp_err"; then
20327 :
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 # Broken: fails on valid input.
20333continue
20334fi
20335rm -f conftest.err conftest.$ac_ext
20336
20337 # OK, works on sane cases. Now check whether non-existent headers
20338 # can be detected and how.
20339 cat >conftest.$ac_ext <<_ACEOF
20340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345#include <ac_nonexistent.h>
20346_ACEOF
20347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } >/dev/null; then
20355 if test -s conftest.err; then
20356 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20358 else
20359 ac_cpp_err=
20360 fi
20361else
20362 ac_cpp_err=yes
20363fi
20364if test -z "$ac_cpp_err"; then
20365 # Broken: success on invalid input.
20366continue
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 # Passes both tests.
20372ac_preproc_ok=:
20373break
20374fi
20375rm -f conftest.err conftest.$ac_ext
20376
20377done
20378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20379rm -f conftest.err conftest.$ac_ext
20380if $ac_preproc_ok; then
20381 break
20382fi
20383
20384 done
20385 ac_cv_prog_CXXCPP=$CXXCPP
20386
20387fi
20388 CXXCPP=$ac_cv_prog_CXXCPP
20389else
20390 ac_cv_prog_CXXCPP=$CXXCPP
20391fi
20392echo "$as_me:$LINENO: result: $CXXCPP" >&5
20393echo "${ECHO_T}$CXXCPP" >&6
20394ac_preproc_ok=false
20395for ac_cxx_preproc_warn_flag in '' yes
20396do
20397 # Use a header file that comes with gcc, so configuring glibc
20398 # with a fresh cross-compiler works.
20399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20400 # <limits.h> exists even on freestanding compilers.
20401 # On the NeXT, cc -E runs the code through the compiler's parser,
20402 # not just through cpp. "Syntax error" is here to catch this case.
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409#ifdef __STDC__
20410# include <limits.h>
20411#else
20412# include <assert.h>
20413#endif
ac1cb8d3 20414 Syntax error
a848cd7e
SC
20415_ACEOF
20416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } >/dev/null; then
20424 if test -s conftest.err; then
20425 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20426 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20427 else
20428 ac_cpp_err=
20429 fi
20430else
20431 ac_cpp_err=yes
20432fi
20433if test -z "$ac_cpp_err"; then
20434 :
20435else
20436 echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 # Broken: fails on valid input.
20440continue
20441fi
20442rm -f conftest.err conftest.$ac_ext
20443
20444 # OK, works on sane cases. Now check whether non-existent headers
20445 # can be detected and how.
20446 cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452#include <ac_nonexistent.h>
20453_ACEOF
20454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } >/dev/null; then
20462 if test -s conftest.err; then
20463 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20464 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20465 else
20466 ac_cpp_err=
20467 fi
20468else
20469 ac_cpp_err=yes
20470fi
20471if test -z "$ac_cpp_err"; then
20472 # Broken: success on invalid input.
20473continue
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 # Passes both tests.
20479ac_preproc_ok=:
20480break
20481fi
20482rm -f conftest.err conftest.$ac_ext
20483
20484done
20485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20486rm -f conftest.err conftest.$ac_ext
20487if $ac_preproc_ok; then
20488 :
20489else
20490 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20491See \`config.log' for more details." >&5
20492echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20493See \`config.log' for more details." >&2;}
20494 { (exit 1); exit 1; }; }
20495fi
20496
20497ac_ext=cc
20498ac_cpp='$CXXCPP $CPPFLAGS'
20499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20502
20503
20504
20505
20506
20507 ac_ext=cc
20508ac_cpp='$CXXCPP $CPPFLAGS'
20509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20512
20513
20514
20515for ac_header in iostream
20516do
20517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20518if eval "test \"\${$as_ac_Header+set}\" = set"; then
20519 echo "$as_me:$LINENO: checking for $ac_header" >&5
20520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20521if eval "test \"\${$as_ac_Header+set}\" = set"; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20523fi
20524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20526else
20527 # Is the header compilable?
20528echo "$as_me:$LINENO: checking $ac_header usability" >&5
20529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20530cat >conftest.$ac_ext <<_ACEOF
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
20536$ac_includes_default
20537#include <$ac_header>
20538_ACEOF
20539rm -f conftest.$ac_objext
20540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20541 (eval $ac_compile) 2>conftest.er1
a848cd7e 20542 ac_status=$?
ac1cb8d3
VS
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
a848cd7e
SC
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
9dd0f6c2 20548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_header_compiler=yes
20561else
20562 echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
20564
20565ac_header_compiler=no
20566fi
ac1cb8d3 20567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20569echo "${ECHO_T}$ac_header_compiler" >&6
20570
20571# Is the header present?
20572echo "$as_me:$LINENO: checking $ac_header presence" >&5
20573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20574cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580#include <$ac_header>
20581_ACEOF
20582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } >/dev/null; then
20590 if test -s conftest.err; then
20591 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20592 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20593 else
20594 ac_cpp_err=
20595 fi
20596else
20597 ac_cpp_err=yes
20598fi
20599if test -z "$ac_cpp_err"; then
20600 ac_header_preproc=yes
20601else
20602 echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 ac_header_preproc=no
20606fi
20607rm -f conftest.err conftest.$ac_ext
20608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20609echo "${ECHO_T}$ac_header_preproc" >&6
20610
20611# So? What about this header?
ac1cb8d3
VS
20612case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20613 yes:no: )
a848cd7e
SC
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20618 ac_header_preproc=yes
a848cd7e 20619 ;;
ac1cb8d3 20620 no:yes:* )
a848cd7e
SC
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20633 (
20634 cat <<\_ASBOX
ac1cb8d3
VS
20635## ----------------------------------------- ##
20636## Report this to wx-dev@lists.wxwidgets.org ##
20637## ----------------------------------------- ##
a848cd7e
SC
20638_ASBOX
20639 ) |
20640 sed "s/^/$as_me: WARNING: /" >&2
20641 ;;
20642esac
20643echo "$as_me:$LINENO: checking for $ac_header" >&5
20644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20645if eval "test \"\${$as_ac_Header+set}\" = set"; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647else
ac1cb8d3 20648 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20649fi
20650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20652
20653fi
20654if test `eval echo '${'$as_ac_Header'}'` = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20657_ACEOF
20658
20659fi
20660
20661done
20662
20663
20664 if test "$ac_cv_header_iostream" = "yes" ; then
20665 :
20666 else
20667 cat >>confdefs.h <<\_ACEOF
20668#define wxUSE_IOSTREAMH 1
20669_ACEOF
20670
20671 fi
20672
20673 ac_ext=c
20674ac_cpp='$CPP $CPPFLAGS'
20675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678
20679
20680
20681
20682 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20683echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20684if test "${wx_cv_cpp_bool+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687
20688
20689
20690 ac_ext=cc
20691ac_cpp='$CXXCPP $CPPFLAGS'
20692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20695
20696
20697 cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h. */
20703
20704
20705int
20706main ()
20707{
20708
20709 bool b = true;
20710
20711 return 0;
20712
20713 ;
20714 return 0;
20715}
20716_ACEOF
20717rm -f conftest.$ac_objext
20718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20719 (eval $ac_compile) 2>conftest.er1
a848cd7e 20720 ac_status=$?
ac1cb8d3
VS
20721 grep -v '^ *+' conftest.er1 >conftest.err
20722 rm -f conftest.er1
20723 cat conftest.err >&5
a848cd7e
SC
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
9dd0f6c2 20726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; } &&
20732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738
20739 wx_cv_cpp_bool=yes
20740
20741else
20742 echo "$as_me: failed program was:" >&5
20743sed 's/^/| /' conftest.$ac_ext >&5
20744
20745
20746 wx_cv_cpp_bool=no
20747
20748
20749fi
ac1cb8d3 20750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20751
20752 ac_ext=c
20753ac_cpp='$CPP $CPPFLAGS'
20754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_c_compiler_gnu
20757
20758
20759fi
20760echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20761echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20762
20763 if test "$wx_cv_cpp_bool" = "yes"; then
20764 cat >>confdefs.h <<\_ACEOF
20765#define HAVE_BOOL 1
20766_ACEOF
20767
20768 fi
20769
20770
20771
20772 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20773echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20774if test "${wx_cv_explicit+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776else
20777
20778
20779
20780 ac_ext=cc
20781ac_cpp='$CXXCPP $CPPFLAGS'
20782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786
20787 cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h. */
20793
20794 class Foo { public: explicit Foo(int) {} };
20795
20796int
20797main ()
20798{
20799
20800 return 0;
20801
20802 ;
20803 return 0;
20804}
20805_ACEOF
20806rm -f conftest.$ac_objext
20807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20808 (eval $ac_compile) 2>conftest.er1
a848cd7e 20809 ac_status=$?
ac1cb8d3
VS
20810 grep -v '^ *+' conftest.er1 >conftest.err
20811 rm -f conftest.er1
20812 cat conftest.err >&5
a848cd7e
SC
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } &&
9dd0f6c2 20815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; } &&
20821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827
20828 cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
20834
20835 class Foo { public: explicit Foo(int) {} };
20836 static void TakeFoo(const Foo& foo) { }
20837
20838int
20839main ()
20840{
20841
20842 TakeFoo(17);
20843 return 0;
20844
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849rm -f conftest.$ac_objext
20850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20851 (eval $ac_compile) 2>conftest.er1
a848cd7e 20852 ac_status=$?
ac1cb8d3
VS
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
a848cd7e
SC
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } &&
9dd0f6c2 20858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 wx_cv_explicit=no
20871else
20872 echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875wx_cv_explicit=yes
20876
20877fi
ac1cb8d3 20878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20879
20880else
20881 echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
20884wx_cv_explicit=no
20885
20886fi
ac1cb8d3 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20888
20889 ac_ext=c
20890ac_cpp='$CPP $CPPFLAGS'
20891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894
20895
20896fi
20897echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20898echo "${ECHO_T}$wx_cv_explicit" >&6
20899
20900 if test "$wx_cv_explicit" = "yes"; then
20901 cat >>confdefs.h <<\_ACEOF
20902#define HAVE_EXPLICIT 1
20903_ACEOF
20904
20905 fi
20906
20907
20908echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20909echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20910if test "${ac_cv_cxx_const_cast+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912else
20913
20914
20915 ac_ext=cc
20916ac_cpp='$CXXCPP $CPPFLAGS'
20917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20920
20921 cat >conftest.$ac_ext <<_ACEOF
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
20927
20928int
20929main ()
20930{
20931int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20932 ;
20933 return 0;
20934}
20935_ACEOF
20936rm -f conftest.$ac_objext
20937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20938 (eval $ac_compile) 2>conftest.er1
a848cd7e 20939 ac_status=$?
ac1cb8d3
VS
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
a848cd7e
SC
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
9dd0f6c2 20945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_cv_cxx_const_cast=yes
20958else
20959 echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962ac_cv_cxx_const_cast=no
20963fi
ac1cb8d3 20964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20965 ac_ext=c
20966ac_cpp='$CPP $CPPFLAGS'
20967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20969ac_compiler_gnu=$ac_cv_c_compiler_gnu
20970
20971
20972fi
20973echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20974echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20975if test "$ac_cv_cxx_const_cast" = yes; then
20976
20977cat >>confdefs.h <<\_ACEOF
20978#define HAVE_CONST_CAST
20979_ACEOF
20980
20981fi
20982
7714864e
RL
20983echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20984echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20985if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988
20989
20990 ac_ext=cc
20991ac_cpp='$CXXCPP $CPPFLAGS'
20992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995
20996 cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h. */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h. */
21002#include <typeinfo>
21003class Base { public : Base () {} virtual void f () = 0;};
21004class Derived : public Base { public : Derived () {} virtual void f () {} };
21005class Unrelated { public : Unrelated () {} };
21006int g (Unrelated&) { return 0; }
21007int
21008main ()
21009{
21010
21011Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21012 ;
21013 return 0;
21014}
21015_ACEOF
21016rm -f conftest.$ac_objext
21017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21018 (eval $ac_compile) 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
9dd0f6c2 21025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest.$ac_objext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 ac_cv_cxx_reinterpret_cast=yes
21038else
21039 echo "$as_me: failed program was:" >&5
21040sed 's/^/| /' conftest.$ac_ext >&5
21041
21042ac_cv_cxx_reinterpret_cast=no
21043fi
21044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21045 ac_ext=c
21046ac_cpp='$CPP $CPPFLAGS'
21047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050
21051
21052fi
21053echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21054echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21055if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21056
21057cat >>confdefs.h <<\_ACEOF
21058#define HAVE_REINTERPRET_CAST
21059_ACEOF
21060
21061fi
21062
a848cd7e
SC
21063echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21064echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21065if test "${ac_cv_cxx_static_cast+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068
21069
21070 ac_ext=cc
21071ac_cpp='$CXXCPP $CPPFLAGS'
21072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21075
21076 cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082#include <typeinfo>
21083class Base { public : Base () {} virtual void f () = 0; };
21084class Derived : public Base { public : Derived () {} virtual void f () {} };
21085int g (Derived&) { return 0; }
21086int
21087main ()
21088{
21089
21090Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21091 ;
21092 return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext
21096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21097 (eval $ac_compile) 2>conftest.er1
a848cd7e 21098 ac_status=$?
ac1cb8d3
VS
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
a848cd7e
SC
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
9dd0f6c2 21104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_cxx_static_cast=yes
21117else
21118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
21121ac_cv_cxx_static_cast=no
21122fi
ac1cb8d3 21123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21124 ac_ext=c
21125ac_cpp='$CPP $CPPFLAGS'
21126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129
21130
21131fi
21132echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21133echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21134if test "$ac_cv_cxx_static_cast" = yes; then
21135
21136cat >>confdefs.h <<\_ACEOF
21137#define HAVE_STATIC_CAST
21138_ACEOF
21139
21140fi
21141
21142
21143if test "$wxUSE_STL" = "yes"; then
21144 ac_ext=cc
21145ac_cpp='$CXXCPP $CPPFLAGS'
21146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149
21150
21151 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21152echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21153 cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159#include <string>
21160 #include <functional>
21161 #include <algorithm>
21162 #include <vector>
21163 #include <list>
21164int
21165main ()
21166{
21167std::vector<int> moo;
21168 std::list<int> foo;
21169 std::vector<int>::iterator it =
21170 std::find_if(moo.begin(), moo.end(),
21171 std::bind2nd(std::less<int>(), 3));
21172 ;
21173 return 0;
21174}
21175_ACEOF
21176rm -f conftest.$ac_objext
21177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21178 (eval $ac_compile) 2>conftest.er1
a848cd7e 21179 ac_status=$?
ac1cb8d3
VS
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
a848cd7e
SC
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } &&
9dd0f6c2 21185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 echo "$as_me:$LINENO: result: yes" >&5
21198echo "${ECHO_T}yes" >&6
21199else
21200 echo "$as_me: failed program was:" >&5
21201sed 's/^/| /' conftest.$ac_ext >&5
21202
21203echo "$as_me:$LINENO: result: no" >&5
21204echo "${ECHO_T}no" >&6
21205 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21206echo "$as_me: error: Basic STL functionality missing" >&2;}
21207 { (exit 1); exit 1; }; }
21208fi
ac1cb8d3 21209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21210
21211 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21212echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21213 cat >conftest.$ac_ext <<_ACEOF
21214/* confdefs.h. */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h. */
21219#include <string>
21220int
21221main ()
21222{
21223std::wstring foo;
21224 ;
21225 return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext
21229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21230 (eval $ac_compile) 2>conftest.er1
a848cd7e 21231 ac_status=$?
ac1cb8d3
VS
21232 grep -v '^ *+' conftest.er1 >conftest.err
21233 rm -f conftest.er1
21234 cat conftest.err >&5
a848cd7e
SC
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
9dd0f6c2 21237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 echo "$as_me:$LINENO: result: yes" >&5
21250echo "${ECHO_T}yes" >&6
21251 cat >>confdefs.h <<\_ACEOF
21252#define HAVE_STD_WSTRING 1
21253_ACEOF
21254
21255else
21256 echo "$as_me: failed program was:" >&5
21257sed 's/^/| /' conftest.$ac_ext >&5
21258
21259echo "$as_me:$LINENO: result: no" >&5
21260echo "${ECHO_T}no" >&6
21261fi
ac1cb8d3 21262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21263
21264 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21265echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21266 cat >conftest.$ac_ext <<_ACEOF
21267/* confdefs.h. */
21268_ACEOF
21269cat confdefs.h >>conftest.$ac_ext
21270cat >>conftest.$ac_ext <<_ACEOF
21271/* end confdefs.h. */
21272#include <string>
21273int
21274main ()
21275{
21276std::string foo, bar;
21277 foo.compare(bar);
21278 foo.compare(1, 1, bar);
21279 foo.compare(1, 1, bar, 1, 1);
21280 foo.compare("");
21281 foo.compare(1, 1, "");
21282 foo.compare(1, 1, "", 2);
21283 ;
21284 return 0;
21285}
21286_ACEOF
21287rm -f conftest.$ac_objext
21288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21289 (eval $ac_compile) 2>conftest.er1
a848cd7e 21290 ac_status=$?
ac1cb8d3
VS
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
a848cd7e
SC
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
9dd0f6c2 21296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 echo "$as_me:$LINENO: result: yes" >&5
21309echo "${ECHO_T}yes" >&6
21310 cat >>confdefs.h <<\_ACEOF
21311#define HAVE_STD_STRING_COMPARE 1
21312_ACEOF
21313
21314else
21315 echo "$as_me: failed program was:" >&5
21316sed 's/^/| /' conftest.$ac_ext >&5
21317
21318echo "$as_me:$LINENO: result: no" >&5
21319echo "${ECHO_T}no" >&6
21320fi
ac1cb8d3 21321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21322
21323 if test "${ac_cv_header_hash_map+set}" = set; then
21324 echo "$as_me:$LINENO: checking for hash_map" >&5
21325echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21326if test "${ac_cv_header_hash_map+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328fi
21329echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21330echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21331else
21332 # Is the header compilable?
21333echo "$as_me:$LINENO: checking hash_map usability" >&5
21334echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21335cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341$ac_includes_default
21342#include <hash_map>
21343_ACEOF
21344rm -f conftest.$ac_objext
21345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21346 (eval $ac_compile) 2>conftest.er1
bdcade0a 21347 ac_status=$?
ac1cb8d3
VS
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
bdcade0a
MB
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
9dd0f6c2 21353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; } &&
21359 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_header_compiler=yes
21366else
21367 echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370ac_header_compiler=no
21371fi
ac1cb8d3 21372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21373echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21374echo "${ECHO_T}$ac_header_compiler" >&6
21375
21376# Is the header present?
21377echo "$as_me:$LINENO: checking hash_map presence" >&5
21378echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21379cat >conftest.$ac_ext <<_ACEOF
21380/* confdefs.h. */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h. */
21385#include <hash_map>
21386_ACEOF
21387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } >/dev/null; then
21395 if test -s conftest.err; then
21396 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21397 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21398 else
21399 ac_cpp_err=
21400 fi
21401else
21402 ac_cpp_err=yes
21403fi
21404if test -z "$ac_cpp_err"; then
21405 ac_header_preproc=yes
21406else
21407 echo "$as_me: failed program was:" >&5
21408sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 ac_header_preproc=no
21411fi
21412rm -f conftest.err conftest.$ac_ext
21413echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21414echo "${ECHO_T}$ac_header_preproc" >&6
21415
21416# So? What about this header?
ac1cb8d3
VS
21417case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21418 yes:no: )
bdcade0a
MB
21419 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21420echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21421 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21422echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21423 ac_header_preproc=yes
bdcade0a 21424 ;;
ac1cb8d3 21425 no:yes:* )
bdcade0a
MB
21426 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21427echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21428 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21429echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21431echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21433echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21434 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21435echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21436 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21437echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21438 (
21439 cat <<\_ASBOX
ac1cb8d3
VS
21440## ----------------------------------------- ##
21441## Report this to wx-dev@lists.wxwidgets.org ##
21442## ----------------------------------------- ##
bdcade0a
MB
21443_ASBOX
21444 ) |
21445 sed "s/^/$as_me: WARNING: /" >&2
21446 ;;
21447esac
21448echo "$as_me:$LINENO: checking for hash_map" >&5
21449echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21450if test "${ac_cv_header_hash_map+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453 ac_cv_header_hash_map=$ac_header_preproc
21454fi
21455echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21456echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21457
21458fi
21459if test $ac_cv_header_hash_map = yes; then
21460 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21461echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468#include <hash_map>
21469 #include <hash_set>
21470int
21471main ()
21472{
21473std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21474 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21481 (eval $ac_compile) 2>conftest.er1
bdcade0a 21482 ac_status=$?
ac1cb8d3
VS
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
bdcade0a
MB
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
9dd0f6c2 21488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
bdcade0a
MB
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 echo "$as_me:$LINENO: result: yes" >&5
21501echo "${ECHO_T}yes" >&6
21502 cat >>confdefs.h <<\_ACEOF
21503#define HAVE_HASH_MAP 1
21504_ACEOF
21505
21506 cat >>confdefs.h <<\_ACEOF
21507#define HAVE_STD_HASH_MAP 1
21508_ACEOF
21509
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514echo "$as_me:$LINENO: result: no" >&5
21515echo "${ECHO_T}no" >&6
21516fi
ac1cb8d3 21517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21518
21519fi
21520
21521
21522
21523 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21524 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21525echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21526if test "${ac_cv_header_ext_hash_map+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528fi
21529echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21530echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21531else
21532 # Is the header compilable?
21533echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21534echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21535cat >conftest.$ac_ext <<_ACEOF
21536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
21541$ac_includes_default
21542#include <ext/hash_map>
21543_ACEOF
21544rm -f conftest.$ac_objext
21545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21546 (eval $ac_compile) 2>conftest.er1
bdcade0a 21547 ac_status=$?
ac1cb8d3
VS
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
bdcade0a
MB
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
9dd0f6c2 21553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_header_compiler=yes
21566else
21567 echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
21569
21570ac_header_compiler=no
21571fi
ac1cb8d3 21572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574echo "${ECHO_T}$ac_header_compiler" >&6
21575
21576# Is the header present?
21577echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21578echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21579cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585#include <ext/hash_map>
21586_ACEOF
21587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null; then
21595 if test -s conftest.err; then
21596 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21597 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21598 else
21599 ac_cpp_err=
21600 fi
21601else
21602 ac_cpp_err=yes
21603fi
21604if test -z "$ac_cpp_err"; then
21605 ac_header_preproc=yes
21606else
21607 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5
21609
21610 ac_header_preproc=no
21611fi
21612rm -f conftest.err conftest.$ac_ext
21613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614echo "${ECHO_T}$ac_header_preproc" >&6
21615
21616# So? What about this header?
ac1cb8d3
VS
21617case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21618 yes:no: )
bdcade0a
MB
21619 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21620echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21621 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21622echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21623 ac_header_preproc=yes
bdcade0a 21624 ;;
ac1cb8d3 21625 no:yes:* )
bdcade0a
MB
21626 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21627echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21628 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21629echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21631echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21633echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21634 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21635echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21636 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21637echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21638 (
21639 cat <<\_ASBOX
ac1cb8d3
VS
21640## ----------------------------------------- ##
21641## Report this to wx-dev@lists.wxwidgets.org ##
21642## ----------------------------------------- ##
bdcade0a
MB
21643_ASBOX
21644 ) |
21645 sed "s/^/$as_me: WARNING: /" >&2
21646 ;;
21647esac
21648echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21649echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21650if test "${ac_cv_header_ext_hash_map+set}" = set; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21652else
21653 ac_cv_header_ext_hash_map=$ac_header_preproc
21654fi
21655echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21656echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21657
21658fi
21659if test $ac_cv_header_ext_hash_map = yes; then
21660 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21661echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21662 cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668#include <ext/hash_map>
21669 #include <ext/hash_set>
21670int
21671main ()
21672{
21673__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21674 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21675 ;
21676 return 0;
21677}
21678_ACEOF
21679rm -f conftest.$ac_objext
21680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21681 (eval $ac_compile) 2>conftest.er1
bdcade0a 21682 ac_status=$?
ac1cb8d3
VS
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
bdcade0a
MB
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
9dd0f6c2 21688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 echo "$as_me:$LINENO: result: yes" >&5
21701echo "${ECHO_T}yes" >&6
21702 cat >>confdefs.h <<\_ACEOF
21703#define HAVE_EXT_HASH_MAP 1
21704_ACEOF
21705
21706 cat >>confdefs.h <<\_ACEOF
21707#define HAVE_GNU_CXX_HASH_MAP 1
21708_ACEOF
21709
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714echo "$as_me:$LINENO: result: no" >&5
21715echo "${ECHO_T}no" >&6
21716fi
ac1cb8d3 21717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21718
21719fi
21720
21721
a848cd7e
SC
21722
21723 ac_ext=c
21724ac_cpp='$CPP $CPPFLAGS'
21725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727ac_compiler_gnu=$ac_cv_c_compiler_gnu
21728
21729fi
21730
21731
21732SEARCH_INCLUDE="\
21733 /usr/local/include \
21734 \
21735 /usr/Motif-2.1/include \
21736 /usr/Motif-1.2/include \
21737 /usr/include/Motif1.2 \
21738 /opt/xpm/include/X11 \
21739 /opt/GBxpm/include/ \
21740 /opt/GBxpm/X11/include/ \
21741 \
21742 /usr/dt/include \
21743 /usr/openwin/include \
21744 \
21745 /usr/include/Xm \
21746 \
21747 /usr/X11R6/include \
21748 /usr/X11R6.4/include \
21749 /usr/X11R5/include \
21750 /usr/X11R4/include \
21751 \
21752 /usr/include/X11R6 \
21753 /usr/include/X11R5 \
21754 /usr/include/X11R4 \
21755 \
21756 /usr/local/X11R6/include \
21757 /usr/local/X11R5/include \
21758 /usr/local/X11R4/include \
21759 \
21760 /usr/local/include/X11R6 \
21761 /usr/local/include/X11R5 \
21762 /usr/local/include/X11R4 \
21763 \
21764 /usr/X11/include \
21765 /usr/include/X11 \
21766 /usr/local/X11/include \
21767 /usr/local/include/X11 \
21768 \
21769 /usr/X386/include \
21770 /usr/x386/include \
21771 /usr/XFree86/include/X11 \
21772 \
21773 X:/XFree86/include \
21774 X:/XFree86/include/X11 \
21775 \
21776 /usr/include/gtk \
21777 /usr/local/include/gtk \
21778 /usr/include/glib \
21779 /usr/local/include/glib \
21780 \
21781 /usr/include/qt \
21782 /usr/local/include/qt \
21783 \
21784 /usr/local/arm/3.3.2/include \
21785 \
21786 /usr/include/windows \
21787 /usr/include/wine \
21788 /usr/local/include/wine \
21789 \
21790 /usr/unsupported/include \
21791 /usr/athena/include \
21792 /usr/local/x11r5/include \
21793 /usr/lpp/Xamples/include \
21794 \
21795 /usr/openwin/share/include"
21796
07158944 21797SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21798
21799
21800cat >confcache <<\_ACEOF
21801# This file is a shell script that caches the results of configure
21802# tests run on this system so they can be shared between configure
21803# scripts and configure runs, see configure's option --config-cache.
21804# It is not useful on other systems. If it contains results you don't
21805# want to keep, you may remove or edit it.
21806#
21807# config.status only pays attention to the cache file if you give it
21808# the --recheck option to rerun configure.
21809#
21810# `ac_cv_env_foo' variables (set or unset) will be overridden when
21811# loading this file, other *unset* `ac_cv_foo' will be assigned the
21812# following values.
21813
21814_ACEOF
21815
21816# The following way of writing the cache mishandles newlines in values,
21817# but we know of no workaround that is simple, portable, and efficient.
21818# So, don't put newlines in cache variables' values.
21819# Ultrix sh set writes to stderr and can't be redirected directly,
21820# and sets the high bit in the cache file unless we assign to the vars.
21821{
21822 (set) 2>&1 |
21823 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21824 *ac_space=\ *)
21825 # `set' does not quote correctly, so add quotes (double-quote
21826 # substitution turns \\\\ into \\, and sed turns \\ into \).
21827 sed -n \
ac1cb8d3
VS
21828 "s/'/'\\\\''/g;
21829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21830 ;;
21831 *)
21832 # `set' quotes correctly as required by POSIX, so do not add quotes.
21833 sed -n \
ac1cb8d3 21834 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21835 ;;
21836 esac;
21837} |
21838 sed '
21839 t clear
21840 : clear
21841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21842 t end
21843 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21844 : end' >>confcache
21845if diff $cache_file confcache >/dev/null 2>&1; then :; else
21846 if test -w $cache_file; then
21847 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21848 cat confcache >$cache_file
21849 else
21850 echo "not updating unwritable cache $cache_file"
21851 fi
21852fi
21853rm -f confcache
21854
21855if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21856 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21857echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21858if test "${wx_cv_lib_glibc21+set}" = set; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21860else
21861
21862 cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h. */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
21868#include <features.h>
21869int
21870main ()
21871{
21872
21873 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21874 #error not glibc2.1
21875 #endif
21876
21877 ;
21878 return 0;
21879}
21880_ACEOF
21881rm -f conftest.$ac_objext
21882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21883 (eval $ac_compile) 2>conftest.er1
a848cd7e 21884 ac_status=$?
ac1cb8d3
VS
21885 grep -v '^ *+' conftest.er1 >conftest.err
21886 rm -f conftest.er1
21887 cat conftest.err >&5
a848cd7e
SC
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
9dd0f6c2 21890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; } &&
21896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902
21903 wx_cv_lib_glibc21=yes
21904
21905else
21906 echo "$as_me: failed program was:" >&5
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
21909
21910 wx_cv_lib_glibc21=no
21911
21912
21913fi
ac1cb8d3 21914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21915
21916fi
21917echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21918echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21919 if test "$wx_cv_lib_glibc21" = "yes"; then
21920 cat >>confdefs.h <<\_ACEOF
21921#define wxHAVE_GLIBC2 1
21922_ACEOF
21923
21924 fi
21925fi
21926
21927if test "x$wx_cv_lib_glibc21" = "xyes"; then
21928 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21929 cat >>confdefs.h <<\_ACEOF
21930#define _GNU_SOURCE 1
21931_ACEOF
21932
21933 fi
21934fi
21935
21936
21937
21938if test "$wxUSE_REGEX" != "no"; then
21939 cat >>confdefs.h <<\_ACEOF
21940#define wxUSE_REGEX 1
21941_ACEOF
21942
21943
21944 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21945 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21946echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21947 wxUSE_REGEX=builtin
21948 fi
21949
21950 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21951 if test "${ac_cv_header_regex_h+set}" = set; then
21952 echo "$as_me:$LINENO: checking for regex.h" >&5
21953echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21954if test "${ac_cv_header_regex_h+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956fi
21957echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21958echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21959else
21960 # Is the header compilable?
21961echo "$as_me:$LINENO: checking regex.h usability" >&5
21962echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21963cat >conftest.$ac_ext <<_ACEOF
21964/* confdefs.h. */
21965_ACEOF
21966cat confdefs.h >>conftest.$ac_ext
21967cat >>conftest.$ac_ext <<_ACEOF
21968/* end confdefs.h. */
21969$ac_includes_default
21970#include <regex.h>
21971_ACEOF
21972rm -f conftest.$ac_objext
21973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21974 (eval $ac_compile) 2>conftest.er1
a848cd7e 21975 ac_status=$?
ac1cb8d3
VS
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
a848cd7e
SC
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } &&
9dd0f6c2 21981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; }; then
21993 ac_header_compiler=yes
21994else
21995 echo "$as_me: failed program was:" >&5
21996sed 's/^/| /' conftest.$ac_ext >&5
21997
21998ac_header_compiler=no
21999fi
ac1cb8d3 22000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22002echo "${ECHO_T}$ac_header_compiler" >&6
22003
22004# Is the header present?
22005echo "$as_me:$LINENO: checking regex.h presence" >&5
22006echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22007cat >conftest.$ac_ext <<_ACEOF
22008/* confdefs.h. */
22009_ACEOF
22010cat confdefs.h >>conftest.$ac_ext
22011cat >>conftest.$ac_ext <<_ACEOF
22012/* end confdefs.h. */
22013#include <regex.h>
22014_ACEOF
22015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22017 ac_status=$?
22018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } >/dev/null; then
22023 if test -s conftest.err; then
22024 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22026 else
22027 ac_cpp_err=
22028 fi
22029else
22030 ac_cpp_err=yes
22031fi
22032if test -z "$ac_cpp_err"; then
22033 ac_header_preproc=yes
22034else
22035 echo "$as_me: failed program was:" >&5
22036sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ac_header_preproc=no
22039fi
22040rm -f conftest.err conftest.$ac_ext
22041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22042echo "${ECHO_T}$ac_header_preproc" >&6
22043
22044# So? What about this header?
ac1cb8d3
VS
22045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046 yes:no: )
a848cd7e
SC
22047 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22048echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22049 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22050echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22051 ac_header_preproc=yes
a848cd7e 22052 ;;
ac1cb8d3 22053 no:yes:* )
a848cd7e
SC
22054 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22055echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22056 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22057echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22058 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22059echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22061echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22062 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22063echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22064 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22065echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22066 (
22067 cat <<\_ASBOX
ac1cb8d3
VS
22068## ----------------------------------------- ##
22069## Report this to wx-dev@lists.wxwidgets.org ##
22070## ----------------------------------------- ##
a848cd7e
SC
22071_ASBOX
22072 ) |
22073 sed "s/^/$as_me: WARNING: /" >&2
22074 ;;
22075esac
22076echo "$as_me:$LINENO: checking for regex.h" >&5
22077echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22078if test "${ac_cv_header_regex_h+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080else
22081 ac_cv_header_regex_h=$ac_header_preproc
22082fi
22083echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22084echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22085
22086fi
22087if test $ac_cv_header_regex_h = yes; then
22088
22089for ac_func in regcomp
22090do
22091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22092echo "$as_me:$LINENO: checking for $ac_func" >&5
22093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22094if eval "test \"\${$as_ac_var+set}\" = set"; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097 cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
ac1cb8d3
VS
22103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22105#define $ac_func innocuous_$ac_func
22106
a848cd7e
SC
22107/* System header to define __stub macros and hopefully few prototypes,
22108 which can conflict with char $ac_func (); below.
22109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22111
a848cd7e
SC
22112#ifdef __STDC__
22113# include <limits.h>
22114#else
22115# include <assert.h>
22116#endif
ac1cb8d3
VS
22117
22118#undef $ac_func
22119
a848cd7e
SC
22120/* Override any gcc2 internal prototype to avoid an error. */
22121#ifdef __cplusplus
22122extern "C"
22123{
22124#endif
22125/* We use char because int might match the return type of a gcc2
22126 builtin and then its argument prototype would still apply. */
22127char $ac_func ();
22128/* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132choke me
22133#else
22134char (*f) () = $ac_func;
22135#endif
22136#ifdef __cplusplus
22137}
22138#endif
22139
22140int
22141main ()
22142{
22143return f != $ac_func;
22144 ;
22145 return 0;
22146}
22147_ACEOF
22148rm -f conftest.$ac_objext conftest$ac_exeext
22149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22150 (eval $ac_link) 2>conftest.er1
a848cd7e 22151 ac_status=$?
ac1cb8d3
VS
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
a848cd7e
SC
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } &&
9dd0f6c2 22157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; } &&
22163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169 eval "$as_ac_var=yes"
22170else
22171 echo "$as_me: failed program was:" >&5
22172sed 's/^/| /' conftest.$ac_ext >&5
22173
22174eval "$as_ac_var=no"
22175fi
ac1cb8d3
VS
22176rm -f conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22178fi
22179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22181if test `eval echo '${'$as_ac_var'}'` = yes; then
22182 cat >>confdefs.h <<_ACEOF
22183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184_ACEOF
22185
22186fi
22187done
22188
22189fi
22190
22191
22192
22193 if test "x$ac_cv_func_regcomp" != "xyes"; then
22194 if test "$wxUSE_REGEX" = "sys" ; then
22195 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22196echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22197 { (exit 1); exit 1; }; }
22198 else
22199 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22200echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22201 wxUSE_REGEX=builtin
22202 fi
22203 else
22204 wxUSE_REGEX=sys
22205 cat >>confdefs.h <<\_ACEOF
22206#define WX_NO_REGEX_ADVANCED 1
22207_ACEOF
22208
22209 fi
22210 fi
22211fi
22212
22213
22214ZLIB_LINK=
22215if test "$wxUSE_ZLIB" != "no" ; then
22216 cat >>confdefs.h <<\_ACEOF
22217#define wxUSE_ZLIB 1
22218_ACEOF
22219
22220
22221 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22222 if test "$USE_DARWIN" = 1; then
22223 system_zlib_h_ok="yes"
22224 else
22225 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22226echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22227if test "${ac_cv_header_zlib_h+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229else
22230 if test "$cross_compiling" = yes; then
22231 unset ac_cv_header_zlib_h
22232
22233else
22234 cat >conftest.$ac_ext <<_ACEOF
22235/* confdefs.h. */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h. */
22240
22241 #include <zlib.h>
22242 #include <stdio.h>
22243
22244 int main()
22245 {
22246 FILE *f=fopen("conftestval", "w");
22247 if (!f) exit(1);
22248 fprintf(f, "%s",
22249 ZLIB_VERSION[0] == '1' &&
22250 (ZLIB_VERSION[2] > '1' ||
22251 (ZLIB_VERSION[2] == '1' &&
22252 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22253 exit(0);
22254 }
22255
22256_ACEOF
22257rm -f conftest$ac_exeext
22258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259 (eval $ac_link) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 ac_cv_header_zlib_h=`cat conftestval`
22269else
22270 echo "$as_me: program exited with status $ac_status" >&5
22271echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274( exit $ac_status )
22275ac_cv_header_zlib_h=no
22276fi
ac1cb8d3 22277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22278fi
22279
22280fi
22281echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22282echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22283 if test "${ac_cv_header_zlib_h+set}" = set; then
22284 echo "$as_me:$LINENO: checking for zlib.h" >&5
22285echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22286if test "${ac_cv_header_zlib_h+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288fi
22289echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22290echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22291else
22292 # Is the header compilable?
22293echo "$as_me:$LINENO: checking zlib.h usability" >&5
22294echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22295cat >conftest.$ac_ext <<_ACEOF
22296/* confdefs.h. */
22297_ACEOF
22298cat confdefs.h >>conftest.$ac_ext
22299cat >>conftest.$ac_ext <<_ACEOF
22300/* end confdefs.h. */
22301$ac_includes_default
22302#include <zlib.h>
22303_ACEOF
22304rm -f conftest.$ac_objext
22305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22306 (eval $ac_compile) 2>conftest.er1
a848cd7e 22307 ac_status=$?
ac1cb8d3
VS
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
a848cd7e
SC
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
9dd0f6c2 22313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315 (eval $ac_try) 2>&5
22316 ac_status=$?
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; } &&
22319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22325 ac_header_compiler=yes
22326else
22327 echo "$as_me: failed program was:" >&5
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
22330ac_header_compiler=no
22331fi
ac1cb8d3 22332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22334echo "${ECHO_T}$ac_header_compiler" >&6
22335
22336# Is the header present?
22337echo "$as_me:$LINENO: checking zlib.h presence" >&5
22338echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22339cat >conftest.$ac_ext <<_ACEOF
22340/* confdefs.h. */
22341_ACEOF
22342cat confdefs.h >>conftest.$ac_ext
22343cat >>conftest.$ac_ext <<_ACEOF
22344/* end confdefs.h. */
22345#include <zlib.h>
22346_ACEOF
22347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } >/dev/null; then
22355 if test -s conftest.err; then
22356 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22358 else
22359 ac_cpp_err=
22360 fi
22361else
22362 ac_cpp_err=yes
22363fi
22364if test -z "$ac_cpp_err"; then
22365 ac_header_preproc=yes
22366else
22367 echo "$as_me: failed program was:" >&5
22368sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 ac_header_preproc=no
22371fi
22372rm -f conftest.err conftest.$ac_ext
22373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22374echo "${ECHO_T}$ac_header_preproc" >&6
22375
22376# So? What about this header?
ac1cb8d3
VS
22377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22378 yes:no: )
a848cd7e
SC
22379 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22380echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22381 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22382echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22383 ac_header_preproc=yes
a848cd7e 22384 ;;
ac1cb8d3 22385 no:yes:* )
a848cd7e
SC
22386 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22387echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22388 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22389echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22390 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22391echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22392 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22393echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22394 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22395echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22396 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22397echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22398 (
22399 cat <<\_ASBOX
ac1cb8d3
VS
22400## ----------------------------------------- ##
22401## Report this to wx-dev@lists.wxwidgets.org ##
22402## ----------------------------------------- ##
a848cd7e
SC
22403_ASBOX
22404 ) |
22405 sed "s/^/$as_me: WARNING: /" >&2
22406 ;;
22407esac
22408echo "$as_me:$LINENO: checking for zlib.h" >&5
22409echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22410if test "${ac_cv_header_zlib_h+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412else
22413 ac_cv_header_zlib_h=$ac_header_preproc
22414fi
22415echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22416echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22417
22418fi
22419
22420
22421
22422 system_zlib_h_ok=$ac_cv_header_zlib_h
22423 fi
22424
22425 if test "$system_zlib_h_ok" = "yes"; then
22426 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22427echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22428if test "${ac_cv_lib_z_deflate+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 ac_check_lib_save_LIBS=$LIBS
22432LIBS="-lz $LIBS"
22433cat >conftest.$ac_ext <<_ACEOF
22434/* confdefs.h. */
22435_ACEOF
22436cat confdefs.h >>conftest.$ac_ext
22437cat >>conftest.$ac_ext <<_ACEOF
22438/* end confdefs.h. */
22439
22440/* Override any gcc2 internal prototype to avoid an error. */
22441#ifdef __cplusplus
22442extern "C"
22443#endif
22444/* We use char because int might match the return type of a gcc2
22445 builtin and then its argument prototype would still apply. */
22446char deflate ();
22447int
22448main ()
22449{
22450deflate ();
22451 ;
22452 return 0;
22453}
22454_ACEOF
22455rm -f conftest.$ac_objext conftest$ac_exeext
22456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22457 (eval $ac_link) 2>conftest.er1
a848cd7e 22458 ac_status=$?
ac1cb8d3
VS
22459 grep -v '^ *+' conftest.er1 >conftest.err
22460 rm -f conftest.er1
22461 cat conftest.err >&5
a848cd7e
SC
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
9dd0f6c2 22464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } &&
22470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_lib_z_deflate=yes
22477else
22478 echo "$as_me: failed program was:" >&5
22479sed 's/^/| /' conftest.$ac_ext >&5
22480
22481ac_cv_lib_z_deflate=no
22482fi
ac1cb8d3
VS
22483rm -f conftest.err conftest.$ac_objext \
22484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22485LIBS=$ac_check_lib_save_LIBS
22486fi
22487echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22488echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22489if test $ac_cv_lib_z_deflate = yes; then
22490 ZLIB_LINK=" -lz"
22491fi
22492
22493 fi
22494
22495 if test "x$ZLIB_LINK" = "x" ; then
22496 if test "$wxUSE_ZLIB" = "sys" ; then
22497 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22498echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22499 { (exit 1); exit 1; }; }
22500 else
22501 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22502echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22503 wxUSE_ZLIB=builtin
22504 fi
22505 else
22506 wxUSE_ZLIB=sys
22507 fi
22508 fi
22509fi
22510
22511
22512PNG_LINK=
22513if test "$wxUSE_LIBPNG" != "no" ; then
22514 cat >>confdefs.h <<\_ACEOF
22515#define wxUSE_LIBPNG 1
22516_ACEOF
22517
22518
22519 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22520 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22521echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22522 wxUSE_LIBPNG=sys
22523 fi
22524
22525 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22526 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22527echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22528 wxUSE_LIBPNG=builtin
22529 fi
22530
22531 if test "$wxUSE_MGL" != 1 ; then
22532 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22533 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22534echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22535if test "${ac_cv_header_png_h+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22537else
22538 if test "$cross_compiling" = yes; then
22539 unset ac_cv_header_png_h
22540
22541else
22542 cat >conftest.$ac_ext <<_ACEOF
22543/* confdefs.h. */
22544_ACEOF
22545cat confdefs.h >>conftest.$ac_ext
22546cat >>conftest.$ac_ext <<_ACEOF
22547/* end confdefs.h. */
22548
22549 #include <png.h>
22550 #include <stdio.h>
22551
22552 int main()
22553 {
22554 FILE *f=fopen("conftestval", "w");
22555 if (!f) exit(1);
22556 fprintf(f, "%s",
22557 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22558 exit(0);
22559 }
22560
22561_ACEOF
22562rm -f conftest$ac_exeext
22563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564 (eval $ac_link) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_cv_header_png_h=`cat conftestval`
22574else
22575 echo "$as_me: program exited with status $ac_status" >&5
22576echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579( exit $ac_status )
22580ac_cv_header_png_h=no
22581fi
ac1cb8d3 22582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22583fi
22584
22585fi
22586echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22587echo "${ECHO_T}$ac_cv_header_png_h" >&6
22588 if test "${ac_cv_header_png_h+set}" = set; then
22589 echo "$as_me:$LINENO: checking for png.h" >&5
22590echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22591if test "${ac_cv_header_png_h+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22593fi
22594echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22595echo "${ECHO_T}$ac_cv_header_png_h" >&6
22596else
22597 # Is the header compilable?
22598echo "$as_me:$LINENO: checking png.h usability" >&5
22599echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22600cat >conftest.$ac_ext <<_ACEOF
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606$ac_includes_default
22607#include <png.h>
22608_ACEOF
22609rm -f conftest.$ac_objext
22610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22611 (eval $ac_compile) 2>conftest.er1
a848cd7e 22612 ac_status=$?
ac1cb8d3
VS
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
a848cd7e
SC
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } &&
9dd0f6c2 22618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_header_compiler=yes
22631else
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635ac_header_compiler=no
22636fi
ac1cb8d3 22637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22639echo "${ECHO_T}$ac_header_compiler" >&6
22640
22641# Is the header present?
22642echo "$as_me:$LINENO: checking png.h presence" >&5
22643echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22644cat >conftest.$ac_ext <<_ACEOF
22645/* confdefs.h. */
22646_ACEOF
22647cat confdefs.h >>conftest.$ac_ext
22648cat >>conftest.$ac_ext <<_ACEOF
22649/* end confdefs.h. */
22650#include <png.h>
22651_ACEOF
22652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22654 ac_status=$?
22655 grep -v '^ *+' conftest.er1 >conftest.err
22656 rm -f conftest.er1
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } >/dev/null; then
22660 if test -s conftest.err; then
22661 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22663 else
22664 ac_cpp_err=
22665 fi
22666else
22667 ac_cpp_err=yes
22668fi
22669if test -z "$ac_cpp_err"; then
22670 ac_header_preproc=yes
22671else
22672 echo "$as_me: failed program was:" >&5
22673sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 ac_header_preproc=no
22676fi
22677rm -f conftest.err conftest.$ac_ext
22678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22679echo "${ECHO_T}$ac_header_preproc" >&6
22680
22681# So? What about this header?
ac1cb8d3
VS
22682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22683 yes:no: )
a848cd7e
SC
22684 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22685echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22686 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22687echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22688 ac_header_preproc=yes
a848cd7e 22689 ;;
ac1cb8d3 22690 no:yes:* )
a848cd7e
SC
22691 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22692echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22693 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22694echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22695 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22696echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22697 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22698echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22699 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22700echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22701 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22702echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22703 (
22704 cat <<\_ASBOX
ac1cb8d3
VS
22705## ----------------------------------------- ##
22706## Report this to wx-dev@lists.wxwidgets.org ##
22707## ----------------------------------------- ##
a848cd7e
SC
22708_ASBOX
22709 ) |
22710 sed "s/^/$as_me: WARNING: /" >&2
22711 ;;
22712esac
22713echo "$as_me:$LINENO: checking for png.h" >&5
22714echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22715if test "${ac_cv_header_png_h+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22717else
22718 ac_cv_header_png_h=$ac_header_preproc
22719fi
22720echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22721echo "${ECHO_T}$ac_cv_header_png_h" >&6
22722
22723fi
22724
22725
22726
22727 if test "$ac_cv_header_png_h" = "yes"; then
22728 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22729echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22730if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22732else
22733 ac_check_lib_save_LIBS=$LIBS
22734LIBS="-lpng -lz -lm $LIBS"
22735cat >conftest.$ac_ext <<_ACEOF
22736/* confdefs.h. */
22737_ACEOF
22738cat confdefs.h >>conftest.$ac_ext
22739cat >>conftest.$ac_ext <<_ACEOF
22740/* end confdefs.h. */
22741
22742/* Override any gcc2 internal prototype to avoid an error. */
22743#ifdef __cplusplus
22744extern "C"
22745#endif
22746/* We use char because int might match the return type of a gcc2
22747 builtin and then its argument prototype would still apply. */
22748char png_check_sig ();
22749int
22750main ()
22751{
22752png_check_sig ();
22753 ;
22754 return 0;
22755}
22756_ACEOF
22757rm -f conftest.$ac_objext conftest$ac_exeext
22758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22759 (eval $ac_link) 2>conftest.er1
a848cd7e 22760 ac_status=$?
ac1cb8d3
VS
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
a848cd7e
SC
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
9dd0f6c2 22766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 ac_cv_lib_png_png_check_sig=yes
22779else
22780 echo "$as_me: failed program was:" >&5
22781sed 's/^/| /' conftest.$ac_ext >&5
22782
22783ac_cv_lib_png_png_check_sig=no
22784fi
ac1cb8d3
VS
22785rm -f conftest.err conftest.$ac_objext \
22786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22787LIBS=$ac_check_lib_save_LIBS
22788fi
22789echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22790echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22791if test $ac_cv_lib_png_png_check_sig = yes; then
22792 PNG_LINK=" -lpng -lz"
22793fi
22794
22795 fi
22796
22797 if test "x$PNG_LINK" = "x" ; then
22798 if test "$wxUSE_LIBPNG" = "sys" ; then
22799 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22800echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22801 { (exit 1); exit 1; }; }
22802 else
22803 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22804echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22805 wxUSE_LIBPNG=builtin
22806 fi
22807 else
22808 wxUSE_LIBPNG=sys
22809 fi
22810 fi
22811 fi
22812
22813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22814fi
22815
22816
22817JPEG_LINK=
22818if test "$wxUSE_LIBJPEG" != "no" ; then
22819 cat >>confdefs.h <<\_ACEOF
22820#define wxUSE_LIBJPEG 1
22821_ACEOF
22822
22823
22824 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22825 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22826echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22827 wxUSE_LIBJPEG=sys
22828 fi
22829
22830 if test "$wxUSE_MGL" != 1 ; then
22831 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22832 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22833echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22834 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836else
22837 cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h. */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h. */
22843
22844 #undef HAVE_STDLIB_H
22845 #include <stdio.h>
22846 #include <jpeglib.h>
22847
22848int
22849main ()
22850{
22851
22852
22853 ;
22854 return 0;
22855}
22856_ACEOF
22857rm -f conftest.$ac_objext
22858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22859 (eval $ac_compile) 2>conftest.er1
a848cd7e 22860 ac_status=$?
ac1cb8d3
VS
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
a848cd7e
SC
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
9dd0f6c2 22866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; } &&
22872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874 (eval $ac_try) 2>&5
22875 ac_status=$?
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }; }; then
22878 ac_cv_header_jpeglib_h=yes
22879else
22880 echo "$as_me: failed program was:" >&5
22881sed 's/^/| /' conftest.$ac_ext >&5
22882
22883ac_cv_header_jpeglib_h=no
22884
22885fi
ac1cb8d3 22886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22887
22888fi
22889
22890 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22891echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22892
22893 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22894 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22895echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22896if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898else
22899 ac_check_lib_save_LIBS=$LIBS
22900LIBS="-ljpeg $LIBS"
22901cat >conftest.$ac_ext <<_ACEOF
22902/* confdefs.h. */
22903_ACEOF
22904cat confdefs.h >>conftest.$ac_ext
22905cat >>conftest.$ac_ext <<_ACEOF
22906/* end confdefs.h. */
22907
22908/* Override any gcc2 internal prototype to avoid an error. */
22909#ifdef __cplusplus
22910extern "C"
22911#endif
22912/* We use char because int might match the return type of a gcc2
22913 builtin and then its argument prototype would still apply. */
22914char jpeg_read_header ();
22915int
22916main ()
22917{
22918jpeg_read_header ();
22919 ;
22920 return 0;
22921}
22922_ACEOF
22923rm -f conftest.$ac_objext conftest$ac_exeext
22924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22925 (eval $ac_link) 2>conftest.er1
a848cd7e 22926 ac_status=$?
ac1cb8d3
VS
22927 grep -v '^ *+' conftest.er1 >conftest.err
22928 rm -f conftest.er1
22929 cat conftest.err >&5
a848cd7e
SC
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } &&
9dd0f6c2 22932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } &&
22938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
22944 ac_cv_lib_jpeg_jpeg_read_header=yes
22945else
22946 echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949ac_cv_lib_jpeg_jpeg_read_header=no
22950fi
ac1cb8d3
VS
22951rm -f conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22953LIBS=$ac_check_lib_save_LIBS
22954fi
22955echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22956echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22957if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22958 JPEG_LINK=" -ljpeg"
22959fi
22960
22961 fi
22962
22963 if test "x$JPEG_LINK" = "x" ; then
22964 if test "$wxUSE_LIBJPEG" = "sys" ; then
22965 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22966echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22967 { (exit 1); exit 1; }; }
22968 else
22969 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22970echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22971 wxUSE_LIBJPEG=builtin
22972 fi
22973 else
22974 wxUSE_LIBJPEG=sys
22975 fi
22976 fi
22977 fi
22978fi
22979
22980
22981TIFF_LINK=
22982TIFF_PREREQ_LINKS=-lm
22983if test "$wxUSE_LIBTIFF" != "no" ; then
22984 cat >>confdefs.h <<\_ACEOF
22985#define wxUSE_LIBTIFF 1
22986_ACEOF
22987
22988
22989 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22990 if test "$wxUSE_LIBJPEG" = "sys"; then
22991 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22992 fi
22993 if test "$wxUSE_ZLIB" = "sys"; then
22994 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22995 fi
22996 if test "${ac_cv_header_tiffio_h+set}" = set; then
22997 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22998echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22999if test "${ac_cv_header_tiffio_h+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001fi
23002echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23003echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23004else
23005 # Is the header compilable?
23006echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23007echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23008cat >conftest.$ac_ext <<_ACEOF
23009/* confdefs.h. */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h. */
23014$ac_includes_default
23015#include <tiffio.h>
23016_ACEOF
23017rm -f conftest.$ac_objext
23018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23019 (eval $ac_compile) 2>conftest.er1
a848cd7e 23020 ac_status=$?
ac1cb8d3
VS
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
a848cd7e
SC
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } &&
9dd0f6c2 23026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; } &&
23032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; }; then
23038 ac_header_compiler=yes
23039else
23040 echo "$as_me: failed program was:" >&5
23041sed 's/^/| /' conftest.$ac_ext >&5
23042
23043ac_header_compiler=no
23044fi
ac1cb8d3 23045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23047echo "${ECHO_T}$ac_header_compiler" >&6
23048
23049# Is the header present?
23050echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23051echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23052cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h. */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h. */
23058#include <tiffio.h>
23059_ACEOF
23060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } >/dev/null; then
23068 if test -s conftest.err; then
23069 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23071 else
23072 ac_cpp_err=
23073 fi
23074else
23075 ac_cpp_err=yes
23076fi
23077if test -z "$ac_cpp_err"; then
23078 ac_header_preproc=yes
23079else
23080 echo "$as_me: failed program was:" >&5
23081sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ac_header_preproc=no
23084fi
23085rm -f conftest.err conftest.$ac_ext
23086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23087echo "${ECHO_T}$ac_header_preproc" >&6
23088
23089# So? What about this header?
ac1cb8d3
VS
23090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23091 yes:no: )
a848cd7e
SC
23092 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23093echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23094 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23095echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23096 ac_header_preproc=yes
a848cd7e 23097 ;;
ac1cb8d3 23098 no:yes:* )
a848cd7e
SC
23099 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23100echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23101 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23102echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23103 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23104echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23105 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23106echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23107 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23108echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23109 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23110echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23111 (
23112 cat <<\_ASBOX
ac1cb8d3
VS
23113## ----------------------------------------- ##
23114## Report this to wx-dev@lists.wxwidgets.org ##
23115## ----------------------------------------- ##
a848cd7e
SC
23116_ASBOX
23117 ) |
23118 sed "s/^/$as_me: WARNING: /" >&2
23119 ;;
23120esac
23121echo "$as_me:$LINENO: checking for tiffio.h" >&5
23122echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23123if test "${ac_cv_header_tiffio_h+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125else
23126 ac_cv_header_tiffio_h=$ac_header_preproc
23127fi
23128echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23129echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23130
23131fi
23132if test $ac_cv_header_tiffio_h = yes; then
23133
23134 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23135echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23136if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139 ac_check_lib_save_LIBS=$LIBS
23140LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23141cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147
23148/* Override any gcc2 internal prototype to avoid an error. */
23149#ifdef __cplusplus
23150extern "C"
23151#endif
23152/* We use char because int might match the return type of a gcc2
23153 builtin and then its argument prototype would still apply. */
23154char TIFFError ();
23155int
23156main ()
23157{
23158TIFFError ();
23159 ;
23160 return 0;
23161}
23162_ACEOF
23163rm -f conftest.$ac_objext conftest$ac_exeext
23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23165 (eval $ac_link) 2>conftest.er1
a848cd7e 23166 ac_status=$?
ac1cb8d3
VS
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
a848cd7e
SC
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } &&
9dd0f6c2 23172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_cv_lib_tiff_TIFFError=yes
23185else
23186 echo "$as_me: failed program was:" >&5
23187sed 's/^/| /' conftest.$ac_ext >&5
23188
23189ac_cv_lib_tiff_TIFFError=no
23190fi
ac1cb8d3
VS
23191rm -f conftest.err conftest.$ac_objext \
23192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23193LIBS=$ac_check_lib_save_LIBS
23194fi
23195echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23196echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23197if test $ac_cv_lib_tiff_TIFFError = yes; then
23198 TIFF_LINK=" -ltiff"
23199fi
23200
23201
23202
23203fi
23204
23205
23206
23207 if test "x$TIFF_LINK" = "x" ; then
23208 if test "$wxUSE_LIBTIFF" = "sys" ; then
23209 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23210echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23211 { (exit 1); exit 1; }; }
23212 else
23213 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23214echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23215 wxUSE_LIBTIFF=builtin
23216 fi
23217 else
23218 wxUSE_LIBTIFF=sys
23219 fi
23220 fi
23221fi
23222
23223
23224if test "$wxUSE_EXPAT" != "no"; then
23225 wxUSE_XML=yes
23226 cat >>confdefs.h <<\_ACEOF
23227#define wxUSE_EXPAT 1
23228_ACEOF
23229
23230 cat >>confdefs.h <<\_ACEOF
23231#define wxUSE_XML 1
23232_ACEOF
23233
23234
23235 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23236 if test "${ac_cv_header_expat_h+set}" = set; then
23237 echo "$as_me:$LINENO: checking for expat.h" >&5
23238echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23239if test "${ac_cv_header_expat_h+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241fi
23242echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23243echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23244else
23245 # Is the header compilable?
23246echo "$as_me:$LINENO: checking expat.h usability" >&5
23247echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23248cat >conftest.$ac_ext <<_ACEOF
23249/* confdefs.h. */
23250_ACEOF
23251cat confdefs.h >>conftest.$ac_ext
23252cat >>conftest.$ac_ext <<_ACEOF
23253/* end confdefs.h. */
23254$ac_includes_default
23255#include <expat.h>
23256_ACEOF
23257rm -f conftest.$ac_objext
23258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23259 (eval $ac_compile) 2>conftest.er1
a848cd7e 23260 ac_status=$?
ac1cb8d3
VS
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
a848cd7e
SC
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } &&
9dd0f6c2 23266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_header_compiler=yes
23279else
23280 echo "$as_me: failed program was:" >&5
23281sed 's/^/| /' conftest.$ac_ext >&5
23282
23283ac_header_compiler=no
23284fi
ac1cb8d3 23285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23287echo "${ECHO_T}$ac_header_compiler" >&6
23288
23289# Is the header present?
23290echo "$as_me:$LINENO: checking expat.h presence" >&5
23291echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23292cat >conftest.$ac_ext <<_ACEOF
23293/* confdefs.h. */
23294_ACEOF
23295cat confdefs.h >>conftest.$ac_ext
23296cat >>conftest.$ac_ext <<_ACEOF
23297/* end confdefs.h. */
23298#include <expat.h>
23299_ACEOF
23300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23302 ac_status=$?
23303 grep -v '^ *+' conftest.er1 >conftest.err
23304 rm -f conftest.er1
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } >/dev/null; then
23308 if test -s conftest.err; then
23309 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23311 else
23312 ac_cpp_err=
23313 fi
23314else
23315 ac_cpp_err=yes
23316fi
23317if test -z "$ac_cpp_err"; then
23318 ac_header_preproc=yes
23319else
23320 echo "$as_me: failed program was:" >&5
23321sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_header_preproc=no
23324fi
23325rm -f conftest.err conftest.$ac_ext
23326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23327echo "${ECHO_T}$ac_header_preproc" >&6
23328
23329# So? What about this header?
ac1cb8d3
VS
23330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23331 yes:no: )
a848cd7e
SC
23332 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23333echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23334 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23335echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23336 ac_header_preproc=yes
a848cd7e 23337 ;;
ac1cb8d3 23338 no:yes:* )
a848cd7e
SC
23339 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23340echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23341 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23342echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23343 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23344echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23345 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23346echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23347 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23348echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23349 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23350echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23351 (
23352 cat <<\_ASBOX
ac1cb8d3
VS
23353## ----------------------------------------- ##
23354## Report this to wx-dev@lists.wxwidgets.org ##
23355## ----------------------------------------- ##
a848cd7e
SC
23356_ASBOX
23357 ) |
23358 sed "s/^/$as_me: WARNING: /" >&2
23359 ;;
23360esac
23361echo "$as_me:$LINENO: checking for expat.h" >&5
23362echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23363if test "${ac_cv_header_expat_h+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23365else
23366 ac_cv_header_expat_h=$ac_header_preproc
23367fi
23368echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23369echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23370
23371fi
23372if test $ac_cv_header_expat_h = yes; then
23373 found_expat_h=1
23374fi
23375
23376
23377 if test "x$found_expat_h" = "x1"; then
23378 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23379echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23380if test "${wx_cv_expat_is_not_broken+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382else
23383
23384
23385
23386 ac_ext=cc
23387ac_cpp='$CXXCPP $CPPFLAGS'
23388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23391
23392 cat >conftest.$ac_ext <<_ACEOF
23393/* confdefs.h. */
23394_ACEOF
23395cat confdefs.h >>conftest.$ac_ext
23396cat >>conftest.$ac_ext <<_ACEOF
23397/* end confdefs.h. */
23398#include <expat.h>
23399int
23400main ()
23401{
23402
23403 ;
23404 return 0;
23405}
23406_ACEOF
23407rm -f conftest.$ac_objext
23408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23409 (eval $ac_compile) 2>conftest.er1
a848cd7e 23410 ac_status=$?
ac1cb8d3
VS
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
a848cd7e
SC
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
9dd0f6c2 23416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 wx_cv_expat_is_not_broken=yes
23429else
23430 echo "$as_me: failed program was:" >&5
23431sed 's/^/| /' conftest.$ac_ext >&5
23432
23433wx_cv_expat_is_not_broken=no
23434
23435fi
ac1cb8d3 23436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23437 ac_ext=c
23438ac_cpp='$CPP $CPPFLAGS'
23439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23441ac_compiler_gnu=$ac_cv_c_compiler_gnu
23442
23443
23444
23445fi
23446echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23447echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23448 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23449 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23450echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23451if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 ac_check_lib_save_LIBS=$LIBS
23455LIBS="-lexpat $LIBS"
23456cat >conftest.$ac_ext <<_ACEOF
23457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
23462
23463/* Override any gcc2 internal prototype to avoid an error. */
23464#ifdef __cplusplus
23465extern "C"
23466#endif
23467/* We use char because int might match the return type of a gcc2
23468 builtin and then its argument prototype would still apply. */
23469char XML_ParserCreate ();
23470int
23471main ()
23472{
23473XML_ParserCreate ();
23474 ;
23475 return 0;
23476}
23477_ACEOF
23478rm -f conftest.$ac_objext conftest$ac_exeext
23479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23480 (eval $ac_link) 2>conftest.er1
a848cd7e 23481 ac_status=$?
ac1cb8d3
VS
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
a848cd7e
SC
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
9dd0f6c2 23487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } &&
23493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23499 ac_cv_lib_expat_XML_ParserCreate=yes
23500else
23501 echo "$as_me: failed program was:" >&5
23502sed 's/^/| /' conftest.$ac_ext >&5
23503
23504ac_cv_lib_expat_XML_ParserCreate=no
23505fi
ac1cb8d3
VS
23506rm -f conftest.err conftest.$ac_objext \
23507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23508LIBS=$ac_check_lib_save_LIBS
23509fi
23510echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23511echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23512if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23513 EXPAT_LINK=" -lexpat"
23514fi
23515
23516 fi
23517 fi
23518 if test "x$EXPAT_LINK" = "x" ; then
23519 if test "$wxUSE_EXPAT" = "sys" ; then
23520 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23521echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23522 { (exit 1); exit 1; }; }
23523 else
23524 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23525echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23526 wxUSE_EXPAT=builtin
23527 fi
23528 else
23529 wxUSE_EXPAT=sys
23530 fi
23531 fi
23532 if test "$wxUSE_EXPAT" = "builtin" ; then
23533
23534
23535subdirs="$subdirs src/expat"
23536
23537 fi
23538fi
23539
23540
23541
23542if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23543 if test "${ac_cv_header_mspack_h+set}" = set; then
23544 echo "$as_me:$LINENO: checking for mspack.h" >&5
23545echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23546if test "${ac_cv_header_mspack_h+set}" = set; then
23547 echo $ECHO_N "(cached) $ECHO_C" >&6
23548fi
23549echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23550echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23551else
23552 # Is the header compilable?
23553echo "$as_me:$LINENO: checking mspack.h usability" >&5
23554echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23555cat >conftest.$ac_ext <<_ACEOF
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
23561$ac_includes_default
23562#include <mspack.h>
23563_ACEOF
23564rm -f conftest.$ac_objext
23565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23566 (eval $ac_compile) 2>conftest.er1
a848cd7e 23567 ac_status=$?
ac1cb8d3
VS
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
a848cd7e
SC
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
9dd0f6c2 23573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; } &&
23579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; }; then
23585 ac_header_compiler=yes
23586else
23587 echo "$as_me: failed program was:" >&5
23588sed 's/^/| /' conftest.$ac_ext >&5
23589
23590ac_header_compiler=no
23591fi
ac1cb8d3 23592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23594echo "${ECHO_T}$ac_header_compiler" >&6
23595
23596# Is the header present?
23597echo "$as_me:$LINENO: checking mspack.h presence" >&5
23598echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23599cat >conftest.$ac_ext <<_ACEOF
23600/* confdefs.h. */
23601_ACEOF
23602cat confdefs.h >>conftest.$ac_ext
23603cat >>conftest.$ac_ext <<_ACEOF
23604/* end confdefs.h. */
23605#include <mspack.h>
23606_ACEOF
23607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23609 ac_status=$?
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } >/dev/null; then
23615 if test -s conftest.err; then
23616 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23618 else
23619 ac_cpp_err=
23620 fi
23621else
23622 ac_cpp_err=yes
23623fi
23624if test -z "$ac_cpp_err"; then
23625 ac_header_preproc=yes
23626else
23627 echo "$as_me: failed program was:" >&5
23628sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 ac_header_preproc=no
23631fi
23632rm -f conftest.err conftest.$ac_ext
23633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23634echo "${ECHO_T}$ac_header_preproc" >&6
23635
23636# So? What about this header?
ac1cb8d3
VS
23637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23638 yes:no: )
a848cd7e
SC
23639 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23640echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23641 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23642echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23643 ac_header_preproc=yes
a848cd7e 23644 ;;
ac1cb8d3 23645 no:yes:* )
a848cd7e
SC
23646 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23647echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23648 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23649echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23650 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23651echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23652 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23653echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23654 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23655echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23656 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23657echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23658 (
23659 cat <<\_ASBOX
ac1cb8d3
VS
23660## ----------------------------------------- ##
23661## Report this to wx-dev@lists.wxwidgets.org ##
23662## ----------------------------------------- ##
a848cd7e
SC
23663_ASBOX
23664 ) |
23665 sed "s/^/$as_me: WARNING: /" >&2
23666 ;;
23667esac
23668echo "$as_me:$LINENO: checking for mspack.h" >&5
23669echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23670if test "${ac_cv_header_mspack_h+set}" = set; then
23671 echo $ECHO_N "(cached) $ECHO_C" >&6
23672else
23673 ac_cv_header_mspack_h=$ac_header_preproc
23674fi
23675echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23676echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23677
23678fi
23679if test $ac_cv_header_mspack_h = yes; then
23680 found_mspack_h=1
23681fi
23682
23683
23684 if test "x$found_mspack_h" = "x1"; then
23685 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23686echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23687if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23689else
23690 ac_check_lib_save_LIBS=$LIBS
23691LIBS="-lmspack $LIBS"
23692cat >conftest.$ac_ext <<_ACEOF
23693/* confdefs.h. */
23694_ACEOF
23695cat confdefs.h >>conftest.$ac_ext
23696cat >>conftest.$ac_ext <<_ACEOF
23697/* end confdefs.h. */
23698
23699/* Override any gcc2 internal prototype to avoid an error. */
23700#ifdef __cplusplus
23701extern "C"
23702#endif
23703/* We use char because int might match the return type of a gcc2
23704 builtin and then its argument prototype would still apply. */
23705char mspack_create_chm_decompressor ();
23706int
23707main ()
23708{
23709mspack_create_chm_decompressor ();
23710 ;
23711 return 0;
23712}
23713_ACEOF
23714rm -f conftest.$ac_objext conftest$ac_exeext
23715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23716 (eval $ac_link) 2>conftest.er1
a848cd7e 23717 ac_status=$?
ac1cb8d3
VS
23718 grep -v '^ *+' conftest.er1 >conftest.err
23719 rm -f conftest.er1
23720 cat conftest.err >&5
a848cd7e
SC
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
9dd0f6c2 23723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; } &&
23729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23736else
23737 echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23741fi
ac1cb8d3
VS
23742rm -f conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23744LIBS=$ac_check_lib_save_LIBS
23745fi
23746echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23747echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23748if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23749 MSPACK_LINK=" -lmspack"
23750fi
23751
23752 fi
23753 if test "x$MSPACK_LINK" = "x" ; then
23754 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23755 fi
23756fi
23757
23758if test "$wxUSE_LIBMSPACK" != "no"; then
23759 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23760#define wxUSE_LIBMSPACK 1
23761_ACEOF
23762
a848cd7e
SC
23763fi
23764
23765
23766
23767AFMINSTALL=
23768WIN32INSTALL=
23769
23770TOOLKIT=
23771TOOLKIT_INCLUDE=
23772WIDGET_SET=
23773
23774if test "$USE_WIN32" = 1 ; then
23775
23776for ac_header in w32api.h
23777do
23778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23779if eval "test \"\${$as_ac_Header+set}\" = set"; then
23780 echo "$as_me:$LINENO: checking for $ac_header" >&5
23781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23782if eval "test \"\${$as_ac_Header+set}\" = set"; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784fi
23785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23787else
23788 # Is the header compilable?
23789echo "$as_me:$LINENO: checking $ac_header usability" >&5
23790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23791cat >conftest.$ac_ext <<_ACEOF
23792/* confdefs.h. */
23793_ACEOF
23794cat confdefs.h >>conftest.$ac_ext
23795cat >>conftest.$ac_ext <<_ACEOF
23796/* end confdefs.h. */
23797$ac_includes_default
23798#include <$ac_header>
23799_ACEOF
23800rm -f conftest.$ac_objext
23801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23802 (eval $ac_compile) 2>conftest.er1
a848cd7e 23803 ac_status=$?
ac1cb8d3
VS
23804 grep -v '^ *+' conftest.er1 >conftest.err
23805 rm -f conftest.er1
23806 cat conftest.err >&5
a848cd7e
SC
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } &&
9dd0f6c2 23809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 ac_header_compiler=yes
23822else
23823 echo "$as_me: failed program was:" >&5
23824sed 's/^/| /' conftest.$ac_ext >&5
23825
23826ac_header_compiler=no
23827fi
ac1cb8d3 23828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23830echo "${ECHO_T}$ac_header_compiler" >&6
23831
23832# Is the header present?
23833echo "$as_me:$LINENO: checking $ac_header presence" >&5
23834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23835cat >conftest.$ac_ext <<_ACEOF
23836/* confdefs.h. */
23837_ACEOF
23838cat confdefs.h >>conftest.$ac_ext
23839cat >>conftest.$ac_ext <<_ACEOF
23840/* end confdefs.h. */
23841#include <$ac_header>
23842_ACEOF
23843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23845 ac_status=$?
23846 grep -v '^ *+' conftest.er1 >conftest.err
23847 rm -f conftest.er1
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } >/dev/null; then
23851 if test -s conftest.err; then
23852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23854 else
23855 ac_cpp_err=
23856 fi
23857else
23858 ac_cpp_err=yes
23859fi
23860if test -z "$ac_cpp_err"; then
23861 ac_header_preproc=yes
23862else
23863 echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 ac_header_preproc=no
23867fi
23868rm -f conftest.err conftest.$ac_ext
23869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23870echo "${ECHO_T}$ac_header_preproc" >&6
23871
23872# So? What about this header?
ac1cb8d3
VS
23873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23874 yes:no: )
a848cd7e
SC
23875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23879 ac_header_preproc=yes
a848cd7e 23880 ;;
ac1cb8d3 23881 no:yes:* )
a848cd7e
SC
23882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23894 (
23895 cat <<\_ASBOX
ac1cb8d3
VS
23896## ----------------------------------------- ##
23897## Report this to wx-dev@lists.wxwidgets.org ##
23898## ----------------------------------------- ##
a848cd7e
SC
23899_ASBOX
23900 ) |
23901 sed "s/^/$as_me: WARNING: /" >&2
23902 ;;
23903esac
23904echo "$as_me:$LINENO: checking for $ac_header" >&5
23905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23906if eval "test \"\${$as_ac_Header+set}\" = set"; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23908else
ac1cb8d3 23909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23910fi
23911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23913
23914fi
23915if test `eval echo '${'$as_ac_Header'}'` = yes; then
23916 cat >>confdefs.h <<_ACEOF
23917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23918_ACEOF
23919
23920fi
23921
23922done
23923
23924 if test "${ac_cv_header_windows_h+set}" = set; then
23925 echo "$as_me:$LINENO: checking for windows.h" >&5
23926echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23927if test "${ac_cv_header_windows_h+set}" = set; then
23928 echo $ECHO_N "(cached) $ECHO_C" >&6
23929fi
23930echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23931echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23932else
23933 # Is the header compilable?
23934echo "$as_me:$LINENO: checking windows.h usability" >&5
23935echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23936cat >conftest.$ac_ext <<_ACEOF
23937/* confdefs.h. */
23938_ACEOF
23939cat confdefs.h >>conftest.$ac_ext
23940cat >>conftest.$ac_ext <<_ACEOF
23941/* end confdefs.h. */
23942$ac_includes_default
23943#include <windows.h>
23944_ACEOF
23945rm -f conftest.$ac_objext
23946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23947 (eval $ac_compile) 2>conftest.er1
a848cd7e 23948 ac_status=$?
ac1cb8d3
VS
23949 grep -v '^ *+' conftest.er1 >conftest.err
23950 rm -f conftest.er1
23951 cat conftest.err >&5
a848cd7e
SC
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } &&
9dd0f6c2 23954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; } &&
23960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 ac_header_compiler=yes
23967else
23968 echo "$as_me: failed program was:" >&5
23969sed 's/^/| /' conftest.$ac_ext >&5
23970
23971ac_header_compiler=no
23972fi
ac1cb8d3 23973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23975echo "${ECHO_T}$ac_header_compiler" >&6
23976
23977# Is the header present?
23978echo "$as_me:$LINENO: checking windows.h presence" >&5
23979echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23980cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
23986#include <windows.h>
23987_ACEOF
23988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } >/dev/null; then
23996 if test -s conftest.err; then
23997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23999 else
24000 ac_cpp_err=
24001 fi
24002else
24003 ac_cpp_err=yes
24004fi
24005if test -z "$ac_cpp_err"; then
24006 ac_header_preproc=yes
24007else
24008 echo "$as_me: failed program was:" >&5
24009sed 's/^/| /' conftest.$ac_ext >&5
24010
24011 ac_header_preproc=no
24012fi
24013rm -f conftest.err conftest.$ac_ext
24014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24015echo "${ECHO_T}$ac_header_preproc" >&6
24016
24017# So? What about this header?
ac1cb8d3
VS
24018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24019 yes:no: )
a848cd7e
SC
24020 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24021echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24022 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24023echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24024 ac_header_preproc=yes
a848cd7e 24025 ;;
ac1cb8d3 24026 no:yes:* )
a848cd7e
SC
24027 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24028echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24029 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24030echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24032echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24034echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24035 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24036echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24037 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24038echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24039 (
24040 cat <<\_ASBOX
ac1cb8d3
VS
24041## ----------------------------------------- ##
24042## Report this to wx-dev@lists.wxwidgets.org ##
24043## ----------------------------------------- ##
a848cd7e
SC
24044_ASBOX
24045 ) |
24046 sed "s/^/$as_me: WARNING: /" >&2
24047 ;;
24048esac
24049echo "$as_me:$LINENO: checking for windows.h" >&5
24050echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24051if test "${ac_cv_header_windows_h+set}" = set; then
24052 echo $ECHO_N "(cached) $ECHO_C" >&6
24053else
24054 ac_cv_header_windows_h=$ac_header_preproc
24055fi
24056echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24057echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24058
24059fi
24060if test $ac_cv_header_windows_h = yes; then
24061 :
24062else
24063
24064 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24065echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24066 { (exit 1); exit 1; }; }
24067
24068fi
24069
24070
24071
24072 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24073
24074 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24075 LIBS="$LIBS -loleacc"
24076 fi
24077
24078 case "${host}" in
24079 *-*-cygwin* )
24080 LIBS="$LIBS -lkernel32 -luser32"
24081 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24082 esac
24083
24084 if test "$wxUSE_ODBC" = "sys" ; then
24085 wxUSE_ODBC = "yes"
24086 fi
24087 if test "$wxUSE_ODBC" = "yes" ; then
24088 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24089 cat >>confdefs.h <<\_ACEOF
24090#define wxUSE_ODBC 1
24091_ACEOF
24092
24093 fi
24094
24095 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24096 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24097
24098 WIN32INSTALL=win32install
24099fi
24100
24101if test "$wxUSE_GUI" = "yes"; then
24102 USE_GUI=1
24103
24104 GUI_TK_LIBRARY=
24105
24106 WXGTK12=
24107 WXGTK127=
24108 WXGTK20=
24109 WXGPE=
24110
207bc66c
RN
24111 if test "$wxUSE_COCOA" = 1 ; then
24112 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24113 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24114echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24115 wxUSE_PRINTING_ARCHITECTURE=no
24116 fi
24117 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24118 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24119echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24120 wxUSE_DRAG_AND_DROP=no
24121 fi
24122 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24123 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24124echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24125 wxUSE_DRAGIMAGE=no
24126 fi
24127 fi
24128
a848cd7e
SC
24129 if test "$wxUSE_MSW" = 1 ; then
24130 TOOLKIT=MSW
24131 GUIDIST=MSW_DIST
24132
ceec2216 24133 case "${host}" in
a848cd7e
SC
24134 *-*-mingw32* )
24135 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24136 esac
24137 fi
24138
24139 if test "$wxUSE_GTK" = 1; then
24140 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24141echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24142
24143 gtk_version_cached=1
24144 if test "${wx_cv_lib_gtk+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147
24148 gtk_version_cached=0
24149 echo "$as_me:$LINENO: result: " >&5
24150echo "${ECHO_T}" >&6
24151
24152 GTK_MODULES=
24153 if test "$wxUSE_THREADS" = "yes"; then
24154 GTK_MODULES=gthread
24155 fi
24156
24157 wx_cv_lib_gtk=
24158 if test "x$wxUSE_GTK2" = "xyes"; then
24159 # Check whether --enable-gtktest or --disable-gtktest was given.
24160if test "${enable_gtktest+set}" = set; then
24161 enableval="$enable_gtktest"
24162
24163else
24164 enable_gtktest=yes
24165fi;
24166
24167 pkg_config_args=gtk+-2.0
24168 for module in . $GTK_MODULES
24169 do
24170 case "$module" in
24171 gthread)
24172 pkg_config_args="$pkg_config_args gthread-2.0"
24173 ;;
24174 esac
24175 done
24176
24177 no_gtk=""
24178
24179 # Extract the first word of "pkg-config", so it can be a program name with args.
24180set dummy pkg-config; ac_word=$2
24181echo "$as_me:$LINENO: checking for $ac_word" >&5
24182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24183if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24184 echo $ECHO_N "(cached) $ECHO_C" >&6
24185else
24186 case $PKG_CONFIG in
24187 [\\/]* | ?:[\\/]*)
24188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24189 ;;
24190 *)
24191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192for as_dir in $PATH
24193do
24194 IFS=$as_save_IFS
24195 test -z "$as_dir" && as_dir=.
24196 for ac_exec_ext in '' $ac_executable_extensions; do
24197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24200 break 2
24201 fi
24202done
24203done
24204
24205 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24206 ;;
24207esac
24208fi
24209PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24210
24211if test -n "$PKG_CONFIG"; then
24212 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24213echo "${ECHO_T}$PKG_CONFIG" >&6
24214else
24215 echo "$as_me:$LINENO: result: no" >&5
24216echo "${ECHO_T}no" >&6
24217fi
24218
24219
24220 if test x$PKG_CONFIG != xno ; then
24221 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24222 :
24223 else
c2218763 24224 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24225 no_gtk=yes
24226 PKG_CONFIG=no
24227 fi
24228 else
24229 no_gtk=yes
24230 fi
24231
24232 min_gtk_version=2.0.0
24233 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24234echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24235
24236 if test x$PKG_CONFIG != xno ; then
24237 ## don't try to run the test against uninstalled libtool libs
24238 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24239 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24240 enable_gtktest=no
24241 fi
24242
24243 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24244 :
24245 else
24246 no_gtk=yes
24247 fi
24248 fi
24249
24250 if test x"$no_gtk" = x ; then
24251 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24252 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24253 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24254 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24255 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24256 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24257 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24258 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24259 if test "x$enable_gtktest" = "xyes" ; then
24260 ac_save_CFLAGS="$CFLAGS"
24261 ac_save_LIBS="$LIBS"
24262 CFLAGS="$CFLAGS $GTK_CFLAGS"
24263 LIBS="$GTK_LIBS $LIBS"
24264 rm -f conf.gtktest
24265 if test "$cross_compiling" = yes; then
24266 echo $ac_n "cross compiling; assumed OK... $ac_c"
24267else
24268 cat >conftest.$ac_ext <<_ACEOF
24269/* confdefs.h. */
24270_ACEOF
24271cat confdefs.h >>conftest.$ac_ext
24272cat >>conftest.$ac_ext <<_ACEOF
24273/* end confdefs.h. */
24274
24275#include <gtk/gtk.h>
24276#include <stdio.h>
24277#include <stdlib.h>
24278
24279int
24280main ()
24281{
24282 int major, minor, micro;
24283 char *tmp_version;
24284
24285 system ("touch conf.gtktest");
24286
24287 /* HP/UX 9 (%@#!) writes to sscanf strings */
24288 tmp_version = g_strdup("$min_gtk_version");
24289 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24290 printf("%s, bad version string\n", "$min_gtk_version");
24291 exit(1);
24292 }
24293
24294 if ((gtk_major_version != $gtk_config_major_version) ||
24295 (gtk_minor_version != $gtk_config_minor_version) ||
24296 (gtk_micro_version != $gtk_config_micro_version))
24297 {
24298 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24299 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24300 gtk_major_version, gtk_minor_version, gtk_micro_version);
24301 printf ("*** was found! If pkg-config was correct, then it is best\n");
24302 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24303 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24304 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24305 printf("*** required on your system.\n");
24306 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24307 printf("*** to point to the correct configuration files\n");
24308 }
24309 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24310 (gtk_minor_version != GTK_MINOR_VERSION) ||
24311 (gtk_micro_version != GTK_MICRO_VERSION))
24312 {
24313 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24314 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24315 printf("*** library (version %d.%d.%d)\n",
24316 gtk_major_version, gtk_minor_version, gtk_micro_version);
24317 }
24318 else
24319 {
24320 if ((gtk_major_version > major) ||
24321 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24322 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24323 {
24324 return 0;
24325 }
24326 else
24327 {
24328 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24329 gtk_major_version, gtk_minor_version, gtk_micro_version);
24330 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24331 major, minor, micro);
24332 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24333 printf("***\n");
24334 printf("*** If you have already installed a sufficiently new version, this error\n");
24335 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24336 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24337 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24338 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24339 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24340 printf("*** so that the correct libraries are found at run-time))\n");
24341 }
24342 }
24343 return 1;
24344}
24345
24346_ACEOF
24347rm -f conftest$ac_exeext
24348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24349 (eval $ac_link) 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 :
24359else
24360 echo "$as_me: program exited with status $ac_status" >&5
24361echo "$as_me: failed program was:" >&5
24362sed 's/^/| /' conftest.$ac_ext >&5
24363
24364( exit $ac_status )
24365no_gtk=yes
24366fi
ac1cb8d3 24367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24368fi
24369 CFLAGS="$ac_save_CFLAGS"
24370 LIBS="$ac_save_LIBS"
24371 fi
24372 fi
24373 if test "x$no_gtk" = x ; then
24374 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24375echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24376 wx_cv_lib_gtk=2.0
24377 else
24378 echo "$as_me:$LINENO: result: no" >&5
24379echo "${ECHO_T}no" >&6
24380 if test "$PKG_CONFIG" = "no" ; then
24381 echo "*** A new enough version of pkg-config was not found."
24382 echo "*** See http://pkgconfig.sourceforge.net"
24383 else
24384 if test -f conf.gtktest ; then
24385 :
24386 else
24387 echo "*** Could not run GTK+ test program, checking why..."
24388 ac_save_CFLAGS="$CFLAGS"
24389 ac_save_LIBS="$LIBS"
24390 CFLAGS="$CFLAGS $GTK_CFLAGS"
24391 LIBS="$LIBS $GTK_LIBS"
24392 cat >conftest.$ac_ext <<_ACEOF
24393/* confdefs.h. */
24394_ACEOF
24395cat confdefs.h >>conftest.$ac_ext
24396cat >>conftest.$ac_ext <<_ACEOF
24397/* end confdefs.h. */
24398
24399#include <gtk/gtk.h>
24400#include <stdio.h>
24401
24402int
24403main ()
24404{
24405 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24406 ;
24407 return 0;
24408}
24409_ACEOF
24410rm -f conftest.$ac_objext conftest$ac_exeext
24411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24412 (eval $ac_link) 2>conftest.er1
a848cd7e 24413 ac_status=$?
ac1cb8d3
VS
24414 grep -v '^ *+' conftest.er1 >conftest.err
24415 rm -f conftest.er1
24416 cat conftest.err >&5
a848cd7e
SC
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } &&
9dd0f6c2 24419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; } &&
24425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24431 echo "*** The test program compiled, but did not run. This usually means"
24432 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24433 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24434 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24435 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24436 echo "*** is required on your system"
24437 echo "***"
24438 echo "*** If you have an old version installed, it is best to remove it, although"
24439 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24440else
24441 echo "$as_me: failed program was:" >&5
24442sed 's/^/| /' conftest.$ac_ext >&5
24443
24444 echo "*** The test program failed to compile or link. See the file config.log for the"
24445 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24446fi
ac1cb8d3
VS
24447rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24449 CFLAGS="$ac_save_CFLAGS"
24450 LIBS="$ac_save_LIBS"
24451 fi
24452 fi
24453 GTK_CFLAGS=""
24454 GTK_LIBS=""
24455 :
24456 fi
24457
24458
24459 rm -f conf.gtktest
24460
24461 else
24462
24463# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24464if test "${with_gtk_prefix+set}" = set; then
24465 withval="$with_gtk_prefix"
24466 gtk_config_prefix="$withval"
24467else
24468 gtk_config_prefix=""
24469fi;
24470
24471# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24472if test "${with_gtk_exec_prefix+set}" = set; then
24473 withval="$with_gtk_exec_prefix"
24474 gtk_config_exec_prefix="$withval"
24475else
24476 gtk_config_exec_prefix=""
24477fi;
24478# Check whether --enable-gtktest or --disable-gtktest was given.
24479if test "${enable_gtktest+set}" = set; then
24480 enableval="$enable_gtktest"
24481
24482else
24483 enable_gtktest=yes
24484fi;
24485
24486 for module in . $GTK_MODULES
24487 do
24488 case "$module" in
24489 gthread)
24490 gtk_config_args="$gtk_config_args gthread"
24491 ;;
24492 esac
24493 done
24494
24495 if test x$gtk_config_exec_prefix != x ; then
24496 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24497 if test x${GTK_CONFIG+set} != xset ; then
24498 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24499 fi
24500 fi
24501 if test x$gtk_config_prefix != x ; then
24502 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24503 if test x${GTK_CONFIG+set} != xset ; then
24504 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24505 fi
24506 fi
24507
24508 # Extract the first word of "gtk-config", so it can be a program name with args.
24509set dummy gtk-config; ac_word=$2
24510echo "$as_me:$LINENO: checking for $ac_word" >&5
24511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24512if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514else
24515 case $GTK_CONFIG in
24516 [\\/]* | ?:[\\/]*)
24517 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24518 ;;
24519 *)
24520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24521for as_dir in $PATH
24522do
24523 IFS=$as_save_IFS
24524 test -z "$as_dir" && as_dir=.
24525 for ac_exec_ext in '' $ac_executable_extensions; do
24526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24527 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24529 break 2
24530 fi
24531done
24532done
24533
24534 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24535 ;;
24536esac
24537fi
24538GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24539
24540if test -n "$GTK_CONFIG"; then
24541 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24542echo "${ECHO_T}$GTK_CONFIG" >&6
24543else
24544 echo "$as_me:$LINENO: result: no" >&5
24545echo "${ECHO_T}no" >&6
24546fi
24547
24548 min_gtk_version=1.2.7
24549 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24550echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24551 no_gtk=""
24552 if test "$GTK_CONFIG" = "no" ; then
24553 no_gtk=yes
24554 else
24555 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24556 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24557 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24559 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24561 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24562 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24563 if test "x$enable_gtktest" = "xyes" ; then
24564 ac_save_CFLAGS="$CFLAGS"
24565 ac_save_LIBS="$LIBS"
24566 CFLAGS="$CFLAGS $GTK_CFLAGS"
24567 LIBS="$GTK_LIBS $LIBS"
24568 rm -f conf.gtktest
24569 if test "$cross_compiling" = yes; then
24570 echo $ac_n "cross compiling; assumed OK... $ac_c"
24571else
24572 cat >conftest.$ac_ext <<_ACEOF
24573/* confdefs.h. */
24574_ACEOF
24575cat confdefs.h >>conftest.$ac_ext
24576cat >>conftest.$ac_ext <<_ACEOF
24577/* end confdefs.h. */
24578
24579#include <gtk/gtk.h>
24580#include <stdio.h>
24581#include <stdlib.h>
24582
24583int
24584main ()
24585{
24586 int major, minor, micro;
24587 char *tmp_version;
24588
24589 system ("touch conf.gtktest");
24590
24591 /* HP/UX 9 (%@#!) writes to sscanf strings */
24592 tmp_version = g_strdup("$min_gtk_version");
24593 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24594 printf("%s, bad version string\n", "$min_gtk_version");
24595 exit(1);
24596 }
24597
24598 if ((gtk_major_version != $gtk_config_major_version) ||
24599 (gtk_minor_version != $gtk_config_minor_version) ||
24600 (gtk_micro_version != $gtk_config_micro_version))
24601 {
24602 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24603 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24604 gtk_major_version, gtk_minor_version, gtk_micro_version);
24605 printf ("*** was found! If gtk-config was correct, then it is best\n");
24606 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24607 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24608 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24609 printf("*** required on your system.\n");
24610 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24611 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24612 printf("*** before re-running configure\n");
24613 }
24614#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24615 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24616 (gtk_minor_version != GTK_MINOR_VERSION) ||
24617 (gtk_micro_version != GTK_MICRO_VERSION))
24618 {
24619 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24620 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24621 printf("*** library (version %d.%d.%d)\n",
24622 gtk_major_version, gtk_minor_version, gtk_micro_version);
24623 }
24624#endif /* defined (GTK_MAJOR_VERSION) ... */
24625 else
24626 {
24627 if ((gtk_major_version > major) ||
24628 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24629 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24630 {
24631 return 0;
24632 }
24633 else
24634 {
24635 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24636 gtk_major_version, gtk_minor_version, gtk_micro_version);
24637 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24638 major, minor, micro);
24639 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24640 printf("***\n");
24641 printf("*** If you have already installed a sufficiently new version, this error\n");
24642 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24643 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24644 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24645 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24646 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24647 printf("*** so that the correct libraries are found at run-time))\n");
24648 }
24649 }
24650 return 1;
24651}
24652
24653_ACEOF
24654rm -f conftest$ac_exeext
24655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24656 (eval $ac_link) 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); }; }; then
24665 :
24666else
24667 echo "$as_me: program exited with status $ac_status" >&5
24668echo "$as_me: failed program was:" >&5
24669sed 's/^/| /' conftest.$ac_ext >&5
24670
24671( exit $ac_status )
24672no_gtk=yes
24673fi
ac1cb8d3 24674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24675fi
24676 CFLAGS="$ac_save_CFLAGS"
24677 LIBS="$ac_save_LIBS"
24678 fi
24679 fi
24680 if test "x$no_gtk" = x ; then
24681 echo "$as_me:$LINENO: result: yes" >&5
24682echo "${ECHO_T}yes" >&6
24683 wx_cv_lib_gtk=1.2.7
24684 else
24685 echo "$as_me:$LINENO: result: no" >&5
24686echo "${ECHO_T}no" >&6
24687 if test "$GTK_CONFIG" = "no" ; then
24688 echo "*** The gtk-config script installed by GTK could not be found"
24689 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24690 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24691 echo "*** full path to gtk-config."
24692 else
24693 if test -f conf.gtktest ; then
24694 :
24695 else
24696 echo "*** Could not run GTK test program, checking why..."
24697 CFLAGS="$CFLAGS $GTK_CFLAGS"
24698 LIBS="$LIBS $GTK_LIBS"
24699 cat >conftest.$ac_ext <<_ACEOF
24700/* confdefs.h. */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h. */
24705
24706#include <gtk/gtk.h>
24707#include <stdio.h>
24708
24709int
24710main ()
24711{
24712 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24713 ;
24714 return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext conftest$ac_exeext
24718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24719 (eval $ac_link) 2>conftest.er1
a848cd7e 24720 ac_status=$?
ac1cb8d3
VS
24721 grep -v '^ *+' conftest.er1 >conftest.err
24722 rm -f conftest.er1
24723 cat conftest.err >&5
a848cd7e
SC
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); } &&
9dd0f6c2 24726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; } &&
24732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; }; then
24738 echo "*** The test program compiled, but did not run. This usually means"
24739 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24740 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24741 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24742 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24743 echo "*** is required on your system"
24744 echo "***"
24745 echo "*** If you have an old version installed, it is best to remove it, although"
24746 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24747 echo "***"
24748 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24749 echo "*** came with the system with the command"
24750 echo "***"
24751 echo "*** rpm --erase --nodeps gtk gtk-devel"
24752else
24753 echo "$as_me: failed program was:" >&5
24754sed 's/^/| /' conftest.$ac_ext >&5
24755
24756 echo "*** The test program failed to compile or link. See the file config.log for the"
24757 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24758 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24759 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24760fi
ac1cb8d3
VS
24761rm -f conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24763 CFLAGS="$ac_save_CFLAGS"
24764 LIBS="$ac_save_LIBS"
24765 fi
24766 fi
24767 GTK_CFLAGS=""
24768 GTK_LIBS=""
24769 :
24770 fi
24771
24772
24773 rm -f conf.gtktest
24774
24775
24776 if test -z "$wx_cv_lib_gtk"; then
24777
24778# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24779if test "${with_gtk_prefix+set}" = set; then
24780 withval="$with_gtk_prefix"
24781 gtk_config_prefix="$withval"
24782else
24783 gtk_config_prefix=""
24784fi;
24785
24786# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24787if test "${with_gtk_exec_prefix+set}" = set; then
24788 withval="$with_gtk_exec_prefix"
24789 gtk_config_exec_prefix="$withval"
24790else
24791 gtk_config_exec_prefix=""
24792fi;
24793# Check whether --enable-gtktest or --disable-gtktest was given.
24794if test "${enable_gtktest+set}" = set; then
24795 enableval="$enable_gtktest"
24796
24797else
24798 enable_gtktest=yes
24799fi;
24800
24801 for module in . $GTK_MODULES
24802 do
24803 case "$module" in
24804 gthread)
24805 gtk_config_args="$gtk_config_args gthread"
24806 ;;
24807 esac
24808 done
24809
24810 if test x$gtk_config_exec_prefix != x ; then
24811 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24812 if test x${GTK_CONFIG+set} != xset ; then
24813 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24814 fi
24815 fi
24816 if test x$gtk_config_prefix != x ; then
24817 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24818 if test x${GTK_CONFIG+set} != xset ; then
24819 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24820 fi
24821 fi
24822
24823 # Extract the first word of "gtk-config", so it can be a program name with args.
24824set dummy gtk-config; ac_word=$2
24825echo "$as_me:$LINENO: checking for $ac_word" >&5
24826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24827if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24828 echo $ECHO_N "(cached) $ECHO_C" >&6
24829else
24830 case $GTK_CONFIG in
24831 [\\/]* | ?:[\\/]*)
24832 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24833 ;;
24834 *)
24835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24836for as_dir in $PATH
24837do
24838 IFS=$as_save_IFS
24839 test -z "$as_dir" && as_dir=.
24840 for ac_exec_ext in '' $ac_executable_extensions; do
24841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24842 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24844 break 2
24845 fi
24846done
24847done
24848
24849 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24850 ;;
24851esac
24852fi
24853GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24854
24855if test -n "$GTK_CONFIG"; then
24856 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24857echo "${ECHO_T}$GTK_CONFIG" >&6
24858else
24859 echo "$as_me:$LINENO: result: no" >&5
24860echo "${ECHO_T}no" >&6
24861fi
24862
24863 min_gtk_version=1.2.3
24864 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24865echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24866 no_gtk=""
24867 if test "$GTK_CONFIG" = "no" ; then
24868 no_gtk=yes
24869 else
24870 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24871 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24872 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24873 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24874 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24876 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24878 if test "x$enable_gtktest" = "xyes" ; then
24879 ac_save_CFLAGS="$CFLAGS"
24880 ac_save_LIBS="$LIBS"
24881 CFLAGS="$CFLAGS $GTK_CFLAGS"
24882 LIBS="$GTK_LIBS $LIBS"
24883 rm -f conf.gtktest
24884 if test "$cross_compiling" = yes; then
24885 echo $ac_n "cross compiling; assumed OK... $ac_c"
24886else
24887 cat >conftest.$ac_ext <<_ACEOF
24888/* confdefs.h. */
24889_ACEOF
24890cat confdefs.h >>conftest.$ac_ext
24891cat >>conftest.$ac_ext <<_ACEOF
24892/* end confdefs.h. */
24893
24894#include <gtk/gtk.h>
24895#include <stdio.h>
24896#include <stdlib.h>
24897
24898int
24899main ()
24900{
24901 int major, minor, micro;
24902 char *tmp_version;
24903
24904 system ("touch conf.gtktest");
24905
24906 /* HP/UX 9 (%@#!) writes to sscanf strings */
24907 tmp_version = g_strdup("$min_gtk_version");
24908 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24909 printf("%s, bad version string\n", "$min_gtk_version");
24910 exit(1);
24911 }
24912
24913 if ((gtk_major_version != $gtk_config_major_version) ||
24914 (gtk_minor_version != $gtk_config_minor_version) ||
24915 (gtk_micro_version != $gtk_config_micro_version))
24916 {
24917 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24918 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24919 gtk_major_version, gtk_minor_version, gtk_micro_version);
24920 printf ("*** was found! If gtk-config was correct, then it is best\n");
24921 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24922 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24923 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24924 printf("*** required on your system.\n");
24925 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24926 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24927 printf("*** before re-running configure\n");
24928 }
24929#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24930 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24931 (gtk_minor_version != GTK_MINOR_VERSION) ||
24932 (gtk_micro_version != GTK_MICRO_VERSION))
24933 {
24934 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24935 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24936 printf("*** library (version %d.%d.%d)\n",
24937 gtk_major_version, gtk_minor_version, gtk_micro_version);
24938 }
24939#endif /* defined (GTK_MAJOR_VERSION) ... */
24940 else
24941 {
24942 if ((gtk_major_version > major) ||
24943 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24944 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24945 {
24946 return 0;
24947 }
24948 else
24949 {
24950 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24951 gtk_major_version, gtk_minor_version, gtk_micro_version);
24952 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24953 major, minor, micro);
24954 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24955 printf("***\n");
24956 printf("*** If you have already installed a sufficiently new version, this error\n");
24957 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24958 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24959 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24960 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24961 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24962 printf("*** so that the correct libraries are found at run-time))\n");
24963 }
24964 }
24965 return 1;
24966}
24967
24968_ACEOF
24969rm -f conftest$ac_exeext
24970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24971 (eval $ac_link) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 :
24981else
24982 echo "$as_me: program exited with status $ac_status" >&5
24983echo "$as_me: failed program was:" >&5
24984sed 's/^/| /' conftest.$ac_ext >&5
24985
24986( exit $ac_status )
24987no_gtk=yes
24988fi
ac1cb8d3 24989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24990fi
24991 CFLAGS="$ac_save_CFLAGS"
24992 LIBS="$ac_save_LIBS"
24993 fi
24994 fi
24995 if test "x$no_gtk" = x ; then
24996 echo "$as_me:$LINENO: result: yes" >&5
24997echo "${ECHO_T}yes" >&6
24998 wx_cv_lib_gtk=1.2.3
24999 else
25000 echo "$as_me:$LINENO: result: no" >&5
25001echo "${ECHO_T}no" >&6
25002 if test "$GTK_CONFIG" = "no" ; then
25003 echo "*** The gtk-config script installed by GTK could not be found"
25004 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25005 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25006 echo "*** full path to gtk-config."
25007 else
25008 if test -f conf.gtktest ; then
25009 :
25010 else
25011 echo "*** Could not run GTK test program, checking why..."
25012 CFLAGS="$CFLAGS $GTK_CFLAGS"
25013 LIBS="$LIBS $GTK_LIBS"
25014 cat >conftest.$ac_ext <<_ACEOF
25015/* confdefs.h. */
25016_ACEOF
25017cat confdefs.h >>conftest.$ac_ext
25018cat >>conftest.$ac_ext <<_ACEOF
25019/* end confdefs.h. */
25020
25021#include <gtk/gtk.h>
25022#include <stdio.h>
25023
25024int
25025main ()
25026{
25027 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25028 ;
25029 return 0;
25030}
25031_ACEOF
25032rm -f conftest.$ac_objext conftest$ac_exeext
25033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25034 (eval $ac_link) 2>conftest.er1
a848cd7e 25035 ac_status=$?
ac1cb8d3
VS
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
a848cd7e
SC
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } &&
9dd0f6c2 25041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; } &&
25047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
25053 echo "*** The test program compiled, but did not run. This usually means"
25054 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25055 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25056 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25057 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25058 echo "*** is required on your system"
25059 echo "***"
25060 echo "*** If you have an old version installed, it is best to remove it, although"
25061 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25062 echo "***"
25063 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25064 echo "*** came with the system with the command"
25065 echo "***"
25066 echo "*** rpm --erase --nodeps gtk gtk-devel"
25067else
25068 echo "$as_me: failed program was:" >&5
25069sed 's/^/| /' conftest.$ac_ext >&5
25070
25071 echo "*** The test program failed to compile or link. See the file config.log for the"
25072 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25073 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25074 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25075fi
ac1cb8d3
VS
25076rm -f conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25078 CFLAGS="$ac_save_CFLAGS"
25079 LIBS="$ac_save_LIBS"
25080 fi
25081 fi
25082 GTK_CFLAGS=""
25083 GTK_LIBS=""
25084 :
25085 fi
25086
25087
25088 rm -f conf.gtktest
25089
25090 fi
25091 fi
25092
25093 if test -z "$wx_cv_lib_gtk"; then
25094 wx_cv_lib_gtk=none
25095 else
25096 wx_cv_cflags_gtk=$GTK_CFLAGS
25097 wx_cv_libs_gtk=$GTK_LIBS
25098 fi
25099
25100
25101fi
25102
25103
25104 if test "$gtk_version_cached" = 1; then
25105 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25106echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25107 fi
25108
25109 case "$wx_cv_lib_gtk" in
25110 2.0) WXGTK20=1
25111 TOOLKIT_VERSION=2
25112 ;;
25113 1.2.7) WXGTK127=1
25114 WXGTK12=1
25115 ;;
25116 1.2.3) WXGTK12=1
25117 ;;
25118 *) { { echo "$as_me:$LINENO: error:
25119Please check that gtk-config is in path, the directory
25120where GTK+ libraries are installed (returned by
25121'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25122equivalent variable and GTK+ is version 1.2.3 or above.
25123 " >&5
25124echo "$as_me: error:
25125Please check that gtk-config is in path, the directory
25126where GTK+ libraries are installed (returned by
25127'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25128equivalent variable and GTK+ is version 1.2.3 or above.
25129 " >&2;}
25130 { (exit 1); exit 1; }; }
25131 ;;
25132 esac
25133
25134 if test "$WXGTK20" = 1; then
304205f1
VS
25135 save_CFLAGS="$CFLAGS"
25136 save_LIBS="$LIBS"
9d271838
VZ
25137 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25138 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25139
9755e73b 25140
304205f1
VS
25141for ac_func in pango_font_family_is_monospace
25142do
25143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25144echo "$as_me:$LINENO: checking for $ac_func" >&5
25145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25146if eval "test \"\${$as_ac_var+set}\" = set"; then
25147 echo $ECHO_N "(cached) $ECHO_C" >&6
25148else
25149 cat >conftest.$ac_ext <<_ACEOF
25150/* confdefs.h. */
25151_ACEOF
25152cat confdefs.h >>conftest.$ac_ext
25153cat >>conftest.$ac_ext <<_ACEOF
25154/* end confdefs.h. */
25155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25157#define $ac_func innocuous_$ac_func
25158
25159/* System header to define __stub macros and hopefully few prototypes,
25160 which can conflict with char $ac_func (); below.
25161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162 <limits.h> exists even on freestanding compilers. */
25163
25164#ifdef __STDC__
25165# include <limits.h>
25166#else
25167# include <assert.h>
25168#endif
25169
25170#undef $ac_func
25171
25172/* Override any gcc2 internal prototype to avoid an error. */
25173#ifdef __cplusplus
25174extern "C"
25175{
25176#endif
25177/* We use char because int might match the return type of a gcc2
25178 builtin and then its argument prototype would still apply. */
25179char $ac_func ();
25180/* The GNU C library defines this for functions which it implements
25181 to always fail with ENOSYS. Some functions are actually named
25182 something starting with __ and the normal name is an alias. */
25183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25184choke me
25185#else
25186char (*f) () = $ac_func;
25187#endif
25188#ifdef __cplusplus
25189}
25190#endif
25191
25192int
25193main ()
25194{
25195return f != $ac_func;
25196 ;
25197 return 0;
25198}
25199_ACEOF
25200rm -f conftest.$ac_objext conftest$ac_exeext
25201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202 (eval $ac_link) 2>conftest.er1
25203 ac_status=$?
25204 grep -v '^ *+' conftest.er1 >conftest.err
25205 rm -f conftest.er1
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } &&
9dd0f6c2 25209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest$ac_exeext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 eval "$as_ac_var=yes"
25222else
25223 echo "$as_me: failed program was:" >&5
25224sed 's/^/| /' conftest.$ac_ext >&5
25225
25226eval "$as_ac_var=no"
25227fi
25228rm -f conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
25230fi
25231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25233if test `eval echo '${'$as_ac_var'}'` = yes; then
25234 cat >>confdefs.h <<_ACEOF
25235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25236_ACEOF
25237
25238fi
25239done
25240
9755e73b
VS
25241
25242 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25243echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25244 cat >conftest.$ac_ext <<_ACEOF
25245/* confdefs.h. */
25246_ACEOF
25247cat confdefs.h >>conftest.$ac_ext
25248cat >>conftest.$ac_ext <<_ACEOF
25249/* end confdefs.h. */
25250
25251 #include <gtk/gtk.h>
25252
25253int
25254main ()
25255{
25256
25257 #if !GTK_CHECK_VERSION(2,4,0)
25258 #error "Not GTK+ 2.4"
25259 #endif
25260
25261 ;
25262 return 0;
25263}
25264_ACEOF
25265rm -f conftest.$ac_objext
25266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25267 (eval $ac_compile) 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } &&
9dd0f6c2 25274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest.$ac_objext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286
25287 cat >>confdefs.h <<\_ACEOF
25288#define __WXGTK24__ 1
25289_ACEOF
25290
25291 echo "$as_me:$LINENO: result: yes" >&5
25292echo "${ECHO_T}yes" >&6
25293
25294else
25295 echo "$as_me: failed program was:" >&5
25296sed 's/^/| /' conftest.$ac_ext >&5
25297
25298
25299 echo "$as_me:$LINENO: result: no" >&5
25300echo "${ECHO_T}no" >&6
25301
25302fi
25303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25304
304205f1
VS
25305 CFLAGS="$save_CFLAGS"
25306 LIBS="$save_LIBS"
a848cd7e
SC
25307 else
25308 if test "$wxUSE_UNICODE" = "yes"; then
25309 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25310echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25311 wxUSE_UNICODE=no
25312 fi
25313 fi
25314
25315 if test "$USE_DARWIN" != 1; then
25316
25317for ac_func in poll
25318do
25319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25320echo "$as_me:$LINENO: checking for $ac_func" >&5
25321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25322if eval "test \"\${$as_ac_var+set}\" = set"; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
25324else
25325 cat >conftest.$ac_ext <<_ACEOF
25326/* confdefs.h. */
25327_ACEOF
25328cat confdefs.h >>conftest.$ac_ext
25329cat >>conftest.$ac_ext <<_ACEOF
25330/* end confdefs.h. */
ac1cb8d3
VS
25331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25333#define $ac_func innocuous_$ac_func
25334
a848cd7e
SC
25335/* System header to define __stub macros and hopefully few prototypes,
25336 which can conflict with char $ac_func (); below.
25337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25338 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25339
a848cd7e
SC
25340#ifdef __STDC__
25341# include <limits.h>
25342#else
25343# include <assert.h>
25344#endif
ac1cb8d3
VS
25345
25346#undef $ac_func
25347
a848cd7e
SC
25348/* Override any gcc2 internal prototype to avoid an error. */
25349#ifdef __cplusplus
25350extern "C"
25351{
25352#endif
25353/* We use char because int might match the return type of a gcc2
25354 builtin and then its argument prototype would still apply. */
25355char $ac_func ();
25356/* The GNU C library defines this for functions which it implements
25357 to always fail with ENOSYS. Some functions are actually named
25358 something starting with __ and the normal name is an alias. */
25359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25360choke me
25361#else
25362char (*f) () = $ac_func;
25363#endif
25364#ifdef __cplusplus
25365}
25366#endif
25367
25368int
25369main ()
25370{
25371return f != $ac_func;
25372 ;
25373 return 0;
25374}
25375_ACEOF
25376rm -f conftest.$ac_objext conftest$ac_exeext
25377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25378 (eval $ac_link) 2>conftest.er1
a848cd7e 25379 ac_status=$?
ac1cb8d3
VS
25380 grep -v '^ *+' conftest.er1 >conftest.err
25381 rm -f conftest.er1
25382 cat conftest.err >&5
a848cd7e
SC
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
9dd0f6c2 25385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25397 eval "$as_ac_var=yes"
25398else
25399 echo "$as_me: failed program was:" >&5
25400sed 's/^/| /' conftest.$ac_ext >&5
25401
25402eval "$as_ac_var=no"
25403fi
ac1cb8d3
VS
25404rm -f conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25406fi
25407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25409if test `eval echo '${'$as_ac_var'}'` = yes; then
25410 cat >>confdefs.h <<_ACEOF
25411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25412_ACEOF
25413
25414fi
25415done
25416
25417 fi
25418
25419 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25420 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25421
25422 AFMINSTALL=afminstall
25423 TOOLKIT=GTK
25424 GUIDIST=GTK_DIST
25425
25426 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25427echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25428if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25429 echo $ECHO_N "(cached) $ECHO_C" >&6
25430else
25431 ac_check_lib_save_LIBS=$LIBS
25432LIBS="-lgdk $LIBS"
25433cat >conftest.$ac_ext <<_ACEOF
25434/* confdefs.h. */
25435_ACEOF
25436cat confdefs.h >>conftest.$ac_ext
25437cat >>conftest.$ac_ext <<_ACEOF
25438/* end confdefs.h. */
25439
25440/* Override any gcc2 internal prototype to avoid an error. */
25441#ifdef __cplusplus
25442extern "C"
25443#endif
25444/* We use char because int might match the return type of a gcc2
25445 builtin and then its argument prototype would still apply. */
25446char gdk_im_open ();
25447int
25448main ()
25449{
25450gdk_im_open ();
25451 ;
25452 return 0;
25453}
25454_ACEOF
25455rm -f conftest.$ac_objext conftest$ac_exeext
25456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25457 (eval $ac_link) 2>conftest.er1
a848cd7e 25458 ac_status=$?
ac1cb8d3
VS
25459 grep -v '^ *+' conftest.er1 >conftest.err
25460 rm -f conftest.er1
25461 cat conftest.err >&5
a848cd7e
SC
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } &&
9dd0f6c2 25464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 ac_cv_lib_gdk_gdk_im_open=yes
25477else
25478 echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481ac_cv_lib_gdk_gdk_im_open=no
25482fi
ac1cb8d3
VS
25483rm -f conftest.err conftest.$ac_objext \
25484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25485LIBS=$ac_check_lib_save_LIBS
25486fi
25487echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25488echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25489if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25490 cat >>confdefs.h <<\_ACEOF
25491#define HAVE_XIM 1
25492_ACEOF
25493
25494fi
25495
25496
25497
25498 if test "$wxUSE_GPE" = "yes"; then
25499 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25500echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25501
25502ac_find_libraries=
25503for ac_dir in $SEARCH_LIB /usr/lib;
25504 do
25505 for ac_extension in a so sl dylib; do
25506 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25507 ac_find_libraries=$ac_dir
25508 break 2
25509 fi
25510 done
25511 done
25512
25513 if test "$ac_find_libraries" != "" ; then
25514
25515 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25516 result=$?
25517 if test $result = 0; then
25518 ac_path_to_link=""
25519 else
25520 ac_path_to_link=" -L$ac_find_libraries"
25521 fi
25522
25523 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25524 WXGPE=1
25525 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25526echo "${ECHO_T}found at $ac_find_libraries" >&6
25527 else
25528 echo "$as_me:$LINENO: result: not found" >&5
25529echo "${ECHO_T}not found" >&6
25530 fi
25531
25532 fi
25533 fi
25534
25535 if test "$wxUSE_MGL" = 1; then
25536 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25537echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25538 if test "x$MGL_ROOT" = x ; then
25539 echo "$as_me:$LINENO: result: not found" >&5
25540echo "${ECHO_T}not found" >&6
25541 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25542echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25543 { (exit 1); exit 1; }; }
25544 else
25545 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25546echo "${ECHO_T}$MGL_ROOT" >&6
25547 fi
25548
25549 echo "$as_me:$LINENO: checking for libmgl location" >&5
25550echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25551 case "${host}" in
25552 *-*-linux* )
25553 if test "x$wxUSE_SHARED" = xyes ; then
25554 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25555 else
25556 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25557 fi
25558 ;;
25559 *-pc-msdosdjgpp )
25560 mgl_os_candidates="dos32/dj2"
25561 ;;
25562 *)
25563 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25564echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25565 { (exit 1); exit 1; }; }
25566 esac
25567
25568 mgl_lib_type=""
25569 mgl_os=""
25570
25571 for mgl_os_i in $mgl_os_candidates ; do
25572 if test "x$mgl_os" = x ; then
25573 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25574 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25575 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25576 mgl_lib_type=debug
25577 mgl_os=$mgl_os_i
25578 fi
25579 fi
25580 if test "x$mgl_lib_type" = x ; then
25581 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25582 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25583 mgl_lib_type=release
25584 mgl_os=$mgl_os_i
25585 fi
25586 fi
25587 fi
25588 done
25589
25590 if test "x$mgl_os" = x ; then
25591 echo "$as_me:$LINENO: result: not found" >&5
25592echo "${ECHO_T}not found" >&6
25593 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25594echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25595 { (exit 1); exit 1; }; }
25596 fi
25597 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25598echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25599
25600 wxUSE_UNIVERSAL="yes"
25601
25602 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25603 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25604
25605 AFMINSTALL=afminstall
25606 TOOLKIT=MGL
25607 GUIDIST=MGL_DIST
25608 fi
25609
25610 if test "$wxUSE_MICROWIN" = 1; then
25611 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25612echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25613 if test "x$MICROWINDOWS" = x ; then
25614 echo "$as_me:$LINENO: result: not found" >&5
25615echo "${ECHO_T}not found" >&6
25616 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25617echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25618 { (exit 1); exit 1; }; }
25619 else
25620 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25621echo "${ECHO_T}$MICROWINDOWS" >&6
25622 fi
25623
25624 if test -f $MICROWINDOWS/lib/libmwin.a; then
25625 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25626echo "${ECHO_T}MicroWindows' libraries found." >&6
25627 else
25628 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25629echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25630 { (exit 1); exit 1; }; }
25631 fi
25632
25633 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25634 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25635
25636 wxUSE_UNIVERSAL="yes"
25637
25638 AFMINSTALL=afminstall
25639 TOOLKIT=MICROWIN
25640 GUIDIST=MICROWIN_DIST
25641
25642 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25643 fi
25644
74b84332 25645 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25646
25647if test "x$ac_path_x_has_been_run" != xyes; then
25648 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25649echo $ECHO_N "checking for X... $ECHO_C" >&6
25650
9dd0f6c2 25651ac_path_x_has_been_run=yes
a848cd7e
SC
25652
25653# Check whether --with-x or --without-x was given.
25654if test "${with_x+set}" = set; then
25655 withval="$with_x"
25656
25657fi;
25658# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25659if test "x$with_x" = xno; then
25660 # The user explicitly disabled X.
25661 have_x=disabled
25662else
25663 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25664 # Both variables are already set.
25665 have_x=yes
25666 else
25667 if test "${ac_cv_have_x+set}" = set; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25669else
25670 # One or both of the vars are not set, and there is no cached value.
25671ac_x_includes=no ac_x_libraries=no
25672rm -fr conftest.dir
25673if mkdir conftest.dir; then
25674 cd conftest.dir
25675 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25676 cat >Imakefile <<'_ACEOF'
25677acfindx:
25678 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25679_ACEOF
25680 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25682 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25683 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25684 for ac_extension in a so sl; do
25685 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25686 test -f $ac_im_libdir/libX11.$ac_extension; then
25687 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25688 fi
25689 done
25690 # Screen out bogus values from the imake configuration. They are
25691 # bogus both because they are the default anyway, and because
25692 # using them would break gcc on systems where it needs fixed includes.
25693 case $ac_im_incroot in
25694 /usr/include) ;;
25695 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25696 esac
25697 case $ac_im_usrlibdir in
25698 /usr/lib | /lib) ;;
25699 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25700 esac
25701 fi
25702 cd ..
25703 rm -fr conftest.dir
25704fi
25705
25706# Standard set of common directories for X headers.
25707# Check X11 before X11Rn because it is often a symlink to the current release.
25708ac_x_header_dirs='
25709/usr/X11/include
25710/usr/X11R6/include
25711/usr/X11R5/include
25712/usr/X11R4/include
25713
25714/usr/include/X11
25715/usr/include/X11R6
25716/usr/include/X11R5
25717/usr/include/X11R4
25718
25719/usr/local/X11/include
25720/usr/local/X11R6/include
25721/usr/local/X11R5/include
25722/usr/local/X11R4/include
25723
25724/usr/local/include/X11
25725/usr/local/include/X11R6
25726/usr/local/include/X11R5
25727/usr/local/include/X11R4
25728
25729/usr/X386/include
25730/usr/x386/include
25731/usr/XFree86/include/X11
25732
25733/usr/include
25734/usr/local/include
25735/usr/unsupported/include
25736/usr/athena/include
25737/usr/local/x11r5/include
25738/usr/lpp/Xamples/include
25739
25740/usr/openwin/include
25741/usr/openwin/share/include'
25742
25743if test "$ac_x_includes" = no; then
9dd0f6c2 25744 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25745 # First, try using that file with no special directory specified.
25746 cat >conftest.$ac_ext <<_ACEOF
25747/* confdefs.h. */
25748_ACEOF
25749cat confdefs.h >>conftest.$ac_ext
25750cat >>conftest.$ac_ext <<_ACEOF
25751/* end confdefs.h. */
25752#include <X11/Intrinsic.h>
25753_ACEOF
25754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25756 ac_status=$?
25757 grep -v '^ *+' conftest.er1 >conftest.err
25758 rm -f conftest.er1
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null; then
25762 if test -s conftest.err; then
25763 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25765 else
25766 ac_cpp_err=
25767 fi
25768else
25769 ac_cpp_err=yes
25770fi
25771if test -z "$ac_cpp_err"; then
25772 # We can compile using X headers with no special include directory.
25773ac_x_includes=
25774else
25775 echo "$as_me: failed program was:" >&5
25776sed 's/^/| /' conftest.$ac_ext >&5
25777
25778 for ac_dir in $ac_x_header_dirs; do
25779 if test -r "$ac_dir/X11/Intrinsic.h"; then
25780 ac_x_includes=$ac_dir
25781 break
25782 fi
25783done
25784fi
25785rm -f conftest.err conftest.$ac_ext
25786fi # $ac_x_includes = no
25787
25788if test "$ac_x_libraries" = no; then
25789 # Check for the libraries.
25790 # See if we find them without any special options.
25791 # Don't add to $LIBS permanently.
25792 ac_save_LIBS=$LIBS
25793 LIBS="-lXt $LIBS"
25794 cat >conftest.$ac_ext <<_ACEOF
25795/* confdefs.h. */
25796_ACEOF
25797cat confdefs.h >>conftest.$ac_ext
25798cat >>conftest.$ac_ext <<_ACEOF
25799/* end confdefs.h. */
25800#include <X11/Intrinsic.h>
25801int
25802main ()
25803{
25804XtMalloc (0)
25805 ;
25806 return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext conftest$ac_exeext
25810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25811 (eval $ac_link) 2>conftest.er1
a848cd7e 25812 ac_status=$?
ac1cb8d3
VS
25813 grep -v '^ *+' conftest.er1 >conftest.err
25814 rm -f conftest.er1
25815 cat conftest.err >&5
a848cd7e
SC
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } &&
9dd0f6c2 25818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25827 ac_status=$?
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; }; then
25830 LIBS=$ac_save_LIBS
25831# We can link X programs with no special library path.
25832ac_x_libraries=
25833else
25834 echo "$as_me: failed program was:" >&5
25835sed 's/^/| /' conftest.$ac_ext >&5
25836
25837LIBS=$ac_save_LIBS
25838for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25839do
25840 # Don't even attempt the hair of trying to link an X program!
25841 for ac_extension in a so sl; do
25842 if test -r $ac_dir/libXt.$ac_extension; then
25843 ac_x_libraries=$ac_dir
25844 break 2
25845 fi
25846 done
25847done
25848fi
ac1cb8d3
VS
25849rm -f conftest.err conftest.$ac_objext \
25850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25851fi # $ac_x_libraries = no
25852
25853if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25854 # Didn't find X anywhere. Cache the known absence of X.
25855 ac_cv_have_x="have_x=no"
25856else
25857 # Record where we found X for the cache.
25858 ac_cv_have_x="have_x=yes \
ac1cb8d3 25859 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25860fi
25861fi
25862
25863 fi
25864 eval "$ac_cv_have_x"
25865fi # $with_x != no
25866
25867if test "$have_x" != yes; then
25868 echo "$as_me:$LINENO: result: $have_x" >&5
25869echo "${ECHO_T}$have_x" >&6
25870 no_x=yes
25871else
25872 # If each of the values was on the command line, it overrides each guess.
25873 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25874 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25875 # Update the cache value to reflect the command line values.
25876 ac_cv_have_x="have_x=yes \
25877 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
25878 # It might be that x_includes is empty (headers are found in the
25879 # standard search path. Then output the corresponding message
25880 ac_out_x_includes=$x_includes
25881 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25882 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25883echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25884fi
25885
9dd0f6c2 25886fi
a848cd7e
SC
25887if test "$no_x" = yes; then
25888 # Not all programs may use this symbol, but it does not hurt to define it.
25889
25890cat >>confdefs.h <<\_ACEOF
25891#define X_DISPLAY_MISSING 1
25892_ACEOF
25893
25894 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25895else
25896 if test -n "$x_includes"; then
25897 X_CFLAGS="$X_CFLAGS -I$x_includes"
25898 fi
25899
25900 # It would also be nice to do this for all -L options, not just this one.
25901 if test -n "$x_libraries"; then
25902 X_LIBS="$X_LIBS -L$x_libraries"
25903 # For Solaris; some versions of Sun CC require a space after -R and
25904 # others require no space. Words are not sufficient . . . .
25905 case `(uname -sr) 2>/dev/null` in
25906 "SunOS 5"*)
25907 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25908echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25909 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25910 cat >conftest.$ac_ext <<_ACEOF
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
25916
25917int
25918main ()
25919{
25920
25921 ;
25922 return 0;
25923}
25924_ACEOF
25925rm -f conftest.$ac_objext conftest$ac_exeext
25926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25927 (eval $ac_link) 2>conftest.er1
a848cd7e 25928 ac_status=$?
ac1cb8d3
VS
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
a848cd7e
SC
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
9dd0f6c2 25934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; } &&
25940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
25946 ac_R_nospace=yes
25947else
25948 echo "$as_me: failed program was:" >&5
25949sed 's/^/| /' conftest.$ac_ext >&5
25950
25951ac_R_nospace=no
25952fi
ac1cb8d3
VS
25953rm -f conftest.err conftest.$ac_objext \
25954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25955 if test $ac_R_nospace = yes; then
25956 echo "$as_me:$LINENO: result: no" >&5
25957echo "${ECHO_T}no" >&6
25958 X_LIBS="$X_LIBS -R$x_libraries"
25959 else
25960 LIBS="$ac_xsave_LIBS -R $x_libraries"
25961 cat >conftest.$ac_ext <<_ACEOF
25962/* confdefs.h. */
25963_ACEOF
25964cat confdefs.h >>conftest.$ac_ext
25965cat >>conftest.$ac_ext <<_ACEOF
25966/* end confdefs.h. */
25967
25968int
25969main ()
25970{
25971
25972 ;
25973 return 0;
25974}
25975_ACEOF
25976rm -f conftest.$ac_objext conftest$ac_exeext
25977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25978 (eval $ac_link) 2>conftest.er1
a848cd7e 25979 ac_status=$?
ac1cb8d3
VS
25980 grep -v '^ *+' conftest.er1 >conftest.err
25981 rm -f conftest.er1
25982 cat conftest.err >&5
a848cd7e
SC
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
9dd0f6c2 25985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; } &&
25991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 ac_R_space=yes
25998else
25999 echo "$as_me: failed program was:" >&5
26000sed 's/^/| /' conftest.$ac_ext >&5
26001
26002ac_R_space=no
26003fi
ac1cb8d3
VS
26004rm -f conftest.err conftest.$ac_objext \
26005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26006 if test $ac_R_space = yes; then
26007 echo "$as_me:$LINENO: result: yes" >&5
26008echo "${ECHO_T}yes" >&6
26009 X_LIBS="$X_LIBS -R $x_libraries"
26010 else
26011 echo "$as_me:$LINENO: result: neither works" >&5
26012echo "${ECHO_T}neither works" >&6
26013 fi
26014 fi
26015 LIBS=$ac_xsave_LIBS
26016 esac
26017 fi
26018
26019 # Check for system-dependent libraries X programs must link with.
26020 # Do this before checking for the system-independent R6 libraries
26021 # (-lICE), since we may need -lsocket or whatever for X linking.
26022
26023 if test "$ISC" = yes; then
26024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26025 else
26026 # Martyn Johnson says this is needed for Ultrix, if the X
26027 # libraries were built with DECnet support. And Karl Berry says
26028 # the Alpha needs dnet_stub (dnet does not exist).
26029 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26030 cat >conftest.$ac_ext <<_ACEOF
26031/* confdefs.h. */
26032_ACEOF
26033cat confdefs.h >>conftest.$ac_ext
26034cat >>conftest.$ac_ext <<_ACEOF
26035/* end confdefs.h. */
26036
26037/* Override any gcc2 internal prototype to avoid an error. */
26038#ifdef __cplusplus
26039extern "C"
26040#endif
26041/* We use char because int might match the return type of a gcc2
26042 builtin and then its argument prototype would still apply. */
26043char XOpenDisplay ();
26044int
26045main ()
26046{
26047XOpenDisplay ();
26048 ;
26049 return 0;
26050}
26051_ACEOF
26052rm -f conftest.$ac_objext conftest$ac_exeext
26053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26054 (eval $ac_link) 2>conftest.er1
a848cd7e 26055 ac_status=$?
ac1cb8d3
VS
26056 grep -v '^ *+' conftest.er1 >conftest.err
26057 rm -f conftest.er1
26058 cat conftest.err >&5
a848cd7e
SC
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } &&
9dd0f6c2 26061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 :
26074else
26075 echo "$as_me: failed program was:" >&5
26076sed 's/^/| /' conftest.$ac_ext >&5
26077
26078echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26079echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26080if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26081 echo $ECHO_N "(cached) $ECHO_C" >&6
26082else
26083 ac_check_lib_save_LIBS=$LIBS
26084LIBS="-ldnet $LIBS"
26085cat >conftest.$ac_ext <<_ACEOF
26086/* confdefs.h. */
26087_ACEOF
26088cat confdefs.h >>conftest.$ac_ext
26089cat >>conftest.$ac_ext <<_ACEOF
26090/* end confdefs.h. */
26091
26092/* Override any gcc2 internal prototype to avoid an error. */
26093#ifdef __cplusplus
26094extern "C"
26095#endif
26096/* We use char because int might match the return type of a gcc2
26097 builtin and then its argument prototype would still apply. */
26098char dnet_ntoa ();
26099int
26100main ()
26101{
26102dnet_ntoa ();
26103 ;
26104 return 0;
26105}
26106_ACEOF
26107rm -f conftest.$ac_objext conftest$ac_exeext
26108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26109 (eval $ac_link) 2>conftest.er1
a848cd7e 26110 ac_status=$?
ac1cb8d3
VS
26111 grep -v '^ *+' conftest.er1 >conftest.err
26112 rm -f conftest.er1
26113 cat conftest.err >&5
a848cd7e
SC
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } &&
9dd0f6c2 26116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); }; } &&
26122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; }; then
26128 ac_cv_lib_dnet_dnet_ntoa=yes
26129else
26130 echo "$as_me: failed program was:" >&5
26131sed 's/^/| /' conftest.$ac_ext >&5
26132
26133ac_cv_lib_dnet_dnet_ntoa=no
26134fi
ac1cb8d3
VS
26135rm -f conftest.err conftest.$ac_objext \
26136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26137LIBS=$ac_check_lib_save_LIBS
26138fi
26139echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26140echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26141if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26142 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26143fi
26144
26145 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26146 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26147echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26148if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26150else
26151 ac_check_lib_save_LIBS=$LIBS
26152LIBS="-ldnet_stub $LIBS"
26153cat >conftest.$ac_ext <<_ACEOF
26154/* confdefs.h. */
26155_ACEOF
26156cat confdefs.h >>conftest.$ac_ext
26157cat >>conftest.$ac_ext <<_ACEOF
26158/* end confdefs.h. */
26159
26160/* Override any gcc2 internal prototype to avoid an error. */
26161#ifdef __cplusplus
26162extern "C"
26163#endif
26164/* We use char because int might match the return type of a gcc2
26165 builtin and then its argument prototype would still apply. */
26166char dnet_ntoa ();
26167int
26168main ()
26169{
26170dnet_ntoa ();
26171 ;
26172 return 0;
26173}
26174_ACEOF
26175rm -f conftest.$ac_objext conftest$ac_exeext
26176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26177 (eval $ac_link) 2>conftest.er1
a848cd7e 26178 ac_status=$?
ac1cb8d3
VS
26179 grep -v '^ *+' conftest.er1 >conftest.err
26180 rm -f conftest.er1
26181 cat conftest.err >&5
a848cd7e
SC
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } &&
9dd0f6c2 26184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; } &&
26190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
26196 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26197else
26198 echo "$as_me: failed program was:" >&5
26199sed 's/^/| /' conftest.$ac_ext >&5
26200
26201ac_cv_lib_dnet_stub_dnet_ntoa=no
26202fi
ac1cb8d3
VS
26203rm -f conftest.err conftest.$ac_objext \
26204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26205LIBS=$ac_check_lib_save_LIBS
26206fi
26207echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26208echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26209if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26210 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26211fi
26212
26213 fi
26214fi
ac1cb8d3
VS
26215rm -f conftest.err conftest.$ac_objext \
26216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26217 LIBS="$ac_xsave_LIBS"
26218
26219 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26220 # to get the SysV transport functions.
26221 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26222 # needs -lnsl.
26223 # The nsl library prevents programs from opening the X display
26224 # on Irix 5.2, according to T.E. Dickey.
26225 # The functions gethostbyname, getservbyname, and inet_addr are
26226 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26227 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26228echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26229if test "${ac_cv_func_gethostbyname+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231else
26232 cat >conftest.$ac_ext <<_ACEOF
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
ac1cb8d3
VS
26238/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26240#define gethostbyname innocuous_gethostbyname
26241
a848cd7e
SC
26242/* System header to define __stub macros and hopefully few prototypes,
26243 which can conflict with char gethostbyname (); below.
26244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26245 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26246
a848cd7e
SC
26247#ifdef __STDC__
26248# include <limits.h>
26249#else
26250# include <assert.h>
26251#endif
ac1cb8d3
VS
26252
26253#undef gethostbyname
26254
a848cd7e
SC
26255/* Override any gcc2 internal prototype to avoid an error. */
26256#ifdef __cplusplus
26257extern "C"
26258{
26259#endif
26260/* We use char because int might match the return type of a gcc2
26261 builtin and then its argument prototype would still apply. */
26262char gethostbyname ();
26263/* The GNU C library defines this for functions which it implements
26264 to always fail with ENOSYS. Some functions are actually named
26265 something starting with __ and the normal name is an alias. */
26266#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26267choke me
26268#else
26269char (*f) () = gethostbyname;
26270#endif
26271#ifdef __cplusplus
26272}
26273#endif
26274
26275int
26276main ()
26277{
26278return f != gethostbyname;
26279 ;
26280 return 0;
26281}
26282_ACEOF
26283rm -f conftest.$ac_objext conftest$ac_exeext
26284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26285 (eval $ac_link) 2>conftest.er1
a848cd7e 26286 ac_status=$?
ac1cb8d3
VS
26287 grep -v '^ *+' conftest.er1 >conftest.err
26288 rm -f conftest.er1
26289 cat conftest.err >&5
a848cd7e
SC
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
9dd0f6c2 26292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294 (eval $ac_try) 2>&5
26295 ac_status=$?
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; } &&
26298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_cv_func_gethostbyname=yes
26305else
26306 echo "$as_me: failed program was:" >&5
26307sed 's/^/| /' conftest.$ac_ext >&5
26308
26309ac_cv_func_gethostbyname=no
26310fi
ac1cb8d3
VS
26311rm -f conftest.err conftest.$ac_objext \
26312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26313fi
26314echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26315echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26316
26317 if test $ac_cv_func_gethostbyname = no; then
26318 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26319echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26320if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26321 echo $ECHO_N "(cached) $ECHO_C" >&6
26322else
26323 ac_check_lib_save_LIBS=$LIBS
26324LIBS="-lnsl $LIBS"
26325cat >conftest.$ac_ext <<_ACEOF
26326/* confdefs.h. */
26327_ACEOF
26328cat confdefs.h >>conftest.$ac_ext
26329cat >>conftest.$ac_ext <<_ACEOF
26330/* end confdefs.h. */
26331
26332/* Override any gcc2 internal prototype to avoid an error. */
26333#ifdef __cplusplus
26334extern "C"
26335#endif
26336/* We use char because int might match the return type of a gcc2
26337 builtin and then its argument prototype would still apply. */
26338char gethostbyname ();
26339int
26340main ()
26341{
26342gethostbyname ();
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
VS
26349 (eval $ac_link) 2>conftest.er1
26350 ac_status=$?
26351 grep -v '^ *+' conftest.er1 >conftest.err
26352 rm -f conftest.er1
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
9dd0f6c2 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'
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 ac_cv_lib_nsl_gethostbyname=yes
26369else
26370 echo "$as_me: failed program was:" >&5
26371sed 's/^/| /' conftest.$ac_ext >&5
26372
26373ac_cv_lib_nsl_gethostbyname=no
26374fi
26375rm -f conftest.err conftest.$ac_objext \
26376 conftest$ac_exeext conftest.$ac_ext
26377LIBS=$ac_check_lib_save_LIBS
26378fi
26379echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26380echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26381if test $ac_cv_lib_nsl_gethostbyname = yes; then
26382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26383fi
26384
26385 if test $ac_cv_lib_nsl_gethostbyname = no; then
26386 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26387echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26388if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26390else
26391 ac_check_lib_save_LIBS=$LIBS
26392LIBS="-lbsd $LIBS"
26393cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h. */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h. */
26399
26400/* Override any gcc2 internal prototype to avoid an error. */
26401#ifdef __cplusplus
26402extern "C"
26403#endif
26404/* We use char because int might match the return type of a gcc2
26405 builtin and then its argument prototype would still apply. */
26406char gethostbyname ();
26407int
26408main ()
26409{
26410gethostbyname ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415rm -f conftest.$ac_objext conftest$ac_exeext
26416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>conftest.er1
a848cd7e 26418 ac_status=$?
ac1cb8d3
VS
26419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
a848cd7e
SC
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
9dd0f6c2 26424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26429 (exit $ac_status); }; } &&
26430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_cv_lib_bsd_gethostbyname=yes
26437else
26438 echo "$as_me: failed program was:" >&5
26439sed 's/^/| /' conftest.$ac_ext >&5
26440
26441ac_cv_lib_bsd_gethostbyname=no
26442fi
ac1cb8d3
VS
26443rm -f conftest.err conftest.$ac_objext \
26444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26445LIBS=$ac_check_lib_save_LIBS
26446fi
26447echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26448echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26449if test $ac_cv_lib_bsd_gethostbyname = yes; then
26450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26451fi
26452
26453 fi
26454 fi
26455
26456 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26457 # socket/setsockopt and other routines are undefined under SCO ODT
26458 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26459 # on later versions), says Simon Leinen: it contains gethostby*
26460 # variants that don't use the name server (or something). -lsocket
26461 # must be given before -lnsl if both are needed. We assume that
26462 # if connect needs -lnsl, so does gethostbyname.
26463 echo "$as_me:$LINENO: checking for connect" >&5
26464echo $ECHO_N "checking for connect... $ECHO_C" >&6
26465if test "${ac_cv_func_connect+set}" = set; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26467else
26468 cat >conftest.$ac_ext <<_ACEOF
26469/* confdefs.h. */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h. */
ac1cb8d3
VS
26474/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26476#define connect innocuous_connect
26477
a848cd7e
SC
26478/* System header to define __stub macros and hopefully few prototypes,
26479 which can conflict with char connect (); below.
26480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26482
a848cd7e
SC
26483#ifdef __STDC__
26484# include <limits.h>
26485#else
26486# include <assert.h>
26487#endif
ac1cb8d3
VS
26488
26489#undef connect
26490
a848cd7e
SC
26491/* Override any gcc2 internal prototype to avoid an error. */
26492#ifdef __cplusplus
26493extern "C"
26494{
26495#endif
26496/* We use char because int might match the return type of a gcc2
26497 builtin and then its argument prototype would still apply. */
26498char connect ();
26499/* The GNU C library defines this for functions which it implements
26500 to always fail with ENOSYS. Some functions are actually named
26501 something starting with __ and the normal name is an alias. */
26502#if defined (__stub_connect) || defined (__stub___connect)
26503choke me
26504#else
26505char (*f) () = connect;
26506#endif
26507#ifdef __cplusplus
26508}
26509#endif
26510
26511int
26512main ()
26513{
26514return f != connect;
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext conftest$ac_exeext
26520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26521 (eval $ac_link) 2>conftest.er1
a848cd7e 26522 ac_status=$?
ac1cb8d3
VS
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
a848cd7e
SC
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
9dd0f6c2 26528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; } &&
26534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; }; then
26540 ac_cv_func_connect=yes
26541else
26542 echo "$as_me: failed program was:" >&5
26543sed 's/^/| /' conftest.$ac_ext >&5
26544
26545ac_cv_func_connect=no
26546fi
ac1cb8d3
VS
26547rm -f conftest.err conftest.$ac_objext \
26548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26549fi
26550echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26551echo "${ECHO_T}$ac_cv_func_connect" >&6
26552
26553 if test $ac_cv_func_connect = no; then
26554 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26555echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26556if test "${ac_cv_lib_socket_connect+set}" = set; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26558else
26559 ac_check_lib_save_LIBS=$LIBS
26560LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26561cat >conftest.$ac_ext <<_ACEOF
26562/* confdefs.h. */
26563_ACEOF
26564cat confdefs.h >>conftest.$ac_ext
26565cat >>conftest.$ac_ext <<_ACEOF
26566/* end confdefs.h. */
26567
26568/* Override any gcc2 internal prototype to avoid an error. */
26569#ifdef __cplusplus
26570extern "C"
26571#endif
26572/* We use char because int might match the return type of a gcc2
26573 builtin and then its argument prototype would still apply. */
26574char connect ();
26575int
26576main ()
26577{
26578connect ();
26579 ;
26580 return 0;
26581}
26582_ACEOF
26583rm -f conftest.$ac_objext conftest$ac_exeext
26584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26585 (eval $ac_link) 2>conftest.er1
a848cd7e 26586 ac_status=$?
ac1cb8d3
VS
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
a848cd7e
SC
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } &&
9dd0f6c2 26592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594 (eval $ac_try) 2>&5
26595 ac_status=$?
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; } &&
26598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); }; }; then
26604 ac_cv_lib_socket_connect=yes
26605else
26606 echo "$as_me: failed program was:" >&5
26607sed 's/^/| /' conftest.$ac_ext >&5
26608
26609ac_cv_lib_socket_connect=no
26610fi
ac1cb8d3
VS
26611rm -f conftest.err conftest.$ac_objext \
26612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26613LIBS=$ac_check_lib_save_LIBS
26614fi
26615echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26616echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26617if test $ac_cv_lib_socket_connect = yes; then
26618 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26619fi
26620
26621 fi
26622
26623 # Guillermo Gomez says -lposix is necessary on A/UX.
26624 echo "$as_me:$LINENO: checking for remove" >&5
26625echo $ECHO_N "checking for remove... $ECHO_C" >&6
26626if test "${ac_cv_func_remove+set}" = set; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629 cat >conftest.$ac_ext <<_ACEOF
26630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
ac1cb8d3
VS
26635/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26637#define remove innocuous_remove
26638
a848cd7e
SC
26639/* System header to define __stub macros and hopefully few prototypes,
26640 which can conflict with char remove (); below.
26641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26643
a848cd7e
SC
26644#ifdef __STDC__
26645# include <limits.h>
26646#else
26647# include <assert.h>
26648#endif
ac1cb8d3
VS
26649
26650#undef remove
26651
a848cd7e
SC
26652/* Override any gcc2 internal prototype to avoid an error. */
26653#ifdef __cplusplus
26654extern "C"
26655{
26656#endif
26657/* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26659char remove ();
26660/* The GNU C library defines this for functions which it implements
26661 to always fail with ENOSYS. Some functions are actually named
26662 something starting with __ and the normal name is an alias. */
26663#if defined (__stub_remove) || defined (__stub___remove)
26664choke me
26665#else
26666char (*f) () = remove;
26667#endif
26668#ifdef __cplusplus
26669}
26670#endif
26671
26672int
26673main ()
26674{
26675return f != remove;
26676 ;
26677 return 0;
26678}
26679_ACEOF
26680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26682 (eval $ac_link) 2>conftest.er1
a848cd7e 26683 ac_status=$?
ac1cb8d3
VS
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
a848cd7e
SC
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
9dd0f6c2 26689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 ac_cv_func_remove=yes
26702else
26703 echo "$as_me: failed program was:" >&5
26704sed 's/^/| /' conftest.$ac_ext >&5
26705
26706ac_cv_func_remove=no
26707fi
ac1cb8d3
VS
26708rm -f conftest.err conftest.$ac_objext \
26709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26710fi
26711echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26712echo "${ECHO_T}$ac_cv_func_remove" >&6
26713
26714 if test $ac_cv_func_remove = no; then
26715 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26716echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26717if test "${ac_cv_lib_posix_remove+set}" = set; then
26718 echo $ECHO_N "(cached) $ECHO_C" >&6
26719else
26720 ac_check_lib_save_LIBS=$LIBS
26721LIBS="-lposix $LIBS"
26722cat >conftest.$ac_ext <<_ACEOF
26723/* confdefs.h. */
26724_ACEOF
26725cat confdefs.h >>conftest.$ac_ext
26726cat >>conftest.$ac_ext <<_ACEOF
26727/* end confdefs.h. */
26728
26729/* Override any gcc2 internal prototype to avoid an error. */
26730#ifdef __cplusplus
26731extern "C"
26732#endif
26733/* We use char because int might match the return type of a gcc2
26734 builtin and then its argument prototype would still apply. */
26735char remove ();
26736int
26737main ()
26738{
26739remove ();
26740 ;
26741 return 0;
26742}
26743_ACEOF
26744rm -f conftest.$ac_objext conftest$ac_exeext
26745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26746 (eval $ac_link) 2>conftest.er1
a848cd7e 26747 ac_status=$?
ac1cb8d3
VS
26748 grep -v '^ *+' conftest.er1 >conftest.err
26749 rm -f conftest.er1
26750 cat conftest.err >&5
a848cd7e
SC
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } &&
9dd0f6c2 26753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26756 ac_status=$?
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); }; } &&
26759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761 (eval $ac_try) 2>&5
26762 ac_status=$?
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); }; }; then
26765 ac_cv_lib_posix_remove=yes
26766else
26767 echo "$as_me: failed program was:" >&5
26768sed 's/^/| /' conftest.$ac_ext >&5
26769
26770ac_cv_lib_posix_remove=no
26771fi
ac1cb8d3
VS
26772rm -f conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26774LIBS=$ac_check_lib_save_LIBS
26775fi
26776echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26777echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26778if test $ac_cv_lib_posix_remove = yes; then
26779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26780fi
26781
26782 fi
26783
26784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26785 echo "$as_me:$LINENO: checking for shmat" >&5
26786echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26787if test "${ac_cv_func_shmat+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26789else
26790 cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
ac1cb8d3
VS
26796/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26798#define shmat innocuous_shmat
26799
a848cd7e
SC
26800/* System header to define __stub macros and hopefully few prototypes,
26801 which can conflict with char shmat (); below.
26802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26804
a848cd7e
SC
26805#ifdef __STDC__
26806# include <limits.h>
26807#else
26808# include <assert.h>
26809#endif
ac1cb8d3
VS
26810
26811#undef shmat
26812
a848cd7e
SC
26813/* Override any gcc2 internal prototype to avoid an error. */
26814#ifdef __cplusplus
26815extern "C"
26816{
26817#endif
26818/* We use char because int might match the return type of a gcc2
26819 builtin and then its argument prototype would still apply. */
26820char shmat ();
26821/* The GNU C library defines this for functions which it implements
26822 to always fail with ENOSYS. Some functions are actually named
26823 something starting with __ and the normal name is an alias. */
26824#if defined (__stub_shmat) || defined (__stub___shmat)
26825choke me
26826#else
26827char (*f) () = shmat;
26828#endif
26829#ifdef __cplusplus
26830}
26831#endif
26832
26833int
26834main ()
26835{
26836return f != shmat;
26837 ;
26838 return 0;
26839}
26840_ACEOF
26841rm -f conftest.$ac_objext conftest$ac_exeext
26842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26843 (eval $ac_link) 2>conftest.er1
a848cd7e 26844 ac_status=$?
ac1cb8d3
VS
26845 grep -v '^ *+' conftest.er1 >conftest.err
26846 rm -f conftest.er1
26847 cat conftest.err >&5
a848cd7e
SC
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } &&
9dd0f6c2 26850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; } &&
26856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; }; then
26862 ac_cv_func_shmat=yes
26863else
26864 echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
26867ac_cv_func_shmat=no
26868fi
ac1cb8d3
VS
26869rm -f conftest.err conftest.$ac_objext \
26870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26871fi
26872echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26873echo "${ECHO_T}$ac_cv_func_shmat" >&6
26874
26875 if test $ac_cv_func_shmat = no; then
26876 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26877echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26878if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-lipc $LIBS"
26883cat >conftest.$ac_ext <<_ACEOF
26884/* confdefs.h. */
26885_ACEOF
26886cat confdefs.h >>conftest.$ac_ext
26887cat >>conftest.$ac_ext <<_ACEOF
26888/* end confdefs.h. */
26889
26890/* Override any gcc2 internal prototype to avoid an error. */
26891#ifdef __cplusplus
26892extern "C"
26893#endif
26894/* We use char because int might match the return type of a gcc2
26895 builtin and then its argument prototype would still apply. */
26896char shmat ();
26897int
26898main ()
26899{
26900shmat ();
26901 ;
26902 return 0;
26903}
26904_ACEOF
26905rm -f conftest.$ac_objext conftest$ac_exeext
26906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26907 (eval $ac_link) 2>conftest.er1
a848cd7e 26908 ac_status=$?
ac1cb8d3
VS
26909 grep -v '^ *+' conftest.er1 >conftest.err
26910 rm -f conftest.er1
26911 cat conftest.err >&5
a848cd7e
SC
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
9dd0f6c2 26914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_lib_ipc_shmat=yes
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931ac_cv_lib_ipc_shmat=no
26932fi
ac1cb8d3
VS
26933rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26935LIBS=$ac_check_lib_save_LIBS
26936fi
26937echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26938echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26939if test $ac_cv_lib_ipc_shmat = yes; then
26940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26941fi
26942
26943 fi
26944 fi
26945
26946 # Check for libraries that X11R6 Xt/Xaw programs need.
26947 ac_save_LDFLAGS=$LDFLAGS
26948 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26949 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26950 # check for ICE first), but we must link in the order -lSM -lICE or
26951 # we get undefined symbols. So assume we have SM if we have ICE.
26952 # These have to be linked with before -lX11, unlike the other
26953 # libraries we check for below, so use a different variable.
26954 # John Interrante, Karl Berry
26955 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26956echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26957if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959else
26960 ac_check_lib_save_LIBS=$LIBS
26961LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26962cat >conftest.$ac_ext <<_ACEOF
26963/* confdefs.h. */
26964_ACEOF
26965cat confdefs.h >>conftest.$ac_ext
26966cat >>conftest.$ac_ext <<_ACEOF
26967/* end confdefs.h. */
26968
26969/* Override any gcc2 internal prototype to avoid an error. */
26970#ifdef __cplusplus
26971extern "C"
26972#endif
26973/* We use char because int might match the return type of a gcc2
26974 builtin and then its argument prototype would still apply. */
26975char IceConnectionNumber ();
26976int
26977main ()
26978{
26979IceConnectionNumber ();
26980 ;
26981 return 0;
26982}
26983_ACEOF
26984rm -f conftest.$ac_objext conftest$ac_exeext
26985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26986 (eval $ac_link) 2>conftest.er1
a848cd7e 26987 ac_status=$?
ac1cb8d3
VS
26988 grep -v '^ *+' conftest.er1 >conftest.err
26989 rm -f conftest.er1
26990 cat conftest.err >&5
a848cd7e
SC
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
9dd0f6c2 26993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; } &&
26999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
27005 ac_cv_lib_ICE_IceConnectionNumber=yes
27006else
27007 echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010ac_cv_lib_ICE_IceConnectionNumber=no
27011fi
ac1cb8d3
VS
27012rm -f conftest.err conftest.$ac_objext \
27013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27014LIBS=$ac_check_lib_save_LIBS
27015fi
27016echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27017echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27018if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27019 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27020fi
27021
27022 LDFLAGS=$ac_save_LDFLAGS
27023
27024fi
27025
27026
27027 if test "$no_x" = "yes"; then
27028 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27029echo "$as_me: error: X11 not found" >&2;}
27030 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27031 fi
27032
74b84332
VS
27033 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27034 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27035 AFMINSTALL=afminstall
27036 COMPILED_X_PROGRAM=0
27037
74b84332
VS
27038 fi
27039
27040 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27041 if test "$wxUSE_NANOX" = "yes"; then
27042 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27043echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27044 if test "x$MICROWIN" = x ; then
27045 echo "$as_me:$LINENO: result: not found" >&5
27046echo "${ECHO_T}not found" >&6
27047 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27048echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27049 { (exit 1); exit 1; }; }
27050 else
27051 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27052echo "${ECHO_T}$MICROWIN" >&6
27053 cat >>confdefs.h <<\_ACEOF
27054#define wxUSE_NANOX 1
27055_ACEOF
27056
27057 fi
27058 fi
27059
27060 if test "$wxUSE_UNICODE" = "yes"; then
27061
27062 succeeded=no
27063
27064 if test -z "$PKG_CONFIG"; then
27065 # Extract the first word of "pkg-config", so it can be a program name with args.
27066set dummy pkg-config; ac_word=$2
27067echo "$as_me:$LINENO: checking for $ac_word" >&5
27068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27069if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072 case $PKG_CONFIG in
27073 [\\/]* | ?:[\\/]*)
27074 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27075 ;;
27076 *)
27077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27078for as_dir in $PATH
27079do
27080 IFS=$as_save_IFS
27081 test -z "$as_dir" && as_dir=.
27082 for ac_exec_ext in '' $ac_executable_extensions; do
27083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27084 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27086 break 2
27087 fi
27088done
27089done
27090
27091 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27092 ;;
27093esac
27094fi
27095PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27096
27097if test -n "$PKG_CONFIG"; then
27098 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27099echo "${ECHO_T}$PKG_CONFIG" >&6
27100else
27101 echo "$as_me:$LINENO: result: no" >&5
27102echo "${ECHO_T}no" >&6
27103fi
27104
27105 fi
27106
27107 if test "$PKG_CONFIG" = "no" ; then
27108 echo "*** The pkg-config script could not be found. Make sure it is"
27109 echo "*** in your path, or set the PKG_CONFIG environment variable"
27110 echo "*** to the full path to pkg-config."
27111 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27112 else
27113 PKG_CONFIG_MIN_VERSION=0.9.0
27114 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27115 echo "$as_me:$LINENO: checking for pangox" >&5
27116echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27117
27118 if $PKG_CONFIG --exists "pangox" ; then
27119 echo "$as_me:$LINENO: result: yes" >&5
27120echo "${ECHO_T}yes" >&6
27121 succeeded=yes
27122
27123 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27124echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27125 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27126 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27127echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27128
27129 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27130echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27131 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27132 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27133echo "${ECHO_T}$PANGOX_LIBS" >&6
27134 else
27135 PANGOX_CFLAGS=""
27136 PANGOX_LIBS=""
27137 ## If we have a custom action on failure, don't print errors, but
27138 ## do set a variable so people can do so.
27139 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27140
27141 fi
27142
27143
27144
27145 else
27146 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27147 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27148 fi
27149 fi
27150
27151 if test $succeeded = yes; then
27152
27153 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27154 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27155
27156 else
27157
27158 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27159echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27160 { (exit 1); exit 1; }; }
27161
27162
27163 fi
27164
27165
27166 succeeded=no
27167
27168 if test -z "$PKG_CONFIG"; then
27169 # Extract the first word of "pkg-config", so it can be a program name with args.
27170set dummy pkg-config; ac_word=$2
27171echo "$as_me:$LINENO: checking for $ac_word" >&5
27172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27173if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27175else
27176 case $PKG_CONFIG in
27177 [\\/]* | ?:[\\/]*)
27178 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27179 ;;
27180 *)
27181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27182for as_dir in $PATH
27183do
27184 IFS=$as_save_IFS
27185 test -z "$as_dir" && as_dir=.
27186 for ac_exec_ext in '' $ac_executable_extensions; do
27187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27188 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27190 break 2
27191 fi
27192done
27193done
27194
27195 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27196 ;;
27197esac
27198fi
27199PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27200
27201if test -n "$PKG_CONFIG"; then
27202 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27203echo "${ECHO_T}$PKG_CONFIG" >&6
27204else
27205 echo "$as_me:$LINENO: result: no" >&5
27206echo "${ECHO_T}no" >&6
27207fi
27208
27209 fi
27210
27211 if test "$PKG_CONFIG" = "no" ; then
27212 echo "*** The pkg-config script could not be found. Make sure it is"
27213 echo "*** in your path, or set the PKG_CONFIG environment variable"
27214 echo "*** to the full path to pkg-config."
27215 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27216 else
27217 PKG_CONFIG_MIN_VERSION=0.9.0
27218 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27219 echo "$as_me:$LINENO: checking for pangoft2" >&5
27220echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27221
27222 if $PKG_CONFIG --exists "pangoft2" ; then
27223 echo "$as_me:$LINENO: result: yes" >&5
27224echo "${ECHO_T}yes" >&6
27225 succeeded=yes
27226
27227 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27228echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27229 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27230 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27231echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27232
27233 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27234echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27235 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27236 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27237echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27238 else
27239 PANGOFT2_CFLAGS=""
27240 PANGOFT2_LIBS=""
27241 ## If we have a custom action on failure, don't print errors, but
27242 ## do set a variable so people can do so.
27243 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27244
27245 fi
27246
27247
27248
27249 else
27250 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27251 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27252 fi
27253 fi
27254
27255 if test $succeeded = yes; then
27256
27257 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27258 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27259
27260 else
27261
27262 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27263echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27264 wxUSE_PRINTING_ARCHITECTURE="no"
27265
27266
27267 fi
27268
27269
27270 succeeded=no
27271
27272 if test -z "$PKG_CONFIG"; then
27273 # Extract the first word of "pkg-config", so it can be a program name with args.
27274set dummy pkg-config; ac_word=$2
27275echo "$as_me:$LINENO: checking for $ac_word" >&5
27276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27277if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27279else
27280 case $PKG_CONFIG in
27281 [\\/]* | ?:[\\/]*)
27282 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27283 ;;
27284 *)
27285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27286for as_dir in $PATH
27287do
27288 IFS=$as_save_IFS
27289 test -z "$as_dir" && as_dir=.
27290 for ac_exec_ext in '' $ac_executable_extensions; do
27291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27292 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27294 break 2
27295 fi
27296done
27297done
27298
27299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27300 ;;
27301esac
27302fi
27303PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27304
27305if test -n "$PKG_CONFIG"; then
27306 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27307echo "${ECHO_T}$PKG_CONFIG" >&6
27308else
27309 echo "$as_me:$LINENO: result: no" >&5
27310echo "${ECHO_T}no" >&6
27311fi
27312
27313 fi
27314
27315 if test "$PKG_CONFIG" = "no" ; then
27316 echo "*** The pkg-config script could not be found. Make sure it is"
27317 echo "*** in your path, or set the PKG_CONFIG environment variable"
27318 echo "*** to the full path to pkg-config."
27319 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27320 else
27321 PKG_CONFIG_MIN_VERSION=0.9.0
27322 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27323 echo "$as_me:$LINENO: checking for pangoxft" >&5
27324echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27325
27326 if $PKG_CONFIG --exists "pangoxft" ; then
27327 echo "$as_me:$LINENO: result: yes" >&5
27328echo "${ECHO_T}yes" >&6
27329 succeeded=yes
27330
27331 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27332echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27333 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27334 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27335echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27336
27337 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27338echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27339 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27340 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27341echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27342 else
27343 PANGOXFT_CFLAGS=""
27344 PANGOXFT_LIBS=""
27345 ## If we have a custom action on failure, don't print errors, but
27346 ## do set a variable so people can do so.
27347 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27348
27349 fi
27350
27351
27352
27353 else
27354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27356 fi
27357 fi
27358
27359 if test $succeeded = yes; then
27360
4ae1af05
MB
27361 cat >>confdefs.h <<\_ACEOF
27362#define HAVE_PANGO_XFT 1
27363_ACEOF
27364
a848cd7e
SC
27365 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27366 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27367
27368 else
27369
27370 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27371echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27372
27373
27374 fi
27375
304205f1
VS
27376 save_CFLAGS="$CFLAGS"
27377 save_LIBS="$LIBS"
27378 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27379 LIBS="$LIBS $PANGOX_LIBS"
27380
27381for ac_func in pango_font_family_is_monospace
27382do
27383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27384echo "$as_me:$LINENO: checking for $ac_func" >&5
27385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27386if eval "test \"\${$as_ac_var+set}\" = set"; then
27387 echo $ECHO_N "(cached) $ECHO_C" >&6
27388else
27389 cat >conftest.$ac_ext <<_ACEOF
27390/* confdefs.h. */
27391_ACEOF
27392cat confdefs.h >>conftest.$ac_ext
27393cat >>conftest.$ac_ext <<_ACEOF
27394/* end confdefs.h. */
27395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27397#define $ac_func innocuous_$ac_func
27398
27399/* System header to define __stub macros and hopefully few prototypes,
27400 which can conflict with char $ac_func (); below.
27401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27402 <limits.h> exists even on freestanding compilers. */
27403
27404#ifdef __STDC__
27405# include <limits.h>
27406#else
27407# include <assert.h>
27408#endif
27409
27410#undef $ac_func
27411
27412/* Override any gcc2 internal prototype to avoid an error. */
27413#ifdef __cplusplus
27414extern "C"
27415{
27416#endif
27417/* We use char because int might match the return type of a gcc2
27418 builtin and then its argument prototype would still apply. */
27419char $ac_func ();
27420/* The GNU C library defines this for functions which it implements
27421 to always fail with ENOSYS. Some functions are actually named
27422 something starting with __ and the normal name is an alias. */
27423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27424choke me
27425#else
27426char (*f) () = $ac_func;
27427#endif
27428#ifdef __cplusplus
27429}
27430#endif
27431
27432int
27433main ()
27434{
27435return f != $ac_func;
27436 ;
27437 return 0;
27438}
27439_ACEOF
27440rm -f conftest.$ac_objext conftest$ac_exeext
27441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27442 (eval $ac_link) 2>conftest.er1
27443 ac_status=$?
27444 grep -v '^ *+' conftest.er1 >conftest.err
27445 rm -f conftest.er1
27446 cat conftest.err >&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } &&
9dd0f6c2 27449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; }; then
27461 eval "$as_ac_var=yes"
27462else
27463 echo "$as_me: failed program was:" >&5
27464sed 's/^/| /' conftest.$ac_ext >&5
27465
27466eval "$as_ac_var=no"
27467fi
27468rm -f conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
27470fi
27471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27473if test `eval echo '${'$as_ac_var'}'` = yes; then
27474 cat >>confdefs.h <<_ACEOF
27475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27476_ACEOF
27477
27478fi
27479done
27480
27481 CFLAGS="$save_CFLAGS"
27482 LIBS="$save_LIBS"
a848cd7e
SC
27483 fi
27484
27485 wxUSE_UNIVERSAL="yes"
27486
27487 if test "$wxUSE_NANOX" = "yes"; then
27488 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27489 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"
27490 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27491 else
27492 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27493 fi
27494
a848cd7e
SC
27495 TOOLKIT=X11
27496 GUIDIST=X11_DIST
27497 fi
27498
27499 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27500 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27501echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27502
74b84332
VS
27503ac_find_includes=
27504for ac_dir in $SEARCH_INCLUDE /usr/include;
27505 do
27506 if test -f "$ac_dir/Xm/Xm.h"; then
27507 ac_find_includes=$ac_dir
27508 break
27509 fi
27510 done
a848cd7e 27511
74b84332
VS
27512 if test "$ac_find_includes" != "" ; then
27513 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27514echo "${ECHO_T}found in $ac_find_includes" >&6
27515
27516 if test "x$ac_find_includes" = "x/usr/include"; then
27517 ac_path_to_include=""
27518 else
27519 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27520 result=$?
27521 if test $result = 0; then
27522 ac_path_to_include=""
27523 else
27524 ac_path_to_include=" -I$ac_find_includes"
27525 fi
a848cd7e
SC
27526 fi
27527
74b84332
VS
27528 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27529 else
27530 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27531/* confdefs.h. */
27532_ACEOF
27533cat confdefs.h >>conftest.$ac_ext
27534cat >>conftest.$ac_ext <<_ACEOF
27535/* end confdefs.h. */
27536
74b84332
VS
27537 #include <Xm/Xm.h>
27538
a848cd7e
SC
27539int
27540main ()
27541{
27542
74b84332
VS
27543 int version;
27544 version = xmUseVersion;
27545
a848cd7e
SC
27546 ;
27547 return 0;
27548}
27549_ACEOF
74b84332
VS
27550rm -f conftest.$ac_objext
27551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27552 (eval $ac_compile) 2>conftest.er1
a848cd7e 27553 ac_status=$?
ac1cb8d3
VS
27554 grep -v '^ *+' conftest.er1 >conftest.err
27555 rm -f conftest.er1
27556 cat conftest.err >&5
a848cd7e
SC
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } &&
9dd0f6c2 27559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; } &&
74b84332 27565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; }; then
74b84332
VS
27571
27572 echo "$as_me:$LINENO: result: found in default search path" >&5
27573echo "${ECHO_T}found in default search path" >&6
27574 COMPILED_X_PROGRAM=1
27575
a848cd7e
SC
27576else
27577 echo "$as_me: failed program was:" >&5
27578sed 's/^/| /' conftest.$ac_ext >&5
27579
a848cd7e 27580
74b84332
VS
27581 echo "$as_me:$LINENO: result: no" >&5
27582echo "${ECHO_T}no" >&6
27583 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27584echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27585 { (exit 1); exit 1; }; }
a848cd7e 27586
a848cd7e 27587
a848cd7e 27588fi
74b84332
VS
27589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27590 fi
27591
27592 if test "$COMPILED_X_PROGRAM" = 0; then
27593 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27594echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27595
27596ac_find_libraries=
27597for ac_dir in $SEARCH_LIB /usr/lib;
27598 do
27599 for ac_extension in a so sl dylib; do
27600 if test -f "$ac_dir/libXm.$ac_extension"; then
27601 ac_find_libraries=$ac_dir
27602 break 2
a848cd7e 27603 fi
74b84332
VS
27604 done
27605 done
a848cd7e 27606
74b84332
VS
27607 if test "$ac_find_libraries" != "" ; then
27608 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27609echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27610
74b84332
VS
27611
27612 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27613 result=$?
27614 if test $result = 0; then
27615 ac_path_to_link=""
a848cd7e 27616 else
74b84332
VS
27617 ac_path_to_link=" -L$ac_find_libraries"
27618 fi
27619
27620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27621 else
27622 save_CFLAGS=$CFLAGS
27623 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27624
27625 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h. */
27631
74b84332
VS
27632 #include <Xm/Xm.h>
27633
a848cd7e
SC
27634int
27635main ()
27636{
74b84332
VS
27637
27638 int version;
27639 version = xmUseVersion;
27640
a848cd7e
SC
27641 ;
27642 return 0;
27643}
27644_ACEOF
74b84332
VS
27645rm -f conftest.$ac_objext
27646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27647 (eval $ac_compile) 2>conftest.er1
a848cd7e 27648 ac_status=$?
ac1cb8d3
VS
27649 grep -v '^ *+' conftest.er1 >conftest.err
27650 rm -f conftest.er1
27651 cat conftest.err >&5
a848cd7e
SC
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } &&
9dd0f6c2 27654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27656 (eval $ac_try) 2>&5
27657 ac_status=$?
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; } &&
74b84332 27660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662 (eval $ac_try) 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; }; then
74b84332
VS
27666
27667 echo "$as_me:$LINENO: result: found in default search path" >&5
27668echo "${ECHO_T}found in default search path" >&6
27669 COMPILED_X_PROGRAM=1
27670
a848cd7e
SC
27671else
27672 echo "$as_me: failed program was:" >&5
27673sed 's/^/| /' conftest.$ac_ext >&5
27674
74b84332
VS
27675
27676 echo "$as_me:$LINENO: result: no" >&5
27677echo "${ECHO_T}no" >&6
27678 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27679echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27680 { (exit 1); exit 1; }; }
27681
27682
27683fi
27684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27685
27686 CFLAGS=$save_CFLAGS
27687 fi
27688 fi
27689
27690 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27691echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27692 libp_link=""
27693 libsm_ice_link=""
27694 libs_found=0
27695 for libp in "" " -lXp"; do
27696 if test "$libs_found" = "0"; then
27697 for libsm_ice in "" " -lSM -lICE"; do
27698 if test "$libs_found" = "0"; then
27699 save_LIBS="$LIBS"
27700 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27701 save_CFLAGS=$CFLAGS
27702 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27703
27704 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27705/* confdefs.h. */
27706_ACEOF
27707cat confdefs.h >>conftest.$ac_ext
27708cat >>conftest.$ac_ext <<_ACEOF
27709/* end confdefs.h. */
27710
74b84332
VS
27711 #include <Xm/Xm.h>
27712 #include <Xm/List.h>
27713
a848cd7e
SC
27714int
27715main ()
27716{
74b84332
VS
27717
27718 XmString string = NULL;
27719 Widget w = NULL;
27720 int position = 0;
27721 XmListAddItem(w, string, position);
27722
a848cd7e
SC
27723 ;
27724 return 0;
27725}
27726_ACEOF
27727rm -f conftest.$ac_objext conftest$ac_exeext
27728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27729 (eval $ac_link) 2>conftest.er1
a848cd7e 27730 ac_status=$?
ac1cb8d3
VS
27731 grep -v '^ *+' conftest.er1 >conftest.err
27732 rm -f conftest.er1
27733 cat conftest.err >&5
a848cd7e
SC
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
9dd0f6c2 27736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748
27749 libp_link="$libp"
27750 libsm_ice_link="$libsm_ice"
27751 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27752echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27753 libs_found=1
27754
27755else
27756 echo "$as_me: failed program was:" >&5
27757sed 's/^/| /' conftest.$ac_ext >&5
27758
27759
27760
27761fi
ac1cb8d3
VS
27762rm -f conftest.err conftest.$ac_objext \
27763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27764
27765 LIBS="$save_LIBS"
27766 CFLAGS=$save_CFLAGS
27767 fi
27768 done
27769 fi
27770 done
27771
27772 if test "$libs_found" = "0"; then
27773 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27774echo "${ECHO_T}can't find the right libraries" >&6
27775 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27776echo "$as_me: error: can't link a simple motif program" >&2;}
27777 { (exit 1); exit 1; }; }
27778 fi
27779
27780 save_CFLAGS=$CFLAGS
27781 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27782 echo "$as_me:$LINENO: checking for Motif 2" >&5
27783echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27784 cat >conftest.$ac_ext <<_ACEOF
27785/* confdefs.h. */
27786_ACEOF
27787cat confdefs.h >>conftest.$ac_ext
27788cat >>conftest.$ac_ext <<_ACEOF
27789/* end confdefs.h. */
27790
27791 #include <Xm/Xm.h>
27792
27793int
27794main ()
27795{
27796
27797 #if XmVersion < 2000
27798 #error "Not Motif 2"
27799 #endif
27800
27801 ;
27802 return 0;
27803}
27804_ACEOF
27805rm -f conftest.$ac_objext
27806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27807 (eval $ac_compile) 2>conftest.er1
a848cd7e 27808 ac_status=$?
ac1cb8d3
VS
27809 grep -v '^ *+' conftest.er1 >conftest.err
27810 rm -f conftest.er1
27811 cat conftest.err >&5
a848cd7e
SC
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
9dd0f6c2 27814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
27820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826
27827 cat >>confdefs.h <<\_ACEOF
27828#define __WXMOTIF20__ 1
27829_ACEOF
27830
27831 echo "$as_me:$LINENO: result: found" >&5
27832echo "${ECHO_T}found" >&6
27833
27834else
27835 echo "$as_me: failed program was:" >&5
27836sed 's/^/| /' conftest.$ac_ext >&5
27837
27838
27839 cat >>confdefs.h <<\_ACEOF
27840#define __WXMOTIF20__ 0
27841_ACEOF
27842
27843 echo "$as_me:$LINENO: result: not found" >&5
27844echo "${ECHO_T}not found" >&6
27845
27846fi
ac1cb8d3 27847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27848 CFLAGS=$save_CFLAGS
27849
27850 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27851 TOOLKIT=MOTIF
27852 GUIDIST=MOTIF_DIST
27853 fi
27854
74b84332 27855 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27856 if test "$wxUSE_LIBXPM" = "sys"; then
27857 echo "$as_me:$LINENO: checking for Xpm library" >&5
27858echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27859
27860ac_find_libraries=
27861for ac_dir in $SEARCH_LIB /usr/lib;
27862 do
27863 for ac_extension in a so sl dylib; do
27864 if test -f "$ac_dir/libXpm.$ac_extension"; then
27865 ac_find_libraries=$ac_dir
27866 break 2
27867 fi
27868 done
27869 done
27870
27871 if test "$ac_find_libraries" != "" ; then
27872
27873 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27874 result=$?
27875 if test $result = 0; then
27876 ac_path_to_link=""
27877 else
27878 ac_path_to_link=" -L$ac_find_libraries"
27879 fi
27880
27881 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27882 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27883echo "${ECHO_T}found at $ac_find_libraries" >&6
27884
27885 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27886echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27887if test "${wx_cv_x11_xpm_h+set}" = set; then
27888 echo $ECHO_N "(cached) $ECHO_C" >&6
27889else
27890
27891 save_CFLAGS=$CFLAGS
27892 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27893
27894 cat >conftest.$ac_ext <<_ACEOF
27895/* confdefs.h. */
27896_ACEOF
27897cat confdefs.h >>conftest.$ac_ext
27898cat >>conftest.$ac_ext <<_ACEOF
27899/* end confdefs.h. */
27900
27901 #include <X11/xpm.h>
27902
27903int
27904main ()
27905{
27906
27907 int version;
27908 version = XpmLibraryVersion();
27909
27910 ;
27911 return 0;
27912}
27913_ACEOF
27914rm -f conftest.$ac_objext
27915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27916 (eval $ac_compile) 2>conftest.er1
a848cd7e 27917 ac_status=$?
ac1cb8d3
VS
27918 grep -v '^ *+' conftest.er1 >conftest.err
27919 rm -f conftest.er1
27920 cat conftest.err >&5
a848cd7e
SC
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } &&
9dd0f6c2 27923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925 (eval $ac_try) 2>&5
27926 ac_status=$?
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; } &&
27929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27931 (eval $ac_try) 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; }; then
27935 wx_cv_x11_xpm_h=yes
27936else
27937 echo "$as_me: failed program was:" >&5
27938sed 's/^/| /' conftest.$ac_ext >&5
27939
27940wx_cv_x11_xpm_h=no
27941
27942fi
ac1cb8d3 27943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27944
27945 CFLAGS=$save_CFLAGS
27946
27947
27948fi
27949echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27950echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27951
27952 if test $wx_cv_x11_xpm_h = "yes"; then
27953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27954 cat >>confdefs.h <<\_ACEOF
27955#define wxHAVE_LIB_XPM 1
27956_ACEOF
27957
27958 else
27959 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27960echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27961 fi
27962 fi
27963
27964 fi
27965
27966 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27967echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27968if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27969 echo $ECHO_N "(cached) $ECHO_C" >&6
27970else
27971 ac_check_lib_save_LIBS=$LIBS
27972LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27973cat >conftest.$ac_ext <<_ACEOF
27974/* confdefs.h. */
27975_ACEOF
27976cat confdefs.h >>conftest.$ac_ext
27977cat >>conftest.$ac_ext <<_ACEOF
27978/* end confdefs.h. */
27979
27980/* Override any gcc2 internal prototype to avoid an error. */
27981#ifdef __cplusplus
27982extern "C"
27983#endif
27984/* We use char because int might match the return type of a gcc2
27985 builtin and then its argument prototype would still apply. */
27986char XShapeQueryExtension ();
27987int
27988main ()
27989{
27990XShapeQueryExtension ();
27991 ;
27992 return 0;
27993}
27994_ACEOF
27995rm -f conftest.$ac_objext conftest$ac_exeext
27996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27997 (eval $ac_link) 2>conftest.er1
a848cd7e 27998 ac_status=$?
ac1cb8d3
VS
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
a848cd7e
SC
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
9dd0f6c2 28004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_lib_Xext_XShapeQueryExtension=yes
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
28021ac_cv_lib_Xext_XShapeQueryExtension=no
28022fi
ac1cb8d3
VS
28023rm -f conftest.err conftest.$ac_objext \
28024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28025LIBS=$ac_check_lib_save_LIBS
28026fi
28027echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28028echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28029if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28030
28031 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28032 wxHAVE_XEXT_LIB=1
28033
28034fi
28035
28036
28037 if test "$wxHAVE_XEXT_LIB" = 1; then
28038 save_CFLAGS="$CFLAGS"
28039 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28040
28041 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28042echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
28050 #include <X11/Xlib.h>
28051 #include <X11/extensions/shape.h>
28052
28053int
28054main ()
28055{
28056
28057 int dummy1, dummy2;
28058 XShapeQueryExtension((Display*)NULL,
28059 (int*)NULL, (int*)NULL);
28060
28061 ;
28062 return 0;
28063}
28064_ACEOF
28065rm -f conftest.$ac_objext
28066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28067 (eval $ac_compile) 2>conftest.er1
a848cd7e 28068 ac_status=$?
ac1cb8d3
VS
28069 grep -v '^ *+' conftest.er1 >conftest.err
28070 rm -f conftest.er1
28071 cat conftest.err >&5
a848cd7e
SC
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
9dd0f6c2 28074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; } &&
28080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086
28087 cat >>confdefs.h <<\_ACEOF
28088#define HAVE_XSHAPE 1
28089_ACEOF
28090
28091 echo "$as_me:$LINENO: result: found" >&5
28092echo "${ECHO_T}found" >&6
28093
28094else
28095 echo "$as_me: failed program was:" >&5
28096sed 's/^/| /' conftest.$ac_ext >&5
28097
28098
28099 echo "$as_me:$LINENO: result: not found" >&5
28100echo "${ECHO_T}not found" >&6
28101
28102fi
ac1cb8d3 28103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28104 CFLAGS="$save_CFLAGS"
28105
28106 fi
28107 fi
28108
28109 if test "$wxUSE_MAC" = 1; then
28110 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28111echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28112 if test "$GCC" = yes; then
28113 echo "$as_me:$LINENO: result: gcc" >&5
28114echo "${ECHO_T}gcc" >&6
28115 CPPFLAGS_PASCAL="-fpascal-strings"
28116 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28117 echo "$as_me:$LINENO: result: xlc" >&5
28118echo "${ECHO_T}xlc" >&6
28119 CPPFLAGS_PASCAL="-qmacpstr"
28120 else
28121 echo "$as_me:$LINENO: result: none" >&5
28122echo "${ECHO_T}none" >&6
28123 fi
28124
1e9e8aba
DE
28125 if test "x$wxUSE_UNIX" = "xyes"; then
28126 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28127 else
28128 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28129 fi
a848cd7e 28130
a848cd7e
SC
28131 TOOLKIT=MAC
28132 GUIDIST=MACX_DIST
dd21ced8 28133 WXBASEPORT="_carbon"
a848cd7e
SC
28134 fi
28135
28136 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28137 TOOLKIT=COCOA
28138 GUIDIST=COCOA_DIST
28139 fi
28140
28141 if test "$wxUSE_PM" = 1; then
28142 TOOLKIT=PM
de59c161
RD
28143 GUIDIST=PM_DIST
28144 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28145echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28146if test "${wx_cv_spbcdata+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28148else
28149
28150 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28151/* confdefs.h. */
28152_ACEOF
28153cat confdefs.h >>conftest.$ac_ext
28154cat >>conftest.$ac_ext <<_ACEOF
28155/* end confdefs.h. */
28156
28157 #define INCL_PM
28158 #include <os2.h>
28159
28160int
28161main ()
28162{
28163
28164 SPBCDATA test;
28165
28166 ;
28167 return 0;
28168}
28169_ACEOF
28170rm -f conftest.$ac_objext
28171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28172 (eval $ac_compile) 2>conftest.er1
de59c161 28173 ac_status=$?
ac1cb8d3
VS
28174 grep -v '^ *+' conftest.er1 >conftest.err
28175 rm -f conftest.er1
28176 cat conftest.err >&5
de59c161
RD
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } &&
9dd0f6c2 28179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181 (eval $ac_try) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28191 wx_cv_spbcdata=yes
28192else
28193 echo "$as_me: failed program was:" >&5
28194sed 's/^/| /' conftest.$ac_ext >&5
28195
28196wx_cv_spbcdata=no
28197
28198fi
ac1cb8d3 28199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28200
28201
28202fi
28203echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28204echo "${ECHO_T}$wx_cv_spbcdata" >&6
28205
28206 if test $wx_cv_spbcdata = "yes"; then
28207 cat >>confdefs.h <<\_ACEOF
28208#define HAVE_SPBCDATA 1
28209_ACEOF
28210
28211 fi
a848cd7e
SC
28212 fi
28213
28214 if test "$TOOLKIT" = "PM" ; then
28215 TOOLKIT_DIR="os2"
28216 else
28217 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28218 fi
28219
a848cd7e 28220 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28221 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28222 WIDGET_SET=univ
a848cd7e
SC
28223 fi
28224
28225 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28226 DISTDIR="wx\$(TOOLKIT)"
28227else
28228 USE_GUI=0
28229
28230 TOOLKIT_DIR="base"
28231
28232 if test "$USE_WIN32" = 1 ; then
a848cd7e 28233 TOOLKIT="MSW"
a848cd7e
SC
28234 fi
28235
a848cd7e
SC
28236 GUIDIST="BASE_DIST"
28237 DISTDIR="wxBase"
28238fi
28239
28240
28241
28242
28243IODBC_C_SRC=""
28244
28245
28246if test "$TOOLKIT" != "MSW" ; then
28247
28248 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28249
28250 if test "${ac_cv_header_sql_h+set}" = set; then
28251 echo "$as_me:$LINENO: checking for sql.h" >&5
28252echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28253if test "${ac_cv_header_sql_h+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28255fi
28256echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28257echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28258else
28259 # Is the header compilable?
28260echo "$as_me:$LINENO: checking sql.h usability" >&5
28261echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28262cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268$ac_includes_default
28269#include <sql.h>
28270_ACEOF
28271rm -f conftest.$ac_objext
28272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28273 (eval $ac_compile) 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); } &&
9dd0f6c2 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_objext'
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 ac_header_compiler=yes
28293else
28294 echo "$as_me: failed program was:" >&5
28295sed 's/^/| /' conftest.$ac_ext >&5
28296
28297ac_header_compiler=no
28298fi
ac1cb8d3 28299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28301echo "${ECHO_T}$ac_header_compiler" >&6
28302
28303# Is the header present?
28304echo "$as_me:$LINENO: checking sql.h presence" >&5
28305echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28306cat >conftest.$ac_ext <<_ACEOF
28307/* confdefs.h. */
28308_ACEOF
28309cat confdefs.h >>conftest.$ac_ext
28310cat >>conftest.$ac_ext <<_ACEOF
28311/* end confdefs.h. */
28312#include <sql.h>
28313_ACEOF
28314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28316 ac_status=$?
28317 grep -v '^ *+' conftest.er1 >conftest.err
28318 rm -f conftest.er1
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } >/dev/null; then
28322 if test -s conftest.err; then
28323 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28325 else
28326 ac_cpp_err=
28327 fi
28328else
28329 ac_cpp_err=yes
28330fi
28331if test -z "$ac_cpp_err"; then
28332 ac_header_preproc=yes
28333else
28334 echo "$as_me: failed program was:" >&5
28335sed 's/^/| /' conftest.$ac_ext >&5
28336
28337 ac_header_preproc=no
28338fi
28339rm -f conftest.err conftest.$ac_ext
28340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28341echo "${ECHO_T}$ac_header_preproc" >&6
28342
28343# So? What about this header?
ac1cb8d3
VS
28344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28345 yes:no: )
a848cd7e
SC
28346 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28347echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28348 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28349echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28350 ac_header_preproc=yes
a848cd7e 28351 ;;
ac1cb8d3 28352 no:yes:* )
a848cd7e
SC
28353 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28354echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28355 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28356echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28357 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28358echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28359 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28360echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28361 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28362echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28363 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28364echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28365 (
28366 cat <<\_ASBOX
ac1cb8d3
VS
28367## ----------------------------------------- ##
28368## Report this to wx-dev@lists.wxwidgets.org ##
28369## ----------------------------------------- ##
a848cd7e
SC
28370_ASBOX
28371 ) |
28372 sed "s/^/$as_me: WARNING: /" >&2
28373 ;;
28374esac
28375echo "$as_me:$LINENO: checking for sql.h" >&5
28376echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28377if test "${ac_cv_header_sql_h+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28379else
28380 ac_cv_header_sql_h=$ac_header_preproc
28381fi
28382echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28383echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28384
28385fi
28386if test $ac_cv_header_sql_h = yes; then
28387 found_sql_h=1
28388fi
28389
28390
28391 if test "x$found_sql_h" = "x1" ; then
28392 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28393echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28394if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28395 echo $ECHO_N "(cached) $ECHO_C" >&6
28396else
28397 ac_check_lib_save_LIBS=$LIBS
28398LIBS="-liodbc $LIBS"
28399cat >conftest.$ac_ext <<_ACEOF
28400/* confdefs.h. */
28401_ACEOF
28402cat confdefs.h >>conftest.$ac_ext
28403cat >>conftest.$ac_ext <<_ACEOF
28404/* end confdefs.h. */
28405
28406/* Override any gcc2 internal prototype to avoid an error. */
28407#ifdef __cplusplus
28408extern "C"
28409#endif
28410/* We use char because int might match the return type of a gcc2
28411 builtin and then its argument prototype would still apply. */
28412char SQLAllocEnv ();
28413int
28414main ()
28415{
28416SQLAllocEnv ();
28417 ;
28418 return 0;
28419}
28420_ACEOF
28421rm -f conftest.$ac_objext conftest$ac_exeext
28422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28423 (eval $ac_link) 2>conftest.er1
a848cd7e 28424 ac_status=$?
ac1cb8d3
VS
28425 grep -v '^ *+' conftest.er1 >conftest.err
28426 rm -f conftest.er1
28427 cat conftest.err >&5
a848cd7e
SC
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
9dd0f6c2 28430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; } &&
28436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); }; }; then
28442 ac_cv_lib_iodbc_SQLAllocEnv=yes
28443else
28444 echo "$as_me: failed program was:" >&5
28445sed 's/^/| /' conftest.$ac_ext >&5
28446
28447ac_cv_lib_iodbc_SQLAllocEnv=no
28448fi
ac1cb8d3
VS
28449rm -f conftest.err conftest.$ac_objext \
28450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28451LIBS=$ac_check_lib_save_LIBS
28452fi
28453echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28454echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28455if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28456 ODBC_LINK=" -liodbc"
28457else
28458
28459 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28460echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28461if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28463else
28464 ac_check_lib_save_LIBS=$LIBS
28465LIBS="-lunixodbc $LIBS"
28466cat >conftest.$ac_ext <<_ACEOF
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
28472
28473/* Override any gcc2 internal prototype to avoid an error. */
28474#ifdef __cplusplus
28475extern "C"
28476#endif
28477/* We use char because int might match the return type of a gcc2
28478 builtin and then its argument prototype would still apply. */
28479char SQLAllocEnv ();
28480int
28481main ()
28482{
28483SQLAllocEnv ();
28484 ;
28485 return 0;
28486}
28487_ACEOF
28488rm -f conftest.$ac_objext conftest$ac_exeext
28489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28490 (eval $ac_link) 2>conftest.er1
a848cd7e 28491 ac_status=$?
ac1cb8d3
VS
28492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
a848cd7e
SC
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } &&
9dd0f6c2 28497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 (eval $ac_try) 2>&5
28500 ac_status=$?
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
28503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; }; then
28509 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28510else
28511 echo "$as_me: failed program was:" >&5
28512sed 's/^/| /' conftest.$ac_ext >&5
28513
28514ac_cv_lib_unixodbc_SQLAllocEnv=no
28515fi
ac1cb8d3
VS
28516rm -f conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28518LIBS=$ac_check_lib_save_LIBS
28519fi
28520echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28521echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28522if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28523 ODBC_LINK=" -lunixodbc"
28524else
28525
28526 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28527echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28528if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28530else
28531 ac_check_lib_save_LIBS=$LIBS
28532LIBS="-lodbc $LIBS"
28533cat >conftest.$ac_ext <<_ACEOF
28534/* confdefs.h. */
28535_ACEOF
28536cat confdefs.h >>conftest.$ac_ext
28537cat >>conftest.$ac_ext <<_ACEOF
28538/* end confdefs.h. */
28539
28540/* Override any gcc2 internal prototype to avoid an error. */
28541#ifdef __cplusplus
28542extern "C"
28543#endif
28544/* We use char because int might match the return type of a gcc2
28545 builtin and then its argument prototype would still apply. */
28546char SQLAllocEnv ();
28547int
28548main ()
28549{
28550SQLAllocEnv ();
28551 ;
28552 return 0;
28553}
28554_ACEOF
28555rm -f conftest.$ac_objext conftest$ac_exeext
28556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28557 (eval $ac_link) 2>conftest.er1
a848cd7e 28558 ac_status=$?
ac1cb8d3
VS
28559 grep -v '^ *+' conftest.er1 >conftest.err
28560 rm -f conftest.er1
28561 cat conftest.err >&5
a848cd7e
SC
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } &&
9dd0f6c2 28564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; } &&
28570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; }; then
28576 ac_cv_lib_odbc_SQLAllocEnv=yes
28577else
28578 echo "$as_me: failed program was:" >&5
28579sed 's/^/| /' conftest.$ac_ext >&5
28580
28581ac_cv_lib_odbc_SQLAllocEnv=no
28582fi
ac1cb8d3
VS
28583rm -f conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28585LIBS=$ac_check_lib_save_LIBS
28586fi
28587echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28588echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28589if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28590 ODBC_LINK=" -lodbc"
28591fi
28592
28593
28594fi
28595
28596
28597fi
28598
28599 fi
28600 if test "x$ODBC_LINK" = "x" ; then
28601 if test "$wxUSE_ODBC" = "sys" ; then
28602 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28603echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28604 { (exit 1); exit 1; }; }
28605 else
28606 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28607echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28608 wxUSE_ODBC=builtin
28609 fi
28610 else
28611 wxUSE_ODBC=sys
28612 fi
28613 fi
a848cd7e 28614
2da0c077
RD
28615 if test "$wxUSE_ODBC" = "builtin" ; then
28616 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28617#define wxUSE_BUILTIN_IODBC 1
28618_ACEOF
28619
a848cd7e
SC
28620 fi
28621fi
28622
2da0c077
RD
28623if test "$wxUSE_ODBC" != "no" ; then
28624 cat >>confdefs.h <<\_ACEOF
28625#define wxUSE_ODBC 1
28626_ACEOF
28627
28628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28629
28630 WXODBCFLAG="-D_IODBC_"
28631fi
a848cd7e 28632
01cb68df 28633
a848cd7e 28634if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28635 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28636 echo "$as_me:$LINENO: checking for Xinerama" >&5
28637echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28638
28639ac_find_libraries=
28640for ac_dir in $SEARCH_LIB /usr/lib;
28641 do
28642 for ac_extension in a so sl dylib; do
28643 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28644 ac_find_libraries=$ac_dir
28645 break 2
28646 fi
28647 done
28648 done
28649
28650 if test "$ac_find_libraries" != "" ; then
28651
28652 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28653 result=$?
28654 if test $result = 0; then
28655 ac_path_to_link=""
28656 else
28657 ac_path_to_link=" -L$ac_find_libraries"
28658 fi
28659
28660 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28661 LDFLAGS="$LDFLAGS $ac_path_to_link"
28662 fi
28663 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28664 echo "$as_me:$LINENO: result: yes" >&5
28665echo "${ECHO_T}yes" >&6
28666
28667 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28668echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28669
28670ac_find_libraries=
28671for ac_dir in $SEARCH_LIB /usr/lib;
28672 do
28673 for ac_extension in a so sl dylib; do
28674 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28675 ac_find_libraries=$ac_dir
28676 break 2
28677 fi
28678 done
28679 done
28680
28681 if test "$ac_find_libraries" != "" ; then
28682 echo "$as_me:$LINENO: result: yes" >&5
28683echo "${ECHO_T}yes" >&6
28684
28685for ac_header in X11/extensions/xf86vmode.h
28686do
28687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28688echo "$as_me:$LINENO: checking for $ac_header" >&5
28689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28690if eval "test \"\${$as_ac_Header+set}\" = set"; then
28691 echo $ECHO_N "(cached) $ECHO_C" >&6
28692else
28693 cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699
28700 #if HAVE_X11_XLIB_H
28701 #include <X11/Xlib.h>
28702 #endif
28703
28704
28705#include <$ac_header>
28706_ACEOF
28707rm -f conftest.$ac_objext
28708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28709 (eval $ac_compile) 2>conftest.er1
a848cd7e 28710 ac_status=$?
ac1cb8d3
VS
28711 grep -v '^ *+' conftest.er1 >conftest.err
28712 rm -f conftest.er1
28713 cat conftest.err >&5
a848cd7e
SC
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } &&
9dd0f6c2 28716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 eval "$as_ac_Header=yes"
28729else
28730 echo "$as_me: failed program was:" >&5
28731sed 's/^/| /' conftest.$ac_ext >&5
28732
28733eval "$as_ac_Header=no"
28734fi
ac1cb8d3 28735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28736fi
28737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28739if test `eval echo '${'$as_ac_Header'}'` = yes; then
28740 cat >>confdefs.h <<_ACEOF
28741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28742_ACEOF
28743
28744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28745
28746fi
28747
28748done
28749
28750 else
28751 echo "$as_me:$LINENO: result: no" >&5
28752echo "${ECHO_T}no" >&6
28753 fi
28754
28755 else
28756 echo "$as_me:$LINENO: result: no" >&5
28757echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28758 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28759echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28760 wxUSE_DISPLAY="no"
28761 fi
01cb68df
RG
28762 elif test "$wxUSE_MSW" = 1; then
28763
28764
28765for ac_header in multimon.h ddraw.h
28766do
28767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28768echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28770if eval "test \"\${$as_ac_Header+set}\" = set"; then
28771 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28772else
5294a27e 28773 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28774/* confdefs.h. */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h. */
5294a27e
VZ
28779#include <windows.h>
28780
01cb68df
RG
28781#include <$ac_header>
28782_ACEOF
28783rm -f conftest.$ac_objext
28784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28785 (eval $ac_compile) 2>conftest.er1
01cb68df 28786 ac_status=$?
ac1cb8d3
VS
28787 grep -v '^ *+' conftest.er1 >conftest.err
28788 rm -f conftest.er1
28789 cat conftest.err >&5
01cb68df
RG
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } &&
9dd0f6c2 28792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; } &&
28798 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
5294a27e 28804 eval "$as_ac_Header=yes"
01cb68df
RG
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
5294a27e 28809eval "$as_ac_Header=no"
01cb68df 28810fi
ac1cb8d3 28811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28812fi
28813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28815if test `eval echo '${'$as_ac_Header'}'` = yes; then
28816 cat >>confdefs.h <<_ACEOF
28817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28818_ACEOF
28819
28820else
28821
5294a27e
VZ
28822 wxUSE_DISPLAY="no"
28823 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28824echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28825
28826fi
28827
28828done
28829
a848cd7e
SC
28830 fi
28831fi
28832
28833
28834USE_OPENGL=0
28835if test "$wxUSE_OPENGL" = "yes"; then
28836 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28837 OPENGL_LIBS="-framework OpenGL -framework AGL"
28838 elif test "$wxUSE_MSW" = 1; then
28839 OPENGL_LIBS="-lopengl32 -lglu32"
28840 else
28841
28842
28843ac_find_includes=
28844for ac_dir in $SEARCH_INCLUDE /usr/include;
28845 do
28846 if test -f "$ac_dir/GL/gl.h"; then
28847 ac_find_includes=$ac_dir
28848 break
28849 fi
28850 done
28851
28852 if test "$ac_find_includes" != "" ; then
28853 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28854echo "${ECHO_T}found in $ac_find_includes" >&6
28855
28856 if test "x$ac_find_includes" = "x/usr/include"; then
28857 ac_path_to_include=""
28858 else
28859 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28860 result=$?
28861 if test $result = 0; then
28862 ac_path_to_include=""
28863 else
28864 ac_path_to_include=" -I$ac_find_includes"
28865 fi
28866 fi
28867
28868 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28869 fi
28870
28871 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28872 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28873echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28874if test "${ac_cv_header_GL_gl_h+set}" = set; then
28875 echo $ECHO_N "(cached) $ECHO_C" >&6
28876fi
28877echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28878echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28879else
28880 # Is the header compilable?
28881echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28882echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28883cat >conftest.$ac_ext <<_ACEOF
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
28889$ac_includes_default
28890#include <GL/gl.h>
28891_ACEOF
28892rm -f conftest.$ac_objext
28893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28894 (eval $ac_compile) 2>conftest.er1
a848cd7e 28895 ac_status=$?
ac1cb8d3
VS
28896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
a848cd7e
SC
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
9dd0f6c2 28901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; } &&
28907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28910 ac_status=$?
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_header_compiler=yes
28914else
28915 echo "$as_me: failed program was:" >&5
28916sed 's/^/| /' conftest.$ac_ext >&5
28917
28918ac_header_compiler=no
28919fi
ac1cb8d3 28920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922echo "${ECHO_T}$ac_header_compiler" >&6
28923
28924# Is the header present?
28925echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28926echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28927cat >conftest.$ac_ext <<_ACEOF
28928/* confdefs.h. */
28929_ACEOF
28930cat confdefs.h >>conftest.$ac_ext
28931cat >>conftest.$ac_ext <<_ACEOF
28932/* end confdefs.h. */
28933#include <GL/gl.h>
28934_ACEOF
28935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28937 ac_status=$?
28938 grep -v '^ *+' conftest.er1 >conftest.err
28939 rm -f conftest.er1
28940 cat conftest.err >&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); } >/dev/null; then
28943 if test -s conftest.err; then
28944 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28946 else
28947 ac_cpp_err=
28948 fi
28949else
28950 ac_cpp_err=yes
28951fi
28952if test -z "$ac_cpp_err"; then
28953 ac_header_preproc=yes
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 ac_header_preproc=no
28959fi
28960rm -f conftest.err conftest.$ac_ext
28961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28962echo "${ECHO_T}$ac_header_preproc" >&6
28963
28964# So? What about this header?
ac1cb8d3
VS
28965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28966 yes:no: )
a848cd7e
SC
28967 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28968echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28969 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28970echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28971 ac_header_preproc=yes
a848cd7e 28972 ;;
ac1cb8d3 28973 no:yes:* )
a848cd7e
SC
28974 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28975echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28976 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28977echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28979echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28981echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28982 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28983echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28984 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28985echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28986 (
28987 cat <<\_ASBOX
ac1cb8d3
VS
28988## ----------------------------------------- ##
28989## Report this to wx-dev@lists.wxwidgets.org ##
28990## ----------------------------------------- ##
a848cd7e
SC
28991_ASBOX
28992 ) |
28993 sed "s/^/$as_me: WARNING: /" >&2
28994 ;;
28995esac
28996echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28997echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28998if test "${ac_cv_header_GL_gl_h+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29000else
29001 ac_cv_header_GL_gl_h=$ac_header_preproc
29002fi
29003echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29004echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29005
29006fi
29007if test $ac_cv_header_GL_gl_h = yes; then
29008
29009 found_gl=0
29010
29011 echo "$as_me:$LINENO: checking for -lGL" >&5
29012echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29013
29014ac_find_libraries=
29015for ac_dir in $SEARCH_LIB /usr/lib;
29016 do
29017 for ac_extension in a so sl dylib; do
29018 if test -f "$ac_dir/libGL.$ac_extension"; then
29019 ac_find_libraries=$ac_dir
29020 break 2
29021 fi
29022 done
29023 done
29024
29025 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29026 echo "$as_me:$LINENO: result: yes" >&5
29027echo "${ECHO_T}yes" >&6
29028
a848cd7e
SC
29029
29030 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29031 result=$?
29032 if test $result = 0; then
29033 ac_path_to_link=""
29034 else
29035 ac_path_to_link=" -L$ac_find_libraries"
29036 fi
29037
29038 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29039 LDFLAGS_GL="$ac_path_to_link"
29040 fi
29041
69120ee4
VZ
29042 echo "$as_me:$LINENO: checking for -lGLU" >&5
29043echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29044
29045ac_find_libraries=
29046for ac_dir in $SEARCH_LIB /usr/lib;
29047 do
29048 for ac_extension in a so sl dylib; do
29049 if test -f "$ac_dir/libGLU.$ac_extension"; then
29050 ac_find_libraries=$ac_dir
29051 break 2
29052 fi
29053 done
29054 done
29055
29056 if test "$ac_find_libraries" != "" ; then
29057
29058 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29059 result=$?
29060 if test $result = 0; then
29061 ac_path_to_link=""
29062 else
29063 ac_path_to_link=" -L$ac_find_libraries"
29064 fi
29065
29066 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29067 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29068 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29069 fi
29070
29071 found_gl=1
29072 OPENGL_LIBS="-lGL -lGLU"
29073 echo "$as_me:$LINENO: result: yes" >&5
29074echo "${ECHO_T}yes" >&6
69120ee4
VZ
29075 else
29076 echo "$as_me:$LINENO: result: no" >&5
29077echo "${ECHO_T}no" >&6
a848cd7e 29078 fi
69120ee4
VZ
29079 else
29080 echo "$as_me:$LINENO: result: no" >&5
29081echo "${ECHO_T}no" >&6
a848cd7e
SC
29082 fi
29083
29084 if test "$found_gl" != 1; then
a848cd7e
SC
29085 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29086echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29087
29088ac_find_libraries=
29089for ac_dir in $SEARCH_LIB /usr/lib;
29090 do
29091 for ac_extension in a so sl dylib; do
29092 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29093 ac_find_libraries=$ac_dir
29094 break 2
29095 fi
29096 done
29097 done
29098
29099 if test "$ac_find_libraries" != "" ; then
29100
29101 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29102 result=$?
29103 if test $result = 0; then
29104 ac_path_to_link=""
29105 else
29106 ac_path_to_link=" -L$ac_find_libraries"
29107 fi
29108
29109 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29110 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29111 echo "$as_me:$LINENO: result: yes" >&5
29112echo "${ECHO_T}yes" >&6
29113 else
29114 echo "$as_me:$LINENO: result: no" >&5
29115echo "${ECHO_T}no" >&6
29116 fi
29117 fi
29118
29119fi
29120
29121
29122
29123 if test "x$OPENGL_LIBS" = "x"; then
29124 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29125echo "$as_me: error: OpenGL libraries not available" >&2;}
29126 { (exit 1); exit 1; }; }
29127 fi
29128 fi
29129
29130 if test "$wxUSE_OPENGL" = "yes"; then
29131 USE_OPENGL=1
29132 cat >>confdefs.h <<\_ACEOF
29133#define wxUSE_OPENGL 1
29134_ACEOF
29135
29136 cat >>confdefs.h <<\_ACEOF
29137#define wxUSE_GLCANVAS 1
29138_ACEOF
29139
29140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29141 fi
29142fi
29143
a848cd7e
SC
29144
29145if test -n "$TOOLKIT" ; then
29146 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29147fi
29148
a848cd7e
SC
29149
29150
29151if test "$wxUSE_SHARED" = "yes"; then
29152 case "${host}" in
29153 *-pc-msdosdjgpp )
29154 wxUSE_SHARED=no
29155 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29156echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29157 ;;
29158 esac
29159fi
29160
a848cd7e 29161if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29162
29163
29164 found_versioning=no
29165
29166
29167 if test $found_versioning = no ; then
29168 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29169echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29170if test "${wx_cv_version_script+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172else
29173
29174 echo "VER_1 { *; };" >conftest.sym
29175 echo "int main() { return 0; }" >conftest.cpp
29176
29177 if { ac_try='
29178 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29179 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } ; then
29185 if test -s conftest.stderr ; then
29186 wx_cv_version_script=no
29187 else
29188 wx_cv_version_script=yes
29189 fi
29190 else
29191 wx_cv_version_script=no
29192 fi
29193 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29194
29195fi
29196echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29197echo "${ECHO_T}$wx_cv_version_script" >&6
29198 if test $wx_cv_version_script = yes ; then
29199 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29200 fi
29201 fi
29202
29203
29204 case "${host}" in
29205 *-*-linux* | *-*-gnu* )
29206 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29207 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29208 ;;
29209
29210 *-*-solaris2* )
29211 if test "$GCC" = yes ; then
29212 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29213
29214 saveLdflags="$LDFLAGS"
29215 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29216 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29217echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29218 cat >conftest.$ac_ext <<_ACEOF
29219/* confdefs.h. */
29220_ACEOF
29221cat confdefs.h >>conftest.$ac_ext
29222cat >>conftest.$ac_ext <<_ACEOF
29223/* end confdefs.h. */
29224
29225int
29226main ()
29227{
29228
29229 ;
29230 return 0;
29231}
29232_ACEOF
29233rm -f conftest.$ac_objext conftest$ac_exeext
29234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29235 (eval $ac_link) 2>conftest.er1
a848cd7e 29236 ac_status=$?
ac1cb8d3
VS
29237 grep -v '^ *+' conftest.er1 >conftest.err
29238 rm -f conftest.er1
29239 cat conftest.err >&5
a848cd7e
SC
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); } &&
9dd0f6c2 29242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29254
29255 echo "$as_me:$LINENO: result: yes" >&5
29256echo "${ECHO_T}yes" >&6
29257 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29258 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29259
29260else
29261 echo "$as_me: failed program was:" >&5
29262sed 's/^/| /' conftest.$ac_ext >&5
29263
29264
29265 echo "$as_me:$LINENO: result: no" >&5
29266echo "${ECHO_T}no" >&6
29267 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29268echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29269 LDFLAGS="$saveLdflags -Wl,-R,/"
29270 cat >conftest.$ac_ext <<_ACEOF
29271/* confdefs.h. */
29272_ACEOF
29273cat confdefs.h >>conftest.$ac_ext
29274cat >>conftest.$ac_ext <<_ACEOF
29275/* end confdefs.h. */
29276
29277int
29278main ()
29279{
29280
29281 ;
29282 return 0;
29283}
29284_ACEOF
29285rm -f conftest.$ac_objext conftest$ac_exeext
29286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29287 (eval $ac_link) 2>conftest.er1
a848cd7e 29288 ac_status=$?
ac1cb8d3
VS
29289 grep -v '^ *+' conftest.er1 >conftest.err
29290 rm -f conftest.er1
29291 cat conftest.err >&5
a848cd7e
SC
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } &&
9dd0f6c2 29294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296 (eval $ac_try) 2>&5
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; }; then
29306
ffa0583f 29307 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29308echo "${ECHO_T}yes" >&6
ffa0583f
RL
29309 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29310 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29311
a848cd7e
SC
29312else
29313 echo "$as_me: failed program was:" >&5
29314sed 's/^/| /' conftest.$ac_ext >&5
29315
29316
29317 echo "$as_me:$LINENO: result: no" >&5
29318echo "${ECHO_T}no" >&6
29319
29320fi
ac1cb8d3
VS
29321rm -f conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29323
29324fi
ac1cb8d3
VS
29325rm -f conftest.err conftest.$ac_objext \
29326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29327 LDFLAGS="$saveLdflags"
29328 else
a848cd7e 29329 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29330 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29331 fi
29332 ;;
29333
29334 powerpc-*-darwin* )
29335 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29336 cat <<EOF >change-install-names
29337#!/bin/sh
29338libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29339inst_cmd="install_name_tool "
29340for i in \${libnames} ; do
29341 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29342done
29343\${inst_cmd} \${3}
29344EOF
29345 chmod +x change-install-names
29346 ;;
29347
29348 *-*-cygwin* | *-*-mingw32* )
29349 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29350 ;;
29351
81f90336
MW
29352 *-*-hpux* )
29353 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29354 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29355 ;;
29356
a848cd7e 29357 esac
ceec2216 29358
ffa0583f
RL
29359 if test $wxUSE_RPATH = "no"; then
29360 SAMPLES_RPATH_FLAG=''
29361 SAMPLES_RPATH_POSTLINK=''
29362 WXCONFIG_RPATH=''
29363 fi
29364
29365 SHARED=1
29366
29367else
29368
ceec2216
RL
29369 config_linkage_component="-static"
29370 SHARED=0
ffa0583f 29371
ceec2216 29372fi
a848cd7e 29373
a848cd7e 29374
ceec2216
RL
29375UNICODE=0
29376lib_unicode_suffix=
29377WX_CHARTYPE="ansi"
29378if test "$wxUSE_UNICODE" = "yes"; then
29379 lib_unicode_suffix=u
29380 WX_CHARTYPE="unicode"
29381 UNICODE=1
a848cd7e
SC
29382fi
29383
ceec2216
RL
29384lib_debug_suffix=
29385WX_DEBUGTYPE="release"
29386DEBUG_FLAG=0
29387if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29388 lib_debug_suffix=d
29389 WX_DEBUGTYPE="debug"
29390 DEBUG_FLAG=1
29391fi
a848cd7e 29392
ceec2216
RL
29393WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29394WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29395
ceec2216
RL
29396DEBUG_INFO=0
29397if test "$wxUSE_DEBUG_INFO" = "yes"; then
29398 DEBUG_INFO=1
29399fi
a848cd7e 29400
ceec2216 29401WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29402
ceec2216 29403TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29404
ceec2216 29405TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29406
ceec2216
RL
29407if test "$cross_compiling" = "yes"; then
29408 HOST_SUFFIX="-$host_alias"
29409 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29410 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29411fi
29412
dd21ced8 29413WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29414WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29415
29416
29417
1d1af5ea
DE
29418if test "$wxUSE_COCOA" = 1; then
29419
29420
29421 ac_ext=c
29422ac_cpp='$CPP $CPPFLAGS'
29423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427ac_ext=m
29428
29429 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29430echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29431 cat >conftest.$ac_ext <<_ACEOF
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
29437#include <AppKit/NSEvent.h>
29438#include <CoreFoundation/CoreFoundation.h>
29439
29440int
29441main ()
29442{
29443
29444 ;
29445 return 0;
29446}
29447_ACEOF
29448rm -f conftest.$ac_objext
29449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450 (eval $ac_compile) 2>conftest.er1
29451 ac_status=$?
29452 grep -v '^ *+' conftest.er1 >conftest.err
29453 rm -f conftest.er1
29454 cat conftest.err >&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); } &&
9dd0f6c2 29457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29460 ac_status=$?
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 echo "$as_me:$LINENO: result: no" >&5
29470echo "${ECHO_T}no" >&6
29471else
29472 echo "$as_me: failed program was:" >&5
29473sed 's/^/| /' conftest.$ac_ext >&5
29474
29475echo "$as_me:$LINENO: result: yes" >&5
29476echo "${ECHO_T}yes" >&6
29477 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29478echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29479 cat >conftest.$ac_ext <<_ACEOF
29480/* confdefs.h. */
29481_ACEOF
29482cat confdefs.h >>conftest.$ac_ext
29483cat >>conftest.$ac_ext <<_ACEOF
29484/* end confdefs.h. */
29485#define __Point__ 1
29486#include <AppKit/NSEvent.h>
29487#include <CoreFoundation/CoreFoundation.h>
29488
29489int
29490main ()
29491{
29492
29493 ;
29494 return 0;
29495}
29496_ACEOF
29497rm -f conftest.$ac_objext
29498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499 (eval $ac_compile) 2>conftest.er1
29500 ac_status=$?
29501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
9dd0f6c2 29506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; } &&
29512 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29518 echo "$as_me:$LINENO: result: yes" >&5
29519echo "${ECHO_T}yes" >&6
29520 cat >>confdefs.h <<\_ACEOF
29521#define __Point__ 1
29522_ACEOF
29523
29524
29525else
29526 echo "$as_me: failed program was:" >&5
29527sed 's/^/| /' conftest.$ac_ext >&5
29528
29529{ { echo "$as_me:$LINENO: error: no
29530See \`config.log' for more details." >&5
29531echo "$as_me: error: no
29532See \`config.log' for more details." >&2;}
29533 { (exit 1); exit 1; }; }
29534
29535fi
29536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29537
29538fi
29539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29540 ac_ext=c
29541ac_cpp='$CPP $CPPFLAGS'
29542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29544ac_compiler_gnu=$ac_cv_c_compiler_gnu
29545
29546fi
29547
a848cd7e 29548if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29549 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29550 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29551
a848cd7e 29552 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29553
29554 # Extract the first word of "Rez", so it can be a program name with args.
29555set dummy Rez; ac_word=$2
29556echo "$as_me:$LINENO: checking for $ac_word" >&5
29557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29558if test "${ac_cv_prog_RESCOMP+set}" = set; then
29559 echo $ECHO_N "(cached) $ECHO_C" >&6
29560else
29561 if test -n "$RESCOMP"; then
29562 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29563else
29564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29565for as_dir in $PATH
29566do
29567 IFS=$as_save_IFS
29568 test -z "$as_dir" && as_dir=.
29569 for ac_exec_ext in '' $ac_executable_extensions; do
29570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29571 ac_cv_prog_RESCOMP="Rez"
29572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29573 break 2
29574 fi
29575done
29576done
29577
29578 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29579fi
29580fi
29581RESCOMP=$ac_cv_prog_RESCOMP
29582if test -n "$RESCOMP"; then
29583 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29584echo "${ECHO_T}$RESCOMP" >&6
29585else
29586 echo "$as_me:$LINENO: result: no" >&5
29587echo "${ECHO_T}no" >&6
29588fi
29589
29590 # Extract the first word of "DeRez", so it can be a program name with args.
29591set dummy DeRez; ac_word=$2
29592echo "$as_me:$LINENO: checking for $ac_word" >&5
29593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29594if test "${ac_cv_prog_DEREZ+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29596else
29597 if test -n "$DEREZ"; then
29598 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29599else
29600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29601for as_dir in $PATH
29602do
29603 IFS=$as_save_IFS
29604 test -z "$as_dir" && as_dir=.
29605 for ac_exec_ext in '' $ac_executable_extensions; do
29606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29607 ac_cv_prog_DEREZ="DeRez"
29608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29609 break 2
29610 fi
29611done
29612done
29613
29614 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29615fi
29616fi
29617DEREZ=$ac_cv_prog_DEREZ
29618if test -n "$DEREZ"; then
29619 echo "$as_me:$LINENO: result: $DEREZ" >&5
29620echo "${ECHO_T}$DEREZ" >&6
29621else
29622 echo "$as_me:$LINENO: result: no" >&5
29623echo "${ECHO_T}no" >&6
29624fi
29625
29626 # Extract the first word of "SetFile", so it can be a program name with args.
29627set dummy SetFile; ac_word=$2
29628echo "$as_me:$LINENO: checking for $ac_word" >&5
29629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29630if test "${ac_cv_prog_SETFILE+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29632else
29633 if test -n "$SETFILE"; then
29634 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29635else
29636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637for as_dir in $PATH
29638do
29639 IFS=$as_save_IFS
29640 test -z "$as_dir" && as_dir=.
29641 for ac_exec_ext in '' $ac_executable_extensions; do
29642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29643 ac_cv_prog_SETFILE="SetFile"
29644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29645 break 2
29646 fi
29647done
29648done
29649
29650 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29651fi
29652fi
29653SETFILE=$ac_cv_prog_SETFILE
29654if test -n "$SETFILE"; then
29655 echo "$as_me:$LINENO: result: $SETFILE" >&5
29656echo "${ECHO_T}$SETFILE" >&6
29657else
29658 echo "$as_me:$LINENO: result: no" >&5
29659echo "${ECHO_T}no" >&6
29660fi
29661
29662
29663 MACSETFILE="\$(SETFILE)"
29664
29665 if test "$wxUSE_MAC" = 1; then
29666 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29667
29668 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29669 else
29670 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29671 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29672 fi
29673else
ffa0583f
RL
29674 MACSETFILE="@true"
29675 MACRESWXCONFIG="@true"
a848cd7e
SC
29676
29677 if test "$wxUSE_PM" = 1; then
29678 MACRESCOMP="emxbind -ep"
29679 else
ffa0583f 29680 MACRESCOMP="@true"
a848cd7e
SC
29681 fi
29682fi
29683
29684
29685
29686echo "$as_me:$LINENO: checking for mode_t" >&5
29687echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29688if test "${ac_cv_type_mode_t+set}" = set; then
29689 echo $ECHO_N "(cached) $ECHO_C" >&6
29690else
29691 cat >conftest.$ac_ext <<_ACEOF
29692/* confdefs.h. */
29693_ACEOF
29694cat confdefs.h >>conftest.$ac_ext
29695cat >>conftest.$ac_ext <<_ACEOF
29696/* end confdefs.h. */
29697$ac_includes_default
29698int
29699main ()
29700{
29701if ((mode_t *) 0)
29702 return 0;
29703if (sizeof (mode_t))
29704 return 0;
29705 ;
29706 return 0;
29707}
29708_ACEOF
29709rm -f conftest.$ac_objext
29710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29711 (eval $ac_compile) 2>conftest.er1
a848cd7e 29712 ac_status=$?
ac1cb8d3
VS
29713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
a848cd7e
SC
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } &&
9dd0f6c2 29718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 ac_cv_type_mode_t=yes
29731else
29732 echo "$as_me: failed program was:" >&5
29733sed 's/^/| /' conftest.$ac_ext >&5
29734
29735ac_cv_type_mode_t=no
29736fi
ac1cb8d3 29737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29738fi
29739echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29740echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29741if test $ac_cv_type_mode_t = yes; then
29742 :
29743else
29744
29745cat >>confdefs.h <<_ACEOF
29746#define mode_t int
29747_ACEOF
29748
29749fi
29750
29751echo "$as_me:$LINENO: checking for off_t" >&5
29752echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29753if test "${ac_cv_type_off_t+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29755else
29756 cat >conftest.$ac_ext <<_ACEOF
29757/* confdefs.h. */
29758_ACEOF
29759cat confdefs.h >>conftest.$ac_ext
29760cat >>conftest.$ac_ext <<_ACEOF
29761/* end confdefs.h. */
29762$ac_includes_default
29763int
29764main ()
29765{
29766if ((off_t *) 0)
29767 return 0;
29768if (sizeof (off_t))
29769 return 0;
29770 ;
29771 return 0;
29772}
29773_ACEOF
29774rm -f conftest.$ac_objext
29775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29776 (eval $ac_compile) 2>conftest.er1
a848cd7e 29777 ac_status=$?
ac1cb8d3
VS
29778 grep -v '^ *+' conftest.er1 >conftest.err
29779 rm -f conftest.er1
29780 cat conftest.err >&5
a848cd7e
SC
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
9dd0f6c2 29783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29786 ac_status=$?
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; } &&
29789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; }; then
29795 ac_cv_type_off_t=yes
29796else
29797 echo "$as_me: failed program was:" >&5
29798sed 's/^/| /' conftest.$ac_ext >&5
29799
29800ac_cv_type_off_t=no
29801fi
ac1cb8d3 29802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29803fi
29804echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29805echo "${ECHO_T}$ac_cv_type_off_t" >&6
29806if test $ac_cv_type_off_t = yes; then
29807 :
29808else
29809
29810cat >>confdefs.h <<_ACEOF
29811#define off_t long
29812_ACEOF
29813
29814fi
29815
29816echo "$as_me:$LINENO: checking for pid_t" >&5
29817echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29818if test "${ac_cv_type_pid_t+set}" = set; then
29819 echo $ECHO_N "(cached) $ECHO_C" >&6
29820else
29821 cat >conftest.$ac_ext <<_ACEOF
29822/* confdefs.h. */
29823_ACEOF
29824cat confdefs.h >>conftest.$ac_ext
29825cat >>conftest.$ac_ext <<_ACEOF
29826/* end confdefs.h. */
29827$ac_includes_default
29828int
29829main ()
29830{
29831if ((pid_t *) 0)
29832 return 0;
29833if (sizeof (pid_t))
29834 return 0;
29835 ;
29836 return 0;
29837}
29838_ACEOF
29839rm -f conftest.$ac_objext
29840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29841 (eval $ac_compile) 2>conftest.er1
a848cd7e 29842 ac_status=$?
ac1cb8d3
VS
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
a848cd7e
SC
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } &&
9dd0f6c2 29848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29851 ac_status=$?
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; } &&
29854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 ac_cv_type_pid_t=yes
29861else
29862 echo "$as_me: failed program was:" >&5
29863sed 's/^/| /' conftest.$ac_ext >&5
29864
29865ac_cv_type_pid_t=no
29866fi
ac1cb8d3 29867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29868fi
29869echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29870echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29871if test $ac_cv_type_pid_t = yes; then
29872 :
29873else
29874
29875cat >>confdefs.h <<_ACEOF
29876#define pid_t int
29877_ACEOF
29878
29879fi
29880
29881echo "$as_me:$LINENO: checking for size_t" >&5
29882echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29883if test "${ac_cv_type_size_t+set}" = set; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29885else
29886 cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892$ac_includes_default
29893int
29894main ()
29895{
29896if ((size_t *) 0)
29897 return 0;
29898if (sizeof (size_t))
29899 return 0;
29900 ;
29901 return 0;
29902}
29903_ACEOF
29904rm -f conftest.$ac_objext
29905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29906 (eval $ac_compile) 2>conftest.er1
a848cd7e 29907 ac_status=$?
ac1cb8d3
VS
29908 grep -v '^ *+' conftest.er1 >conftest.err
29909 rm -f conftest.er1
29910 cat conftest.err >&5
a848cd7e
SC
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); } &&
9dd0f6c2 29913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; }; then
29925 ac_cv_type_size_t=yes
29926else
29927 echo "$as_me: failed program was:" >&5
29928sed 's/^/| /' conftest.$ac_ext >&5
29929
29930ac_cv_type_size_t=no
29931fi
ac1cb8d3 29932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29933fi
29934echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29935echo "${ECHO_T}$ac_cv_type_size_t" >&6
29936if test $ac_cv_type_size_t = yes; then
29937 :
29938else
29939
29940cat >>confdefs.h <<_ACEOF
29941#define size_t unsigned
29942_ACEOF
29943
29944fi
29945
29946echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29947echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29948if test "${ac_cv_type_uid_t+set}" = set; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950else
29951 cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957#include <sys/types.h>
29958
29959_ACEOF
29960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29961 $EGREP "uid_t" >/dev/null 2>&1; then
29962 ac_cv_type_uid_t=yes
29963else
29964 ac_cv_type_uid_t=no
29965fi
29966rm -f conftest*
29967
29968fi
29969echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29970echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29971if test $ac_cv_type_uid_t = no; then
29972
29973cat >>confdefs.h <<\_ACEOF
29974#define uid_t int
29975_ACEOF
29976
29977
29978cat >>confdefs.h <<\_ACEOF
29979#define gid_t int
29980_ACEOF
29981
29982fi
29983
29984
d51253e8
RL
29985echo "$as_me:$LINENO: checking for ssize_t" >&5
29986echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29987if test "${ac_cv_type_ssize_t+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29989else
29990 cat >conftest.$ac_ext <<_ACEOF
29991/* confdefs.h. */
29992_ACEOF
29993cat confdefs.h >>conftest.$ac_ext
29994cat >>conftest.$ac_ext <<_ACEOF
29995/* end confdefs.h. */
29996$ac_includes_default
29997int
29998main ()
29999{
30000if ((ssize_t *) 0)
30001 return 0;
30002if (sizeof (ssize_t))
30003 return 0;
30004 ;
30005 return 0;
30006}
30007_ACEOF
30008rm -f conftest.$ac_objext
30009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010 (eval $ac_compile) 2>conftest.er1
30011 ac_status=$?
30012 grep -v '^ *+' conftest.er1 >conftest.err
30013 rm -f conftest.er1
30014 cat conftest.err >&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
9dd0f6c2 30017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; } &&
30023 { ac_try='test -s conftest.$ac_objext'
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 ac_cv_type_ssize_t=yes
30030else
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
30034ac_cv_type_ssize_t=no
30035fi
30036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30037fi
30038echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30039echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30040if test $ac_cv_type_ssize_t = yes; then
30041
30042cat >>confdefs.h <<_ACEOF
30043#define HAVE_SSIZE_T 1
30044_ACEOF
30045
30046
30047fi
30048
30049
a848cd7e
SC
30050
30051
30052ac_ext=cc
30053ac_cpp='$CXXCPP $CPPFLAGS'
30054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30057
30058echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30059echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30060if test "${wx_cv_size_t_is_uint+set}" = set; then
30061 echo $ECHO_N "(cached) $ECHO_C" >&6
30062else
30063
30064 cat >conftest.$ac_ext <<_ACEOF
30065/* confdefs.h. */
30066_ACEOF
30067cat confdefs.h >>conftest.$ac_ext
30068cat >>conftest.$ac_ext <<_ACEOF
30069/* end confdefs.h. */
30070#include <stddef.h>
30071int
30072main ()
30073{
30074
30075 return 0; }
30076
30077 struct Foo { void foo(size_t); void foo(unsigned int); };
30078
30079 int bar() {
30080
30081 ;
30082 return 0;
30083}
30084_ACEOF
30085rm -f conftest.$ac_objext
30086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30087 (eval $ac_compile) 2>conftest.er1
a848cd7e 30088 ac_status=$?
ac1cb8d3
VS
30089 grep -v '^ *+' conftest.er1 >conftest.err
30090 rm -f conftest.er1
30091 cat conftest.err >&5
a848cd7e
SC
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); } &&
9dd0f6c2 30094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102 (eval $ac_try) 2>&5
30103 ac_status=$?
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); }; }; then
30106 wx_cv_size_t_is_uint=no
30107else
30108 echo "$as_me: failed program was:" >&5
30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111wx_cv_size_t_is_uint=yes
30112
30113fi
ac1cb8d3 30114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30115
30116
30117fi
30118echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30119echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30120
30121if test "$wx_cv_size_t_is_uint" = "yes"; then
30122 cat >>confdefs.h <<\_ACEOF
30123#define wxSIZE_T_IS_UINT 1
30124_ACEOF
30125
30126else
30127 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30128echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30129if test "${wx_cv_size_t_is_ulong+set}" = set; then
30130 echo $ECHO_N "(cached) $ECHO_C" >&6
30131else
30132 cat >conftest.$ac_ext <<_ACEOF
30133/* confdefs.h. */
30134_ACEOF
30135cat confdefs.h >>conftest.$ac_ext
30136cat >>conftest.$ac_ext <<_ACEOF
30137/* end confdefs.h. */
30138#include <stddef.h>
30139int
30140main ()
30141{
30142
30143 return 0; }
30144
30145 struct Foo { void foo(size_t); void foo(unsigned long); };
30146
30147 int bar() {
30148
30149 ;
30150 return 0;
30151}
30152_ACEOF
30153rm -f conftest.$ac_objext
30154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30155 (eval $ac_compile) 2>conftest.er1
a848cd7e 30156 ac_status=$?
ac1cb8d3
VS
30157 grep -v '^ *+' conftest.er1 >conftest.err
30158 rm -f conftest.er1
30159 cat conftest.err >&5
a848cd7e
SC
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); } &&
9dd0f6c2 30162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164 (eval $ac_try) 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; } &&
30168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170 (eval $ac_try) 2>&5
30171 ac_status=$?
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; }; then
30174 wx_cv_size_t_is_ulong=no
30175else
30176 echo "$as_me: failed program was:" >&5
30177sed 's/^/| /' conftest.$ac_ext >&5
30178
30179wx_cv_size_t_is_ulong=yes
30180
30181fi
ac1cb8d3 30182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30183
30184fi
30185echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30186echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30187
30188 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30189 cat >>confdefs.h <<\_ACEOF
30190#define wxSIZE_T_IS_ULONG 1
30191_ACEOF
30192
30193 fi
30194fi
30195
30196ac_ext=c
30197ac_cpp='$CPP $CPPFLAGS'
30198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30200ac_compiler_gnu=$ac_cv_c_compiler_gnu
30201
30202
30203
30204echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30205echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30206if test "${wx_cv_struct_pw_gecos+set}" = set; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30208else
30209
30210 cat >conftest.$ac_ext <<_ACEOF
30211/* confdefs.h. */
30212_ACEOF
30213cat confdefs.h >>conftest.$ac_ext
30214cat >>conftest.$ac_ext <<_ACEOF
30215/* end confdefs.h. */
30216#include <pwd.h>
30217int
30218main ()
30219{
30220
30221 char *p;
30222 struct passwd *pw;
30223 p = pw->pw_gecos;
30224
30225 ;
30226 return 0;
30227}
30228_ACEOF
30229rm -f conftest.$ac_objext
30230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30231 (eval $ac_compile) 2>conftest.er1
a848cd7e 30232 ac_status=$?
ac1cb8d3
VS
30233 grep -v '^ *+' conftest.er1 >conftest.err
30234 rm -f conftest.er1
30235 cat conftest.err >&5
a848cd7e
SC
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } &&
9dd0f6c2 30238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; } &&
30244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; }; then
30250
30251 wx_cv_struct_pw_gecos=yes
30252
30253else
30254 echo "$as_me: failed program was:" >&5
30255sed 's/^/| /' conftest.$ac_ext >&5
30256
30257
30258 wx_cv_struct_pw_gecos=no
30259
30260
30261fi
ac1cb8d3 30262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30263
30264
30265fi
30266echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30267echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30268
30269if test "$wx_cv_struct_pw_gecos" = "yes"; then
30270 cat >>confdefs.h <<\_ACEOF
30271#define HAVE_PW_GECOS 1
30272_ACEOF
30273
30274fi
30275
30276
238ecede 30277if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30278 cat >>confdefs.h <<\_ACEOF
30279#define wxUSE_WCHAR_T 1
30280_ACEOF
30281
30282
30283 WCSLEN_FOUND=0
30284 WCHAR_LINK=
30285
30286for ac_func in wcslen
30287do
30288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30289echo "$as_me:$LINENO: checking for $ac_func" >&5
30290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30291if eval "test \"\${$as_ac_var+set}\" = set"; then
30292 echo $ECHO_N "(cached) $ECHO_C" >&6
30293else
30294 cat >conftest.$ac_ext <<_ACEOF
30295/* confdefs.h. */
30296_ACEOF
30297cat confdefs.h >>conftest.$ac_ext
30298cat >>conftest.$ac_ext <<_ACEOF
30299/* end confdefs.h. */
ac1cb8d3
VS
30300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30302#define $ac_func innocuous_$ac_func
30303
a848cd7e
SC
30304/* System header to define __stub macros and hopefully few prototypes,
30305 which can conflict with char $ac_func (); below.
30306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30307 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30308
a848cd7e
SC
30309#ifdef __STDC__
30310# include <limits.h>
30311#else
30312# include <assert.h>
30313#endif
ac1cb8d3
VS
30314
30315#undef $ac_func
30316
a848cd7e
SC
30317/* Override any gcc2 internal prototype to avoid an error. */
30318#ifdef __cplusplus
30319extern "C"
30320{
30321#endif
30322/* We use char because int might match the return type of a gcc2
30323 builtin and then its argument prototype would still apply. */
30324char $ac_func ();
30325/* The GNU C library defines this for functions which it implements
30326 to always fail with ENOSYS. Some functions are actually named
30327 something starting with __ and the normal name is an alias. */
30328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30329choke me
30330#else
30331char (*f) () = $ac_func;
30332#endif
30333#ifdef __cplusplus
30334}
30335#endif
30336
30337int
30338main ()
30339{
30340return f != $ac_func;
30341 ;
30342 return 0;
30343}
30344_ACEOF
30345rm -f conftest.$ac_objext conftest$ac_exeext
30346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30347 (eval $ac_link) 2>conftest.er1
a848cd7e 30348 ac_status=$?
ac1cb8d3
VS
30349 grep -v '^ *+' conftest.er1 >conftest.err
30350 rm -f conftest.er1
30351 cat conftest.err >&5
a848cd7e
SC
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); } &&
9dd0f6c2 30354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; } &&
30360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; }; then
30366 eval "$as_ac_var=yes"
30367else
30368 echo "$as_me: failed program was:" >&5
30369sed 's/^/| /' conftest.$ac_ext >&5
30370
30371eval "$as_ac_var=no"
30372fi
ac1cb8d3
VS
30373rm -f conftest.err conftest.$ac_objext \
30374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30375fi
30376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30378if test `eval echo '${'$as_ac_var'}'` = yes; then
30379 cat >>confdefs.h <<_ACEOF
30380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30381_ACEOF
30382 WCSLEN_FOUND=1
30383fi
30384done
30385
30386
30387 if test "$WCSLEN_FOUND" = 0; then
30388 if test "$TOOLKIT" = "MSW"; then
30389 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30390echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30391if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30392 echo $ECHO_N "(cached) $ECHO_C" >&6
30393else
30394 ac_check_lib_save_LIBS=$LIBS
30395LIBS="-lmsvcrt $LIBS"
30396cat >conftest.$ac_ext <<_ACEOF
30397/* confdefs.h. */
30398_ACEOF
30399cat confdefs.h >>conftest.$ac_ext
30400cat >>conftest.$ac_ext <<_ACEOF
30401/* end confdefs.h. */
30402
30403/* Override any gcc2 internal prototype to avoid an error. */
30404#ifdef __cplusplus
30405extern "C"
30406#endif
30407/* We use char because int might match the return type of a gcc2
30408 builtin and then its argument prototype would still apply. */
30409char wcslen ();
30410int
30411main ()
30412{
30413wcslen ();
30414 ;
30415 return 0;
30416}
30417_ACEOF
30418rm -f conftest.$ac_objext conftest$ac_exeext
30419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30420 (eval $ac_link) 2>conftest.er1
a848cd7e 30421 ac_status=$?
ac1cb8d3
VS
30422 grep -v '^ *+' conftest.er1 >conftest.err
30423 rm -f conftest.er1
30424 cat conftest.err >&5
a848cd7e
SC
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
9dd0f6c2 30427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; } &&
30433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30436 ac_status=$?
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 ac_cv_lib_msvcrt_wcslen=yes
30440else
30441 echo "$as_me: failed program was:" >&5
30442sed 's/^/| /' conftest.$ac_ext >&5
30443
30444ac_cv_lib_msvcrt_wcslen=no
30445fi
ac1cb8d3
VS
30446rm -f conftest.err conftest.$ac_objext \
30447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30448LIBS=$ac_check_lib_save_LIBS
30449fi
30450echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30451echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30452if test $ac_cv_lib_msvcrt_wcslen = yes; then
30453 WCHAR_OK=1
30454fi
30455
30456 else
30457 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30458echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30459if test "${ac_cv_lib_w_wcslen+set}" = set; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30461else
30462 ac_check_lib_save_LIBS=$LIBS
30463LIBS="-lw $LIBS"
30464cat >conftest.$ac_ext <<_ACEOF
30465/* confdefs.h. */
30466_ACEOF
30467cat confdefs.h >>conftest.$ac_ext
30468cat >>conftest.$ac_ext <<_ACEOF
30469/* end confdefs.h. */
30470
30471/* Override any gcc2 internal prototype to avoid an error. */
30472#ifdef __cplusplus
30473extern "C"
30474#endif
30475/* We use char because int might match the return type of a gcc2
30476 builtin and then its argument prototype would still apply. */
30477char wcslen ();
30478int
30479main ()
30480{
30481wcslen ();
30482 ;
30483 return 0;
30484}
30485_ACEOF
30486rm -f conftest.$ac_objext conftest$ac_exeext
30487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30488 (eval $ac_link) 2>conftest.er1
a848cd7e 30489 ac_status=$?
ac1cb8d3
VS
30490 grep -v '^ *+' conftest.er1 >conftest.err
30491 rm -f conftest.er1
30492 cat conftest.err >&5
a848cd7e
SC
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); } &&
9dd0f6c2 30495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497 (eval $ac_try) 2>&5
30498 ac_status=$?
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; } &&
30501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503 (eval $ac_try) 2>&5
30504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30507 ac_cv_lib_w_wcslen=yes
30508else
30509 echo "$as_me: failed program was:" >&5
30510sed 's/^/| /' conftest.$ac_ext >&5
30511
30512ac_cv_lib_w_wcslen=no
30513fi
ac1cb8d3
VS
30514rm -f conftest.err conftest.$ac_objext \
30515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30516LIBS=$ac_check_lib_save_LIBS
30517fi
30518echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30519echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30520if test $ac_cv_lib_w_wcslen = yes; then
30521
30522 WCHAR_LINK=" -lw"
30523 WCSLEN_FOUND=1
30524
30525fi
30526
30527 fi
30528 fi
30529
30530 if test "$WCSLEN_FOUND" = 1; then
30531 cat >>confdefs.h <<\_ACEOF
30532#define HAVE_WCSLEN 1
30533_ACEOF
30534
30535 fi
30536
81f90336 30537 if test "$USE_HPUX" = 1; then
473276a9
VS
30538 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30539 fi
30540
a848cd7e
SC
30541
30542for ac_func in wcsrtombs
30543do
30544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30545echo "$as_me:$LINENO: checking for $ac_func" >&5
30546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30547if eval "test \"\${$as_ac_var+set}\" = set"; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
30549else
30550 cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h. */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h. */
ac1cb8d3
VS
30556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30558#define $ac_func innocuous_$ac_func
30559
a848cd7e
SC
30560/* System header to define __stub macros and hopefully few prototypes,
30561 which can conflict with char $ac_func (); below.
30562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30563 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30564
a848cd7e
SC
30565#ifdef __STDC__
30566# include <limits.h>
30567#else
30568# include <assert.h>
30569#endif
ac1cb8d3
VS
30570
30571#undef $ac_func
30572
a848cd7e
SC
30573/* Override any gcc2 internal prototype to avoid an error. */
30574#ifdef __cplusplus
30575extern "C"
30576{
30577#endif
30578/* We use char because int might match the return type of a gcc2
30579 builtin and then its argument prototype would still apply. */
30580char $ac_func ();
30581/* The GNU C library defines this for functions which it implements
30582 to always fail with ENOSYS. Some functions are actually named
30583 something starting with __ and the normal name is an alias. */
30584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30585choke me
30586#else
30587char (*f) () = $ac_func;
30588#endif
30589#ifdef __cplusplus
30590}
30591#endif
30592
30593int
30594main ()
30595{
30596return f != $ac_func;
30597 ;
30598 return 0;
30599}
30600_ACEOF
30601rm -f conftest.$ac_objext conftest$ac_exeext
30602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30603 (eval $ac_link) 2>conftest.er1
a848cd7e 30604 ac_status=$?
ac1cb8d3
VS
30605 grep -v '^ *+' conftest.er1 >conftest.err
30606 rm -f conftest.er1
30607 cat conftest.err >&5
a848cd7e
SC
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); } &&
9dd0f6c2 30610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30612 (eval $ac_try) 2>&5
30613 ac_status=$?
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; } &&
30616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618 (eval $ac_try) 2>&5
30619 ac_status=$?
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); }; }; then
30622 eval "$as_ac_var=yes"
30623else
30624 echo "$as_me: failed program was:" >&5
30625sed 's/^/| /' conftest.$ac_ext >&5
30626
30627eval "$as_ac_var=no"
30628fi
ac1cb8d3
VS
30629rm -f conftest.err conftest.$ac_objext \
30630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30631fi
30632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30634if test `eval echo '${'$as_ac_var'}'` = yes; then
30635 cat >>confdefs.h <<_ACEOF
30636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30637_ACEOF
30638
30639fi
30640done
30641
30642else
30643 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30644echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30645fi
30646
30647
30648
30649ac_ext=cc
30650ac_cpp='$CXXCPP $CPPFLAGS'
30651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30654
30655
30656
30657for ac_func in vsnprintf
30658do
30659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30660echo "$as_me:$LINENO: checking for $ac_func" >&5
30661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30662if eval "test \"\${$as_ac_var+set}\" = set"; then
30663 echo $ECHO_N "(cached) $ECHO_C" >&6
30664else
30665 cat >conftest.$ac_ext <<_ACEOF
30666/* confdefs.h. */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h. */
ac1cb8d3
VS
30671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30673#define $ac_func innocuous_$ac_func
30674
a848cd7e
SC
30675/* System header to define __stub macros and hopefully few prototypes,
30676 which can conflict with char $ac_func (); below.
30677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30678 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30679
a848cd7e
SC
30680#ifdef __STDC__
30681# include <limits.h>
30682#else
30683# include <assert.h>
30684#endif
ac1cb8d3
VS
30685
30686#undef $ac_func
30687
a848cd7e
SC
30688/* Override any gcc2 internal prototype to avoid an error. */
30689#ifdef __cplusplus
30690extern "C"
30691{
30692#endif
30693/* We use char because int might match the return type of a gcc2
30694 builtin and then its argument prototype would still apply. */
30695char $ac_func ();
30696/* The GNU C library defines this for functions which it implements
30697 to always fail with ENOSYS. Some functions are actually named
30698 something starting with __ and the normal name is an alias. */
30699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30700choke me
30701#else
30702char (*f) () = $ac_func;
30703#endif
30704#ifdef __cplusplus
30705}
30706#endif
30707
30708int
30709main ()
30710{
30711return f != $ac_func;
30712 ;
30713 return 0;
30714}
30715_ACEOF
30716rm -f conftest.$ac_objext conftest$ac_exeext
30717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30718 (eval $ac_link) 2>conftest.er1
a848cd7e 30719 ac_status=$?
ac1cb8d3
VS
30720 grep -v '^ *+' conftest.er1 >conftest.err
30721 rm -f conftest.er1
30722 cat conftest.err >&5
a848cd7e
SC
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); } &&
9dd0f6c2 30725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; } &&
30731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733 (eval $ac_try) 2>&5
30734 ac_status=$?
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; }; then
30737 eval "$as_ac_var=yes"
30738else
30739 echo "$as_me: failed program was:" >&5
30740sed 's/^/| /' conftest.$ac_ext >&5
30741
30742eval "$as_ac_var=no"
30743fi
ac1cb8d3
VS
30744rm -f conftest.err conftest.$ac_objext \
30745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30746fi
30747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30749if test `eval echo '${'$as_ac_var'}'` = yes; then
30750 cat >>confdefs.h <<_ACEOF
30751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30752_ACEOF
30753
30754fi
30755done
30756
30757
30758if test "$ac_cv_func_vsnprintf" = "yes"; then
30759 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30760echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30761if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30763else
30764
30765 cat >conftest.$ac_ext <<_ACEOF
30766/* confdefs.h. */
30767_ACEOF
30768cat confdefs.h >>conftest.$ac_ext
30769cat >>conftest.$ac_ext <<_ACEOF
30770/* end confdefs.h. */
30771
30772 #include <stdio.h>
30773 #include <stdarg.h>
30774
30775int
30776main ()
30777{
30778
30779 char *buf;
30780 va_list ap;
30781 vsnprintf(buf, 10u, "%s", ap);
30782
30783 ;
30784 return 0;
30785}
30786_ACEOF
30787rm -f conftest.$ac_objext
30788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30789 (eval $ac_compile) 2>conftest.er1
a848cd7e 30790 ac_status=$?
ac1cb8d3
VS
30791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
a848cd7e
SC
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
9dd0f6c2 30796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798 (eval $ac_try) 2>&5
30799 ac_status=$?
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; } &&
30802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; }; then
30808 wx_cv_func_vsnprintf_decl=yes
30809else
30810 echo "$as_me: failed program was:" >&5
30811sed 's/^/| /' conftest.$ac_ext >&5
30812
c122b164
DE
30813
30814 cat >conftest.$ac_ext <<_ACEOF
30815/* confdefs.h. */
30816_ACEOF
30817cat confdefs.h >>conftest.$ac_ext
30818cat >>conftest.$ac_ext <<_ACEOF
30819/* end confdefs.h. */
30820
30821 #include <stdio.h>
30822 #include <stdarg.h>
30823 using namespace std;
30824
30825int
30826main ()
30827{
30828
30829 char *buf;
30830 va_list ap;
30831 vsnprintf(buf, 10u, "%s", ap);
30832
30833 ;
30834 return 0;
30835}
30836_ACEOF
30837rm -f conftest.$ac_objext
30838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30839 (eval $ac_compile) 2>conftest.er1
30840 ac_status=$?
30841 grep -v '^ *+' conftest.er1 >conftest.err
30842 rm -f conftest.er1
30843 cat conftest.err >&5
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); } &&
9dd0f6c2 30846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; } &&
30852 { ac_try='test -s conftest.$ac_objext'
30853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 wx_cv_func_vsnprintf_decl=yes
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
a848cd7e
SC
30863wx_cv_func_vsnprintf_decl=no
30864
30865fi
ac1cb8d3 30866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30867
30868
c122b164
DE
30869fi
30870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30871
30872
a848cd7e
SC
30873fi
30874echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30875echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30876
30877 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30878 cat >>confdefs.h <<\_ACEOF
30879#define HAVE_VSNPRINTF_DECL 1
30880_ACEOF
30881
30882 fi
30883fi
30884
30885if test "$wxUSE_UNICODE" = yes; then
30886
30887
30888
fbe47c7b
VS
30889
30890
30891
30892for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30893do
30894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895echo "$as_me:$LINENO: checking for $ac_func" >&5
30896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30897if eval "test \"\${$as_ac_var+set}\" = set"; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899else
30900 cat >conftest.$ac_ext <<_ACEOF
30901/* confdefs.h. */
30902_ACEOF
30903cat confdefs.h >>conftest.$ac_ext
30904cat >>conftest.$ac_ext <<_ACEOF
30905/* end confdefs.h. */
ac1cb8d3
VS
30906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908#define $ac_func innocuous_$ac_func
30909
a848cd7e
SC
30910/* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char $ac_func (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30914
a848cd7e
SC
30915#ifdef __STDC__
30916# include <limits.h>
30917#else
30918# include <assert.h>
30919#endif
ac1cb8d3
VS
30920
30921#undef $ac_func
30922
a848cd7e
SC
30923/* Override any gcc2 internal prototype to avoid an error. */
30924#ifdef __cplusplus
30925extern "C"
30926{
30927#endif
30928/* We use char because int might match the return type of a gcc2
30929 builtin and then its argument prototype would still apply. */
30930char $ac_func ();
30931/* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
30934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30935choke me
30936#else
30937char (*f) () = $ac_func;
30938#endif
30939#ifdef __cplusplus
30940}
30941#endif
30942
30943int
30944main ()
30945{
30946return f != $ac_func;
30947 ;
30948 return 0;
30949}
30950_ACEOF
30951rm -f conftest.$ac_objext conftest$ac_exeext
30952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30953 (eval $ac_link) 2>conftest.er1
a848cd7e 30954 ac_status=$?
ac1cb8d3
VS
30955 grep -v '^ *+' conftest.er1 >conftest.err
30956 rm -f conftest.er1
30957 cat conftest.err >&5
a848cd7e
SC
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
9dd0f6c2 30960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962 (eval $ac_try) 2>&5
30963 ac_status=$?
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); }; } &&
30966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968 (eval $ac_try) 2>&5
30969 ac_status=$?
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; }; then
30972 eval "$as_ac_var=yes"
30973else
30974 echo "$as_me: failed program was:" >&5
30975sed 's/^/| /' conftest.$ac_ext >&5
30976
30977eval "$as_ac_var=no"
30978fi
ac1cb8d3
VS
30979rm -f conftest.err conftest.$ac_objext \
30980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30981fi
30982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30984if test `eval echo '${'$as_ac_var'}'` = yes; then
30985 cat >>confdefs.h <<_ACEOF
30986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30987_ACEOF
30988
30989fi
30990done
30991
30992
30993 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30994echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30995 cat >conftest.$ac_ext <<_ACEOF
30996/* confdefs.h. */
30997_ACEOF
30998cat confdefs.h >>conftest.$ac_ext
30999cat >>conftest.$ac_ext <<_ACEOF
31000/* end confdefs.h. */
31001#include <wchar.h>
31002int
31003main ()
31004{
31005&_vsnwprintf;
31006 ;
31007 return 0;
31008}
31009_ACEOF
31010rm -f conftest.$ac_objext
31011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31012 (eval $ac_compile) 2>conftest.er1
a848cd7e 31013 ac_status=$?
ac1cb8d3
VS
31014 grep -v '^ *+' conftest.er1 >conftest.err
31015 rm -f conftest.er1
31016 cat conftest.err >&5
a848cd7e
SC
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); } &&
9dd0f6c2 31019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027 (eval $ac_try) 2>&5
31028 ac_status=$?
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); }; }; then
31031 echo "$as_me:$LINENO: result: yes" >&5
31032echo "${ECHO_T}yes" >&6
31033 cat >>confdefs.h <<\_ACEOF
31034#define HAVE__VSNWPRINTF 1
31035_ACEOF
31036
31037else
31038 echo "$as_me: failed program was:" >&5
31039sed 's/^/| /' conftest.$ac_ext >&5
31040
31041echo "$as_me:$LINENO: result: no" >&5
31042echo "${ECHO_T}no" >&6
31043fi
ac1cb8d3 31044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31045fi
31046
31047ac_ext=c
31048ac_cpp='$CPP $CPPFLAGS'
31049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31051ac_compiler_gnu=$ac_cv_c_compiler_gnu
31052
31053
31054
31055
31056if test "$TOOLKIT" != "MSW"; then
31057
31058
31059
31060
31061ac_ext=cc
31062ac_cpp='$CXXCPP $CPPFLAGS'
31063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31066
31067
31068
31069
31070# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31071if test "${with_libiconv_prefix+set}" = set; then
31072 withval="$with_libiconv_prefix"
31073
31074 for dir in `echo "$withval" | tr : ' '`; do
31075 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31076 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31077 done
31078
31079fi;
31080
31081 echo "$as_me:$LINENO: checking for iconv" >&5
31082echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31083if test "${am_cv_func_iconv+set}" = set; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
31085else
31086
31087 am_cv_func_iconv="no, consider installing GNU libiconv"
31088 am_cv_lib_iconv=no
31089 cat >conftest.$ac_ext <<_ACEOF
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
31095#include <stdlib.h>
31096#include <iconv.h>
31097int
31098main ()
31099{
31100iconv_t cd = iconv_open("","");
31101 iconv(cd,NULL,NULL,NULL,NULL);
31102 iconv_close(cd);
31103 ;
31104 return 0;
31105}
31106_ACEOF
31107rm -f conftest.$ac_objext conftest$ac_exeext
31108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31109 (eval $ac_link) 2>conftest.er1
a848cd7e 31110 ac_status=$?
ac1cb8d3
VS
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
a848cd7e
SC
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
9dd0f6c2 31116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31119 ac_status=$?
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; } &&
31122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31125 ac_status=$?
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; }; then
31128 am_cv_func_iconv=yes
31129else
31130 echo "$as_me: failed program was:" >&5
31131sed 's/^/| /' conftest.$ac_ext >&5
31132
31133fi
ac1cb8d3
VS
31134rm -f conftest.err conftest.$ac_objext \
31135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31136 if test "$am_cv_func_iconv" != yes; then
31137 am_save_LIBS="$LIBS"
31138 LIBS="$LIBS -liconv"
31139 cat >conftest.$ac_ext <<_ACEOF
31140/* confdefs.h. */
31141_ACEOF
31142cat confdefs.h >>conftest.$ac_ext
31143cat >>conftest.$ac_ext <<_ACEOF
31144/* end confdefs.h. */
31145#include <stdlib.h>
31146#include <iconv.h>
31147int
31148main ()
31149{
31150iconv_t cd = iconv_open("","");
31151 iconv(cd,NULL,NULL,NULL,NULL);
31152 iconv_close(cd);
31153 ;
31154 return 0;
31155}
31156_ACEOF
31157rm -f conftest.$ac_objext conftest$ac_exeext
31158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31159 (eval $ac_link) 2>conftest.er1
a848cd7e 31160 ac_status=$?
ac1cb8d3
VS
31161 grep -v '^ *+' conftest.er1 >conftest.err
31162 rm -f conftest.er1
31163 cat conftest.err >&5
a848cd7e
SC
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } &&
9dd0f6c2 31166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168 (eval $ac_try) 2>&5
31169 ac_status=$?
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31175 ac_status=$?
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
31178 am_cv_lib_iconv=yes
31179 am_cv_func_iconv=yes
31180else
31181 echo "$as_me: failed program was:" >&5
31182sed 's/^/| /' conftest.$ac_ext >&5
31183
31184fi
ac1cb8d3
VS
31185rm -f conftest.err conftest.$ac_objext \
31186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31187 LIBS="$am_save_LIBS"
31188 fi
31189
31190fi
31191echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31192echo "${ECHO_T}$am_cv_func_iconv" >&6
31193 if test "$am_cv_func_iconv" = yes; then
31194
31195cat >>confdefs.h <<\_ACEOF
31196#define HAVE_ICONV 1
31197_ACEOF
31198
31199 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31200echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31201if test "${wx_cv_func_iconv_const+set}" = set; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31203else
31204 cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210
31211#include <stdlib.h>
31212#include <iconv.h>
31213extern
31214#ifdef __cplusplus
31215"C"
31216#endif
31217#if defined(__STDC__) || defined(__cplusplus)
31218size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31219#else
31220size_t iconv();
31221#endif
31222
31223int
31224main ()
31225{
31226
31227 ;
31228 return 0;
31229}
31230_ACEOF
31231rm -f conftest.$ac_objext
31232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31233 (eval $ac_compile) 2>conftest.er1
a848cd7e 31234 ac_status=$?
ac1cb8d3
VS
31235 grep -v '^ *+' conftest.er1 >conftest.err
31236 rm -f conftest.er1
31237 cat conftest.err >&5
a848cd7e
SC
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); } &&
9dd0f6c2 31240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31242 (eval $ac_try) 2>&5
31243 ac_status=$?
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); }; } &&
31246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31248 (eval $ac_try) 2>&5
31249 ac_status=$?
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); }; }; then
31252 wx_cv_func_iconv_const="no"
31253else
31254 echo "$as_me: failed program was:" >&5
31255sed 's/^/| /' conftest.$ac_ext >&5
31256
31257wx_cv_func_iconv_const="yes"
31258
31259fi
ac1cb8d3 31260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31261
31262fi
31263echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31264echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31265
31266 iconv_const=
31267 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31268 iconv_const="const"
31269 fi
31270
31271
31272cat >>confdefs.h <<_ACEOF
31273#define ICONV_CONST $iconv_const
31274_ACEOF
31275
31276 fi
31277 LIBICONV=
31278 if test "$am_cv_lib_iconv" = yes; then
31279 LIBICONV="-liconv"
31280 fi
31281
31282
31283LIBS="$LIBICONV $LIBS"
31284ac_ext=c
31285ac_cpp='$CPP $CPPFLAGS'
31286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31288ac_compiler_gnu=$ac_cv_c_compiler_gnu
31289
31290
31291if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31292
31293for ac_func in sigaction
31294do
31295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31296echo "$as_me:$LINENO: checking for $ac_func" >&5
31297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31298if eval "test \"\${$as_ac_var+set}\" = set"; then
31299 echo $ECHO_N "(cached) $ECHO_C" >&6
31300else
31301 cat >conftest.$ac_ext <<_ACEOF
31302/* confdefs.h. */
31303_ACEOF
31304cat confdefs.h >>conftest.$ac_ext
31305cat >>conftest.$ac_ext <<_ACEOF
31306/* end confdefs.h. */
ac1cb8d3
VS
31307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31309#define $ac_func innocuous_$ac_func
31310
a848cd7e
SC
31311/* System header to define __stub macros and hopefully few prototypes,
31312 which can conflict with char $ac_func (); below.
31313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31314 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31315
a848cd7e
SC
31316#ifdef __STDC__
31317# include <limits.h>
31318#else
31319# include <assert.h>
31320#endif
ac1cb8d3
VS
31321
31322#undef $ac_func
31323
a848cd7e
SC
31324/* Override any gcc2 internal prototype to avoid an error. */
31325#ifdef __cplusplus
31326extern "C"
31327{
31328#endif
31329/* We use char because int might match the return type of a gcc2
31330 builtin and then its argument prototype would still apply. */
31331char $ac_func ();
31332/* The GNU C library defines this for functions which it implements
31333 to always fail with ENOSYS. Some functions are actually named
31334 something starting with __ and the normal name is an alias. */
31335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31336choke me
31337#else
31338char (*f) () = $ac_func;
31339#endif
31340#ifdef __cplusplus
31341}
31342#endif
31343
31344int
31345main ()
31346{
31347return f != $ac_func;
31348 ;
31349 return 0;
31350}
31351_ACEOF
31352rm -f conftest.$ac_objext conftest$ac_exeext
31353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31354 (eval $ac_link) 2>conftest.er1
a848cd7e 31355 ac_status=$?
ac1cb8d3
VS
31356 grep -v '^ *+' conftest.er1 >conftest.err
31357 rm -f conftest.er1
31358 cat conftest.err >&5
a848cd7e
SC
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } &&
9dd0f6c2 31361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; } &&
31367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31373 eval "$as_ac_var=yes"
31374else
31375 echo "$as_me: failed program was:" >&5
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
31378eval "$as_ac_var=no"
31379fi
ac1cb8d3
VS
31380rm -f conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31382fi
31383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31384echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31385if test `eval echo '${'$as_ac_var'}'` = yes; then
31386 cat >>confdefs.h <<_ACEOF
31387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31388_ACEOF
31389
31390fi
31391done
31392
31393
31394 if test "$ac_cv_func_sigaction" = "no"; then
31395 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31396echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31397 wxUSE_ON_FATAL_EXCEPTION=no
31398 fi
31399
31400 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31401
31402
31403 ac_ext=cc
31404ac_cpp='$CXXCPP $CPPFLAGS'
31405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31408
31409
31410 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31411echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31412if test "${wx_cv_type_sa_handler+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31414else
31415
31416 cat >conftest.$ac_ext <<_ACEOF
31417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
31422#include <signal.h>
31423int
31424main ()
31425{
31426
31427 extern void testSigHandler(int);
31428
31429 struct sigaction sa;
31430 sa.sa_handler = testSigHandler;
31431
31432 ;
31433 return 0;
31434}
31435_ACEOF
31436rm -f conftest.$ac_objext
31437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31438 (eval $ac_compile) 2>conftest.er1
a848cd7e 31439 ac_status=$?
ac1cb8d3
VS
31440 grep -v '^ *+' conftest.er1 >conftest.err
31441 rm -f conftest.er1
31442 cat conftest.err >&5
a848cd7e
SC
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); } &&
9dd0f6c2 31445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31447 (eval $ac_try) 2>&5
31448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; } &&
31451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457
31458 wx_cv_type_sa_handler=int
31459
31460else
31461 echo "$as_me: failed program was:" >&5
31462sed 's/^/| /' conftest.$ac_ext >&5
31463
31464
31465 wx_cv_type_sa_handler=void
31466
31467fi
ac1cb8d3 31468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31469
31470fi
31471echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31472echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31473
31474 ac_ext=c
31475ac_cpp='$CPP $CPPFLAGS'
31476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31478ac_compiler_gnu=$ac_cv_c_compiler_gnu
31479
31480
31481 cat >>confdefs.h <<_ACEOF
31482#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31483_ACEOF
31484
31485 fi
31486fi
31487
eaff0f0d
VZ
31488if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31489
31490
31491 ac_ext=cc
31492ac_cpp='$CXXCPP $CPPFLAGS'
31493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31496
31497
31498 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31499echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31500if test "${wx_cv_func_backtrace+set}" = set; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31502else
31503
31504 cat >conftest.$ac_ext <<_ACEOF
31505/* confdefs.h. */
31506_ACEOF
31507cat confdefs.h >>conftest.$ac_ext
31508cat >>conftest.$ac_ext <<_ACEOF
31509/* end confdefs.h. */
31510#include <execinfo.h>
31511int
31512main ()
31513{
31514
31515 void *trace[1];
31516 char **messages;
31517
31518 backtrace(trace, 1);
31519 messages = backtrace_symbols(trace, 1);
31520
31521 ;
31522 return 0;
31523}
31524_ACEOF
31525rm -f conftest.$ac_objext
31526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31527 (eval $ac_compile) 2>conftest.er1
31528 ac_status=$?
31529 grep -v '^ *+' conftest.er1 >conftest.err
31530 rm -f conftest.er1
31531 cat conftest.err >&5
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); } &&
9dd0f6c2 31534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.$ac_objext'
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 wx_cv_func_backtrace=yes
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
31551wx_cv_func_backtrace=no
31552
31553fi
31554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31555
31556
31557fi
31558echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31559echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31560
31561
31562 if test "$wx_cv_func_backtrace" = "no"; then
31563 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31564echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31565 wxUSE_STACKWALKER=no
31566 else
31567 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31568echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31569if test "${wx_cv_func_cxa_demangle+set}" = set; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571else
31572
31573 cat >conftest.$ac_ext <<_ACEOF
31574/* confdefs.h. */
31575_ACEOF
31576cat confdefs.h >>conftest.$ac_ext
31577cat >>conftest.$ac_ext <<_ACEOF
31578/* end confdefs.h. */
31579#include <cxxabi.h>
31580int
31581main ()
31582{
31583
31584 int rc;
31585 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31586
31587 ;
31588 return 0;
31589}
31590_ACEOF
dfe0c803
JS
31591rm -f conftest.$ac_objext conftest$ac_exeext
31592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31594 ac_status=$?
31595 grep -v '^ *+' conftest.er1 >conftest.err
31596 rm -f conftest.er1
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } &&
9dd0f6c2 31600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602 (eval $ac_try) 2>&5
31603 ac_status=$?
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); }; } &&
dfe0c803 31606 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608 (eval $ac_try) 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
31612 wx_cv_func_cxa_demangle=yes
31613else
31614 echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
31617wx_cv_func_cxa_demangle=no
31618
31619fi
dfe0c803
JS
31620rm -f conftest.err conftest.$ac_objext \
31621 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31622
31623
31624fi
31625echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31626echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31627
31628 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31629 cat >>confdefs.h <<\_ACEOF
31630#define HAVE_CXA_DEMANGLE 1
31631_ACEOF
31632
31633 fi
31634 fi
31635
31636 ac_ext=c
31637ac_cpp='$CPP $CPPFLAGS'
31638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641
31642fi
31643
898beab1
DE
31644if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31645 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31646echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31647 wxUSE_STACKWALKER=no
31648fi
31649
31650
a848cd7e
SC
31651
31652
31653for ac_func in mkstemp mktemp
31654do
31655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656echo "$as_me:$LINENO: checking for $ac_func" >&5
31657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31658if eval "test \"\${$as_ac_var+set}\" = set"; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660else
31661 cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
ac1cb8d3
VS
31667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31669#define $ac_func innocuous_$ac_func
31670
a848cd7e
SC
31671/* System header to define __stub macros and hopefully few prototypes,
31672 which can conflict with char $ac_func (); below.
31673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31675
a848cd7e
SC
31676#ifdef __STDC__
31677# include <limits.h>
31678#else
31679# include <assert.h>
31680#endif
ac1cb8d3
VS
31681
31682#undef $ac_func
31683
a848cd7e
SC
31684/* Override any gcc2 internal prototype to avoid an error. */
31685#ifdef __cplusplus
31686extern "C"
31687{
31688#endif
31689/* We use char because int might match the return type of a gcc2
31690 builtin and then its argument prototype would still apply. */
31691char $ac_func ();
31692/* The GNU C library defines this for functions which it implements
31693 to always fail with ENOSYS. Some functions are actually named
31694 something starting with __ and the normal name is an alias. */
31695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31696choke me
31697#else
31698char (*f) () = $ac_func;
31699#endif
31700#ifdef __cplusplus
31701}
31702#endif
31703
31704int
31705main ()
31706{
31707return f != $ac_func;
31708 ;
31709 return 0;
31710}
31711_ACEOF
31712rm -f conftest.$ac_objext conftest$ac_exeext
31713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31714 (eval $ac_link) 2>conftest.er1
a848cd7e 31715 ac_status=$?
ac1cb8d3
VS
31716 grep -v '^ *+' conftest.er1 >conftest.err
31717 rm -f conftest.er1
31718 cat conftest.err >&5
a848cd7e
SC
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } &&
9dd0f6c2 31721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; } &&
31727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 eval "$as_ac_var=yes"
31734else
31735 echo "$as_me: failed program was:" >&5
31736sed 's/^/| /' conftest.$ac_ext >&5
31737
31738eval "$as_ac_var=no"
31739fi
ac1cb8d3
VS
31740rm -f conftest.err conftest.$ac_objext \
31741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31742fi
31743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31745if test `eval echo '${'$as_ac_var'}'` = yes; then
31746 cat >>confdefs.h <<_ACEOF
31747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31748_ACEOF
31749 break
31750fi
31751done
31752
31753
31754echo "$as_me:$LINENO: checking for statfs" >&5
31755echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31756if test "${wx_cv_func_statfs+set}" = set; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31758else
31759 cat >conftest.$ac_ext <<_ACEOF
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765
31766 #if defined(__BSD__)
31767 #include <sys/param.h>
31768 #include <sys/mount.h>
31769 #else
31770 #include <sys/vfs.h>
31771 #endif
31772
31773int
31774main ()
31775{
31776
31777 long l;
31778 struct statfs fs;
31779 statfs("/", &fs);
31780 l = fs.f_bsize;
31781 l += fs.f_blocks;
31782 l += fs.f_bavail;
31783
31784 ;
31785 return 0;
31786}
31787_ACEOF
31788rm -f conftest.$ac_objext
31789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31790 (eval $ac_compile) 2>conftest.er1
a848cd7e 31791 ac_status=$?
ac1cb8d3
VS
31792 grep -v '^ *+' conftest.er1 >conftest.err
31793 rm -f conftest.er1
31794 cat conftest.err >&5
a848cd7e
SC
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
9dd0f6c2 31797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799 (eval $ac_try) 2>&5
31800 ac_status=$?
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); }; } &&
31803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31806 ac_status=$?
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; }; then
31809
31810 wx_cv_func_statfs=yes
31811
31812else
31813 echo "$as_me: failed program was:" >&5
31814sed 's/^/| /' conftest.$ac_ext >&5
31815
31816
31817 wx_cv_func_statfs=no
31818
31819
31820fi
ac1cb8d3 31821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31822
31823fi
31824echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31825echo "${ECHO_T}$wx_cv_func_statfs" >&6
31826
31827if test "$wx_cv_func_statfs" = "yes"; then
31828 wx_cv_type_statvfs_t="struct statfs"
31829 cat >>confdefs.h <<\_ACEOF
31830#define HAVE_STATFS 1
31831_ACEOF
31832
31833else
31834 echo "$as_me:$LINENO: checking for statvfs" >&5
31835echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31836if test "${wx_cv_func_statvfs+set}" = set; then
31837 echo $ECHO_N "(cached) $ECHO_C" >&6
31838else
31839 cat >conftest.$ac_ext <<_ACEOF
31840/* confdefs.h. */
31841_ACEOF
31842cat confdefs.h >>conftest.$ac_ext
31843cat >>conftest.$ac_ext <<_ACEOF
31844/* end confdefs.h. */
31845
31846 #include <stddef.h>
31847 #include <sys/statvfs.h>
31848
31849int
31850main ()
31851{
31852
31853 statvfs("/", NULL);
31854
31855 ;
31856 return 0;
31857}
31858_ACEOF
31859rm -f conftest.$ac_objext
31860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31861 (eval $ac_compile) 2>conftest.er1
a848cd7e 31862 ac_status=$?
ac1cb8d3
VS
31863 grep -v '^ *+' conftest.er1 >conftest.err
31864 rm -f conftest.er1
31865 cat conftest.err >&5
a848cd7e
SC
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } &&
9dd0f6c2 31868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
31874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
31880 wx_cv_func_statvfs=yes
31881else
31882 echo "$as_me: failed program was:" >&5
31883sed 's/^/| /' conftest.$ac_ext >&5
31884
31885wx_cv_func_statvfs=no
31886
31887fi
ac1cb8d3 31888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31889
31890fi
31891echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31892echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31893
31894 if test "$wx_cv_func_statvfs" = "yes"; then
31895
31896
31897 ac_ext=cc
31898ac_cpp='$CXXCPP $CPPFLAGS'
31899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902
31903
31904 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31905echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31906if test "${wx_cv_type_statvfs_t+set}" = set; then
31907 echo $ECHO_N "(cached) $ECHO_C" >&6
31908else
31909 cat >conftest.$ac_ext <<_ACEOF
31910/* confdefs.h. */
31911_ACEOF
31912cat confdefs.h >>conftest.$ac_ext
31913cat >>conftest.$ac_ext <<_ACEOF
31914/* end confdefs.h. */
31915
31916 #include <sys/statvfs.h>
31917
31918int
31919main ()
31920{
31921
31922 long l;
31923 statvfs_t fs;
31924 statvfs("/", &fs);
31925 l = fs.f_bsize;
31926 l += fs.f_blocks;
31927 l += fs.f_bavail;
31928
31929 ;
31930 return 0;
31931}
31932_ACEOF
31933rm -f conftest.$ac_objext
31934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31935 (eval $ac_compile) 2>conftest.er1
a848cd7e 31936 ac_status=$?
ac1cb8d3
VS
31937 grep -v '^ *+' conftest.er1 >conftest.err
31938 rm -f conftest.er1
31939 cat conftest.err >&5
a848cd7e
SC
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
9dd0f6c2 31942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; } &&
31948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950 (eval $ac_try) 2>&5
31951 ac_status=$?
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; }; then
31954 wx_cv_type_statvfs_t=statvfs_t
31955else
31956 echo "$as_me: failed program was:" >&5
31957sed 's/^/| /' conftest.$ac_ext >&5
31958
31959
31960 cat >conftest.$ac_ext <<_ACEOF
31961/* confdefs.h. */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h. */
31966
31967 #include <sys/statvfs.h>
31968
31969int
31970main ()
31971{
31972
31973 long l;
31974 struct statvfs fs;
31975 statvfs("/", &fs);
31976 l = fs.f_bsize;
31977 l += fs.f_blocks;
31978 l += fs.f_bavail;
31979
31980 ;
31981 return 0;
31982}
31983_ACEOF
31984rm -f conftest.$ac_objext
31985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31986 (eval $ac_compile) 2>conftest.er1
a848cd7e 31987 ac_status=$?
ac1cb8d3
VS
31988 grep -v '^ *+' conftest.er1 >conftest.err
31989 rm -f conftest.er1
31990 cat conftest.err >&5
a848cd7e
SC
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } &&
9dd0f6c2 31993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; } &&
31999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; }; then
32005 wx_cv_type_statvfs_t="struct statvfs"
32006else
32007 echo "$as_me: failed program was:" >&5
32008sed 's/^/| /' conftest.$ac_ext >&5
32009
32010wx_cv_type_statvfs_t="unknown"
32011
32012fi
ac1cb8d3 32013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32014
32015
32016fi
ac1cb8d3 32017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32018
32019fi
32020echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32021echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32022
32023 ac_ext=c
32024ac_cpp='$CPP $CPPFLAGS'
32025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32027ac_compiler_gnu=$ac_cv_c_compiler_gnu
32028
32029
32030 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32031 cat >>confdefs.h <<\_ACEOF
32032#define HAVE_STATVFS 1
32033_ACEOF
32034
32035 fi
32036 else
32037 wx_cv_type_statvfs_t="unknown"
32038 fi
32039fi
32040
32041if test "$wx_cv_type_statvfs_t" != "unknown"; then
32042 cat >>confdefs.h <<_ACEOF
32043#define WX_STATFS_T $wx_cv_type_statvfs_t
32044_ACEOF
32045
32046else
32047 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32048echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32049fi
32050
32051if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32052
32053
32054for ac_func in fcntl flock
32055do
32056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32057echo "$as_me:$LINENO: checking for $ac_func" >&5
32058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32059if eval "test \"\${$as_ac_var+set}\" = set"; then
32060 echo $ECHO_N "(cached) $ECHO_C" >&6
32061else
32062 cat >conftest.$ac_ext <<_ACEOF
32063/* confdefs.h. */
32064_ACEOF
32065cat confdefs.h >>conftest.$ac_ext
32066cat >>conftest.$ac_ext <<_ACEOF
32067/* end confdefs.h. */
ac1cb8d3
VS
32068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32070#define $ac_func innocuous_$ac_func
32071
a848cd7e
SC
32072/* System header to define __stub macros and hopefully few prototypes,
32073 which can conflict with char $ac_func (); below.
32074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32076
a848cd7e
SC
32077#ifdef __STDC__
32078# include <limits.h>
32079#else
32080# include <assert.h>
32081#endif
ac1cb8d3
VS
32082
32083#undef $ac_func
32084
a848cd7e
SC
32085/* Override any gcc2 internal prototype to avoid an error. */
32086#ifdef __cplusplus
32087extern "C"
32088{
32089#endif
32090/* We use char because int might match the return type of a gcc2
32091 builtin and then its argument prototype would still apply. */
32092char $ac_func ();
32093/* The GNU C library defines this for functions which it implements
32094 to always fail with ENOSYS. Some functions are actually named
32095 something starting with __ and the normal name is an alias. */
32096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32097choke me
32098#else
32099char (*f) () = $ac_func;
32100#endif
32101#ifdef __cplusplus
32102}
32103#endif
32104
32105int
32106main ()
32107{
32108return f != $ac_func;
32109 ;
32110 return 0;
32111}
32112_ACEOF
32113rm -f conftest.$ac_objext conftest$ac_exeext
32114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32115 (eval $ac_link) 2>conftest.er1
a848cd7e 32116 ac_status=$?
ac1cb8d3
VS
32117 grep -v '^ *+' conftest.er1 >conftest.err
32118 rm -f conftest.er1
32119 cat conftest.err >&5
a848cd7e
SC
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); } &&
9dd0f6c2 32122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; } &&
32128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; }; then
32134 eval "$as_ac_var=yes"
32135else
32136 echo "$as_me: failed program was:" >&5
32137sed 's/^/| /' conftest.$ac_ext >&5
32138
32139eval "$as_ac_var=no"
32140fi
ac1cb8d3
VS
32141rm -f conftest.err conftest.$ac_objext \
32142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32143fi
32144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32146if test `eval echo '${'$as_ac_var'}'` = yes; then
32147 cat >>confdefs.h <<_ACEOF
32148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32149_ACEOF
32150 break
32151fi
32152done
32153
32154
32155 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32156 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32157echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32158 wxUSE_SNGLINST_CHECKER=no
32159 fi
32160fi
32161
32162
32163for ac_func in timegm
32164do
32165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32166echo "$as_me:$LINENO: checking for $ac_func" >&5
32167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32168if eval "test \"\${$as_ac_var+set}\" = set"; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171 cat >conftest.$ac_ext <<_ACEOF
32172/* confdefs.h. */
32173_ACEOF
32174cat confdefs.h >>conftest.$ac_ext
32175cat >>conftest.$ac_ext <<_ACEOF
32176/* end confdefs.h. */
ac1cb8d3
VS
32177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32179#define $ac_func innocuous_$ac_func
32180
a848cd7e
SC
32181/* System header to define __stub macros and hopefully few prototypes,
32182 which can conflict with char $ac_func (); below.
32183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32185
a848cd7e
SC
32186#ifdef __STDC__
32187# include <limits.h>
32188#else
32189# include <assert.h>
32190#endif
ac1cb8d3
VS
32191
32192#undef $ac_func
32193
a848cd7e
SC
32194/* Override any gcc2 internal prototype to avoid an error. */
32195#ifdef __cplusplus
32196extern "C"
32197{
32198#endif
32199/* We use char because int might match the return type of a gcc2
32200 builtin and then its argument prototype would still apply. */
32201char $ac_func ();
32202/* The GNU C library defines this for functions which it implements
32203 to always fail with ENOSYS. Some functions are actually named
32204 something starting with __ and the normal name is an alias. */
32205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32206choke me
32207#else
32208char (*f) () = $ac_func;
32209#endif
32210#ifdef __cplusplus
32211}
32212#endif
32213
32214int
32215main ()
32216{
32217return f != $ac_func;
32218 ;
32219 return 0;
32220}
32221_ACEOF
32222rm -f conftest.$ac_objext conftest$ac_exeext
32223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32224 (eval $ac_link) 2>conftest.er1
a848cd7e 32225 ac_status=$?
ac1cb8d3
VS
32226 grep -v '^ *+' conftest.er1 >conftest.err
32227 rm -f conftest.er1
32228 cat conftest.err >&5
a848cd7e
SC
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
9dd0f6c2 32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233 (eval $ac_try) 2>&5
32234 ac_status=$?
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; } &&
32237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 eval "$as_ac_var=yes"
32244else
32245 echo "$as_me: failed program was:" >&5
32246sed 's/^/| /' conftest.$ac_ext >&5
32247
32248eval "$as_ac_var=no"
32249fi
ac1cb8d3
VS
32250rm -f conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32252fi
32253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32255if test `eval echo '${'$as_ac_var'}'` = yes; then
32256 cat >>confdefs.h <<_ACEOF
32257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32258_ACEOF
32259
32260fi
32261done
32262
32263
32264
32265
32266for ac_func in putenv setenv
32267do
32268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32269echo "$as_me:$LINENO: checking for $ac_func" >&5
32270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32271if eval "test \"\${$as_ac_var+set}\" = set"; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
32273else
32274 cat >conftest.$ac_ext <<_ACEOF
32275/* confdefs.h. */
32276_ACEOF
32277cat confdefs.h >>conftest.$ac_ext
32278cat >>conftest.$ac_ext <<_ACEOF
32279/* end confdefs.h. */
ac1cb8d3
VS
32280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32282#define $ac_func innocuous_$ac_func
32283
a848cd7e
SC
32284/* System header to define __stub macros and hopefully few prototypes,
32285 which can conflict with char $ac_func (); below.
32286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32288
a848cd7e
SC
32289#ifdef __STDC__
32290# include <limits.h>
32291#else
32292# include <assert.h>
32293#endif
ac1cb8d3
VS
32294
32295#undef $ac_func
32296
a848cd7e
SC
32297/* Override any gcc2 internal prototype to avoid an error. */
32298#ifdef __cplusplus
32299extern "C"
32300{
32301#endif
32302/* We use char because int might match the return type of a gcc2
32303 builtin and then its argument prototype would still apply. */
32304char $ac_func ();
32305/* The GNU C library defines this for functions which it implements
32306 to always fail with ENOSYS. Some functions are actually named
32307 something starting with __ and the normal name is an alias. */
32308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32309choke me
32310#else
32311char (*f) () = $ac_func;
32312#endif
32313#ifdef __cplusplus
32314}
32315#endif
32316
32317int
32318main ()
32319{
32320return f != $ac_func;
32321 ;
32322 return 0;
32323}
32324_ACEOF
32325rm -f conftest.$ac_objext conftest$ac_exeext
32326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32327 (eval $ac_link) 2>conftest.er1
a848cd7e 32328 ac_status=$?
ac1cb8d3
VS
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
a848cd7e
SC
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } &&
9dd0f6c2 32334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336 (eval $ac_try) 2>&5
32337 ac_status=$?
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); }; } &&
32340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342 (eval $ac_try) 2>&5
32343 ac_status=$?
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); }; }; then
32346 eval "$as_ac_var=yes"
32347else
32348 echo "$as_me: failed program was:" >&5
32349sed 's/^/| /' conftest.$ac_ext >&5
32350
32351eval "$as_ac_var=no"
32352fi
ac1cb8d3
VS
32353rm -f conftest.err conftest.$ac_objext \
32354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32355fi
32356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32358if test `eval echo '${'$as_ac_var'}'` = yes; then
32359 cat >>confdefs.h <<_ACEOF
32360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32361_ACEOF
32362 break
32363fi
32364done
32365
32366
32367HAVE_SOME_SLEEP_FUNC=0
32368if test "$USE_BEOS" = 1; then
32369 cat >>confdefs.h <<\_ACEOF
32370#define HAVE_SLEEP 1
32371_ACEOF
32372
32373 HAVE_SOME_SLEEP_FUNC=1
32374fi
32375
32376if test "$USE_DARWIN" = 1; then
32377 cat >>confdefs.h <<\_ACEOF
32378#define HAVE_USLEEP 1
32379_ACEOF
32380
32381 HAVE_SOME_SLEEP_FUNC=1
32382fi
32383
32384if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32385 POSIX4_LINK=
32386
32387for ac_func in nanosleep
32388do
32389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32390echo "$as_me:$LINENO: checking for $ac_func" >&5
32391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32392if eval "test \"\${$as_ac_var+set}\" = set"; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32394else
32395 cat >conftest.$ac_ext <<_ACEOF
32396/* confdefs.h. */
32397_ACEOF
32398cat confdefs.h >>conftest.$ac_ext
32399cat >>conftest.$ac_ext <<_ACEOF
32400/* end confdefs.h. */
ac1cb8d3
VS
32401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32403#define $ac_func innocuous_$ac_func
32404
a848cd7e
SC
32405/* System header to define __stub macros and hopefully few prototypes,
32406 which can conflict with char $ac_func (); below.
32407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32408 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32409
a848cd7e
SC
32410#ifdef __STDC__
32411# include <limits.h>
32412#else
32413# include <assert.h>
32414#endif
ac1cb8d3
VS
32415
32416#undef $ac_func
32417
a848cd7e
SC
32418/* Override any gcc2 internal prototype to avoid an error. */
32419#ifdef __cplusplus
32420extern "C"
32421{
32422#endif
32423/* We use char because int might match the return type of a gcc2
32424 builtin and then its argument prototype would still apply. */
32425char $ac_func ();
32426/* The GNU C library defines this for functions which it implements
32427 to always fail with ENOSYS. Some functions are actually named
32428 something starting with __ and the normal name is an alias. */
32429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32430choke me
32431#else
32432char (*f) () = $ac_func;
32433#endif
32434#ifdef __cplusplus
32435}
32436#endif
32437
32438int
32439main ()
32440{
32441return f != $ac_func;
32442 ;
32443 return 0;
32444}
32445_ACEOF
32446rm -f conftest.$ac_objext conftest$ac_exeext
32447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32448 (eval $ac_link) 2>conftest.er1
a848cd7e 32449 ac_status=$?
ac1cb8d3
VS
32450 grep -v '^ *+' conftest.er1 >conftest.err
32451 rm -f conftest.er1
32452 cat conftest.err >&5
a848cd7e
SC
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } &&
9dd0f6c2 32455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32458 ac_status=$?
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; } &&
32461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32463 (eval $ac_try) 2>&5
32464 ac_status=$?
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); }; }; then
32467 eval "$as_ac_var=yes"
32468else
32469 echo "$as_me: failed program was:" >&5
32470sed 's/^/| /' conftest.$ac_ext >&5
32471
32472eval "$as_ac_var=no"
32473fi
ac1cb8d3
VS
32474rm -f conftest.err conftest.$ac_objext \
32475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32476fi
32477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32479if test `eval echo '${'$as_ac_var'}'` = yes; then
32480 cat >>confdefs.h <<_ACEOF
32481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32482_ACEOF
32483 cat >>confdefs.h <<\_ACEOF
32484#define HAVE_NANOSLEEP 1
32485_ACEOF
32486
32487else
32488
32489 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32490echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32491if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493else
32494 ac_check_lib_save_LIBS=$LIBS
32495LIBS="-lposix4 $LIBS"
32496cat >conftest.$ac_ext <<_ACEOF
32497/* confdefs.h. */
32498_ACEOF
32499cat confdefs.h >>conftest.$ac_ext
32500cat >>conftest.$ac_ext <<_ACEOF
32501/* end confdefs.h. */
32502
32503/* Override any gcc2 internal prototype to avoid an error. */
32504#ifdef __cplusplus
32505extern "C"
32506#endif
32507/* We use char because int might match the return type of a gcc2
32508 builtin and then its argument prototype would still apply. */
32509char nanosleep ();
32510int
32511main ()
32512{
32513nanosleep ();
32514 ;
32515 return 0;
32516}
32517_ACEOF
32518rm -f conftest.$ac_objext conftest$ac_exeext
32519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32520 (eval $ac_link) 2>conftest.er1
a848cd7e 32521 ac_status=$?
ac1cb8d3
VS
32522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
a848cd7e
SC
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
9dd0f6c2 32527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529 (eval $ac_try) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; } &&
32533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535 (eval $ac_try) 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
32539 ac_cv_lib_posix4_nanosleep=yes
32540else
32541 echo "$as_me: failed program was:" >&5
32542sed 's/^/| /' conftest.$ac_ext >&5
32543
32544ac_cv_lib_posix4_nanosleep=no
32545fi
ac1cb8d3
VS
32546rm -f conftest.err conftest.$ac_objext \
32547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32548LIBS=$ac_check_lib_save_LIBS
32549fi
32550echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32551echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32552if test $ac_cv_lib_posix4_nanosleep = yes; then
32553
32554 cat >>confdefs.h <<\_ACEOF
32555#define HAVE_NANOSLEEP 1
32556_ACEOF
32557
32558 POSIX4_LINK=" -lposix4"
32559
32560else
32561
32562
32563for ac_func in usleep
32564do
32565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32566echo "$as_me:$LINENO: checking for $ac_func" >&5
32567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32568if eval "test \"\${$as_ac_var+set}\" = set"; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570else
32571 cat >conftest.$ac_ext <<_ACEOF
32572/* confdefs.h. */
32573_ACEOF
32574cat confdefs.h >>conftest.$ac_ext
32575cat >>conftest.$ac_ext <<_ACEOF
32576/* end confdefs.h. */
ac1cb8d3
VS
32577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32579#define $ac_func innocuous_$ac_func
32580
a848cd7e
SC
32581/* System header to define __stub macros and hopefully few prototypes,
32582 which can conflict with char $ac_func (); below.
32583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32584 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32585
a848cd7e
SC
32586#ifdef __STDC__
32587# include <limits.h>
32588#else
32589# include <assert.h>
32590#endif
ac1cb8d3
VS
32591
32592#undef $ac_func
32593
a848cd7e
SC
32594/* Override any gcc2 internal prototype to avoid an error. */
32595#ifdef __cplusplus
32596extern "C"
32597{
32598#endif
32599/* We use char because int might match the return type of a gcc2
32600 builtin and then its argument prototype would still apply. */
32601char $ac_func ();
32602/* The GNU C library defines this for functions which it implements
32603 to always fail with ENOSYS. Some functions are actually named
32604 something starting with __ and the normal name is an alias. */
32605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32606choke me
32607#else
32608char (*f) () = $ac_func;
32609#endif
32610#ifdef __cplusplus
32611}
32612#endif
32613
32614int
32615main ()
32616{
32617return f != $ac_func;
32618 ;
32619 return 0;
32620}
32621_ACEOF
32622rm -f conftest.$ac_objext conftest$ac_exeext
32623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32624 (eval $ac_link) 2>conftest.er1
a848cd7e 32625 ac_status=$?
ac1cb8d3
VS
32626 grep -v '^ *+' conftest.er1 >conftest.err
32627 rm -f conftest.er1
32628 cat conftest.err >&5
a848cd7e
SC
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); } &&
9dd0f6c2 32631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; } &&
32637 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
32643 eval "$as_ac_var=yes"
32644else
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648eval "$as_ac_var=no"
32649fi
ac1cb8d3
VS
32650rm -f conftest.err conftest.$ac_objext \
32651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32652fi
32653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32654echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32655if test `eval echo '${'$as_ac_var'}'` = yes; then
32656 cat >>confdefs.h <<_ACEOF
32657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32658_ACEOF
32659 cat >>confdefs.h <<\_ACEOF
32660#define HAVE_USLEEP 1
32661_ACEOF
32662
32663else
32664 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32665echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32666
32667fi
32668done
32669
32670
32671
32672fi
32673
32674
32675
32676fi
32677done
32678
32679fi
32680
32681
32682
32683for ac_func in uname gethostname
32684do
32685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32686echo "$as_me:$LINENO: checking for $ac_func" >&5
32687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32688if eval "test \"\${$as_ac_var+set}\" = set"; then
32689 echo $ECHO_N "(cached) $ECHO_C" >&6
32690else
32691 cat >conftest.$ac_ext <<_ACEOF
32692/* confdefs.h. */
32693_ACEOF
32694cat confdefs.h >>conftest.$ac_ext
32695cat >>conftest.$ac_ext <<_ACEOF
32696/* end confdefs.h. */
ac1cb8d3
VS
32697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32699#define $ac_func innocuous_$ac_func
32700
a848cd7e
SC
32701/* System header to define __stub macros and hopefully few prototypes,
32702 which can conflict with char $ac_func (); below.
32703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32705
a848cd7e
SC
32706#ifdef __STDC__
32707# include <limits.h>
32708#else
32709# include <assert.h>
32710#endif
ac1cb8d3
VS
32711
32712#undef $ac_func
32713
a848cd7e
SC
32714/* Override any gcc2 internal prototype to avoid an error. */
32715#ifdef __cplusplus
32716extern "C"
32717{
32718#endif
32719/* We use char because int might match the return type of a gcc2
32720 builtin and then its argument prototype would still apply. */
32721char $ac_func ();
32722/* The GNU C library defines this for functions which it implements
32723 to always fail with ENOSYS. Some functions are actually named
32724 something starting with __ and the normal name is an alias. */
32725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32726choke me
32727#else
32728char (*f) () = $ac_func;
32729#endif
32730#ifdef __cplusplus
32731}
32732#endif
32733
32734int
32735main ()
32736{
32737return f != $ac_func;
32738 ;
32739 return 0;
32740}
32741_ACEOF
32742rm -f conftest.$ac_objext conftest$ac_exeext
32743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32744 (eval $ac_link) 2>conftest.er1
a848cd7e 32745 ac_status=$?
ac1cb8d3
VS
32746 grep -v '^ *+' conftest.er1 >conftest.err
32747 rm -f conftest.er1
32748 cat conftest.err >&5
a848cd7e
SC
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); } &&
9dd0f6c2 32751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 (eval $ac_try) 2>&5
32754 ac_status=$?
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; } &&
32757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32759 (eval $ac_try) 2>&5
32760 ac_status=$?
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); }; }; then
32763 eval "$as_ac_var=yes"
32764else
32765 echo "$as_me: failed program was:" >&5
32766sed 's/^/| /' conftest.$ac_ext >&5
32767
32768eval "$as_ac_var=no"
32769fi
ac1cb8d3
VS
32770rm -f conftest.err conftest.$ac_objext \
32771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32772fi
32773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32775if test `eval echo '${'$as_ac_var'}'` = yes; then
32776 cat >>confdefs.h <<_ACEOF
32777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32778_ACEOF
32779 break
32780fi
32781done
32782
32783
32784
32785
32786ac_ext=cc
32787ac_cpp='$CXXCPP $CPPFLAGS'
32788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32791
32792
32793
32794for ac_func in strtok_r
32795do
32796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32797echo "$as_me:$LINENO: checking for $ac_func" >&5
32798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32799if eval "test \"\${$as_ac_var+set}\" = set"; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
ac1cb8d3
VS
32808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32810#define $ac_func innocuous_$ac_func
32811
a848cd7e
SC
32812/* System header to define __stub macros and hopefully few prototypes,
32813 which can conflict with char $ac_func (); below.
32814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32816
a848cd7e
SC
32817#ifdef __STDC__
32818# include <limits.h>
32819#else
32820# include <assert.h>
32821#endif
ac1cb8d3
VS
32822
32823#undef $ac_func
32824
a848cd7e
SC
32825/* Override any gcc2 internal prototype to avoid an error. */
32826#ifdef __cplusplus
32827extern "C"
32828{
32829#endif
32830/* We use char because int might match the return type of a gcc2
32831 builtin and then its argument prototype would still apply. */
32832char $ac_func ();
32833/* The GNU C library defines this for functions which it implements
32834 to always fail with ENOSYS. Some functions are actually named
32835 something starting with __ and the normal name is an alias. */
32836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32837choke me
32838#else
32839char (*f) () = $ac_func;
32840#endif
32841#ifdef __cplusplus
32842}
32843#endif
32844
32845int
32846main ()
32847{
32848return f != $ac_func;
32849 ;
32850 return 0;
32851}
32852_ACEOF
32853rm -f conftest.$ac_objext conftest$ac_exeext
32854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32855 (eval $ac_link) 2>conftest.er1
a848cd7e 32856 ac_status=$?
ac1cb8d3
VS
32857 grep -v '^ *+' conftest.er1 >conftest.err
32858 rm -f conftest.er1
32859 cat conftest.err >&5
a848cd7e
SC
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
9dd0f6c2 32862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 eval "$as_ac_var=yes"
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879eval "$as_ac_var=no"
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883fi
32884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886if test `eval echo '${'$as_ac_var'}'` = yes; then
32887 cat >>confdefs.h <<_ACEOF
32888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32889_ACEOF
32890
32891fi
32892done
32893
32894
32895ac_ext=c
32896ac_cpp='$CPP $CPPFLAGS'
32897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32899ac_compiler_gnu=$ac_cv_c_compiler_gnu
32900
32901
32902INET_LINK=
32903
32904for ac_func in inet_addr
32905do
32906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32907echo "$as_me:$LINENO: checking for $ac_func" >&5
32908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32909if eval "test \"\${$as_ac_var+set}\" = set"; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911else
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
ac1cb8d3
VS
32918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32920#define $ac_func innocuous_$ac_func
32921
a848cd7e
SC
32922/* System header to define __stub macros and hopefully few prototypes,
32923 which can conflict with char $ac_func (); below.
32924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32926
a848cd7e
SC
32927#ifdef __STDC__
32928# include <limits.h>
32929#else
32930# include <assert.h>
32931#endif
ac1cb8d3
VS
32932
32933#undef $ac_func
32934
a848cd7e
SC
32935/* Override any gcc2 internal prototype to avoid an error. */
32936#ifdef __cplusplus
32937extern "C"
32938{
32939#endif
32940/* We use char because int might match the return type of a gcc2
32941 builtin and then its argument prototype would still apply. */
32942char $ac_func ();
32943/* The GNU C library defines this for functions which it implements
32944 to always fail with ENOSYS. Some functions are actually named
32945 something starting with __ and the normal name is an alias. */
32946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32947choke me
32948#else
32949char (*f) () = $ac_func;
32950#endif
32951#ifdef __cplusplus
32952}
32953#endif
32954
32955int
32956main ()
32957{
32958return f != $ac_func;
32959 ;
32960 return 0;
32961}
32962_ACEOF
32963rm -f conftest.$ac_objext conftest$ac_exeext
32964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32965 (eval $ac_link) 2>conftest.er1
a848cd7e 32966 ac_status=$?
ac1cb8d3
VS
32967 grep -v '^ *+' conftest.er1 >conftest.err
32968 rm -f conftest.er1
32969 cat conftest.err >&5
a848cd7e
SC
32970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971 (exit $ac_status); } &&
9dd0f6c2 32972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974 (eval $ac_try) 2>&5
32975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; } &&
32978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980 (eval $ac_try) 2>&5
32981 ac_status=$?
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32984 eval "$as_ac_var=yes"
32985else
32986 echo "$as_me: failed program was:" >&5
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
32989eval "$as_ac_var=no"
32990fi
ac1cb8d3
VS
32991rm -f conftest.err conftest.$ac_objext \
32992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32993fi
32994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32996if test `eval echo '${'$as_ac_var'}'` = yes; then
32997 cat >>confdefs.h <<_ACEOF
32998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32999_ACEOF
33000 cat >>confdefs.h <<\_ACEOF
33001#define HAVE_INET_ADDR 1
33002_ACEOF
33003
33004else
33005
33006 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33007echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33008if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33009 echo $ECHO_N "(cached) $ECHO_C" >&6
33010else
33011 ac_check_lib_save_LIBS=$LIBS
33012LIBS="-lnsl $LIBS"
33013cat >conftest.$ac_ext <<_ACEOF
33014/* confdefs.h. */
33015_ACEOF
33016cat confdefs.h >>conftest.$ac_ext
33017cat >>conftest.$ac_ext <<_ACEOF
33018/* end confdefs.h. */
33019
33020/* Override any gcc2 internal prototype to avoid an error. */
33021#ifdef __cplusplus
33022extern "C"
33023#endif
33024/* We use char because int might match the return type of a gcc2
33025 builtin and then its argument prototype would still apply. */
33026char inet_addr ();
33027int
33028main ()
33029{
33030inet_addr ();
33031 ;
33032 return 0;
33033}
33034_ACEOF
33035rm -f conftest.$ac_objext conftest$ac_exeext
33036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33037 (eval $ac_link) 2>conftest.er1
a848cd7e 33038 ac_status=$?
ac1cb8d3
VS
33039 grep -v '^ *+' conftest.er1 >conftest.err
33040 rm -f conftest.er1
33041 cat conftest.err >&5
a848cd7e
SC
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } &&
9dd0f6c2 33044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33047 ac_status=$?
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33056 ac_cv_lib_nsl_inet_addr=yes
33057else
33058 echo "$as_me: failed program was:" >&5
33059sed 's/^/| /' conftest.$ac_ext >&5
33060
33061ac_cv_lib_nsl_inet_addr=no
33062fi
ac1cb8d3
VS
33063rm -f conftest.err conftest.$ac_objext \
33064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33065LIBS=$ac_check_lib_save_LIBS
33066fi
33067echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33068echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33069if test $ac_cv_lib_nsl_inet_addr = yes; then
33070 INET_LINK="nsl"
33071else
33072
33073 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33074echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33075if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33076 echo $ECHO_N "(cached) $ECHO_C" >&6
33077else
33078 ac_check_lib_save_LIBS=$LIBS
33079LIBS="-lresolv $LIBS"
33080cat >conftest.$ac_ext <<_ACEOF
33081/* confdefs.h. */
33082_ACEOF
33083cat confdefs.h >>conftest.$ac_ext
33084cat >>conftest.$ac_ext <<_ACEOF
33085/* end confdefs.h. */
33086
33087/* Override any gcc2 internal prototype to avoid an error. */
33088#ifdef __cplusplus
33089extern "C"
33090#endif
33091/* We use char because int might match the return type of a gcc2
33092 builtin and then its argument prototype would still apply. */
33093char inet_addr ();
33094int
33095main ()
33096{
33097inet_addr ();
33098 ;
33099 return 0;
33100}
33101_ACEOF
33102rm -f conftest.$ac_objext conftest$ac_exeext
33103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33104 (eval $ac_link) 2>conftest.er1
a848cd7e 33105 ac_status=$?
ac1cb8d3
VS
33106 grep -v '^ *+' conftest.er1 >conftest.err
33107 rm -f conftest.er1
33108 cat conftest.err >&5
a848cd7e
SC
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); } &&
9dd0f6c2 33111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; } &&
33117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119 (eval $ac_try) 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 ac_cv_lib_resolv_inet_addr=yes
33124else
33125 echo "$as_me: failed program was:" >&5
33126sed 's/^/| /' conftest.$ac_ext >&5
33127
33128ac_cv_lib_resolv_inet_addr=no
33129fi
ac1cb8d3
VS
33130rm -f conftest.err conftest.$ac_objext \
33131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33132LIBS=$ac_check_lib_save_LIBS
33133fi
33134echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33135echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33136if test $ac_cv_lib_resolv_inet_addr = yes; then
33137 INET_LINK="resolv"
33138else
33139
33140 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33141echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33142if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144else
33145 ac_check_lib_save_LIBS=$LIBS
33146LIBS="-lsocket $LIBS"
33147cat >conftest.$ac_ext <<_ACEOF
33148/* confdefs.h. */
33149_ACEOF
33150cat confdefs.h >>conftest.$ac_ext
33151cat >>conftest.$ac_ext <<_ACEOF
33152/* end confdefs.h. */
33153
33154/* Override any gcc2 internal prototype to avoid an error. */
33155#ifdef __cplusplus
33156extern "C"
33157#endif
33158/* We use char because int might match the return type of a gcc2
33159 builtin and then its argument prototype would still apply. */
33160char inet_addr ();
33161int
33162main ()
33163{
33164inet_addr ();
33165 ;
33166 return 0;
33167}
33168_ACEOF
33169rm -f conftest.$ac_objext conftest$ac_exeext
33170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33171 (eval $ac_link) 2>conftest.er1
a848cd7e 33172 ac_status=$?
ac1cb8d3
VS
33173 grep -v '^ *+' conftest.er1 >conftest.err
33174 rm -f conftest.er1
33175 cat conftest.err >&5
a848cd7e
SC
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); } &&
9dd0f6c2 33178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33180 (eval $ac_try) 2>&5
33181 ac_status=$?
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; } &&
33184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186 (eval $ac_try) 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; }; then
33190 ac_cv_lib_socket_inet_addr=yes
33191else
33192 echo "$as_me: failed program was:" >&5
33193sed 's/^/| /' conftest.$ac_ext >&5
33194
33195ac_cv_lib_socket_inet_addr=no
33196fi
ac1cb8d3
VS
33197rm -f conftest.err conftest.$ac_objext \
33198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33199LIBS=$ac_check_lib_save_LIBS
33200fi
33201echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33202echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33203if test $ac_cv_lib_socket_inet_addr = yes; then
33204 INET_LINK="socket"
33205
33206fi
33207
33208
33209
33210fi
33211
33212
33213
33214fi
33215
33216
33217
33218fi
33219done
33220
33221
33222
33223for ac_func in inet_aton
33224do
33225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33226echo "$as_me:$LINENO: checking for $ac_func" >&5
33227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33228if eval "test \"\${$as_ac_var+set}\" = set"; then
33229 echo $ECHO_N "(cached) $ECHO_C" >&6
33230else
33231 cat >conftest.$ac_ext <<_ACEOF
33232/* confdefs.h. */
33233_ACEOF
33234cat confdefs.h >>conftest.$ac_ext
33235cat >>conftest.$ac_ext <<_ACEOF
33236/* end confdefs.h. */
ac1cb8d3
VS
33237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33239#define $ac_func innocuous_$ac_func
33240
a848cd7e
SC
33241/* System header to define __stub macros and hopefully few prototypes,
33242 which can conflict with char $ac_func (); below.
33243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33245
a848cd7e
SC
33246#ifdef __STDC__
33247# include <limits.h>
33248#else
33249# include <assert.h>
33250#endif
ac1cb8d3
VS
33251
33252#undef $ac_func
33253
a848cd7e
SC
33254/* Override any gcc2 internal prototype to avoid an error. */
33255#ifdef __cplusplus
33256extern "C"
33257{
33258#endif
33259/* We use char because int might match the return type of a gcc2
33260 builtin and then its argument prototype would still apply. */
33261char $ac_func ();
33262/* The GNU C library defines this for functions which it implements
33263 to always fail with ENOSYS. Some functions are actually named
33264 something starting with __ and the normal name is an alias. */
33265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33266choke me
33267#else
33268char (*f) () = $ac_func;
33269#endif
33270#ifdef __cplusplus
33271}
33272#endif
33273
33274int
33275main ()
33276{
33277return f != $ac_func;
33278 ;
33279 return 0;
33280}
33281_ACEOF
33282rm -f conftest.$ac_objext conftest$ac_exeext
33283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33284 (eval $ac_link) 2>conftest.er1
a848cd7e 33285 ac_status=$?
ac1cb8d3
VS
33286 grep -v '^ *+' conftest.er1 >conftest.err
33287 rm -f conftest.er1
33288 cat conftest.err >&5
a848cd7e
SC
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } &&
9dd0f6c2 33291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293 (eval $ac_try) 2>&5
33294 ac_status=$?
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; } &&
33297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33299 (eval $ac_try) 2>&5
33300 ac_status=$?
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); }; }; then
33303 eval "$as_ac_var=yes"
33304else
33305 echo "$as_me: failed program was:" >&5
33306sed 's/^/| /' conftest.$ac_ext >&5
33307
33308eval "$as_ac_var=no"
33309fi
ac1cb8d3
VS
33310rm -f conftest.err conftest.$ac_objext \
33311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33312fi
33313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33314echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33315if test `eval echo '${'$as_ac_var'}'` = yes; then
33316 cat >>confdefs.h <<_ACEOF
33317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33318_ACEOF
33319 cat >>confdefs.h <<\_ACEOF
33320#define HAVE_INET_ATON 1
33321_ACEOF
33322
33323else
33324
33325 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33326echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33327echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33328if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33329 echo $ECHO_N "(cached) $ECHO_C" >&6
33330else
33331 ac_check_lib_save_LIBS=$LIBS
33332LIBS="-l$INET_LINK $LIBS"
33333cat >conftest.$ac_ext <<_ACEOF
33334/* confdefs.h. */
33335_ACEOF
33336cat confdefs.h >>conftest.$ac_ext
33337cat >>conftest.$ac_ext <<_ACEOF
33338/* end confdefs.h. */
33339
33340/* Override any gcc2 internal prototype to avoid an error. */
33341#ifdef __cplusplus
33342extern "C"
33343#endif
33344/* We use char because int might match the return type of a gcc2
33345 builtin and then its argument prototype would still apply. */
33346char inet_aton ();
33347int
33348main ()
33349{
33350inet_aton ();
33351 ;
33352 return 0;
33353}
33354_ACEOF
33355rm -f conftest.$ac_objext conftest$ac_exeext
33356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33357 (eval $ac_link) 2>conftest.er1
a848cd7e 33358 ac_status=$?
ac1cb8d3
VS
33359 grep -v '^ *+' conftest.er1 >conftest.err
33360 rm -f conftest.er1
33361 cat conftest.err >&5
a848cd7e
SC
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); } &&
9dd0f6c2 33364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; } &&
33370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372 (eval $ac_try) 2>&5
33373 ac_status=$?
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); }; }; then
33376 eval "$as_ac_Lib=yes"
33377else
33378 echo "$as_me: failed program was:" >&5
33379sed 's/^/| /' conftest.$ac_ext >&5
33380
33381eval "$as_ac_Lib=no"
33382fi
ac1cb8d3
VS
33383rm -f conftest.err conftest.$ac_objext \
33384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33385LIBS=$ac_check_lib_save_LIBS
33386fi
33387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33388echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33389if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33390 cat >>confdefs.h <<\_ACEOF
33391#define HAVE_INET_ATON 1
33392_ACEOF
33393
33394fi
33395
33396
33397fi
33398done
33399
33400
33401if test "x$INET_LINK" != "x"; then
33402 cat >>confdefs.h <<\_ACEOF
33403#define HAVE_INET_ADDR 1
33404_ACEOF
33405
33406 INET_LINK=" -l$INET_LINK"
33407fi
33408
33409fi
33410
33411
33412
33413EXTRALIBS_ESD=
33414echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33415echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33416if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33418else
33419 ac_check_lib_save_LIBS=$LIBS
33420LIBS="-lesd $LIBS"
33421cat >conftest.$ac_ext <<_ACEOF
33422/* confdefs.h. */
33423_ACEOF
33424cat confdefs.h >>conftest.$ac_ext
33425cat >>conftest.$ac_ext <<_ACEOF
33426/* end confdefs.h. */
33427
33428/* Override any gcc2 internal prototype to avoid an error. */
33429#ifdef __cplusplus
33430extern "C"
33431#endif
33432/* We use char because int might match the return type of a gcc2
33433 builtin and then its argument prototype would still apply. */
33434char esd_close ();
33435int
33436main ()
33437{
33438esd_close ();
33439 ;
33440 return 0;
33441}
33442_ACEOF
33443rm -f conftest.$ac_objext conftest$ac_exeext
33444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33445 (eval $ac_link) 2>conftest.er1
a848cd7e 33446 ac_status=$?
ac1cb8d3
VS
33447 grep -v '^ *+' conftest.er1 >conftest.err
33448 rm -f conftest.er1
33449 cat conftest.err >&5
a848cd7e
SC
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); } &&
9dd0f6c2 33452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33454 (eval $ac_try) 2>&5
33455 ac_status=$?
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; } &&
33458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33460 (eval $ac_try) 2>&5
33461 ac_status=$?
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); }; }; then
33464 ac_cv_lib_esd_esd_close=yes
33465else
33466 echo "$as_me: failed program was:" >&5
33467sed 's/^/| /' conftest.$ac_ext >&5
33468
33469ac_cv_lib_esd_esd_close=no
33470fi
ac1cb8d3
VS
33471rm -f conftest.err conftest.$ac_objext \
33472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33473LIBS=$ac_check_lib_save_LIBS
33474fi
33475echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33476echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33477if test $ac_cv_lib_esd_esd_close = yes; then
33478
33479
33480for ac_header in esd.h
33481do
33482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33483if eval "test \"\${$as_ac_Header+set}\" = set"; then
33484 echo "$as_me:$LINENO: checking for $ac_header" >&5
33485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33486if eval "test \"\${$as_ac_Header+set}\" = set"; then
33487 echo $ECHO_N "(cached) $ECHO_C" >&6
33488fi
33489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33491else
33492 # Is the header compilable?
33493echo "$as_me:$LINENO: checking $ac_header usability" >&5
33494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33495cat >conftest.$ac_ext <<_ACEOF
33496/* confdefs.h. */
33497_ACEOF
33498cat confdefs.h >>conftest.$ac_ext
33499cat >>conftest.$ac_ext <<_ACEOF
33500/* end confdefs.h. */
33501$ac_includes_default
33502#include <$ac_header>
33503_ACEOF
33504rm -f conftest.$ac_objext
33505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33506 (eval $ac_compile) 2>conftest.er1
a848cd7e 33507 ac_status=$?
ac1cb8d3
VS
33508 grep -v '^ *+' conftest.er1 >conftest.err
33509 rm -f conftest.er1
33510 cat conftest.err >&5
a848cd7e
SC
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); } &&
9dd0f6c2 33513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; } &&
33519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
33525 ac_header_compiler=yes
33526else
33527 echo "$as_me: failed program was:" >&5
33528sed 's/^/| /' conftest.$ac_ext >&5
33529
33530ac_header_compiler=no
33531fi
ac1cb8d3 33532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33534echo "${ECHO_T}$ac_header_compiler" >&6
33535
33536# Is the header present?
33537echo "$as_me:$LINENO: checking $ac_header presence" >&5
33538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33539cat >conftest.$ac_ext <<_ACEOF
33540/* confdefs.h. */
33541_ACEOF
33542cat confdefs.h >>conftest.$ac_ext
33543cat >>conftest.$ac_ext <<_ACEOF
33544/* end confdefs.h. */
33545#include <$ac_header>
33546_ACEOF
33547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33549 ac_status=$?
33550 grep -v '^ *+' conftest.er1 >conftest.err
33551 rm -f conftest.er1
33552 cat conftest.err >&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } >/dev/null; then
33555 if test -s conftest.err; then
33556 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33558 else
33559 ac_cpp_err=
33560 fi
33561else
33562 ac_cpp_err=yes
33563fi
33564if test -z "$ac_cpp_err"; then
33565 ac_header_preproc=yes
33566else
33567 echo "$as_me: failed program was:" >&5
33568sed 's/^/| /' conftest.$ac_ext >&5
33569
33570 ac_header_preproc=no
33571fi
33572rm -f conftest.err conftest.$ac_ext
33573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33574echo "${ECHO_T}$ac_header_preproc" >&6
33575
33576# So? What about this header?
ac1cb8d3
VS
33577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33578 yes:no: )
a848cd7e
SC
33579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33583 ac_header_preproc=yes
a848cd7e 33584 ;;
ac1cb8d3 33585 no:yes:* )
a848cd7e
SC
33586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33598 (
33599 cat <<\_ASBOX
ac1cb8d3
VS
33600## ----------------------------------------- ##
33601## Report this to wx-dev@lists.wxwidgets.org ##
33602## ----------------------------------------- ##
a848cd7e
SC
33603_ASBOX
33604 ) |
33605 sed "s/^/$as_me: WARNING: /" >&2
33606 ;;
33607esac
33608echo "$as_me:$LINENO: checking for $ac_header" >&5
33609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33610if eval "test \"\${$as_ac_Header+set}\" = set"; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33612else
ac1cb8d3 33613 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33614fi
33615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33617
33618fi
33619if test `eval echo '${'$as_ac_Header'}'` = yes; then
33620 cat >>confdefs.h <<_ACEOF
33621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33622_ACEOF
33623
33624 EXTRALIBS_ESD="-lesd"
33625
33626fi
33627
33628done
33629
33630
33631fi
33632
33633
33634
33635echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33636echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33637cat >conftest.$ac_ext <<_ACEOF
33638/* confdefs.h. */
33639_ACEOF
33640cat confdefs.h >>conftest.$ac_ext
33641cat >>conftest.$ac_ext <<_ACEOF
33642/* end confdefs.h. */
33643#ifdef __linux__
33644 #include <linux/cdrom.h>
33645 #else
33646 /* For Solaris */
33647 #include <sys/cdio.h>
33648 #endif
33649
33650int
33651main ()
33652{
33653struct cdrom_tocentry entry, old_entry;
33654 ;
33655 return 0;
33656}
33657_ACEOF
33658rm -f conftest.$ac_objext
33659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33660 (eval $ac_compile) 2>conftest.er1
a848cd7e 33661 ac_status=$?
ac1cb8d3
VS
33662 grep -v '^ *+' conftest.er1 >conftest.err
33663 rm -f conftest.er1
33664 cat conftest.err >&5
a848cd7e
SC
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); } &&
9dd0f6c2 33667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33669 (eval $ac_try) 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; } &&
33673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33675 (eval $ac_try) 2>&5
33676 ac_status=$?
33677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33678 (exit $ac_status); }; }; then
33679 echo "$as_me:$LINENO: result: yes" >&5
33680echo "${ECHO_T}yes" >&6
33681 cat >>confdefs.h <<\_ACEOF
33682#define HAVE_KNOWN_CDROM_INTERFACE 1
33683_ACEOF
33684
33685else
33686 echo "$as_me: failed program was:" >&5
33687sed 's/^/| /' conftest.$ac_ext >&5
33688
33689echo "$as_me:$LINENO: result: no" >&5
33690echo "${ECHO_T}no" >&6
33691fi
ac1cb8d3 33692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33693
33694
33695cat >confcache <<\_ACEOF
33696# This file is a shell script that caches the results of configure
33697# tests run on this system so they can be shared between configure
33698# scripts and configure runs, see configure's option --config-cache.
33699# It is not useful on other systems. If it contains results you don't
33700# want to keep, you may remove or edit it.
33701#
33702# config.status only pays attention to the cache file if you give it
33703# the --recheck option to rerun configure.
33704#
33705# `ac_cv_env_foo' variables (set or unset) will be overridden when
33706# loading this file, other *unset* `ac_cv_foo' will be assigned the
33707# following values.
33708
33709_ACEOF
33710
33711# The following way of writing the cache mishandles newlines in values,
33712# but we know of no workaround that is simple, portable, and efficient.
33713# So, don't put newlines in cache variables' values.
33714# Ultrix sh set writes to stderr and can't be redirected directly,
33715# and sets the high bit in the cache file unless we assign to the vars.
33716{
33717 (set) 2>&1 |
33718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33719 *ac_space=\ *)
33720 # `set' does not quote correctly, so add quotes (double-quote
33721 # substitution turns \\\\ into \\, and sed turns \\ into \).
33722 sed -n \
ac1cb8d3
VS
33723 "s/'/'\\\\''/g;
33724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33725 ;;
33726 *)
33727 # `set' quotes correctly as required by POSIX, so do not add quotes.
33728 sed -n \
ac1cb8d3 33729 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33730 ;;
33731 esac;
33732} |
33733 sed '
33734 t clear
33735 : clear
33736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33737 t end
33738 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33739 : end' >>confcache
33740if diff $cache_file confcache >/dev/null 2>&1; then :; else
33741 if test -w $cache_file; then
33742 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33743 cat confcache >$cache_file
33744 else
33745 echo "not updating unwritable cache $cache_file"
33746 fi
33747fi
33748rm -f confcache
33749
33750
33751CPP_MT_FLAG=
33752if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33753
33754
33755 THREADS_LINK=
33756 THREADS_CFLAGS=
33757
33758 if test "$wxUSE_THREADS" = "yes" ; then
33759 if test "$USE_BEOS" = 1; then
33760 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33761echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33762 wxUSE_THREADS="no"
33763 fi
33764 fi
33765
33766 if test "$wxUSE_THREADS" = "yes" ; then
33767
33768
33769 THREAD_OPTS="-pthread"
33770 case "${host}" in
33771 *-*-solaris2* | *-*-sunos4* )
33772 if test "x$GCC" = "xyes"; then
33773 THREAD_OPTS="-pthreads $THREAD_OPTS"
33774 else
33775 THREAD_OPTS="-mt $THREAD_OPTS"
33776 fi
33777 ;;
33778 *-*-freebsd*)
33779 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33780 ;;
33781 *-*-darwin* | *-*-cygwin* )
33782 THREAD_OPTS=""
33783 ;;
33784 *-*-aix*)
33785 THREAD_OPTS="pthreads"
33786 ;;
33787 *-hp-hpux* )
33788 if test "x$GCC" != "xyes"; then
33789 THREAD_OPTS=""
33790 fi
33791 ;;
33792
33793 *-*-irix* )
33794 if test "x$GCC" = "xyes"; then
33795 THREAD_OPTS=""
33796 fi
33797 ;;
33798
33799 *-*-*UnixWare*)
33800 if test "x$GCC" != "xyes"; then
33801 THREAD_OPTS="-Ethread"
33802 fi
33803 ;;
33804 esac
33805
33806 THREAD_OPTS="$THREAD_OPTS pthread none"
33807
33808 THREADS_OK=no
33809 for flag in $THREAD_OPTS; do
33810 case $flag in
33811 none)
33812 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33813echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33814 ;;
33815
33816 -*)
33817 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33818echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33819 THREADS_CFLAGS="$flag"
33820 ;;
33821
33822 *)
33823 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33824echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33825 THREADS_LINK="-l$flag"
33826 ;;
33827 esac
33828
33829 save_LIBS="$LIBS"
33830 save_CFLAGS="$CFLAGS"
33831 LIBS="$THREADS_LINK $LIBS"
33832 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33833
33834 cat >conftest.$ac_ext <<_ACEOF
33835/* confdefs.h. */
33836_ACEOF
33837cat confdefs.h >>conftest.$ac_ext
33838cat >>conftest.$ac_ext <<_ACEOF
33839/* end confdefs.h. */
33840#include <pthread.h>
33841int
33842main ()
33843{
33844pthread_create(0,0,0,0);
33845 ;
33846 return 0;
33847}
33848_ACEOF
33849rm -f conftest.$ac_objext conftest$ac_exeext
33850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33851 (eval $ac_link) 2>conftest.er1
a848cd7e 33852 ac_status=$?
ac1cb8d3
VS
33853 grep -v '^ *+' conftest.er1 >conftest.err
33854 rm -f conftest.er1
33855 cat conftest.err >&5
a848cd7e
SC
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } &&
9dd0f6c2 33858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33860 (eval $ac_try) 2>&5
33861 ac_status=$?
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); }; } &&
33864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33867 ac_status=$?
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; }; then
33870 THREADS_OK=yes
33871else
33872 echo "$as_me: failed program was:" >&5
33873sed 's/^/| /' conftest.$ac_ext >&5
33874
33875fi
ac1cb8d3
VS
33876rm -f conftest.err conftest.$ac_objext \
33877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33878
33879 LIBS="$save_LIBS"
33880 CFLAGS="$save_CFLAGS"
33881
33882 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33883echo "${ECHO_T}$THREADS_OK" >&6
33884 if test "x$THREADS_OK" = "xyes"; then
33885 break;
33886 fi
33887
33888 THREADS_LINK=""
33889 THREADS_CFLAGS=""
33890 done
33891
33892 if test "x$THREADS_OK" != "xyes"; then
33893 wxUSE_THREADS=no
33894 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33895echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33896 else
33897 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33898 LIBS="$THREADS_LINK $LIBS"
33899
33900 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33901echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33902 flag=no
33903 case "${host}" in
33904 *-aix*)
33905 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33906 flag="-D_THREAD_SAFE"
33907 ;;
33908 *-freebsd*)
33909 flag="-D_THREAD_SAFE"
33910 ;;
33911 *-hp-hpux* )
33912 flag="-D_REENTRANT"
33913 if test "x$GCC" != "xyes"; then
33914 flag="$flag -D_RWSTD_MULTI_THREAD"
33915 fi
33916 ;;
33917 *solaris* | alpha*-osf*)
33918 flag="-D_REENTRANT"
33919 ;;
33920 esac
33921 echo "$as_me:$LINENO: result: ${flag}" >&5
33922echo "${ECHO_T}${flag}" >&6
33923 if test "x$flag" != xno; then
33924 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33925 fi
33926
33927 if test "x$THREADS_CFLAGS" != "x"; then
33928 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33929 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33930 fi
33931 fi
33932 fi
33933
33934 if test "$wxUSE_THREADS" = "yes" ; then
33935
33936for ac_func in thr_setconcurrency
33937do
33938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33939echo "$as_me:$LINENO: checking for $ac_func" >&5
33940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33941if eval "test \"\${$as_ac_var+set}\" = set"; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 cat >conftest.$ac_ext <<_ACEOF
33945/* confdefs.h. */
33946_ACEOF
33947cat confdefs.h >>conftest.$ac_ext
33948cat >>conftest.$ac_ext <<_ACEOF
33949/* end confdefs.h. */
ac1cb8d3
VS
33950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33952#define $ac_func innocuous_$ac_func
33953
a848cd7e
SC
33954/* System header to define __stub macros and hopefully few prototypes,
33955 which can conflict with char $ac_func (); below.
33956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33957 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33958
a848cd7e
SC
33959#ifdef __STDC__
33960# include <limits.h>
33961#else
33962# include <assert.h>
33963#endif
ac1cb8d3
VS
33964
33965#undef $ac_func
33966
a848cd7e
SC
33967/* Override any gcc2 internal prototype to avoid an error. */
33968#ifdef __cplusplus
33969extern "C"
33970{
33971#endif
33972/* We use char because int might match the return type of a gcc2
33973 builtin and then its argument prototype would still apply. */
33974char $ac_func ();
33975/* The GNU C library defines this for functions which it implements
33976 to always fail with ENOSYS. Some functions are actually named
33977 something starting with __ and the normal name is an alias. */
33978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33979choke me
33980#else
33981char (*f) () = $ac_func;
33982#endif
33983#ifdef __cplusplus
33984}
33985#endif
33986
33987int
33988main ()
33989{
33990return f != $ac_func;
33991 ;
33992 return 0;
33993}
33994_ACEOF
33995rm -f conftest.$ac_objext conftest$ac_exeext
33996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33997 (eval $ac_link) 2>conftest.er1
a848cd7e 33998 ac_status=$?
ac1cb8d3
VS
33999 grep -v '^ *+' conftest.er1 >conftest.err
34000 rm -f conftest.er1
34001 cat conftest.err >&5
a848cd7e
SC
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); } &&
9dd0f6c2 34004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; } &&
34010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34013 ac_status=$?
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; }; then
34016 eval "$as_ac_var=yes"
34017else
34018 echo "$as_me: failed program was:" >&5
34019sed 's/^/| /' conftest.$ac_ext >&5
34020
34021eval "$as_ac_var=no"
34022fi
ac1cb8d3
VS
34023rm -f conftest.err conftest.$ac_objext \
34024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34025fi
34026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34028if test `eval echo '${'$as_ac_var'}'` = yes; then
34029 cat >>confdefs.h <<_ACEOF
34030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031_ACEOF
34032
34033fi
34034done
34035
34036
34037
34038for ac_header in sched.h
34039do
34040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34041if eval "test \"\${$as_ac_Header+set}\" = set"; then
34042 echo "$as_me:$LINENO: checking for $ac_header" >&5
34043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34044if eval "test \"\${$as_ac_Header+set}\" = set"; then
34045 echo $ECHO_N "(cached) $ECHO_C" >&6
34046fi
34047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34049else
34050 # Is the header compilable?
34051echo "$as_me:$LINENO: checking $ac_header usability" >&5
34052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34053cat >conftest.$ac_ext <<_ACEOF
34054/* confdefs.h. */
34055_ACEOF
34056cat confdefs.h >>conftest.$ac_ext
34057cat >>conftest.$ac_ext <<_ACEOF
34058/* end confdefs.h. */
34059$ac_includes_default
34060#include <$ac_header>
34061_ACEOF
34062rm -f conftest.$ac_objext
34063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34064 (eval $ac_compile) 2>conftest.er1
a848cd7e 34065 ac_status=$?
ac1cb8d3
VS
34066 grep -v '^ *+' conftest.er1 >conftest.err
34067 rm -f conftest.er1
34068 cat conftest.err >&5
a848cd7e
SC
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); } &&
9dd0f6c2 34071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073 (eval $ac_try) 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079 (eval $ac_try) 2>&5
34080 ac_status=$?
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); }; }; then
34083 ac_header_compiler=yes
34084else
34085 echo "$as_me: failed program was:" >&5
34086sed 's/^/| /' conftest.$ac_ext >&5
34087
34088ac_header_compiler=no
34089fi
ac1cb8d3 34090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34092echo "${ECHO_T}$ac_header_compiler" >&6
34093
34094# Is the header present?
34095echo "$as_me:$LINENO: checking $ac_header presence" >&5
34096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34097cat >conftest.$ac_ext <<_ACEOF
34098/* confdefs.h. */
34099_ACEOF
34100cat confdefs.h >>conftest.$ac_ext
34101cat >>conftest.$ac_ext <<_ACEOF
34102/* end confdefs.h. */
34103#include <$ac_header>
34104_ACEOF
34105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34107 ac_status=$?
34108 grep -v '^ *+' conftest.er1 >conftest.err
34109 rm -f conftest.er1
34110 cat conftest.err >&5
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); } >/dev/null; then
34113 if test -s conftest.err; then
34114 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34116 else
34117 ac_cpp_err=
34118 fi
34119else
34120 ac_cpp_err=yes
34121fi
34122if test -z "$ac_cpp_err"; then
34123 ac_header_preproc=yes
34124else
34125 echo "$as_me: failed program was:" >&5
34126sed 's/^/| /' conftest.$ac_ext >&5
34127
34128 ac_header_preproc=no
34129fi
34130rm -f conftest.err conftest.$ac_ext
34131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34132echo "${ECHO_T}$ac_header_preproc" >&6
34133
34134# So? What about this header?
ac1cb8d3
VS
34135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34136 yes:no: )
a848cd7e
SC
34137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34141 ac_header_preproc=yes
a848cd7e 34142 ;;
ac1cb8d3 34143 no:yes:* )
a848cd7e
SC
34144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34147echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34151echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34156 (
34157 cat <<\_ASBOX
ac1cb8d3
VS
34158## ----------------------------------------- ##
34159## Report this to wx-dev@lists.wxwidgets.org ##
34160## ----------------------------------------- ##
a848cd7e
SC
34161_ASBOX
34162 ) |
34163 sed "s/^/$as_me: WARNING: /" >&2
34164 ;;
34165esac
34166echo "$as_me:$LINENO: checking for $ac_header" >&5
34167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34168if eval "test \"\${$as_ac_Header+set}\" = set"; then
34169 echo $ECHO_N "(cached) $ECHO_C" >&6
34170else
ac1cb8d3 34171 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34172fi
34173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34175
34176fi
34177if test `eval echo '${'$as_ac_Header'}'` = yes; then
34178 cat >>confdefs.h <<_ACEOF
34179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34180_ACEOF
34181
34182fi
34183
34184done
34185
34186 if test "$ac_cv_header_sched_h" = "yes"; then
34187 echo "$as_me:$LINENO: checking for sched_yield" >&5
34188echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34189if test "${ac_cv_func_sched_yield+set}" = set; then
34190 echo $ECHO_N "(cached) $ECHO_C" >&6
34191else
34192 cat >conftest.$ac_ext <<_ACEOF
34193/* confdefs.h. */
34194_ACEOF
34195cat confdefs.h >>conftest.$ac_ext
34196cat >>conftest.$ac_ext <<_ACEOF
34197/* end confdefs.h. */
ac1cb8d3
VS
34198/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34200#define sched_yield innocuous_sched_yield
34201
a848cd7e
SC
34202/* System header to define __stub macros and hopefully few prototypes,
34203 which can conflict with char sched_yield (); below.
34204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34206
a848cd7e
SC
34207#ifdef __STDC__
34208# include <limits.h>
34209#else
34210# include <assert.h>
34211#endif
ac1cb8d3
VS
34212
34213#undef sched_yield
34214
a848cd7e
SC
34215/* Override any gcc2 internal prototype to avoid an error. */
34216#ifdef __cplusplus
34217extern "C"
34218{
34219#endif
34220/* We use char because int might match the return type of a gcc2
34221 builtin and then its argument prototype would still apply. */
34222char sched_yield ();
34223/* The GNU C library defines this for functions which it implements
34224 to always fail with ENOSYS. Some functions are actually named
34225 something starting with __ and the normal name is an alias. */
34226#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34227choke me
34228#else
34229char (*f) () = sched_yield;
34230#endif
34231#ifdef __cplusplus
34232}
34233#endif
34234
34235int
34236main ()
34237{
34238return f != sched_yield;
34239 ;
34240 return 0;
34241}
34242_ACEOF
34243rm -f conftest.$ac_objext conftest$ac_exeext
34244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34245 (eval $ac_link) 2>conftest.er1
a848cd7e 34246 ac_status=$?
ac1cb8d3
VS
34247 grep -v '^ *+' conftest.er1 >conftest.err
34248 rm -f conftest.er1
34249 cat conftest.err >&5
a848cd7e
SC
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } &&
9dd0f6c2 34252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254 (eval $ac_try) 2>&5
34255 ac_status=$?
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); }; } &&
34258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34261 ac_status=$?
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; }; then
34264 ac_cv_func_sched_yield=yes
34265else
34266 echo "$as_me: failed program was:" >&5
34267sed 's/^/| /' conftest.$ac_ext >&5
34268
34269ac_cv_func_sched_yield=no
34270fi
ac1cb8d3
VS
34271rm -f conftest.err conftest.$ac_objext \
34272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34273fi
34274echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34275echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34276if test $ac_cv_func_sched_yield = yes; then
34277 cat >>confdefs.h <<\_ACEOF
34278#define HAVE_SCHED_YIELD 1
34279_ACEOF
34280
34281else
34282
34283 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34284echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34285if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34287else
34288 ac_check_lib_save_LIBS=$LIBS
34289LIBS="-lposix4 $LIBS"
34290cat >conftest.$ac_ext <<_ACEOF
34291/* confdefs.h. */
34292_ACEOF
34293cat confdefs.h >>conftest.$ac_ext
34294cat >>conftest.$ac_ext <<_ACEOF
34295/* end confdefs.h. */
34296
34297/* Override any gcc2 internal prototype to avoid an error. */
34298#ifdef __cplusplus
34299extern "C"
34300#endif
34301/* We use char because int might match the return type of a gcc2
34302 builtin and then its argument prototype would still apply. */
34303char sched_yield ();
34304int
34305main ()
34306{
34307sched_yield ();
34308 ;
34309 return 0;
34310}
34311_ACEOF
34312rm -f conftest.$ac_objext conftest$ac_exeext
34313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34314 (eval $ac_link) 2>conftest.er1
a848cd7e 34315 ac_status=$?
ac1cb8d3
VS
34316 grep -v '^ *+' conftest.er1 >conftest.err
34317 rm -f conftest.er1
34318 cat conftest.err >&5
a848cd7e
SC
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); } &&
9dd0f6c2 34321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323 (eval $ac_try) 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; } &&
34327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329 (eval $ac_try) 2>&5
34330 ac_status=$?
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); }; }; then
34333 ac_cv_lib_posix4_sched_yield=yes
34334else
34335 echo "$as_me: failed program was:" >&5
34336sed 's/^/| /' conftest.$ac_ext >&5
34337
34338ac_cv_lib_posix4_sched_yield=no
34339fi
ac1cb8d3
VS
34340rm -f conftest.err conftest.$ac_objext \
34341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34342LIBS=$ac_check_lib_save_LIBS
34343fi
34344echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34345echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34346if test $ac_cv_lib_posix4_sched_yield = yes; then
34347 cat >>confdefs.h <<\_ACEOF
34348#define HAVE_SCHED_YIELD 1
34349_ACEOF
34350 POSIX4_LINK=" -lposix4"
34351else
34352 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34353echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34354
34355fi
34356
34357
34358
34359fi
34360
34361 fi
34362
34363 HAVE_PRIOR_FUNCS=0
34364 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34365echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34366if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34367 echo $ECHO_N "(cached) $ECHO_C" >&6
34368else
34369 cat >conftest.$ac_ext <<_ACEOF
34370/* confdefs.h. */
34371_ACEOF
34372cat confdefs.h >>conftest.$ac_ext
34373cat >>conftest.$ac_ext <<_ACEOF
34374/* end confdefs.h. */
ac1cb8d3
VS
34375/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34377#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34378
a848cd7e
SC
34379/* System header to define __stub macros and hopefully few prototypes,
34380 which can conflict with char pthread_attr_getschedpolicy (); below.
34381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34382 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34383
a848cd7e
SC
34384#ifdef __STDC__
34385# include <limits.h>
34386#else
34387# include <assert.h>
34388#endif
ac1cb8d3
VS
34389
34390#undef pthread_attr_getschedpolicy
34391
a848cd7e
SC
34392/* Override any gcc2 internal prototype to avoid an error. */
34393#ifdef __cplusplus
34394extern "C"
34395{
34396#endif
34397/* We use char because int might match the return type of a gcc2
34398 builtin and then its argument prototype would still apply. */
34399char pthread_attr_getschedpolicy ();
34400/* The GNU C library defines this for functions which it implements
34401 to always fail with ENOSYS. Some functions are actually named
34402 something starting with __ and the normal name is an alias. */
34403#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34404choke me
34405#else
34406char (*f) () = pthread_attr_getschedpolicy;
34407#endif
34408#ifdef __cplusplus
34409}
34410#endif
34411
34412int
34413main ()
34414{
34415return f != pthread_attr_getschedpolicy;
34416 ;
34417 return 0;
34418}
34419_ACEOF
34420rm -f conftest.$ac_objext conftest$ac_exeext
34421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34422 (eval $ac_link) 2>conftest.er1
a848cd7e 34423 ac_status=$?
ac1cb8d3
VS
34424 grep -v '^ *+' conftest.er1 >conftest.err
34425 rm -f conftest.er1
34426 cat conftest.err >&5
a848cd7e
SC
34427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); } &&
9dd0f6c2 34429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34431 (eval $ac_try) 2>&5
34432 ac_status=$?
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); }; } &&
34435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437 (eval $ac_try) 2>&5
34438 ac_status=$?
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); }; }; then
34441 ac_cv_func_pthread_attr_getschedpolicy=yes
34442else
34443 echo "$as_me: failed program was:" >&5
34444sed 's/^/| /' conftest.$ac_ext >&5
34445
34446ac_cv_func_pthread_attr_getschedpolicy=no
34447fi
ac1cb8d3
VS
34448rm -f conftest.err conftest.$ac_objext \
34449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34450fi
34451echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34452echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34453if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34454 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34455echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34456if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34458else
34459 cat >conftest.$ac_ext <<_ACEOF
34460/* confdefs.h. */
34461_ACEOF
34462cat confdefs.h >>conftest.$ac_ext
34463cat >>conftest.$ac_ext <<_ACEOF
34464/* end confdefs.h. */
ac1cb8d3
VS
34465/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34467#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34468
a848cd7e
SC
34469/* System header to define __stub macros and hopefully few prototypes,
34470 which can conflict with char pthread_attr_setschedparam (); below.
34471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34473
a848cd7e
SC
34474#ifdef __STDC__
34475# include <limits.h>
34476#else
34477# include <assert.h>
34478#endif
ac1cb8d3
VS
34479
34480#undef pthread_attr_setschedparam
34481
a848cd7e
SC
34482/* Override any gcc2 internal prototype to avoid an error. */
34483#ifdef __cplusplus
34484extern "C"
34485{
34486#endif
34487/* We use char because int might match the return type of a gcc2
34488 builtin and then its argument prototype would still apply. */
34489char pthread_attr_setschedparam ();
34490/* The GNU C library defines this for functions which it implements
34491 to always fail with ENOSYS. Some functions are actually named
34492 something starting with __ and the normal name is an alias. */
34493#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34494choke me
34495#else
34496char (*f) () = pthread_attr_setschedparam;
34497#endif
34498#ifdef __cplusplus
34499}
34500#endif
34501
34502int
34503main ()
34504{
34505return f != pthread_attr_setschedparam;
34506 ;
34507 return 0;
34508}
34509_ACEOF
34510rm -f conftest.$ac_objext conftest$ac_exeext
34511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34512 (eval $ac_link) 2>conftest.er1
a848cd7e 34513 ac_status=$?
ac1cb8d3
VS
34514 grep -v '^ *+' conftest.er1 >conftest.err
34515 rm -f conftest.er1
34516 cat conftest.err >&5
a848cd7e
SC
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); } &&
9dd0f6c2 34519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; } &&
34525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; }; then
34531 ac_cv_func_pthread_attr_setschedparam=yes
34532else
34533 echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536ac_cv_func_pthread_attr_setschedparam=no
34537fi
ac1cb8d3
VS
34538rm -f conftest.err conftest.$ac_objext \
34539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34540fi
34541echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34542echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34543if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34544 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34545echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34546if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34547 echo $ECHO_N "(cached) $ECHO_C" >&6
34548else
34549 cat >conftest.$ac_ext <<_ACEOF
34550/* confdefs.h. */
34551_ACEOF
34552cat confdefs.h >>conftest.$ac_ext
34553cat >>conftest.$ac_ext <<_ACEOF
34554/* end confdefs.h. */
ac1cb8d3
VS
34555/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34557#define sched_get_priority_max innocuous_sched_get_priority_max
34558
a848cd7e
SC
34559/* System header to define __stub macros and hopefully few prototypes,
34560 which can conflict with char sched_get_priority_max (); below.
34561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34563
a848cd7e
SC
34564#ifdef __STDC__
34565# include <limits.h>
34566#else
34567# include <assert.h>
34568#endif
ac1cb8d3
VS
34569
34570#undef sched_get_priority_max
34571
a848cd7e
SC
34572/* Override any gcc2 internal prototype to avoid an error. */
34573#ifdef __cplusplus
34574extern "C"
34575{
34576#endif
34577/* We use char because int might match the return type of a gcc2
34578 builtin and then its argument prototype would still apply. */
34579char sched_get_priority_max ();
34580/* The GNU C library defines this for functions which it implements
34581 to always fail with ENOSYS. Some functions are actually named
34582 something starting with __ and the normal name is an alias. */
34583#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34584choke me
34585#else
34586char (*f) () = sched_get_priority_max;
34587#endif
34588#ifdef __cplusplus
34589}
34590#endif
34591
34592int
34593main ()
34594{
34595return f != sched_get_priority_max;
34596 ;
34597 return 0;
34598}
34599_ACEOF
34600rm -f conftest.$ac_objext conftest$ac_exeext
34601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34602 (eval $ac_link) 2>conftest.er1
a848cd7e 34603 ac_status=$?
ac1cb8d3
VS
34604 grep -v '^ *+' conftest.er1 >conftest.err
34605 rm -f conftest.er1
34606 cat conftest.err >&5
a848cd7e
SC
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); } &&
9dd0f6c2 34609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611 (eval $ac_try) 2>&5
34612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); }; } &&
34615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; }; then
34621 ac_cv_func_sched_get_priority_max=yes
34622else
34623 echo "$as_me: failed program was:" >&5
34624sed 's/^/| /' conftest.$ac_ext >&5
34625
34626ac_cv_func_sched_get_priority_max=no
34627fi
ac1cb8d3
VS
34628rm -f conftest.err conftest.$ac_objext \
34629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34630fi
34631echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34632echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34633if test $ac_cv_func_sched_get_priority_max = yes; then
34634 HAVE_PRIOR_FUNCS=1
34635else
34636 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34637echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34638if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34639 echo $ECHO_N "(cached) $ECHO_C" >&6
34640else
34641 ac_check_lib_save_LIBS=$LIBS
34642LIBS="-lposix4 $LIBS"
34643cat >conftest.$ac_ext <<_ACEOF
34644/* confdefs.h. */
34645_ACEOF
34646cat confdefs.h >>conftest.$ac_ext
34647cat >>conftest.$ac_ext <<_ACEOF
34648/* end confdefs.h. */
34649
34650/* Override any gcc2 internal prototype to avoid an error. */
34651#ifdef __cplusplus
34652extern "C"
34653#endif
34654/* We use char because int might match the return type of a gcc2
34655 builtin and then its argument prototype would still apply. */
34656char sched_get_priority_max ();
34657int
34658main ()
34659{
34660sched_get_priority_max ();
34661 ;
34662 return 0;
34663}
34664_ACEOF
34665rm -f conftest.$ac_objext conftest$ac_exeext
34666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34667 (eval $ac_link) 2>conftest.er1
a848cd7e 34668 ac_status=$?
ac1cb8d3
VS
34669 grep -v '^ *+' conftest.er1 >conftest.err
34670 rm -f conftest.er1
34671 cat conftest.err >&5
a848cd7e
SC
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); } &&
9dd0f6c2 34674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676 (eval $ac_try) 2>&5
34677 ac_status=$?
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); }; } &&
34680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34682 (eval $ac_try) 2>&5
34683 ac_status=$?
34684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685 (exit $ac_status); }; }; then
34686 ac_cv_lib_posix4_sched_get_priority_max=yes
34687else
34688 echo "$as_me: failed program was:" >&5
34689sed 's/^/| /' conftest.$ac_ext >&5
34690
34691ac_cv_lib_posix4_sched_get_priority_max=no
34692fi
ac1cb8d3
VS
34693rm -f conftest.err conftest.$ac_objext \
34694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34695LIBS=$ac_check_lib_save_LIBS
34696fi
34697echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34698echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34699if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34700
34701 HAVE_PRIOR_FUNCS=1
34702 POSIX4_LINK=" -lposix4"
34703
34704fi
34705
34706
34707fi
34708
34709
34710fi
34711
34712
34713fi
34714
34715
34716 if test "$HAVE_PRIOR_FUNCS" = 1; then
34717 cat >>confdefs.h <<\_ACEOF
34718#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34719_ACEOF
34720
34721 else
34722 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34723echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34724 fi
34725
34726 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34727echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34728if test "${ac_cv_func_pthread_cancel+set}" = set; then
34729 echo $ECHO_N "(cached) $ECHO_C" >&6
34730else
34731 cat >conftest.$ac_ext <<_ACEOF
34732/* confdefs.h. */
34733_ACEOF
34734cat confdefs.h >>conftest.$ac_ext
34735cat >>conftest.$ac_ext <<_ACEOF
34736/* end confdefs.h. */
ac1cb8d3
VS
34737/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34739#define pthread_cancel innocuous_pthread_cancel
34740
a848cd7e
SC
34741/* System header to define __stub macros and hopefully few prototypes,
34742 which can conflict with char pthread_cancel (); below.
34743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34744 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34745
a848cd7e
SC
34746#ifdef __STDC__
34747# include <limits.h>
34748#else
34749# include <assert.h>
34750#endif
ac1cb8d3
VS
34751
34752#undef pthread_cancel
34753
a848cd7e
SC
34754/* Override any gcc2 internal prototype to avoid an error. */
34755#ifdef __cplusplus
34756extern "C"
34757{
34758#endif
34759/* We use char because int might match the return type of a gcc2
34760 builtin and then its argument prototype would still apply. */
34761char pthread_cancel ();
34762/* The GNU C library defines this for functions which it implements
34763 to always fail with ENOSYS. Some functions are actually named
34764 something starting with __ and the normal name is an alias. */
34765#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34766choke me
34767#else
34768char (*f) () = pthread_cancel;
34769#endif
34770#ifdef __cplusplus
34771}
34772#endif
34773
34774int
34775main ()
34776{
34777return f != pthread_cancel;
34778 ;
34779 return 0;
34780}
34781_ACEOF
34782rm -f conftest.$ac_objext conftest$ac_exeext
34783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34784 (eval $ac_link) 2>conftest.er1
a848cd7e 34785 ac_status=$?
ac1cb8d3
VS
34786 grep -v '^ *+' conftest.er1 >conftest.err
34787 rm -f conftest.er1
34788 cat conftest.err >&5
a848cd7e
SC
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } &&
9dd0f6c2 34791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34793 (eval $ac_try) 2>&5
34794 ac_status=$?
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); }; } &&
34797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; }; then
34803 ac_cv_func_pthread_cancel=yes
34804else
34805 echo "$as_me: failed program was:" >&5
34806sed 's/^/| /' conftest.$ac_ext >&5
34807
34808ac_cv_func_pthread_cancel=no
34809fi
ac1cb8d3
VS
34810rm -f conftest.err conftest.$ac_objext \
34811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34812fi
34813echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34814echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34815if test $ac_cv_func_pthread_cancel = yes; then
34816 cat >>confdefs.h <<\_ACEOF
34817#define HAVE_PTHREAD_CANCEL 1
34818_ACEOF
34819
34820else
34821 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34822echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34823fi
34824
34825
34826
34827
34828 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34829echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34830if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34831 echo $ECHO_N "(cached) $ECHO_C" >&6
34832else
34833
34834 cat >conftest.$ac_ext <<_ACEOF
34835/* confdefs.h. */
34836_ACEOF
34837cat confdefs.h >>conftest.$ac_ext
34838cat >>conftest.$ac_ext <<_ACEOF
34839/* end confdefs.h. */
34840#include <pthread.h>
34841int
34842main ()
34843{
34844
34845 pthread_mutexattr_t attr;
34846 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34847
34848 ;
34849 return 0;
34850}
34851_ACEOF
34852rm -f conftest.$ac_objext
34853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34854 (eval $ac_compile) 2>conftest.er1
a848cd7e 34855 ac_status=$?
ac1cb8d3
VS
34856 grep -v '^ *+' conftest.er1 >conftest.err
34857 rm -f conftest.er1
34858 cat conftest.err >&5
a848cd7e
SC
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } &&
9dd0f6c2 34861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34863 (eval $ac_try) 2>&5
34864 ac_status=$?
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); }; } &&
34867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869 (eval $ac_try) 2>&5
34870 ac_status=$?
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); }; }; then
34873
34874 wx_cv_type_pthread_mutexattr_t=yes
34875
34876else
34877 echo "$as_me: failed program was:" >&5
34878sed 's/^/| /' conftest.$ac_ext >&5
34879
34880
34881 wx_cv_type_pthread_mutexattr_t=no
34882
34883
34884fi
ac1cb8d3 34885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34886
34887fi
34888echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34889echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34890
34891 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34892 cat >>confdefs.h <<\_ACEOF
34893#define HAVE_PTHREAD_MUTEXATTR_T 1
34894_ACEOF
34895
34896 else
34897 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34898echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34899if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34900 echo $ECHO_N "(cached) $ECHO_C" >&6
34901else
34902
34903 cat >conftest.$ac_ext <<_ACEOF
34904/* confdefs.h. */
34905_ACEOF
34906cat confdefs.h >>conftest.$ac_ext
34907cat >>conftest.$ac_ext <<_ACEOF
34908/* end confdefs.h. */
34909#include <pthread.h>
34910int
34911main ()
34912{
34913
34914 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34915
34916 ;
34917 return 0;
34918}
34919_ACEOF
34920rm -f conftest.$ac_objext
34921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34922 (eval $ac_compile) 2>conftest.er1
a848cd7e 34923 ac_status=$?
ac1cb8d3
VS
34924 grep -v '^ *+' conftest.er1 >conftest.err
34925 rm -f conftest.er1
34926 cat conftest.err >&5
a848cd7e
SC
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } &&
9dd0f6c2 34929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931 (eval $ac_try) 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); }; } &&
34935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937 (eval $ac_try) 2>&5
34938 ac_status=$?
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; }; then
34941
34942 wx_cv_type_pthread_rec_mutex_init=yes
34943
34944else
34945 echo "$as_me: failed program was:" >&5
34946sed 's/^/| /' conftest.$ac_ext >&5
34947
34948
34949 wx_cv_type_pthread_rec_mutex_init=no
34950
34951
34952fi
ac1cb8d3 34953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34954
34955fi
34956echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34957echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34958 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34959 cat >>confdefs.h <<\_ACEOF
34960#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34961_ACEOF
34962
34963 else
34964 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34965echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34966 fi
34967 fi
34968 fi
34969
34970else
34971 if test "$wxUSE_THREADS" = "yes" ; then
34972 case "${host}" in
34973 *-*-mingw32* )
34974 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34975echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34976if test "${wx_cv_cflags_mthread+set}" = set; then
34977 echo $ECHO_N "(cached) $ECHO_C" >&6
34978else
34979
34980 CFLAGS_OLD="$CFLAGS"
34981 CFLAGS="$CFLAGS -mthreads"
34982 cat >conftest.$ac_ext <<_ACEOF
34983/* confdefs.h. */
34984_ACEOF
34985cat confdefs.h >>conftest.$ac_ext
34986cat >>conftest.$ac_ext <<_ACEOF
34987/* end confdefs.h. */
34988
34989int
34990main ()
34991{
34992
34993 ;
34994 return 0;
34995}
34996_ACEOF
34997rm -f conftest.$ac_objext
34998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34999 (eval $ac_compile) 2>conftest.er1
a848cd7e 35000 ac_status=$?
ac1cb8d3
VS
35001 grep -v '^ *+' conftest.er1 >conftest.err
35002 rm -f conftest.er1
35003 cat conftest.err >&5
a848cd7e
SC
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); } &&
9dd0f6c2 35006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008 (eval $ac_try) 2>&5
35009 ac_status=$?
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; } &&
35012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35015 ac_status=$?
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018 wx_cv_cflags_mthread=yes
35019else
35020 echo "$as_me: failed program was:" >&5
35021sed 's/^/| /' conftest.$ac_ext >&5
35022
35023wx_cv_cflags_mthread=no
35024
35025fi
ac1cb8d3 35026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35027
35028
35029fi
35030echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35031echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35032
35033 if test "$wx_cv_cflags_mthread" = "yes"; then
35034 CXXFLAGS="$CXXFLAGS -mthreads"
35035 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35036 LDFLAGS="$LDFLAGS -mthreads"
35037 else
35038 CFLAGS="$CFLAGS_OLD"
35039 fi
35040 ;;
35041 *-pc-os2*emx )
35042 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35043 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35044 LDFLAGS="$LDFLAGS -Zmt"
35045 ;;
35046 esac
35047 fi
35048fi
35049
35050if test "$wxUSE_THREADS" = "yes"; then
35051 cat >>confdefs.h <<\_ACEOF
35052#define wxUSE_THREADS 1
35053_ACEOF
35054
35055
35056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35057else
35058 if test "$ac_cv_func_strtok_r" = "yes"; then
35059 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35060echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35061 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35062 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35063 echo "$as_me:$LINENO: result: yes" >&5
35064echo "${ECHO_T}yes" >&6
35065 else
35066 echo "$as_me:$LINENO: result: no" >&5
35067echo "${ECHO_T}no" >&6
35068 fi
35069 fi
35070fi
35071
35072if test "$WXGTK20" = 1 ; then
35073 cat >>confdefs.h <<_ACEOF
35074#define __WXGTK20__ $WXGTK20
35075_ACEOF
35076
35077 WXGTK12=1
35078fi
35079
35080if test "$WXGTK12" = 1 ; then
35081 cat >>confdefs.h <<_ACEOF
35082#define __WXGTK12__ $WXGTK12
35083_ACEOF
35084
35085fi
35086
35087if test "$WXGTK127" = 1 ; then
35088 cat >>confdefs.h <<_ACEOF
35089#define __WXGTK127__ $WXGTK127
35090_ACEOF
35091
35092fi
35093
35094if test "$WXGPE" = 1 ; then
35095 cat >>confdefs.h <<_ACEOF
35096#define __WXGPE__ $WXGPE
35097_ACEOF
35098
35099fi
35100
35101WXDEBUG=
35102
35103if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35104 WXDEBUG="-g"
35105 wxUSE_OPTIMISE=no
35106fi
35107
35108if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35109 wxUSE_DEBUG_INFO=yes
35110 WXDEBUG="-ggdb"
35111fi
35112
35113if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35114 cat >>confdefs.h <<\_ACEOF
35115#define WXDEBUG 1
35116_ACEOF
35117
35118 WXDEBUG_DEFINE="-D__WXDEBUG__"
35119else
35120 if test "$wxUSE_GTK" = 1 ; then
35121 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35122 fi
35123fi
35124
35125if test "$wxUSE_MEM_TRACING" = "yes" ; then
35126 cat >>confdefs.h <<\_ACEOF
35127#define wxUSE_MEMORY_TRACING 1
35128_ACEOF
35129
35130 cat >>confdefs.h <<\_ACEOF
35131#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35132_ACEOF
35133
35134 cat >>confdefs.h <<\_ACEOF
35135#define wxUSE_DEBUG_NEW_ALWAYS 1
35136_ACEOF
35137
35138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35139fi
35140
35141if test "$wxUSE_DMALLOC" = "yes" ; then
35142 DMALLOC_LIBS="-ldmalloc"
35143fi
35144
35145PROFILE=
35146if test "$wxUSE_PROFILE" = "yes" ; then
35147 PROFILE=" -pg"
35148fi
35149
35150CODE_GEN_FLAGS=
35151CODE_GEN_FLAGS_CXX=
35152if test "$GCC" = "yes" ; then
35153 if test "$wxUSE_NO_RTTI" = "yes" ; then
35154 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35155 fi
35156 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35157 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35158 fi
35159 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35160 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35161 fi
35162
35163 case "${host}" in
35164 powerpc*-*-aix* )
35165 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35166 ;;
35167 *-hppa* )
35168 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35169 ;;
35170 esac
35171fi
35172
35173OPTIMISE=
35174if test "$wxUSE_OPTIMISE" = "no" ; then
35175 if test "$GCC" = yes ; then
35176 OPTIMISE="-O0"
35177 fi
35178else
35179 if test "$GCC" = yes ; then
35180 OPTIMISE="-O2"
35181
35182 case "${host}" in
35183 i586-*-*|i686-*-* )
35184 OPTIMISE="${OPTIMISE} "
35185 ;;
35186 esac
35187 else
35188 OPTIMISE="-O"
35189 fi
35190fi
35191
35192
35193if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35194 cat >>confdefs.h <<\_ACEOF
35195#define WXWIN_COMPATIBILITY_2_2 1
35196_ACEOF
35197
35198
35199 WXWIN_COMPATIBILITY_2_4="yes"
35200fi
35201
35202if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35203 cat >>confdefs.h <<\_ACEOF
35204#define WXWIN_COMPATIBILITY_2_4 1
35205_ACEOF
35206
35207fi
35208
35209
35210if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35211 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35212#define wxUSE_GUI 1
35213_ACEOF
35214
35215
370fd4c2 35216 fi
a848cd7e
SC
35217
35218
35219if test "$wxUSE_UNIX" = "yes"; then
35220 cat >>confdefs.h <<\_ACEOF
35221#define wxUSE_UNIX 1
35222_ACEOF
35223
35224fi
35225
35226
35227if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35228
35229 HAVE_DL_FUNCS=0
35230 HAVE_SHL_FUNCS=0
35231 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35232 if test "$USE_DARWIN" = 1; then
35233 HAVE_DL_FUNCS=1
35234 else
35235
35236for ac_func in dlopen
35237do
35238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35239echo "$as_me:$LINENO: checking for $ac_func" >&5
35240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35241if eval "test \"\${$as_ac_var+set}\" = set"; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35243else
35244 cat >conftest.$ac_ext <<_ACEOF
35245/* confdefs.h. */
35246_ACEOF
35247cat confdefs.h >>conftest.$ac_ext
35248cat >>conftest.$ac_ext <<_ACEOF
35249/* end confdefs.h. */
ac1cb8d3
VS
35250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35252#define $ac_func innocuous_$ac_func
35253
a848cd7e
SC
35254/* System header to define __stub macros and hopefully few prototypes,
35255 which can conflict with char $ac_func (); below.
35256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35258
a848cd7e
SC
35259#ifdef __STDC__
35260# include <limits.h>
35261#else
35262# include <assert.h>
35263#endif
ac1cb8d3
VS
35264
35265#undef $ac_func
35266
a848cd7e
SC
35267/* Override any gcc2 internal prototype to avoid an error. */
35268#ifdef __cplusplus
35269extern "C"
35270{
35271#endif
35272/* We use char because int might match the return type of a gcc2
35273 builtin and then its argument prototype would still apply. */
35274char $ac_func ();
35275/* The GNU C library defines this for functions which it implements
35276 to always fail with ENOSYS. Some functions are actually named
35277 something starting with __ and the normal name is an alias. */
35278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35279choke me
35280#else
35281char (*f) () = $ac_func;
35282#endif
35283#ifdef __cplusplus
35284}
35285#endif
35286
35287int
35288main ()
35289{
35290return f != $ac_func;
35291 ;
35292 return 0;
35293}
35294_ACEOF
35295rm -f conftest.$ac_objext conftest$ac_exeext
35296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35297 (eval $ac_link) 2>conftest.er1
a848cd7e 35298 ac_status=$?
ac1cb8d3
VS
35299 grep -v '^ *+' conftest.er1 >conftest.err
35300 rm -f conftest.er1
35301 cat conftest.err >&5
a848cd7e
SC
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); } &&
9dd0f6c2 35304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35307 ac_status=$?
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; } &&
35310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35313 ac_status=$?
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; }; then
35316 eval "$as_ac_var=yes"
35317else
35318 echo "$as_me: failed program was:" >&5
35319sed 's/^/| /' conftest.$ac_ext >&5
35320
35321eval "$as_ac_var=no"
35322fi
ac1cb8d3
VS
35323rm -f conftest.err conftest.$ac_objext \
35324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35325fi
35326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35328if test `eval echo '${'$as_ac_var'}'` = yes; then
35329 cat >>confdefs.h <<_ACEOF
35330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35331_ACEOF
35332
35333 cat >>confdefs.h <<\_ACEOF
35334#define HAVE_DLOPEN 1
35335_ACEOF
35336
35337 HAVE_DL_FUNCS=1
35338
35339else
35340
35341 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35342echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35343if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35344 echo $ECHO_N "(cached) $ECHO_C" >&6
35345else
35346 ac_check_lib_save_LIBS=$LIBS
35347LIBS="-ldl $LIBS"
35348cat >conftest.$ac_ext <<_ACEOF
35349/* confdefs.h. */
35350_ACEOF
35351cat confdefs.h >>conftest.$ac_ext
35352cat >>conftest.$ac_ext <<_ACEOF
35353/* end confdefs.h. */
35354
35355/* Override any gcc2 internal prototype to avoid an error. */
35356#ifdef __cplusplus
35357extern "C"
35358#endif
35359/* We use char because int might match the return type of a gcc2
35360 builtin and then its argument prototype would still apply. */
35361char dlopen ();
35362int
35363main ()
35364{
35365dlopen ();
35366 ;
35367 return 0;
35368}
35369_ACEOF
35370rm -f conftest.$ac_objext conftest$ac_exeext
35371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35372 (eval $ac_link) 2>conftest.er1
a848cd7e 35373 ac_status=$?
ac1cb8d3
VS
35374 grep -v '^ *+' conftest.er1 >conftest.err
35375 rm -f conftest.er1
35376 cat conftest.err >&5
a848cd7e
SC
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); } &&
9dd0f6c2 35379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381 (eval $ac_try) 2>&5
35382 ac_status=$?
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); }; } &&
35385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35388 ac_status=$?
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; }; then
35391 ac_cv_lib_dl_dlopen=yes
35392else
35393 echo "$as_me: failed program was:" >&5
35394sed 's/^/| /' conftest.$ac_ext >&5
35395
35396ac_cv_lib_dl_dlopen=no
35397fi
ac1cb8d3
VS
35398rm -f conftest.err conftest.$ac_objext \
35399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35400LIBS=$ac_check_lib_save_LIBS
35401fi
35402echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35403echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35404if test $ac_cv_lib_dl_dlopen = yes; then
35405
35406 cat >>confdefs.h <<\_ACEOF
35407#define HAVE_DLOPEN 1
35408_ACEOF
35409
35410 HAVE_DL_FUNCS=1
35411 DL_LINK=" -ldl$DL_LINK"
35412
35413else
35414
35415
35416for ac_func in shl_load
35417do
35418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35419echo "$as_me:$LINENO: checking for $ac_func" >&5
35420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35421if eval "test \"\${$as_ac_var+set}\" = set"; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35423else
35424 cat >conftest.$ac_ext <<_ACEOF
35425/* confdefs.h. */
35426_ACEOF
35427cat confdefs.h >>conftest.$ac_ext
35428cat >>conftest.$ac_ext <<_ACEOF
35429/* end confdefs.h. */
ac1cb8d3
VS
35430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35432#define $ac_func innocuous_$ac_func
35433
a848cd7e
SC
35434/* System header to define __stub macros and hopefully few prototypes,
35435 which can conflict with char $ac_func (); below.
35436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35437 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35438
a848cd7e
SC
35439#ifdef __STDC__
35440# include <limits.h>
35441#else
35442# include <assert.h>
35443#endif
ac1cb8d3
VS
35444
35445#undef $ac_func
35446
a848cd7e
SC
35447/* Override any gcc2 internal prototype to avoid an error. */
35448#ifdef __cplusplus
35449extern "C"
35450{
35451#endif
35452/* We use char because int might match the return type of a gcc2
35453 builtin and then its argument prototype would still apply. */
35454char $ac_func ();
35455/* The GNU C library defines this for functions which it implements
35456 to always fail with ENOSYS. Some functions are actually named
35457 something starting with __ and the normal name is an alias. */
35458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35459choke me
35460#else
35461char (*f) () = $ac_func;
35462#endif
35463#ifdef __cplusplus
35464}
35465#endif
35466
35467int
35468main ()
35469{
35470return f != $ac_func;
35471 ;
35472 return 0;
35473}
35474_ACEOF
35475rm -f conftest.$ac_objext conftest$ac_exeext
35476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35477 (eval $ac_link) 2>conftest.er1
a848cd7e 35478 ac_status=$?
ac1cb8d3
VS
35479 grep -v '^ *+' conftest.er1 >conftest.err
35480 rm -f conftest.er1
35481 cat conftest.err >&5
a848cd7e
SC
35482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483 (exit $ac_status); } &&
9dd0f6c2 35484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486 (eval $ac_try) 2>&5
35487 ac_status=$?
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } &&
35490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35496 eval "$as_ac_var=yes"
35497else
35498 echo "$as_me: failed program was:" >&5
35499sed 's/^/| /' conftest.$ac_ext >&5
35500
35501eval "$as_ac_var=no"
35502fi
ac1cb8d3
VS
35503rm -f conftest.err conftest.$ac_objext \
35504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35505fi
35506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35508if test `eval echo '${'$as_ac_var'}'` = yes; then
35509 cat >>confdefs.h <<_ACEOF
35510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35511_ACEOF
35512
35513 cat >>confdefs.h <<\_ACEOF
35514#define HAVE_SHL_LOAD 1
35515_ACEOF
35516
35517 HAVE_SHL_FUNCS=1
35518
35519else
35520
35521 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35522echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35523if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35524 echo $ECHO_N "(cached) $ECHO_C" >&6
35525else
35526 ac_check_lib_save_LIBS=$LIBS
35527LIBS="-lshl_load $LIBS"
35528cat >conftest.$ac_ext <<_ACEOF
35529/* confdefs.h. */
35530_ACEOF
35531cat confdefs.h >>conftest.$ac_ext
35532cat >>conftest.$ac_ext <<_ACEOF
35533/* end confdefs.h. */
35534
35535/* Override any gcc2 internal prototype to avoid an error. */
35536#ifdef __cplusplus
35537extern "C"
35538#endif
35539/* We use char because int might match the return type of a gcc2
35540 builtin and then its argument prototype would still apply. */
35541char dld ();
35542int
35543main ()
35544{
35545dld ();
35546 ;
35547 return 0;
35548}
35549_ACEOF
35550rm -f conftest.$ac_objext conftest$ac_exeext
35551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35552 (eval $ac_link) 2>conftest.er1
a848cd7e 35553 ac_status=$?
ac1cb8d3
VS
35554 grep -v '^ *+' conftest.er1 >conftest.err
35555 rm -f conftest.er1
35556 cat conftest.err >&5
a848cd7e
SC
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); } &&
9dd0f6c2 35559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561 (eval $ac_try) 2>&5
35562 ac_status=$?
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; } &&
35565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; }; then
35571 ac_cv_lib_shl_load_dld=yes
35572else
35573 echo "$as_me: failed program was:" >&5
35574sed 's/^/| /' conftest.$ac_ext >&5
35575
35576ac_cv_lib_shl_load_dld=no
35577fi
ac1cb8d3
VS
35578rm -f conftest.err conftest.$ac_objext \
35579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35580LIBS=$ac_check_lib_save_LIBS
35581fi
35582echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35583echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35584if test $ac_cv_lib_shl_load_dld = yes; then
35585
35586 HAVE_SHL_FUNCS=1
35587 DL_LINK=" -ldld$DL_LINK"
35588
35589fi
35590
35591
35592fi
35593done
35594
35595
35596fi
35597
35598
35599fi
35600done
35601
35602
35603 if test "$HAVE_DL_FUNCS" = 1; then
35604
35605for ac_func in dlerror
35606do
35607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35608echo "$as_me:$LINENO: checking for $ac_func" >&5
35609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35610if eval "test \"\${$as_ac_var+set}\" = set"; then
35611 echo $ECHO_N "(cached) $ECHO_C" >&6
35612else
35613 cat >conftest.$ac_ext <<_ACEOF
35614/* confdefs.h. */
35615_ACEOF
35616cat confdefs.h >>conftest.$ac_ext
35617cat >>conftest.$ac_ext <<_ACEOF
35618/* end confdefs.h. */
ac1cb8d3
VS
35619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35621#define $ac_func innocuous_$ac_func
35622
a848cd7e
SC
35623/* System header to define __stub macros and hopefully few prototypes,
35624 which can conflict with char $ac_func (); below.
35625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35626 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35627
a848cd7e
SC
35628#ifdef __STDC__
35629# include <limits.h>
35630#else
35631# include <assert.h>
35632#endif
ac1cb8d3
VS
35633
35634#undef $ac_func
35635
a848cd7e
SC
35636/* Override any gcc2 internal prototype to avoid an error. */
35637#ifdef __cplusplus
35638extern "C"
35639{
35640#endif
35641/* We use char because int might match the return type of a gcc2
35642 builtin and then its argument prototype would still apply. */
35643char $ac_func ();
35644/* The GNU C library defines this for functions which it implements
35645 to always fail with ENOSYS. Some functions are actually named
35646 something starting with __ and the normal name is an alias. */
35647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35648choke me
35649#else
35650char (*f) () = $ac_func;
35651#endif
35652#ifdef __cplusplus
35653}
35654#endif
35655
35656int
35657main ()
35658{
35659return f != $ac_func;
35660 ;
35661 return 0;
35662}
35663_ACEOF
35664rm -f conftest.$ac_objext conftest$ac_exeext
35665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35666 (eval $ac_link) 2>conftest.er1
a848cd7e 35667 ac_status=$?
ac1cb8d3
VS
35668 grep -v '^ *+' conftest.er1 >conftest.err
35669 rm -f conftest.er1
35670 cat conftest.err >&5
a848cd7e
SC
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); } &&
9dd0f6c2 35673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35675 (eval $ac_try) 2>&5
35676 ac_status=$?
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); }; } &&
35679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681 (eval $ac_try) 2>&5
35682 ac_status=$?
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); }; }; then
35685 eval "$as_ac_var=yes"
35686else
35687 echo "$as_me: failed program was:" >&5
35688sed 's/^/| /' conftest.$ac_ext >&5
35689
35690eval "$as_ac_var=no"
35691fi
ac1cb8d3
VS
35692rm -f conftest.err conftest.$ac_objext \
35693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35694fi
35695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35697if test `eval echo '${'$as_ac_var'}'` = yes; then
35698 cat >>confdefs.h <<_ACEOF
35699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35700_ACEOF
35701 cat >>confdefs.h <<\_ACEOF
35702#define HAVE_DLERROR 1
35703_ACEOF
35704
35705else
35706
35707 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35708echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35709if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35710 echo $ECHO_N "(cached) $ECHO_C" >&6
35711else
35712 ac_check_lib_save_LIBS=$LIBS
35713LIBS="-ldl $LIBS"
35714cat >conftest.$ac_ext <<_ACEOF
35715/* confdefs.h. */
35716_ACEOF
35717cat confdefs.h >>conftest.$ac_ext
35718cat >>conftest.$ac_ext <<_ACEOF
35719/* end confdefs.h. */
35720
35721/* Override any gcc2 internal prototype to avoid an error. */
35722#ifdef __cplusplus
35723extern "C"
35724#endif
35725/* We use char because int might match the return type of a gcc2
35726 builtin and then its argument prototype would still apply. */
35727char dlerror ();
35728int
35729main ()
35730{
35731dlerror ();
35732 ;
35733 return 0;
35734}
35735_ACEOF
35736rm -f conftest.$ac_objext conftest$ac_exeext
35737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35738 (eval $ac_link) 2>conftest.er1
a848cd7e 35739 ac_status=$?
ac1cb8d3
VS
35740 grep -v '^ *+' conftest.er1 >conftest.err
35741 rm -f conftest.er1
35742 cat conftest.err >&5
a848cd7e
SC
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); } &&
9dd0f6c2 35745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747 (eval $ac_try) 2>&5
35748 ac_status=$?
35749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750 (exit $ac_status); }; } &&
35751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753 (eval $ac_try) 2>&5
35754 ac_status=$?
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); }; }; then
35757 ac_cv_lib_dl_dlerror=yes
35758else
35759 echo "$as_me: failed program was:" >&5
35760sed 's/^/| /' conftest.$ac_ext >&5
35761
35762ac_cv_lib_dl_dlerror=no
35763fi
ac1cb8d3
VS
35764rm -f conftest.err conftest.$ac_objext \
35765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35766LIBS=$ac_check_lib_save_LIBS
35767fi
35768echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35769echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35770if test $ac_cv_lib_dl_dlerror = yes; then
35771 cat >>confdefs.h <<\_ACEOF
35772#define HAVE_DLERROR 1
35773_ACEOF
35774
35775fi
35776
35777
35778
35779fi
35780done
35781
35782 fi
35783 fi
35784
35785 if test "$HAVE_DL_FUNCS" = 0; then
35786 if test "$HAVE_SHL_FUNCS" = 0; then
35787 if test "$USE_UNIX" = 1; then
35788 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35789echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35790 wxUSE_DYNAMIC_LOADER=no
35791 wxUSE_DYNLIB_CLASS=no
35792 else
35793 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35794echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35795 fi
35796 fi
35797 fi
35798 fi
35799fi
35800
35801if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35802 cat >>confdefs.h <<\_ACEOF
35803#define wxUSE_DYNAMIC_LOADER 1
35804_ACEOF
35805
35806fi
35807if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35808 cat >>confdefs.h <<\_ACEOF
35809#define wxUSE_DYNLIB_CLASS 1
35810_ACEOF
35811
35812fi
35813
35814
35815
35816if test "$wxUSE_PLUGINS" = "yes" ; then
35817 if test "$wxUSE_SHARED" = "no" ; then
35818 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35819echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35820 wxUSE_PLUGINS=no
35821 fi
35822 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35823 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35824echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35825 wxUSE_PLUGINS=no
35826 fi
35827 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35828 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35829echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35830 wxUSE_PLUGINS=no
35831 fi
35832 if test "$wxUSE_PLUGINS" = "yes" ; then
35833 cat >>confdefs.h <<\_ACEOF
35834#define wxUSE_PLUGINS 1
35835_ACEOF
35836
35837 fi
35838fi
35839
35840
35841if test "$wxUSE_STL" = "yes"; then
35842 cat >>confdefs.h <<\_ACEOF
35843#define wxUSE_STL 1
35844_ACEOF
35845
35846fi
35847
35848if test "$wxUSE_APPLE_IEEE" = "yes"; then
35849 cat >>confdefs.h <<\_ACEOF
35850#define wxUSE_APPLE_IEEE 1
35851_ACEOF
35852
35853fi
35854
35855if test "$wxUSE_TIMER" = "yes"; then
35856 cat >>confdefs.h <<\_ACEOF
35857#define wxUSE_TIMER 1
35858_ACEOF
35859
35860fi
35861
35862WITH_PLUGIN_SDL=0
35863if test "$wxUSE_SOUND" = "yes"; then
35864 if test "$USE_UNIX" = "1" ; then
35865
35866for ac_header in sys/soundcard.h
35867do
35868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35869if eval "test \"\${$as_ac_Header+set}\" = set"; then
35870 echo "$as_me:$LINENO: checking for $ac_header" >&5
35871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35872if eval "test \"\${$as_ac_Header+set}\" = set"; then
35873 echo $ECHO_N "(cached) $ECHO_C" >&6
35874fi
35875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35877else
35878 # Is the header compilable?
35879echo "$as_me:$LINENO: checking $ac_header usability" >&5
35880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35881cat >conftest.$ac_ext <<_ACEOF
35882/* confdefs.h. */
35883_ACEOF
35884cat confdefs.h >>conftest.$ac_ext
35885cat >>conftest.$ac_ext <<_ACEOF
35886/* end confdefs.h. */
35887$ac_includes_default
35888#include <$ac_header>
35889_ACEOF
35890rm -f conftest.$ac_objext
35891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35892 (eval $ac_compile) 2>conftest.er1
a848cd7e 35893 ac_status=$?
ac1cb8d3
VS
35894 grep -v '^ *+' conftest.er1 >conftest.err
35895 rm -f conftest.er1
35896 cat conftest.err >&5
a848cd7e
SC
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); } &&
9dd0f6c2 35899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901 (eval $ac_try) 2>&5
35902 ac_status=$?
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); }; } &&
35905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907 (eval $ac_try) 2>&5
35908 ac_status=$?
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); }; }; then
35911 ac_header_compiler=yes
35912else
35913 echo "$as_me: failed program was:" >&5
35914sed 's/^/| /' conftest.$ac_ext >&5
35915
35916ac_header_compiler=no
35917fi
ac1cb8d3 35918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35920echo "${ECHO_T}$ac_header_compiler" >&6
35921
35922# Is the header present?
35923echo "$as_me:$LINENO: checking $ac_header presence" >&5
35924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35925cat >conftest.$ac_ext <<_ACEOF
35926/* confdefs.h. */
35927_ACEOF
35928cat confdefs.h >>conftest.$ac_ext
35929cat >>conftest.$ac_ext <<_ACEOF
35930/* end confdefs.h. */
35931#include <$ac_header>
35932_ACEOF
35933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35935 ac_status=$?
35936 grep -v '^ *+' conftest.er1 >conftest.err
35937 rm -f conftest.er1
35938 cat conftest.err >&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); } >/dev/null; then
35941 if test -s conftest.err; then
35942 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35944 else
35945 ac_cpp_err=
35946 fi
35947else
35948 ac_cpp_err=yes
35949fi
35950if test -z "$ac_cpp_err"; then
35951 ac_header_preproc=yes
35952else
35953 echo "$as_me: failed program was:" >&5
35954sed 's/^/| /' conftest.$ac_ext >&5
35955
35956 ac_header_preproc=no
35957fi
35958rm -f conftest.err conftest.$ac_ext
35959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35960echo "${ECHO_T}$ac_header_preproc" >&6
35961
35962# So? What about this header?
ac1cb8d3
VS
35963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35964 yes:no: )
a848cd7e
SC
35965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35969 ac_header_preproc=yes
a848cd7e 35970 ;;
ac1cb8d3 35971 no:yes:* )
a848cd7e
SC
35972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35984 (
35985 cat <<\_ASBOX
ac1cb8d3
VS
35986## ----------------------------------------- ##
35987## Report this to wx-dev@lists.wxwidgets.org ##
35988## ----------------------------------------- ##
a848cd7e
SC
35989_ASBOX
35990 ) |
35991 sed "s/^/$as_me: WARNING: /" >&2
35992 ;;
35993esac
35994echo "$as_me:$LINENO: checking for $ac_header" >&5
35995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35998else
ac1cb8d3 35999 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36000fi
36001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36003
36004fi
36005if test `eval echo '${'$as_ac_Header'}'` = yes; then
36006 cat >>confdefs.h <<_ACEOF
36007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36008_ACEOF
36009
36010fi
36011
36012done
36013
36014
36015 if test "$wxUSE_LIBSDL" != "no"; then
36016
36017# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36018if test "${with_sdl_prefix+set}" = set; then
36019 withval="$with_sdl_prefix"
36020 sdl_prefix="$withval"
36021else
36022 sdl_prefix=""
36023fi;
36024
36025# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36026if test "${with_sdl_exec_prefix+set}" = set; then
36027 withval="$with_sdl_exec_prefix"
36028 sdl_exec_prefix="$withval"
36029else
36030 sdl_exec_prefix=""
36031fi;
36032# Check whether --enable-sdltest or --disable-sdltest was given.
36033if test "${enable_sdltest+set}" = set; then
36034 enableval="$enable_sdltest"
36035
36036else
36037 enable_sdltest=yes
36038fi;
36039
36040 if test x$sdl_exec_prefix != x ; then
36041 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36042 if test x${SDL_CONFIG+set} != xset ; then
36043 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36044 fi
36045 fi
36046 if test x$sdl_prefix != x ; then
36047 sdl_args="$sdl_args --prefix=$sdl_prefix"
36048 if test x${SDL_CONFIG+set} != xset ; then
36049 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36050 fi
36051 fi
36052
36053
36054 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36055 # Extract the first word of "sdl-config", so it can be a program name with args.
36056set dummy sdl-config; ac_word=$2
36057echo "$as_me:$LINENO: checking for $ac_word" >&5
36058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36059if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36060 echo $ECHO_N "(cached) $ECHO_C" >&6
36061else
36062 case $SDL_CONFIG in
36063 [\\/]* | ?:[\\/]*)
36064 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36065 ;;
36066 *)
36067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36068for as_dir in $PATH
36069do
36070 IFS=$as_save_IFS
36071 test -z "$as_dir" && as_dir=.
36072 for ac_exec_ext in '' $ac_executable_extensions; do
36073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36074 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36076 break 2
36077 fi
36078done
36079done
36080
36081 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36082 ;;
36083esac
36084fi
36085SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36086
36087if test -n "$SDL_CONFIG"; then
36088 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36089echo "${ECHO_T}$SDL_CONFIG" >&6
36090else
36091 echo "$as_me:$LINENO: result: no" >&5
36092echo "${ECHO_T}no" >&6
36093fi
36094
36095 min_sdl_version=1.2.0
36096 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36097echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36098 no_sdl=""
36099 if test "$SDL_CONFIG" = "no" ; then
36100 no_sdl=yes
36101 else
36102 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36103 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36104
36105 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36106 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36107 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36108 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36109 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36110 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36111 if test "x$enable_sdltest" = "xyes" ; then
36112 ac_save_CFLAGS="$CFLAGS"
94acd38e 36113 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36114 ac_save_LIBS="$LIBS"
36115 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36116 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36117 LIBS="$LIBS $SDL_LIBS"
36118 rm -f conf.sdltest
36119 if test "$cross_compiling" = yes; then
36120 echo $ac_n "cross compiling; assumed OK... $ac_c"
36121else
36122 cat >conftest.$ac_ext <<_ACEOF
36123/* confdefs.h. */
36124_ACEOF
36125cat confdefs.h >>conftest.$ac_ext
36126cat >>conftest.$ac_ext <<_ACEOF
36127/* end confdefs.h. */
36128
36129#include <stdio.h>
36130#include <stdlib.h>
36131#include <string.h>
36132#include "SDL.h"
36133
36134char*
36135my_strdup (char *str)
36136{
36137 char *new_str;
36138
36139 if (str)
36140 {
36141 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36142 strcpy (new_str, str);
36143 }
36144 else
36145 new_str = NULL;
36146
36147 return new_str;
36148}
36149
36150int main (int argc, char *argv[])
36151{
36152 int major, minor, micro;
36153 char *tmp_version;
36154
36155 /* This hangs on some systems (?)
36156 system ("touch conf.sdltest");
36157 */
36158 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36159
36160 /* HP/UX 9 (%@#!) writes to sscanf strings */
36161 tmp_version = my_strdup("$min_sdl_version");
36162 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36163 printf("%s, bad version string\n", "$min_sdl_version");
36164 exit(1);
36165 }
36166
36167 if (($sdl_major_version > major) ||
36168 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36169 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36170 {
36171 return 0;
36172 }
36173 else
36174 {
36175 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36176 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36177 printf("*** best to upgrade to the required version.\n");
36178 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36179 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36180 printf("*** config.cache before re-running configure\n");
36181 return 1;
36182 }
36183}
36184
36185
36186_ACEOF
36187rm -f conftest$ac_exeext
36188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36189 (eval $ac_link) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36195 ac_status=$?
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; }; then
36198 :
36199else
36200 echo "$as_me: program exited with status $ac_status" >&5
36201echo "$as_me: failed program was:" >&5
36202sed 's/^/| /' conftest.$ac_ext >&5
36203
36204( exit $ac_status )
36205no_sdl=yes
36206fi
ac1cb8d3 36207rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36208fi
36209 CFLAGS="$ac_save_CFLAGS"
94acd38e 36210 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36211 LIBS="$ac_save_LIBS"
36212 fi
36213 fi
36214 if test "x$no_sdl" = x ; then
36215 echo "$as_me:$LINENO: result: yes" >&5
36216echo "${ECHO_T}yes" >&6
36217
36218 EXTRALIBS_SDL="$SDL_LIBS"
36219 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36220 cat >>confdefs.h <<\_ACEOF
36221#define wxUSE_LIBSDL 1
36222_ACEOF
36223
36224
36225 else
36226 echo "$as_me:$LINENO: result: no" >&5
36227echo "${ECHO_T}no" >&6
36228 if test "$SDL_CONFIG" = "no" ; then
36229 echo "*** The sdl-config script installed by SDL could not be found"
36230 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36231 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36232 echo "*** full path to sdl-config."
36233 else
36234 if test -f conf.sdltest ; then
36235 :
36236 else
36237 echo "*** Could not run SDL test program, checking why..."
36238 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36239 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36240 LIBS="$LIBS $SDL_LIBS"
36241 cat >conftest.$ac_ext <<_ACEOF
36242/* confdefs.h. */
36243_ACEOF
36244cat confdefs.h >>conftest.$ac_ext
36245cat >>conftest.$ac_ext <<_ACEOF
36246/* end confdefs.h. */
36247
36248#include <stdio.h>
36249#include "SDL.h"
36250
36251int main(int argc, char *argv[])
36252{ return 0; }
36253#undef main
36254#define main K_and_R_C_main
36255
36256int
36257main ()
36258{
36259 return 0;
36260 ;
36261 return 0;
36262}
36263_ACEOF
36264rm -f conftest.$ac_objext conftest$ac_exeext
36265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36266 (eval $ac_link) 2>conftest.er1
a848cd7e 36267 ac_status=$?
ac1cb8d3
VS
36268 grep -v '^ *+' conftest.er1 >conftest.err
36269 rm -f conftest.er1
36270 cat conftest.err >&5
a848cd7e
SC
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); } &&
9dd0f6c2 36273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275 (eval $ac_try) 2>&5
36276 ac_status=$?
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); }; } &&
36279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281 (eval $ac_try) 2>&5
36282 ac_status=$?
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); }; }; then
36285 echo "*** The test program compiled, but did not run. This usually means"
36286 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36287 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36288 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36289 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36290 echo "*** is required on your system"
36291 echo "***"
36292 echo "*** If you have an old version installed, it is best to remove it, although"
36293 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36294else
36295 echo "$as_me: failed program was:" >&5
36296sed 's/^/| /' conftest.$ac_ext >&5
36297
36298 echo "*** The test program failed to compile or link. See the file config.log for the"
36299 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36300 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36301 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36302fi
ac1cb8d3
VS
36303rm -f conftest.err conftest.$ac_objext \
36304 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36305 CFLAGS="$ac_save_CFLAGS"
94acd38e 36306 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36307 LIBS="$ac_save_LIBS"
36308 fi
36309 fi
36310 SDL_CFLAGS=""
36311 SDL_LIBS=""
36312 wxUSE_LIBSDL="no"
36313 fi
36314
36315
36316 rm -f conf.sdltest
36317
36318 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36319 WITH_PLUGIN_SDL=1
36320 fi
36321 fi
36322 fi
36323
36324 cat >>confdefs.h <<\_ACEOF
36325#define wxUSE_SOUND 1
36326_ACEOF
36327
36328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36329fi
36330
d1c38808
VZ
36331if test "$WXGTK20" = 1; then
36332 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36333 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36334
36335
36336 succeeded=no
36337
36338 if test -z "$PKG_CONFIG"; then
36339 # Extract the first word of "pkg-config", so it can be a program name with args.
36340set dummy pkg-config; ac_word=$2
36341echo "$as_me:$LINENO: checking for $ac_word" >&5
36342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36343if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36344 echo $ECHO_N "(cached) $ECHO_C" >&6
36345else
36346 case $PKG_CONFIG in
36347 [\\/]* | ?:[\\/]*)
36348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36349 ;;
36350 *)
36351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36352for as_dir in $PATH
36353do
36354 IFS=$as_save_IFS
36355 test -z "$as_dir" && as_dir=.
36356 for ac_exec_ext in '' $ac_executable_extensions; do
36357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36360 break 2
36361 fi
36362done
36363done
36364
36365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36366 ;;
36367esac
36368fi
36369PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36370
36371if test -n "$PKG_CONFIG"; then
36372 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36373echo "${ECHO_T}$PKG_CONFIG" >&6
36374else
36375 echo "$as_me:$LINENO: result: no" >&5
36376echo "${ECHO_T}no" >&6
36377fi
36378
36379 fi
36380
36381 if test "$PKG_CONFIG" = "no" ; then
36382 echo "*** The pkg-config script could not be found. Make sure it is"
36383 echo "*** in your path, or set the PKG_CONFIG environment variable"
36384 echo "*** to the full path to pkg-config."
36385 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36386 else
36387 PKG_CONFIG_MIN_VERSION=0.9.0
36388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36389 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36390echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36391
ffa762ff 36392 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36393 echo "$as_me:$LINENO: result: yes" >&5
36394echo "${ECHO_T}yes" >&6
36395 succeeded=yes
36396
36397 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36398echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36399 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36400 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36401echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36402
36403 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36404echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36405 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36406 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36407echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36408 else
36409 LIBGNOMEPRINTUI_CFLAGS=""
36410 LIBGNOMEPRINTUI_LIBS=""
36411 ## If we have a custom action on failure, don't print errors, but
36412 ## do set a variable so people can do so.
ffa762ff 36413 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36414
36415 fi
36416
36417
36418
36419 else
36420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36422 fi
36423 fi
36424
36425 if test $succeeded = yes; then
36426
d1c38808
VZ
36427 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36428 cat >>confdefs.h <<\_ACEOF
36429#define wxUSE_LIBGNOMEPRINT 1
36430_ACEOF
36431
36432
36433 else
36434
36435 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36436echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36437 wxUSE_LIBGNOMEPRINT="no"
36438
36439
36440 fi
36441
36442 fi
36443 fi
36444fi
36445
36446
a848cd7e
SC
36447if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36448 cat >>confdefs.h <<\_ACEOF
36449#define wxUSE_CMDLINE_PARSER 1
36450_ACEOF
36451
36452fi
36453
36454if test "$wxUSE_STOPWATCH" = "yes"; then
36455 cat >>confdefs.h <<\_ACEOF
36456#define wxUSE_STOPWATCH 1
36457_ACEOF
36458
36459fi
36460
36461if test "$wxUSE_DATETIME" = "yes"; then
36462 cat >>confdefs.h <<\_ACEOF
36463#define wxUSE_DATETIME 1
36464_ACEOF
36465
36466fi
36467
36468if test "$wxUSE_FILE" = "yes"; then
36469 cat >>confdefs.h <<\_ACEOF
36470#define wxUSE_FILE 1
36471_ACEOF
36472
36473fi
36474
36475if test "$wxUSE_FFILE" = "yes"; then
36476 cat >>confdefs.h <<\_ACEOF
36477#define wxUSE_FFILE 1
36478_ACEOF
36479
36480fi
36481
36482if test "$wxUSE_FILESYSTEM" = "yes"; then
36483 cat >>confdefs.h <<\_ACEOF
36484#define wxUSE_FILESYSTEM 1
36485_ACEOF
36486
36487fi
36488
36489if test "$wxUSE_FS_ZIP" = "yes"; then
36490 cat >>confdefs.h <<\_ACEOF
36491#define wxUSE_FS_ZIP 1
36492_ACEOF
36493
36494fi
36495
9e8e867f 36496if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36497 cat >>confdefs.h <<\_ACEOF
9e8e867f 36498#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36499_ACEOF
36500
36501fi
36502
36503if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36504 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36505 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36506echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36507 elif test "$wxUSE_ZLIB" = "no"; then
36508 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36509echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36510 else
36511 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36512#define wxUSE_ZIPSTREAM 1
36513_ACEOF
36514
81f90336 36515 fi
a848cd7e
SC
36516fi
36517
a848cd7e
SC
36518if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36519 cat >>confdefs.h <<\_ACEOF
36520#define wxUSE_ON_FATAL_EXCEPTION 1
36521_ACEOF
36522
36523fi
36524
eaff0f0d
VZ
36525if test "$wxUSE_STACKWALKER" = "yes"; then
36526 cat >>confdefs.h <<\_ACEOF
36527#define wxUSE_STACKWALKER 1
36528_ACEOF
36529
36530fi
36531
36b6448c 36532if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36533 if test "$USE_OS2" = "1"; then
36534 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36535echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36536 wxUSE_DEBUGREPORT=no
36537 else
36538 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36539#define wxUSE_DEBUGREPORT 1
36540_ACEOF
36541
dfe0c803
JS
36542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36543 fi
36b6448c
VZ
36544fi
36545
a848cd7e
SC
36546if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36547 cat >>confdefs.h <<\_ACEOF
36548#define wxUSE_SNGLINST_CHECKER 1
36549_ACEOF
36550
36551fi
36552
36553if test "$wxUSE_BUSYINFO" = "yes"; then
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_BUSYINFO 1
36556_ACEOF
36557
36558fi
36559
36560if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36561 cat >>confdefs.h <<\_ACEOF
36562#define wxUSE_STD_IOSTREAM 1
36563_ACEOF
36564
36565fi
36566
59746b65
MW
36567if test "$wxUSE_STD_STRING" = "yes"; then
36568 cat >>confdefs.h <<\_ACEOF
36569#define wxUSE_STD_STRING 1
36570_ACEOF
36571
36572fi
36573
07158944
VZ
36574if test "$wxUSE_STDPATHS" = "yes"; then
36575 cat >>confdefs.h <<\_ACEOF
36576#define wxUSE_STDPATHS 1
36577_ACEOF
36578
36579fi
36580
a848cd7e
SC
36581if test "$wxUSE_TEXTBUFFER" = "yes"; then
36582 cat >>confdefs.h <<\_ACEOF
36583#define wxUSE_TEXTBUFFER 1
36584_ACEOF
36585
36586fi
36587
36588if test "$wxUSE_TEXTFILE" = "yes"; then
36589 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36590 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36591echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36592 else
36593 cat >>confdefs.h <<\_ACEOF
36594#define wxUSE_TEXTFILE 1
36595_ACEOF
36596
36597 fi
36598fi
36599
36600if test "$wxUSE_CONFIG" = "yes" ; then
36601 if test "$wxUSE_TEXTFILE" != "yes"; then
36602 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36603echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36604 else
36605 cat >>confdefs.h <<\_ACEOF
36606#define wxUSE_CONFIG 1
89be85c2
VS
36607_ACEOF
36608
36609 cat >>confdefs.h <<\_ACEOF
36610#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36611_ACEOF
36612
36613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36614 fi
36615fi
36616
36617if test "$wxUSE_INTL" = "yes" ; then
36618 if test "$wxUSE_FILE" != "yes"; then
36619 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36620echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36621 else
36622 cat >>confdefs.h <<\_ACEOF
36623#define wxUSE_INTL 1
36624_ACEOF
36625
36626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36627 GUIDIST="$GUIDIST INTL_DIST"
36628 fi
36629fi
36630
36631if test "$wxUSE_LOG" = "yes"; then
36632 cat >>confdefs.h <<\_ACEOF
36633#define wxUSE_LOG 1
36634_ACEOF
36635
36636
36637 if test "$wxUSE_LOGGUI" = "yes"; then
36638 cat >>confdefs.h <<\_ACEOF
36639#define wxUSE_LOGGUI 1
36640_ACEOF
36641
36642 fi
36643
36644 if test "$wxUSE_LOGWINDOW" = "yes"; then
36645 cat >>confdefs.h <<\_ACEOF
36646#define wxUSE_LOGWINDOW 1
36647_ACEOF
36648
36649 fi
36650
36651 if test "$wxUSE_LOGDIALOG" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653#define wxUSE_LOG_DIALOG 1
36654_ACEOF
36655
36656 fi
0b78747f
MW
36657
36658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36659fi
36660
36661if test "$wxUSE_LONGLONG" = "yes"; then
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_LONGLONG 1
36664_ACEOF
36665
36666fi
36667
36668if test "$wxUSE_GEOMETRY" = "yes"; then
36669 cat >>confdefs.h <<\_ACEOF
36670#define wxUSE_GEOMETRY 1
36671_ACEOF
36672
36673fi
36674
a848cd7e
SC
36675if test "$wxUSE_STREAMS" = "yes" ; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_STREAMS 1
36678_ACEOF
36679
36680fi
36681
36682
36683if test "$wxUSE_DATETIME" = "yes"; then
36684
36685for ac_func in strptime
36686do
36687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36688echo "$as_me:$LINENO: checking for $ac_func" >&5
36689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36690if eval "test \"\${$as_ac_var+set}\" = set"; then
36691 echo $ECHO_N "(cached) $ECHO_C" >&6
36692else
36693 cat >conftest.$ac_ext <<_ACEOF
36694/* confdefs.h. */
36695_ACEOF
36696cat confdefs.h >>conftest.$ac_ext
36697cat >>conftest.$ac_ext <<_ACEOF
36698/* end confdefs.h. */
ac1cb8d3
VS
36699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36701#define $ac_func innocuous_$ac_func
36702
a848cd7e
SC
36703/* System header to define __stub macros and hopefully few prototypes,
36704 which can conflict with char $ac_func (); below.
36705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36706 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36707
a848cd7e
SC
36708#ifdef __STDC__
36709# include <limits.h>
36710#else
36711# include <assert.h>
36712#endif
ac1cb8d3
VS
36713
36714#undef $ac_func
36715
a848cd7e
SC
36716/* Override any gcc2 internal prototype to avoid an error. */
36717#ifdef __cplusplus
36718extern "C"
36719{
36720#endif
36721/* We use char because int might match the return type of a gcc2
36722 builtin and then its argument prototype would still apply. */
36723char $ac_func ();
36724/* The GNU C library defines this for functions which it implements
36725 to always fail with ENOSYS. Some functions are actually named
36726 something starting with __ and the normal name is an alias. */
36727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36728choke me
36729#else
36730char (*f) () = $ac_func;
36731#endif
36732#ifdef __cplusplus
36733}
36734#endif
36735
36736int
36737main ()
36738{
36739return f != $ac_func;
36740 ;
36741 return 0;
36742}
36743_ACEOF
36744rm -f conftest.$ac_objext conftest$ac_exeext
36745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36746 (eval $ac_link) 2>conftest.er1
a848cd7e 36747 ac_status=$?
ac1cb8d3
VS
36748 grep -v '^ *+' conftest.er1 >conftest.err
36749 rm -f conftest.er1
36750 cat conftest.err >&5
a848cd7e
SC
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); } &&
9dd0f6c2 36753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36755 (eval $ac_try) 2>&5
36756 ac_status=$?
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); }; } &&
36759 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761 (eval $ac_try) 2>&5
36762 ac_status=$?
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); }; }; then
36765 eval "$as_ac_var=yes"
36766else
36767 echo "$as_me: failed program was:" >&5
36768sed 's/^/| /' conftest.$ac_ext >&5
36769
36770eval "$as_ac_var=no"
36771fi
ac1cb8d3
VS
36772rm -f conftest.err conftest.$ac_objext \
36773 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36774fi
36775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36777if test `eval echo '${'$as_ac_var'}'` = yes; then
36778 cat >>confdefs.h <<_ACEOF
36779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36780_ACEOF
36781
36782fi
36783done
36784
36785
36786 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36787echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36788if test "${wx_cv_var_timezone+set}" = set; then
36789 echo $ECHO_N "(cached) $ECHO_C" >&6
36790else
36791
36792 cat >conftest.$ac_ext <<_ACEOF
36793/* confdefs.h. */
36794_ACEOF
36795cat confdefs.h >>conftest.$ac_ext
36796cat >>conftest.$ac_ext <<_ACEOF
36797/* end confdefs.h. */
36798
36799 #include <time.h>
36800
36801int
36802main ()
36803{
36804
36805 int tz;
36806 tz = timezone;
36807
36808 ;
36809 return 0;
36810}
36811_ACEOF
36812rm -f conftest.$ac_objext
36813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36814 (eval $ac_compile) 2>conftest.er1
a848cd7e 36815 ac_status=$?
ac1cb8d3
VS
36816 grep -v '^ *+' conftest.er1 >conftest.err
36817 rm -f conftest.er1
36818 cat conftest.err >&5
a848cd7e
SC
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); } &&
9dd0f6c2 36821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823 (eval $ac_try) 2>&5
36824 ac_status=$?
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; } &&
36827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829 (eval $ac_try) 2>&5
36830 ac_status=$?
36831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832 (exit $ac_status); }; }; then
36833
36834 wx_cv_var_timezone=timezone
36835
36836else
36837 echo "$as_me: failed program was:" >&5
36838sed 's/^/| /' conftest.$ac_ext >&5
36839
36840
36841 cat >conftest.$ac_ext <<_ACEOF
36842/* confdefs.h. */
36843_ACEOF
36844cat confdefs.h >>conftest.$ac_ext
36845cat >>conftest.$ac_ext <<_ACEOF
36846/* end confdefs.h. */
36847
36848 #include <time.h>
36849
36850int
36851main ()
36852{
36853
36854 int tz;
36855 tz = _timezone;
36856
36857 ;
36858 return 0;
36859}
36860_ACEOF
36861rm -f conftest.$ac_objext
36862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36863 (eval $ac_compile) 2>conftest.er1
a848cd7e 36864 ac_status=$?
ac1cb8d3
VS
36865 grep -v '^ *+' conftest.er1 >conftest.err
36866 rm -f conftest.er1
36867 cat conftest.err >&5
a848cd7e
SC
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } &&
9dd0f6c2 36870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872 (eval $ac_try) 2>&5
36873 ac_status=$?
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); }; } &&
36876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36878 (eval $ac_try) 2>&5
36879 ac_status=$?
36880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36881 (exit $ac_status); }; }; then
36882
36883 wx_cv_var_timezone=_timezone
36884
36885else
36886 echo "$as_me: failed program was:" >&5
36887sed 's/^/| /' conftest.$ac_ext >&5
36888
36889
36890 cat >conftest.$ac_ext <<_ACEOF
36891/* confdefs.h. */
36892_ACEOF
36893cat confdefs.h >>conftest.$ac_ext
36894cat >>conftest.$ac_ext <<_ACEOF
36895/* end confdefs.h. */
36896
36897 #include <time.h>
36898
36899int
36900main ()
36901{
36902
36903 int tz;
36904 tz = __timezone;
36905
36906 ;
36907 return 0;
36908}
36909_ACEOF
36910rm -f conftest.$ac_objext
36911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36912 (eval $ac_compile) 2>conftest.er1
a848cd7e 36913 ac_status=$?
ac1cb8d3
VS
36914 grep -v '^ *+' conftest.er1 >conftest.err
36915 rm -f conftest.er1
36916 cat conftest.err >&5
a848cd7e
SC
36917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918 (exit $ac_status); } &&
9dd0f6c2 36919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921 (eval $ac_try) 2>&5
36922 ac_status=$?
36923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); }; } &&
36925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36927 (eval $ac_try) 2>&5
36928 ac_status=$?
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); }; }; then
36931
36932 wx_cv_var_timezone=__timezone
36933
36934else
36935 echo "$as_me: failed program was:" >&5
36936sed 's/^/| /' conftest.$ac_ext >&5
36937
36938
36939 if test "$USE_DOS" = 0 ; then
36940 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36941echo "$as_me: WARNING: no timezone variable" >&2;}
36942 fi
36943
36944
36945fi
ac1cb8d3 36946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36947
36948
36949fi
ac1cb8d3 36950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36951
36952
36953fi
ac1cb8d3 36954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36955
36956
36957fi
36958echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36959echo "${ECHO_T}$wx_cv_var_timezone" >&6
36960
36961 if test "x$wx_cv_var_timezone" != x ; then
36962 cat >>confdefs.h <<_ACEOF
36963#define WX_TIMEZONE $wx_cv_var_timezone
36964_ACEOF
36965
36966 fi
36967
36968
36969for ac_func in localtime
36970do
36971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36972echo "$as_me:$LINENO: checking for $ac_func" >&5
36973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36974if eval "test \"\${$as_ac_var+set}\" = set"; then
36975 echo $ECHO_N "(cached) $ECHO_C" >&6
36976else
36977 cat >conftest.$ac_ext <<_ACEOF
36978/* confdefs.h. */
36979_ACEOF
36980cat confdefs.h >>conftest.$ac_ext
36981cat >>conftest.$ac_ext <<_ACEOF
36982/* end confdefs.h. */
ac1cb8d3
VS
36983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36985#define $ac_func innocuous_$ac_func
36986
a848cd7e
SC
36987/* System header to define __stub macros and hopefully few prototypes,
36988 which can conflict with char $ac_func (); below.
36989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36990 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36991
a848cd7e
SC
36992#ifdef __STDC__
36993# include <limits.h>
36994#else
36995# include <assert.h>
36996#endif
ac1cb8d3
VS
36997
36998#undef $ac_func
36999
a848cd7e
SC
37000/* Override any gcc2 internal prototype to avoid an error. */
37001#ifdef __cplusplus
37002extern "C"
37003{
37004#endif
37005/* We use char because int might match the return type of a gcc2
37006 builtin and then its argument prototype would still apply. */
37007char $ac_func ();
37008/* The GNU C library defines this for functions which it implements
37009 to always fail with ENOSYS. Some functions are actually named
37010 something starting with __ and the normal name is an alias. */
37011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37012choke me
37013#else
37014char (*f) () = $ac_func;
37015#endif
37016#ifdef __cplusplus
37017}
37018#endif
37019
37020int
37021main ()
37022{
37023return f != $ac_func;
37024 ;
37025 return 0;
37026}
37027_ACEOF
37028rm -f conftest.$ac_objext conftest$ac_exeext
37029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37030 (eval $ac_link) 2>conftest.er1
a848cd7e 37031 ac_status=$?
ac1cb8d3
VS
37032 grep -v '^ *+' conftest.er1 >conftest.err
37033 rm -f conftest.er1
37034 cat conftest.err >&5
a848cd7e
SC
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } &&
9dd0f6c2 37037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37039 (eval $ac_try) 2>&5
37040 ac_status=$?
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); }; } &&
37043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37046 ac_status=$?
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; }; then
37049 eval "$as_ac_var=yes"
37050else
37051 echo "$as_me: failed program was:" >&5
37052sed 's/^/| /' conftest.$ac_ext >&5
37053
37054eval "$as_ac_var=no"
37055fi
ac1cb8d3
VS
37056rm -f conftest.err conftest.$ac_objext \
37057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37058fi
37059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37061if test `eval echo '${'$as_ac_var'}'` = yes; then
37062 cat >>confdefs.h <<_ACEOF
37063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37064_ACEOF
37065
37066fi
37067done
37068
37069
37070 if test "$ac_cv_func_localtime" = "yes"; then
37071 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37072echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37073if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37074 echo $ECHO_N "(cached) $ECHO_C" >&6
37075else
37076
37077 cat >conftest.$ac_ext <<_ACEOF
37078/* confdefs.h. */
37079_ACEOF
37080cat confdefs.h >>conftest.$ac_ext
37081cat >>conftest.$ac_ext <<_ACEOF
37082/* end confdefs.h. */
37083
37084 #include <time.h>
37085
37086int
37087main ()
37088{
37089
37090 struct tm tm;
37091 tm.tm_gmtoff++;
37092
37093 ;
37094 return 0;
37095}
37096_ACEOF
37097rm -f conftest.$ac_objext
37098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37099 (eval $ac_compile) 2>conftest.er1
a848cd7e 37100 ac_status=$?
ac1cb8d3
VS
37101 grep -v '^ *+' conftest.er1 >conftest.err
37102 rm -f conftest.er1
37103 cat conftest.err >&5
a848cd7e
SC
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); } &&
9dd0f6c2 37106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37109 ac_status=$?
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; } &&
37112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37115 ac_status=$?
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; }; then
37118
37119 wx_cv_struct_tm_has_gmtoff=yes
37120
37121else
37122 echo "$as_me: failed program was:" >&5
37123sed 's/^/| /' conftest.$ac_ext >&5
37124
37125wx_cv_struct_tm_has_gmtoff=no
37126
37127fi
ac1cb8d3 37128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37129
37130fi
37131echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37132echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37133 fi
37134
37135 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37136 cat >>confdefs.h <<\_ACEOF
37137#define WX_GMTOFF_IN_TM 1
37138_ACEOF
37139
37140 fi
37141
37142
37143
37144for ac_func in gettimeofday ftime
37145do
37146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147echo "$as_me:$LINENO: checking for $ac_func" >&5
37148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149if eval "test \"\${$as_ac_var+set}\" = set"; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37151else
37152 cat >conftest.$ac_ext <<_ACEOF
37153/* confdefs.h. */
37154_ACEOF
37155cat confdefs.h >>conftest.$ac_ext
37156cat >>conftest.$ac_ext <<_ACEOF
37157/* end confdefs.h. */
ac1cb8d3
VS
37158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37160#define $ac_func innocuous_$ac_func
37161
a848cd7e
SC
37162/* System header to define __stub macros and hopefully few prototypes,
37163 which can conflict with char $ac_func (); below.
37164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37166
a848cd7e
SC
37167#ifdef __STDC__
37168# include <limits.h>
37169#else
37170# include <assert.h>
37171#endif
ac1cb8d3
VS
37172
37173#undef $ac_func
37174
a848cd7e
SC
37175/* Override any gcc2 internal prototype to avoid an error. */
37176#ifdef __cplusplus
37177extern "C"
37178{
37179#endif
37180/* We use char because int might match the return type of a gcc2
37181 builtin and then its argument prototype would still apply. */
37182char $ac_func ();
37183/* The GNU C library defines this for functions which it implements
37184 to always fail with ENOSYS. Some functions are actually named
37185 something starting with __ and the normal name is an alias. */
37186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37187choke me
37188#else
37189char (*f) () = $ac_func;
37190#endif
37191#ifdef __cplusplus
37192}
37193#endif
37194
37195int
37196main ()
37197{
37198return f != $ac_func;
37199 ;
37200 return 0;
37201}
37202_ACEOF
37203rm -f conftest.$ac_objext conftest$ac_exeext
37204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37205 (eval $ac_link) 2>conftest.er1
a848cd7e 37206 ac_status=$?
ac1cb8d3
VS
37207 grep -v '^ *+' conftest.er1 >conftest.err
37208 rm -f conftest.er1
37209 cat conftest.err >&5
a848cd7e
SC
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); } &&
9dd0f6c2 37212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37214 (eval $ac_try) 2>&5
37215 ac_status=$?
37216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217 (exit $ac_status); }; } &&
37218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220 (eval $ac_try) 2>&5
37221 ac_status=$?
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); }; }; then
37224 eval "$as_ac_var=yes"
37225else
37226 echo "$as_me: failed program was:" >&5
37227sed 's/^/| /' conftest.$ac_ext >&5
37228
37229eval "$as_ac_var=no"
37230fi
ac1cb8d3
VS
37231rm -f conftest.err conftest.$ac_objext \
37232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37233fi
37234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37236if test `eval echo '${'$as_ac_var'}'` = yes; then
37237 cat >>confdefs.h <<_ACEOF
37238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37239_ACEOF
37240 break
37241fi
37242done
37243
37244
37245 if test "$ac_cv_func_gettimeofday" = "yes"; then
37246 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37247echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37248if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37249 echo $ECHO_N "(cached) $ECHO_C" >&6
37250else
37251
37252
37253
37254 ac_ext=cc
37255ac_cpp='$CXXCPP $CPPFLAGS'
37256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37259
37260
37261 cat >conftest.$ac_ext <<_ACEOF
37262/* confdefs.h. */
37263_ACEOF
37264cat confdefs.h >>conftest.$ac_ext
37265cat >>conftest.$ac_ext <<_ACEOF
37266/* end confdefs.h. */
37267
37268 #include <sys/time.h>
37269 #include <unistd.h>
37270
37271int
37272main ()
37273{
37274
37275 struct timeval tv;
37276 gettimeofday(&tv, NULL);
37277
37278 ;
37279 return 0;
37280}
37281_ACEOF
37282rm -f conftest.$ac_objext
37283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37284 (eval $ac_compile) 2>conftest.er1
a848cd7e 37285 ac_status=$?
ac1cb8d3
VS
37286 grep -v '^ *+' conftest.er1 >conftest.err
37287 rm -f conftest.er1
37288 cat conftest.err >&5
a848cd7e
SC
37289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290 (exit $ac_status); } &&
9dd0f6c2 37291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37293 (eval $ac_try) 2>&5
37294 ac_status=$?
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); }; } &&
37297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37299 (eval $ac_try) 2>&5
37300 ac_status=$?
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); }; }; then
37303 wx_cv_func_gettimeofday_has_2_args=yes
37304else
37305 echo "$as_me: failed program was:" >&5
37306sed 's/^/| /' conftest.$ac_ext >&5
37307
37308cat >conftest.$ac_ext <<_ACEOF
37309/* confdefs.h. */
37310_ACEOF
37311cat confdefs.h >>conftest.$ac_ext
37312cat >>conftest.$ac_ext <<_ACEOF
37313/* end confdefs.h. */
37314
37315 #include <sys/time.h>
37316 #include <unistd.h>
37317
37318int
37319main ()
37320{
37321
37322 struct timeval tv;
37323 gettimeofday(&tv);
37324
37325 ;
37326 return 0;
37327}
37328_ACEOF
37329rm -f conftest.$ac_objext
37330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37331 (eval $ac_compile) 2>conftest.er1
a848cd7e 37332 ac_status=$?
ac1cb8d3
VS
37333 grep -v '^ *+' conftest.er1 >conftest.err
37334 rm -f conftest.er1
37335 cat conftest.err >&5
a848cd7e
SC
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); } &&
9dd0f6c2 37338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340 (eval $ac_try) 2>&5
37341 ac_status=$?
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); }; } &&
37344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37346 (eval $ac_try) 2>&5
37347 ac_status=$?
37348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37349 (exit $ac_status); }; }; then
37350 wx_cv_func_gettimeofday_has_2_args=no
37351else
37352 echo "$as_me: failed program was:" >&5
37353sed 's/^/| /' conftest.$ac_ext >&5
37354
37355
37356 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37357echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37358 wx_cv_func_gettimeofday_has_2_args=unknown
37359
37360
37361fi
ac1cb8d3 37362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37363
37364fi
ac1cb8d3 37365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37366 ac_ext=c
37367ac_cpp='$CPP $CPPFLAGS'
37368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37370ac_compiler_gnu=$ac_cv_c_compiler_gnu
37371
37372
37373fi
37374echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37375echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37376
37377 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37378 cat >>confdefs.h <<\_ACEOF
37379#define WX_GETTIMEOFDAY_NO_TZ 1
37380_ACEOF
37381
37382 fi
37383 fi
37384
37385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37386fi
37387
37388
37389if test "$wxUSE_SOCKETS" = "yes"; then
37390 if test "$wxUSE_MGL" = "1"; then
37391 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37392echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37393 wxUSE_SOCKETS="no"
37394 fi
37395fi
37396
37397if test "$wxUSE_SOCKETS" = "yes"; then
37398 if test "$TOOLKIT" != "MSW"; then
37399 echo "$as_me:$LINENO: checking for socket" >&5
37400echo $ECHO_N "checking for socket... $ECHO_C" >&6
37401if test "${ac_cv_func_socket+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37403else
37404 cat >conftest.$ac_ext <<_ACEOF
37405/* confdefs.h. */
37406_ACEOF
37407cat confdefs.h >>conftest.$ac_ext
37408cat >>conftest.$ac_ext <<_ACEOF
37409/* end confdefs.h. */
ac1cb8d3
VS
37410/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37412#define socket innocuous_socket
37413
a848cd7e
SC
37414/* System header to define __stub macros and hopefully few prototypes,
37415 which can conflict with char socket (); below.
37416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37418
a848cd7e
SC
37419#ifdef __STDC__
37420# include <limits.h>
37421#else
37422# include <assert.h>
37423#endif
ac1cb8d3
VS
37424
37425#undef socket
37426
a848cd7e
SC
37427/* Override any gcc2 internal prototype to avoid an error. */
37428#ifdef __cplusplus
37429extern "C"
37430{
37431#endif
37432/* We use char because int might match the return type of a gcc2
37433 builtin and then its argument prototype would still apply. */
37434char socket ();
37435/* The GNU C library defines this for functions which it implements
37436 to always fail with ENOSYS. Some functions are actually named
37437 something starting with __ and the normal name is an alias. */
37438#if defined (__stub_socket) || defined (__stub___socket)
37439choke me
37440#else
37441char (*f) () = socket;
37442#endif
37443#ifdef __cplusplus
37444}
37445#endif
37446
37447int
37448main ()
37449{
37450return f != socket;
37451 ;
37452 return 0;
37453}
37454_ACEOF
37455rm -f conftest.$ac_objext conftest$ac_exeext
37456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37457 (eval $ac_link) 2>conftest.er1
a848cd7e 37458 ac_status=$?
ac1cb8d3
VS
37459 grep -v '^ *+' conftest.er1 >conftest.err
37460 rm -f conftest.er1
37461 cat conftest.err >&5
a848cd7e
SC
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); } &&
9dd0f6c2 37464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37466 (eval $ac_try) 2>&5
37467 ac_status=$?
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); }; } &&
37470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472 (eval $ac_try) 2>&5
37473 ac_status=$?
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); }; }; then
37476 ac_cv_func_socket=yes
37477else
37478 echo "$as_me: failed program was:" >&5
37479sed 's/^/| /' conftest.$ac_ext >&5
37480
37481ac_cv_func_socket=no
37482fi
ac1cb8d3
VS
37483rm -f conftest.err conftest.$ac_objext \
37484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37485fi
37486echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37487echo "${ECHO_T}$ac_cv_func_socket" >&6
37488if test $ac_cv_func_socket = yes; then
37489 :
37490else
37491
37492 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37493echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37494if test "${ac_cv_lib_socket_socket+set}" = set; then
37495 echo $ECHO_N "(cached) $ECHO_C" >&6
37496else
37497 ac_check_lib_save_LIBS=$LIBS
37498LIBS="-lsocket $LIBS"
37499cat >conftest.$ac_ext <<_ACEOF
37500/* confdefs.h. */
37501_ACEOF
37502cat confdefs.h >>conftest.$ac_ext
37503cat >>conftest.$ac_ext <<_ACEOF
37504/* end confdefs.h. */
37505
37506/* Override any gcc2 internal prototype to avoid an error. */
37507#ifdef __cplusplus
37508extern "C"
37509#endif
37510/* We use char because int might match the return type of a gcc2
37511 builtin and then its argument prototype would still apply. */
37512char socket ();
37513int
37514main ()
37515{
37516socket ();
37517 ;
37518 return 0;
37519}
37520_ACEOF
37521rm -f conftest.$ac_objext conftest$ac_exeext
37522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37523 (eval $ac_link) 2>conftest.er1
a848cd7e 37524 ac_status=$?
ac1cb8d3
VS
37525 grep -v '^ *+' conftest.er1 >conftest.err
37526 rm -f conftest.er1
37527 cat conftest.err >&5
a848cd7e
SC
37528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); } &&
9dd0f6c2 37530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37533 ac_status=$?
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37539 ac_status=$?
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 ac_cv_lib_socket_socket=yes
37543else
37544 echo "$as_me: failed program was:" >&5
37545sed 's/^/| /' conftest.$ac_ext >&5
37546
37547ac_cv_lib_socket_socket=no
37548fi
ac1cb8d3
VS
37549rm -f conftest.err conftest.$ac_objext \
37550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37551LIBS=$ac_check_lib_save_LIBS
37552fi
37553echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37554echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37555if test $ac_cv_lib_socket_socket = yes; then
37556 if test "$INET_LINK" != " -lsocket"; then
37557 INET_LINK="$INET_LINK -lsocket"
37558 fi
37559else
37560
37561 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37562echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37563 wxUSE_SOCKETS=no
37564
37565
37566fi
37567
37568
37569
37570fi
37571
37572 fi
37573fi
37574
37575if test "$wxUSE_SOCKETS" = "yes" ; then
37576 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37577 ac_ext=cc
37578ac_cpp='$CXXCPP $CPPFLAGS'
37579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37582
37583 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37584echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37585if test "${wx_cv_type_getsockname3+set}" = set; then
37586 echo $ECHO_N "(cached) $ECHO_C" >&6
37587else
37588
37589 cat >conftest.$ac_ext <<_ACEOF
37590/* confdefs.h. */
37591_ACEOF
37592cat confdefs.h >>conftest.$ac_ext
37593cat >>conftest.$ac_ext <<_ACEOF
37594/* end confdefs.h. */
37595
37596 #include <sys/types.h>
37597 #include <sys/socket.h>
37598
37599int
37600main ()
37601{
37602
37603 socklen_t len;
37604 getsockname(0, 0, &len);
37605
37606 ;
37607 return 0;
37608}
37609_ACEOF
37610rm -f conftest.$ac_objext
37611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37612 (eval $ac_compile) 2>conftest.er1
a848cd7e 37613 ac_status=$?
ac1cb8d3
VS
37614 grep -v '^ *+' conftest.er1 >conftest.err
37615 rm -f conftest.er1
37616 cat conftest.err >&5
a848cd7e
SC
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } &&
9dd0f6c2 37619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37622 ac_status=$?
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; } &&
37625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627 (eval $ac_try) 2>&5
37628 ac_status=$?
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; }; then
37631 wx_cv_type_getsockname3=socklen_t
37632else
37633 echo "$as_me: failed program was:" >&5
37634sed 's/^/| /' conftest.$ac_ext >&5
37635
37636
37637 CFLAGS_OLD="$CFLAGS"
37638 if test "$GCC" = yes ; then
37639 CFLAGS="$CFLAGS -Werror"
37640 fi
37641
37642 cat >conftest.$ac_ext <<_ACEOF
37643/* confdefs.h. */
37644_ACEOF
37645cat confdefs.h >>conftest.$ac_ext
37646cat >>conftest.$ac_ext <<_ACEOF
37647/* end confdefs.h. */
37648
37649 #include <sys/types.h>
37650 #include <sys/socket.h>
37651
37652int
37653main ()
37654{
37655
37656 size_t len;
37657 getsockname(0, 0, &len);
37658
37659 ;
37660 return 0;
37661}
37662_ACEOF
37663rm -f conftest.$ac_objext
37664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37665 (eval $ac_compile) 2>conftest.er1
a848cd7e 37666 ac_status=$?
ac1cb8d3
VS
37667 grep -v '^ *+' conftest.er1 >conftest.err
37668 rm -f conftest.er1
37669 cat conftest.err >&5
a848cd7e
SC
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); } &&
9dd0f6c2 37672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; } &&
37678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37681 ac_status=$?
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; }; then
37684 wx_cv_type_getsockname3=size_t
37685else
37686 echo "$as_me: failed program was:" >&5
37687sed 's/^/| /' conftest.$ac_ext >&5
37688
37689cat >conftest.$ac_ext <<_ACEOF
37690/* confdefs.h. */
37691_ACEOF
37692cat confdefs.h >>conftest.$ac_ext
37693cat >>conftest.$ac_ext <<_ACEOF
37694/* end confdefs.h. */
37695
37696 #include <sys/types.h>
37697 #include <sys/socket.h>
37698
37699int
37700main ()
37701{
37702
37703 int len;
37704 getsockname(0, 0, &len);
37705
37706 ;
37707 return 0;
37708}
37709_ACEOF
37710rm -f conftest.$ac_objext
37711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37712 (eval $ac_compile) 2>conftest.er1
a848cd7e 37713 ac_status=$?
ac1cb8d3
VS
37714 grep -v '^ *+' conftest.er1 >conftest.err
37715 rm -f conftest.er1
37716 cat conftest.err >&5
a848cd7e
SC
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); } &&
9dd0f6c2 37719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721 (eval $ac_try) 2>&5
37722 ac_status=$?
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); }; } &&
37725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727 (eval $ac_try) 2>&5
37728 ac_status=$?
37729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730 (exit $ac_status); }; }; then
37731 wx_cv_type_getsockname3=int
37732else
37733 echo "$as_me: failed program was:" >&5
37734sed 's/^/| /' conftest.$ac_ext >&5
37735
37736wx_cv_type_getsockname3=unknown
37737
37738fi
ac1cb8d3 37739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37740
37741fi
ac1cb8d3 37742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37743
37744 CFLAGS="$CFLAGS_OLD"
37745
37746
37747fi
ac1cb8d3 37748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37749
37750fi
37751echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37752echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37753
37754 if test "$wx_cv_type_getsockname3" = "unknown"; then
37755 wxUSE_SOCKETS=no
37756 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37757echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37758 else
37759 cat >>confdefs.h <<_ACEOF
37760#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37761_ACEOF
37762
37763 fi
37764 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37765echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37766if test "${wx_cv_type_getsockopt5+set}" = set; then
37767 echo $ECHO_N "(cached) $ECHO_C" >&6
37768else
37769
37770 cat >conftest.$ac_ext <<_ACEOF
37771/* confdefs.h. */
37772_ACEOF
37773cat confdefs.h >>conftest.$ac_ext
37774cat >>conftest.$ac_ext <<_ACEOF
37775/* end confdefs.h. */
37776
37777 #include <sys/types.h>
37778 #include <sys/socket.h>
37779
37780int
37781main ()
37782{
37783
37784 socklen_t len;
37785 getsockopt(0, 0, 0, 0, &len);
37786
37787 ;
37788 return 0;
37789}
37790_ACEOF
37791rm -f conftest.$ac_objext
37792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37793 (eval $ac_compile) 2>conftest.er1
37794 ac_status=$?
37795 grep -v '^ *+' conftest.er1 >conftest.err
37796 rm -f conftest.er1
37797 cat conftest.err >&5
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); } &&
9dd0f6c2 37800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37802 (eval $ac_try) 2>&5
37803 ac_status=$?
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); }; } &&
37806 { ac_try='test -s conftest.$ac_objext'
37807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37808 (eval $ac_try) 2>&5
37809 ac_status=$?
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); }; }; then
37812 wx_cv_type_getsockopt5=socklen_t
37813else
37814 echo "$as_me: failed program was:" >&5
37815sed 's/^/| /' conftest.$ac_ext >&5
37816
37817
37818 CFLAGS_OLD="$CFLAGS"
37819 if test "$GCC" = yes ; then
37820 CFLAGS="$CFLAGS -Werror"
37821 fi
37822
37823 cat >conftest.$ac_ext <<_ACEOF
37824/* confdefs.h. */
37825_ACEOF
37826cat confdefs.h >>conftest.$ac_ext
37827cat >>conftest.$ac_ext <<_ACEOF
37828/* end confdefs.h. */
37829
37830 #include <sys/types.h>
37831 #include <sys/socket.h>
37832
37833int
37834main ()
37835{
37836
37837 size_t len;
37838 getsockopt(0, 0, 0, 0, &len);
37839
37840 ;
37841 return 0;
37842}
37843_ACEOF
37844rm -f conftest.$ac_objext
37845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37846 (eval $ac_compile) 2>conftest.er1
37847 ac_status=$?
37848 grep -v '^ *+' conftest.er1 >conftest.err
37849 rm -f conftest.er1
37850 cat conftest.err >&5
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); } &&
9dd0f6c2 37853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855 (eval $ac_try) 2>&5
37856 ac_status=$?
37857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858 (exit $ac_status); }; } &&
37859 { ac_try='test -s conftest.$ac_objext'
37860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37861 (eval $ac_try) 2>&5
37862 ac_status=$?
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); }; }; then
37865 wx_cv_type_getsockopt5=size_t
37866else
37867 echo "$as_me: failed program was:" >&5
37868sed 's/^/| /' conftest.$ac_ext >&5
37869
37870cat >conftest.$ac_ext <<_ACEOF
37871/* confdefs.h. */
37872_ACEOF
37873cat confdefs.h >>conftest.$ac_ext
37874cat >>conftest.$ac_ext <<_ACEOF
37875/* end confdefs.h. */
37876
37877 #include <sys/types.h>
37878 #include <sys/socket.h>
37879
37880int
37881main ()
37882{
37883
37884 int len;
37885 getsockopt(0, 0, 0, 0, &len);
37886
37887 ;
37888 return 0;
37889}
37890_ACEOF
37891rm -f conftest.$ac_objext
37892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37893 (eval $ac_compile) 2>conftest.er1
37894 ac_status=$?
37895 grep -v '^ *+' conftest.er1 >conftest.err
37896 rm -f conftest.er1
37897 cat conftest.err >&5
37898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899 (exit $ac_status); } &&
9dd0f6c2 37900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37902 (eval $ac_try) 2>&5
37903 ac_status=$?
37904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905 (exit $ac_status); }; } &&
37906 { ac_try='test -s conftest.$ac_objext'
37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908 (eval $ac_try) 2>&5
37909 ac_status=$?
37910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); }; }; then
37912 wx_cv_type_getsockopt5=int
37913else
37914 echo "$as_me: failed program was:" >&5
37915sed 's/^/| /' conftest.$ac_ext >&5
37916
37917wx_cv_type_getsockopt5=unknown
37918
37919fi
37920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37921
37922fi
37923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37924
37925 CFLAGS="$CFLAGS_OLD"
37926
37927
37928fi
37929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37930
37931fi
37932echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37933echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37934
37935 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37936 wxUSE_SOCKETS=no
37937 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37938echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37939 else
37940 cat >>confdefs.h <<_ACEOF
37941#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37942_ACEOF
37943
37944 fi
4d4ff94c
VZ
37945 ac_ext=c
37946ac_cpp='$CPP $CPPFLAGS'
37947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37949ac_compiler_gnu=$ac_cv_c_compiler_gnu
37950
a848cd7e
SC
37951 fi
37952fi
37953
37954if test "$wxUSE_SOCKETS" = "yes" ; then
37955 cat >>confdefs.h <<\_ACEOF
37956#define wxUSE_SOCKETS 1
37957_ACEOF
37958
37959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37960fi
37961
37962if test "$wxUSE_PROTOCOL" = "yes"; then
37963 if test "$wxUSE_SOCKETS" != "yes"; then
37964 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37965echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37966 wxUSE_PROTOCOL=no
37967 fi
37968fi
37969
37970if test "$wxUSE_PROTOCOL" = "yes"; then
37971 cat >>confdefs.h <<\_ACEOF
37972#define wxUSE_PROTOCOL 1
37973_ACEOF
37974
37975
37976 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37977 cat >>confdefs.h <<\_ACEOF
37978#define wxUSE_PROTOCOL_HTTP 1
37979_ACEOF
37980
37981 fi
37982 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37983 cat >>confdefs.h <<\_ACEOF
37984#define wxUSE_PROTOCOL_FTP 1
37985_ACEOF
37986
37987 fi
37988 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37989 cat >>confdefs.h <<\_ACEOF
37990#define wxUSE_PROTOCOL_FILE 1
37991_ACEOF
37992
37993 fi
37994else
37995 if test "$wxUSE_FS_INET" = "yes"; then
37996 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37997echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37998 wxUSE_FS_INET="no"
37999 fi
38000fi
38001
38002if test "$wxUSE_URL" = "yes"; then
38003 if test "$wxUSE_PROTOCOL" != "yes"; then
38004 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38005echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38006 wxUSE_URL=no
38007 fi
38008 if test "$wxUSE_URL" = "yes"; then
38009 cat >>confdefs.h <<\_ACEOF
38010#define wxUSE_URL 1
38011_ACEOF
38012
38013 fi
38014fi
38015
38016if test "$wxUSE_FS_INET" = "yes"; then
38017 cat >>confdefs.h <<\_ACEOF
38018#define wxUSE_FS_INET 1
38019_ACEOF
38020
38021fi
38022
38023
38024if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38025 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38026
4cb1d3da 38027 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38028
38029for ac_header in linux/joystick.h
38030do
38031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38032if eval "test \"\${$as_ac_Header+set}\" = set"; then
38033 echo "$as_me:$LINENO: checking for $ac_header" >&5
38034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38035if eval "test \"\${$as_ac_Header+set}\" = set"; then
38036 echo $ECHO_N "(cached) $ECHO_C" >&6
38037fi
38038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38040else
38041 # Is the header compilable?
38042echo "$as_me:$LINENO: checking $ac_header usability" >&5
38043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38044cat >conftest.$ac_ext <<_ACEOF
38045/* confdefs.h. */
38046_ACEOF
38047cat confdefs.h >>conftest.$ac_ext
38048cat >>conftest.$ac_ext <<_ACEOF
38049/* end confdefs.h. */
38050$ac_includes_default
38051#include <$ac_header>
38052_ACEOF
38053rm -f conftest.$ac_objext
38054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38055 (eval $ac_compile) 2>conftest.er1
a848cd7e 38056 ac_status=$?
ac1cb8d3
VS
38057 grep -v '^ *+' conftest.er1 >conftest.err
38058 rm -f conftest.er1
38059 cat conftest.err >&5
a848cd7e
SC
38060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); } &&
9dd0f6c2 38062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38064 (eval $ac_try) 2>&5
38065 ac_status=$?
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); }; } &&
38068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38071 ac_status=$?
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; }; then
38074 ac_header_compiler=yes
38075else
38076 echo "$as_me: failed program was:" >&5
38077sed 's/^/| /' conftest.$ac_ext >&5
38078
38079ac_header_compiler=no
38080fi
ac1cb8d3 38081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38083echo "${ECHO_T}$ac_header_compiler" >&6
38084
38085# Is the header present?
38086echo "$as_me:$LINENO: checking $ac_header presence" >&5
38087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38088cat >conftest.$ac_ext <<_ACEOF
38089/* confdefs.h. */
38090_ACEOF
38091cat confdefs.h >>conftest.$ac_ext
38092cat >>conftest.$ac_ext <<_ACEOF
38093/* end confdefs.h. */
38094#include <$ac_header>
38095_ACEOF
38096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38098 ac_status=$?
38099 grep -v '^ *+' conftest.er1 >conftest.err
38100 rm -f conftest.er1
38101 cat conftest.err >&5
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); } >/dev/null; then
38104 if test -s conftest.err; then
38105 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38107 else
38108 ac_cpp_err=
38109 fi
38110else
38111 ac_cpp_err=yes
38112fi
38113if test -z "$ac_cpp_err"; then
38114 ac_header_preproc=yes
38115else
38116 echo "$as_me: failed program was:" >&5
38117sed 's/^/| /' conftest.$ac_ext >&5
38118
38119 ac_header_preproc=no
38120fi
38121rm -f conftest.err conftest.$ac_ext
38122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38123echo "${ECHO_T}$ac_header_preproc" >&6
38124
38125# So? What about this header?
ac1cb8d3
VS
38126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38127 yes:no: )
a848cd7e
SC
38128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38132 ac_header_preproc=yes
a848cd7e 38133 ;;
ac1cb8d3 38134 no:yes:* )
a848cd7e
SC
38135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38147 (
38148 cat <<\_ASBOX
ac1cb8d3
VS
38149## ----------------------------------------- ##
38150## Report this to wx-dev@lists.wxwidgets.org ##
38151## ----------------------------------------- ##
a848cd7e
SC
38152_ASBOX
38153 ) |
38154 sed "s/^/$as_me: WARNING: /" >&2
38155 ;;
38156esac
38157echo "$as_me:$LINENO: checking for $ac_header" >&5
38158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38159if eval "test \"\${$as_ac_Header+set}\" = set"; then
38160 echo $ECHO_N "(cached) $ECHO_C" >&6
38161else
ac1cb8d3 38162 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38163fi
38164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38166
38167fi
38168if test `eval echo '${'$as_ac_Header'}'` = yes; then
38169 cat >>confdefs.h <<_ACEOF
38170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38171_ACEOF
38172
38173fi
38174
38175done
38176
38177 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38178 wxUSE_JOYSTICK=no
38179 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38180echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38181 fi
4cb1d3da
RN
38182 else
38183 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38184 wxUSE_JOYSTICK=no
38185 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38186echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38187 fi
a848cd7e 38188 fi
a848cd7e 38189
4cb1d3da
RN
38190
38191 if test "$wxUSE_JOYSTICK" = "yes"; then
38192 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38193#define wxUSE_JOYSTICK 1
38194_ACEOF
38195
4cb1d3da
RN
38196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38197 fi
a848cd7e
SC
38198 fi
38199fi
38200
38201
38202
38203if test "$wxUSE_FONTMAP" = "yes" ; then
38204 cat >>confdefs.h <<\_ACEOF
38205#define wxUSE_FONTMAP 1
38206_ACEOF
38207
38208fi
38209
38210if test "$wxUSE_UNICODE" = "yes" ; then
38211 cat >>confdefs.h <<\_ACEOF
38212#define wxUSE_UNICODE 1
38213_ACEOF
38214
38215
38216 if test "$USE_WIN32" != 1; then
38217 wxUSE_UNICODE_MSLU=no
38218 fi
38219
38220 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38221 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38222echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38223if test "${ac_cv_lib_unicows_main+set}" = set; then
38224 echo $ECHO_N "(cached) $ECHO_C" >&6
38225else
38226 ac_check_lib_save_LIBS=$LIBS
38227LIBS="-lunicows $LIBS"
38228cat >conftest.$ac_ext <<_ACEOF
38229/* confdefs.h. */
38230_ACEOF
38231cat confdefs.h >>conftest.$ac_ext
38232cat >>conftest.$ac_ext <<_ACEOF
38233/* end confdefs.h. */
38234
38235
38236int
38237main ()
38238{
38239main ();
38240 ;
38241 return 0;
38242}
38243_ACEOF
38244rm -f conftest.$ac_objext conftest$ac_exeext
38245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38246 (eval $ac_link) 2>conftest.er1
a848cd7e 38247 ac_status=$?
ac1cb8d3
VS
38248 grep -v '^ *+' conftest.er1 >conftest.err
38249 rm -f conftest.er1
38250 cat conftest.err >&5
a848cd7e
SC
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); } &&
9dd0f6c2 38253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38255 (eval $ac_try) 2>&5
38256 ac_status=$?
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); }; } &&
38259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261 (eval $ac_try) 2>&5
38262 ac_status=$?
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38265 ac_cv_lib_unicows_main=yes
38266else
38267 echo "$as_me: failed program was:" >&5
38268sed 's/^/| /' conftest.$ac_ext >&5
38269
38270ac_cv_lib_unicows_main=no
38271fi
ac1cb8d3
VS
38272rm -f conftest.err conftest.$ac_objext \
38273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38274LIBS=$ac_check_lib_save_LIBS
38275fi
38276echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38277echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38278if test $ac_cv_lib_unicows_main = yes; then
38279
38280 cat >>confdefs.h <<\_ACEOF
38281#define wxUSE_UNICODE_MSLU 1
38282_ACEOF
38283
38284
38285else
38286
38287 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38288 Applications will only run on Windows NT/2000/XP!" >&5
38289echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38290 Applications will only run on Windows NT/2000/XP!" >&2;}
38291 wxUSE_UNICODE_MSLU=no
38292
38293fi
38294
38295 fi
38296fi
38297
38298if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38299 cat >>confdefs.h <<\_ACEOF
38300#define wxUSE_EXPERIMENTAL_PRINTF 1
38301_ACEOF
38302
38303fi
38304
38305
38306if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38307 cat >>confdefs.h <<\_ACEOF
38308#define wxUSE_POSTSCRIPT 1
38309_ACEOF
38310
38311fi
38312
38313cat >>confdefs.h <<\_ACEOF
38314#define wxUSE_AFM_FOR_POSTSCRIPT 1
38315_ACEOF
38316
38317
38318cat >>confdefs.h <<\_ACEOF
38319#define wxUSE_NORMALIZED_PS_FONTS 1
38320_ACEOF
38321
38322
38323
38324if test "$wxUSE_CONSTRAINTS" = "yes"; then
38325 cat >>confdefs.h <<\_ACEOF
38326#define wxUSE_CONSTRAINTS 1
38327_ACEOF
38328
38329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38330fi
38331
8a7b1113
VZ
38332if test "$wxUSE_MDI" = "yes"; then
38333 cat >>confdefs.h <<\_ACEOF
38334#define wxUSE_MDI 1
38335_ACEOF
38336
38337
38338 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38339 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38340#define wxUSE_MDI_ARCHITECTURE 1
38341_ACEOF
38342
8a7b1113
VZ
38343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38344 fi
a848cd7e
SC
38345fi
38346
38347if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38348 cat >>confdefs.h <<\_ACEOF
38349#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38350_ACEOF
38351
38352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38353 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38355 fi
38356fi
38357
38358if test "$wxUSE_HELP" = "yes"; then
38359 cat >>confdefs.h <<\_ACEOF
38360#define wxUSE_HELP 1
38361_ACEOF
38362
38363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38364
38365 if test "$wxUSE_MSW" = 1; then
38366 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38367 cat >>confdefs.h <<\_ACEOF
38368#define wxUSE_MS_HTML_HELP 1
38369_ACEOF
38370
38371 fi
38372 fi
38373
38374 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38375 if test "$wxUSE_HTML" = "yes"; then
38376 cat >>confdefs.h <<\_ACEOF
38377#define wxUSE_WXHTML_HELP 1
38378_ACEOF
38379
38380 else
38381 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38382echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38383 wxUSE_WXHTML_HELP=no
38384 fi
38385 fi
38386fi
38387
38388if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38389 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38390 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38391echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38392 else
38393 cat >>confdefs.h <<\_ACEOF
38394#define wxUSE_PRINTING_ARCHITECTURE 1
38395_ACEOF
38396
38397 fi
38398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38399fi
38400
38401if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38402 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38403echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38404 { (exit 1); exit 1; }; }
38405fi
38406
38407
38408if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38409 -o "$wxUSE_CLIPBOARD" = "yes" \
38410 -o "$wxUSE_OLE" = "yes" \
38411 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38412
38413for ac_header in ole2.h
38414do
38415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38416if eval "test \"\${$as_ac_Header+set}\" = set"; then
38417 echo "$as_me:$LINENO: checking for $ac_header" >&5
38418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38419if eval "test \"\${$as_ac_Header+set}\" = set"; then
38420 echo $ECHO_N "(cached) $ECHO_C" >&6
38421fi
38422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38424else
38425 # Is the header compilable?
38426echo "$as_me:$LINENO: checking $ac_header usability" >&5
38427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38428cat >conftest.$ac_ext <<_ACEOF
38429/* confdefs.h. */
38430_ACEOF
38431cat confdefs.h >>conftest.$ac_ext
38432cat >>conftest.$ac_ext <<_ACEOF
38433/* end confdefs.h. */
38434$ac_includes_default
38435#include <$ac_header>
38436_ACEOF
38437rm -f conftest.$ac_objext
38438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38439 (eval $ac_compile) 2>conftest.er1
a848cd7e 38440 ac_status=$?
ac1cb8d3
VS
38441 grep -v '^ *+' conftest.er1 >conftest.err
38442 rm -f conftest.er1
38443 cat conftest.err >&5
a848cd7e
SC
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); } &&
9dd0f6c2 38446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38448 (eval $ac_try) 2>&5
38449 ac_status=$?
38450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451 (exit $ac_status); }; } &&
38452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38454 (eval $ac_try) 2>&5
38455 ac_status=$?
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); }; }; then
38458 ac_header_compiler=yes
38459else
38460 echo "$as_me: failed program was:" >&5
38461sed 's/^/| /' conftest.$ac_ext >&5
38462
38463ac_header_compiler=no
38464fi
ac1cb8d3 38465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38467echo "${ECHO_T}$ac_header_compiler" >&6
38468
38469# Is the header present?
38470echo "$as_me:$LINENO: checking $ac_header presence" >&5
38471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38472cat >conftest.$ac_ext <<_ACEOF
38473/* confdefs.h. */
38474_ACEOF
38475cat confdefs.h >>conftest.$ac_ext
38476cat >>conftest.$ac_ext <<_ACEOF
38477/* end confdefs.h. */
38478#include <$ac_header>
38479_ACEOF
38480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38482 ac_status=$?
38483 grep -v '^ *+' conftest.er1 >conftest.err
38484 rm -f conftest.er1
38485 cat conftest.err >&5
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); } >/dev/null; then
38488 if test -s conftest.err; then
38489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38491 else
38492 ac_cpp_err=
38493 fi
38494else
38495 ac_cpp_err=yes
38496fi
38497if test -z "$ac_cpp_err"; then
38498 ac_header_preproc=yes
38499else
38500 echo "$as_me: failed program was:" >&5
38501sed 's/^/| /' conftest.$ac_ext >&5
38502
38503 ac_header_preproc=no
38504fi
38505rm -f conftest.err conftest.$ac_ext
38506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38507echo "${ECHO_T}$ac_header_preproc" >&6
38508
38509# So? What about this header?
ac1cb8d3
VS
38510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38511 yes:no: )
a848cd7e
SC
38512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38516 ac_header_preproc=yes
a848cd7e 38517 ;;
ac1cb8d3 38518 no:yes:* )
a848cd7e
SC
38519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38531 (
38532 cat <<\_ASBOX
ac1cb8d3
VS
38533## ----------------------------------------- ##
38534## Report this to wx-dev@lists.wxwidgets.org ##
38535## ----------------------------------------- ##
a848cd7e
SC
38536_ASBOX
38537 ) |
38538 sed "s/^/$as_me: WARNING: /" >&2
38539 ;;
38540esac
38541echo "$as_me:$LINENO: checking for $ac_header" >&5
38542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38543if eval "test \"\${$as_ac_Header+set}\" = set"; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38545else
ac1cb8d3 38546 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38547fi
38548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38550
38551fi
38552if test `eval echo '${'$as_ac_Header'}'` = yes; then
38553 cat >>confdefs.h <<_ACEOF
38554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38555_ACEOF
38556
38557fi
38558
38559done
38560
38561
38562 if test "$ac_cv_header_ole2_h" = "yes" ; then
38563 if test "$GCC" = yes ; then
38564
38565
38566 ac_ext=cc
38567ac_cpp='$CXXCPP $CPPFLAGS'
38568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38571
38572
38573 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38574echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38575 cat >conftest.$ac_ext <<_ACEOF
38576/* confdefs.h. */
38577_ACEOF
38578cat confdefs.h >>conftest.$ac_ext
38579cat >>conftest.$ac_ext <<_ACEOF
38580/* end confdefs.h. */
38581#include <windows.h>
38582 #include <ole2.h>
38583int
38584main ()
38585{
38586
38587 ;
38588 return 0;
38589}
38590_ACEOF
38591rm -f conftest.$ac_objext
38592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38593 (eval $ac_compile) 2>conftest.er1
a848cd7e 38594 ac_status=$?
ac1cb8d3
VS
38595 grep -v '^ *+' conftest.er1 >conftest.err
38596 rm -f conftest.er1
38597 cat conftest.err >&5
a848cd7e
SC
38598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599 (exit $ac_status); } &&
9dd0f6c2 38600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602 (eval $ac_try) 2>&5
38603 ac_status=$?
38604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; } &&
38606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608 (eval $ac_try) 2>&5
38609 ac_status=$?
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); }; }; then
38612 echo "$as_me:$LINENO: result: no" >&5
38613echo "${ECHO_T}no" >&6
38614else
38615 echo "$as_me: failed program was:" >&5
38616sed 's/^/| /' conftest.$ac_ext >&5
38617
38618echo "$as_me:$LINENO: result: yes" >&5
38619echo "${ECHO_T}yes" >&6
38620 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38621fi
ac1cb8d3 38622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38623 ac_ext=c
38624ac_cpp='$CPP $CPPFLAGS'
38625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38627ac_compiler_gnu=$ac_cv_c_compiler_gnu
38628
a848cd7e
SC
38629 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38630 if test "$wxUSE_OLE" = "yes" ; then
38631 cat >>confdefs.h <<\_ACEOF
38632#define wxUSE_OLE 1
38633_ACEOF
38634
0b78747f 38635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38636 fi
38637 fi
38638
38639 if test "$wxUSE_DATAOBJ" = "yes" ; then
38640 cat >>confdefs.h <<\_ACEOF
38641#define wxUSE_DATAOBJ 1
38642_ACEOF
38643
38644 fi
38645 else
38646 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38647echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38648
38649 wxUSE_CLIPBOARD=no
38650 wxUSE_DRAG_AND_DROP=no
38651 wxUSE_DATAOBJ=no
38652 wxUSE_OLE=no
38653 fi
38654
38655 if test "$wxUSE_METAFILE" = "yes"; then
38656 cat >>confdefs.h <<\_ACEOF
38657#define wxUSE_METAFILE 1
38658_ACEOF
38659
38660
38661 cat >>confdefs.h <<\_ACEOF
38662#define wxUSE_ENH_METAFILE 1
38663_ACEOF
38664
38665 fi
38666fi
38667
38668if test "$wxUSE_IPC" = "yes"; then
0b78747f 38669 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38670 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38671echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38672 wxUSE_IPC=no
a848cd7e
SC
38673 fi
38674
0b78747f
MW
38675 if test "$wxUSE_IPC" = "yes"; then
38676 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38677#define wxUSE_IPC 1
38678_ACEOF
38679
0b78747f
MW
38680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38681 fi
a848cd7e
SC
38682fi
38683
38684if test "$wxUSE_CLIPBOARD" = "yes"; then
38685 if test "$wxUSE_MGL" = 1; then
38686 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38687echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38688 wxUSE_CLIPBOARD=no
38689 fi
38690
38691 if test "$wxUSE_CLIPBOARD" = "yes"; then
38692 cat >>confdefs.h <<\_ACEOF
38693#define wxUSE_CLIPBOARD 1
38694_ACEOF
38695
38696
38697 cat >>confdefs.h <<\_ACEOF
38698#define wxUSE_DATAOBJ 1
38699_ACEOF
38700
38701 fi
38702fi
38703
38704if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38705 if test "$wxUSE_GTK" = 1; then
38706 if test "$WXGTK12" != 1; then
38707 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38708echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38709 wxUSE_DRAG_AND_DROP=no
38710 fi
38711 fi
38712
38713 if test "$wxUSE_MOTIF" = 1; then
38714 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38715echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38716 wxUSE_DRAG_AND_DROP=no
38717 fi
38718
38719 if test "$wxUSE_X11" = 1; then
38720 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38721echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38722 wxUSE_DRAG_AND_DROP=no
38723 fi
38724
38725 if test "$wxUSE_MGL" = 1; then
38726 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38727echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38728 wxUSE_DRAG_AND_DROP=no
38729 fi
38730
38731 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38732 cat >>confdefs.h <<\_ACEOF
38733#define wxUSE_DRAG_AND_DROP 1
38734_ACEOF
38735
38736 fi
38737
38738fi
38739
38740if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38742fi
38743
38744if test "$wxUSE_SPLINES" = "yes" ; then
38745 cat >>confdefs.h <<\_ACEOF
38746#define wxUSE_SPLINES 1
38747_ACEOF
38748
38749fi
38750
38751
38752USES_CONTROLS=0
38753if test "$wxUSE_CONTROLS" = "yes"; then
38754 USES_CONTROLS=1
38755fi
38756
38757if test "$wxUSE_ACCEL" = "yes"; then
38758 cat >>confdefs.h <<\_ACEOF
38759#define wxUSE_ACCEL 1
38760_ACEOF
38761
38762 USES_CONTROLS=1
38763fi
38764
38765if test "$wxUSE_BUTTON" = "yes"; then
38766 cat >>confdefs.h <<\_ACEOF
38767#define wxUSE_BUTTON 1
38768_ACEOF
38769
38770 USES_CONTROLS=1
38771fi
38772
38773if test "$wxUSE_BMPBUTTON" = "yes"; then
38774 cat >>confdefs.h <<\_ACEOF
38775#define wxUSE_BMPBUTTON 1
38776_ACEOF
38777
38778 USES_CONTROLS=1
38779fi
38780
38781if test "$wxUSE_CALCTRL" = "yes"; then
38782 cat >>confdefs.h <<\_ACEOF
38783#define wxUSE_CALENDARCTRL 1
38784_ACEOF
38785
38786 USES_CONTROLS=1
38787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38788fi
38789
38790if test "$wxUSE_CARET" = "yes"; then
38791 cat >>confdefs.h <<\_ACEOF
38792#define wxUSE_CARET 1
38793_ACEOF
38794
38795 USES_CONTROLS=1
38796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38797fi
38798
38799if test "$wxUSE_COMBOBOX" = "yes"; then
38800 cat >>confdefs.h <<\_ACEOF
38801#define wxUSE_COMBOBOX 1
38802_ACEOF
38803
38804 USES_CONTROLS=1
38805fi
38806
38807if test "$wxUSE_CHOICE" = "yes"; then
38808 cat >>confdefs.h <<\_ACEOF
38809#define wxUSE_CHOICE 1
38810_ACEOF
38811
38812 USES_CONTROLS=1
38813fi
38814
92bbdbcd
WS
38815if test "$wxUSE_CHOICEBOOK" = "yes"; then
38816 cat >>confdefs.h <<\_ACEOF
38817#define wxUSE_CHOICEBOOK 1
38818_ACEOF
38819
38820 USES_CONTROLS=1
38821fi
38822
a848cd7e
SC
38823if test "$wxUSE_CHECKBOX" = "yes"; then
38824 cat >>confdefs.h <<\_ACEOF
38825#define wxUSE_CHECKBOX 1
38826_ACEOF
38827
38828 USES_CONTROLS=1
38829fi
38830
38831if test "$wxUSE_CHECKLST" = "yes"; then
38832 cat >>confdefs.h <<\_ACEOF
38833#define wxUSE_CHECKLISTBOX 1
38834_ACEOF
38835
38836 USES_CONTROLS=1
38837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38838fi
38839
da98e9be
VZ
38840if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38841 cat >>confdefs.h <<\_ACEOF
38842#define wxUSE_DATEPICKCTRL 1
38843_ACEOF
38844
38845 USES_CONTROLS=1
38846fi
38847
a848cd7e
SC
38848if test "$wxUSE_DISPLAY" = "yes"; then
38849 cat >>confdefs.h <<\_ACEOF
38850#define wxUSE_DISPLAY 1
38851_ACEOF
38852
0b78747f 38853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38854fi
38855
38856if test "$wxUSE_GAUGE" = "yes"; then
38857 cat >>confdefs.h <<\_ACEOF
38858#define wxUSE_GAUGE 1
38859_ACEOF
38860
38861 USES_CONTROLS=1
38862fi
38863
38864if test "$wxUSE_GRID" = "yes"; then
38865 cat >>confdefs.h <<\_ACEOF
38866#define wxUSE_GRID 1
38867_ACEOF
38868
38869 USES_CONTROLS=1
38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38871fi
38872
38873if test "$wxUSE_IMAGLIST" = "yes"; then
38874 cat >>confdefs.h <<\_ACEOF
38875#define wxUSE_IMAGLIST 1
38876_ACEOF
38877
38878fi
38879
38880if test "$wxUSE_LISTBOOK" = "yes"; then
38881 cat >>confdefs.h <<\_ACEOF
38882#define wxUSE_LISTBOOK 1
38883_ACEOF
38884
38885 USES_CONTROLS=1
38886fi
38887
38888if test "$wxUSE_LISTBOX" = "yes"; then
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_LISTBOX 1
38891_ACEOF
38892
38893 USES_CONTROLS=1
0b78747f 38894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38895fi
38896
38897if test "$wxUSE_LISTCTRL" = "yes"; then
38898 if test "$wxUSE_IMAGLIST" = "yes"; then
38899 cat >>confdefs.h <<\_ACEOF
38900#define wxUSE_LISTCTRL 1
38901_ACEOF
38902
38903 USES_CONTROLS=1
38904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38905 else
38906 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38907echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38908 fi
38909fi
38910
38911if test "$wxUSE_NOTEBOOK" = "yes"; then
38912 cat >>confdefs.h <<\_ACEOF
38913#define wxUSE_NOTEBOOK 1
38914_ACEOF
38915
38916 USES_CONTROLS=1
38917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38918fi
38919
38920
38921if test "$wxUSE_RADIOBOX" = "yes"; then
38922 cat >>confdefs.h <<\_ACEOF
38923#define wxUSE_RADIOBOX 1
38924_ACEOF
38925
38926 USES_CONTROLS=1
38927fi
38928
38929if test "$wxUSE_RADIOBTN" = "yes"; then
38930 cat >>confdefs.h <<\_ACEOF
38931#define wxUSE_RADIOBTN 1
38932_ACEOF
38933
38934 USES_CONTROLS=1
38935fi
38936
38937if test "$wxUSE_SASH" = "yes"; then
38938 cat >>confdefs.h <<\_ACEOF
38939#define wxUSE_SASH 1
38940_ACEOF
38941
38942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38943fi
38944
38945if test "$wxUSE_SCROLLBAR" = "yes"; then
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_SCROLLBAR 1
38948_ACEOF
38949
38950 USES_CONTROLS=1
38951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38952fi
38953
38954if test "$wxUSE_SLIDER" = "yes"; then
38955 cat >>confdefs.h <<\_ACEOF
38956#define wxUSE_SLIDER 1
38957_ACEOF
38958
38959 USES_CONTROLS=1
38960fi
38961
38962if test "$wxUSE_SPINBTN" = "yes"; then
38963 cat >>confdefs.h <<\_ACEOF
38964#define wxUSE_SPINBTN 1
38965_ACEOF
38966
38967 USES_CONTROLS=1
38968fi
38969
38970if test "$wxUSE_SPINCTRL" = "yes"; then
38971 cat >>confdefs.h <<\_ACEOF
38972#define wxUSE_SPINCTRL 1
38973_ACEOF
38974
38975 USES_CONTROLS=1
38976fi
38977
38978if test "$wxUSE_SPLITTER" = "yes"; then
38979 cat >>confdefs.h <<\_ACEOF
38980#define wxUSE_SPLITTER 1
38981_ACEOF
38982
38983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38984fi
38985
38986if test "$wxUSE_STATBMP" = "yes"; then
38987 cat >>confdefs.h <<\_ACEOF
38988#define wxUSE_STATBMP 1
38989_ACEOF
38990
38991 USES_CONTROLS=1
38992fi
38993
38994if test "$wxUSE_STATBOX" = "yes"; then
38995 cat >>confdefs.h <<\_ACEOF
38996#define wxUSE_STATBOX 1
38997_ACEOF
38998
38999 USES_CONTROLS=1
39000fi
39001
39002if test "$wxUSE_STATTEXT" = "yes"; then
39003 cat >>confdefs.h <<\_ACEOF
39004#define wxUSE_STATTEXT 1
39005_ACEOF
39006
39007 USES_CONTROLS=1
39008fi
39009
39010if test "$wxUSE_STATLINE" = "yes"; then
39011 cat >>confdefs.h <<\_ACEOF
39012#define wxUSE_STATLINE 1
39013_ACEOF
39014
39015 USES_CONTROLS=1
39016fi
39017
39018if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39019 cat >>confdefs.h <<\_ACEOF
39020#define wxUSE_NATIVE_STATUSBAR 1
39021_ACEOF
39022
a848cd7e
SC
39023 cat >>confdefs.h <<\_ACEOF
39024#define wxUSE_STATUSBAR 1
39025_ACEOF
39026
39027 USES_CONTROLS=1
39028
39029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39030fi
39031
39032if test "$wxUSE_TABDIALOG" = "yes"; then
39033 cat >>confdefs.h <<\_ACEOF
39034#define wxUSE_TAB_DIALOG 1
39035_ACEOF
39036
a848cd7e
SC
39037fi
39038
39039if test "$wxUSE_TEXTCTRL" = "yes"; then
39040 cat >>confdefs.h <<\_ACEOF
39041#define wxUSE_TEXTCTRL 1
39042_ACEOF
39043
39044 USES_CONTROLS=1
39045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39046fi
39047
39048if test "$wxUSE_TOGGLEBTN" = "yes"; then
39049 if test "$wxUSE_COCOA" = 1 ; then
39050 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39051echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39052 wxUSE_TOGGLEBTN=no
bdcade0a
MB
39053 else
39054 if test "$wxUSE_PM" = 1; then
39055 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
39056echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
39057 wxUSE_TOGGLEBTN=no
39058 fi
a848cd7e
SC
39059 fi
39060 if test "$wxUSE_UNIVERSAL" = "yes"; then
39061 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39062echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39063 wxUSE_TOGGLEBTN=no
39064 fi
39065
39066 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39067 cat >>confdefs.h <<\_ACEOF
39068#define wxUSE_TOGGLEBTN 1
39069_ACEOF
39070
39071 USES_CONTROLS=1
39072 fi
39073fi
39074
39075if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39076 cat >>confdefs.h <<\_ACEOF
39077#define wxUSE_TOOLBAR_SIMPLE 1
39078_ACEOF
39079
39080 wxUSE_TOOLBAR="yes"
39081 USES_CONTROLS=1
39082fi
39083
39084if test "$wxUSE_TOOLBAR" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_TOOLBAR 1
39087_ACEOF
39088
39089 USES_CONTROLS=1
39090
39091 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39092 wxUSE_TOOLBAR_NATIVE="yes"
39093 fi
39094
39095 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39096 cat >>confdefs.h <<\_ACEOF
39097#define wxUSE_TOOLBAR_NATIVE 1
39098_ACEOF
39099
39100 USES_CONTROLS=1
39101 fi
39102
39103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39104fi
39105
39106if test "$wxUSE_TOOLTIPS" = "yes"; then
39107 if test "$wxUSE_MOTIF" = 1; then
39108 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39109echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39110 else
39111 if test "$wxUSE_UNIVERSAL" = "yes"; then
39112 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39113echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39114 else
39115 cat >>confdefs.h <<\_ACEOF
39116#define wxUSE_TOOLTIPS 1
39117_ACEOF
39118
39119 fi
39120 fi
39121fi
39122
39123if test "$wxUSE_TREECTRL" = "yes"; then
39124 if test "$wxUSE_IMAGLIST" = "yes"; then
39125 cat >>confdefs.h <<\_ACEOF
39126#define wxUSE_TREECTRL 1
39127_ACEOF
39128
39129 USES_CONTROLS=1
39130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39131 else
39132 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39133echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39134 fi
39135fi
39136
39137if test "$wxUSE_POPUPWIN" = "yes"; then
39138 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39139 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39140echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39141 else
39142 if test "$wxUSE_PM" = 1; then
39143 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39144echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39145 else
39146 cat >>confdefs.h <<\_ACEOF
39147#define wxUSE_POPUPWIN 1
39148_ACEOF
39149
0b78747f 39150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39151
39152 USES_CONTROLS=1
39153 fi
39154 fi
39155fi
39156
0dcd06dd 39157if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39158 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39159 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39160echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39161 else
39162 cat >>confdefs.h <<\_ACEOF
39163#define wxUSE_DIALUP_MANAGER 1
39164_ACEOF
39165
39166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39167 fi
39168fi
39169
a848cd7e
SC
39170if test "$wxUSE_TIPWINDOW" = "yes"; then
39171 if test "$wxUSE_PM" = 1; then
39172 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39173echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39174 else
39175 cat >>confdefs.h <<\_ACEOF
39176#define wxUSE_TIPWINDOW 1
39177_ACEOF
39178
39179 fi
39180fi
39181
39182if test "$USES_CONTROLS" = 1; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define wxUSE_CONTROLS 1
39185_ACEOF
39186
39187fi
39188
39189
39190if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39191 cat >>confdefs.h <<\_ACEOF
39192#define wxUSE_ACCESSIBILITY 1
39193_ACEOF
39194
39195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39196fi
39197
39198if test "$wxUSE_DRAGIMAGE" = "yes"; then
39199 cat >>confdefs.h <<\_ACEOF
39200#define wxUSE_DRAGIMAGE 1
39201_ACEOF
39202
39203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39204fi
39205
39206if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39207 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39208 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39209echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39210 else
39211 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39212#define wxUSE_EXCEPTIONS 1
39213_ACEOF
39214
07bea8f0
VS
39215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39216 fi
a848cd7e
SC
39217fi
39218
39219USE_HTML=0
39220if test "$wxUSE_HTML" = "yes"; then
39221 cat >>confdefs.h <<\_ACEOF
39222#define wxUSE_HTML 1
39223_ACEOF
39224
39225 USE_HTML=1
39226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39227 if test "$wxUSE_MAC" = 1; then
39228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39229 fi
a848cd7e 39230fi
646b6ec1 39231if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39232 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39233 old_CPPFLAGS="$CPPFLAGS"
39234 CPPFLAGS="$CPPFLAGS -x objective-c++"
39235 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39236echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39237if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39238 echo $ECHO_N "(cached) $ECHO_C" >&6
39239else
39240 cat >conftest.$ac_ext <<_ACEOF
39241/* confdefs.h. */
39242_ACEOF
39243cat confdefs.h >>conftest.$ac_ext
39244cat >>conftest.$ac_ext <<_ACEOF
39245/* end confdefs.h. */
39246#include <Carbon/Carbon.h>
39247
39248#include <WebKit/HIWebView.h>
39249_ACEOF
39250rm -f conftest.$ac_objext
39251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39252 (eval $ac_compile) 2>conftest.er1
39253 ac_status=$?
39254 grep -v '^ *+' conftest.er1 >conftest.err
39255 rm -f conftest.er1
39256 cat conftest.err >&5
39257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258 (exit $ac_status); } &&
9dd0f6c2 39259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39261 (eval $ac_try) 2>&5
39262 ac_status=$?
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); }; } &&
39265 { ac_try='test -s conftest.$ac_objext'
39266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267 (eval $ac_try) 2>&5
39268 ac_status=$?
39269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270 (exit $ac_status); }; }; then
39271 ac_cv_header_WebKit_HIWebView_h=yes
39272else
39273 echo "$as_me: failed program was:" >&5
39274sed 's/^/| /' conftest.$ac_ext >&5
39275
39276ac_cv_header_WebKit_HIWebView_h=no
39277fi
39278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39279fi
39280echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39281echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39282if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39283
39284 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39285#define wxUSE_WEBKIT 1
39286_ACEOF
39287
07bea8f0
VS
39288 WEBKIT_LINK="-framework WebKit"
39289
39290else
39291
39292 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39293echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39294 wxUSE_WEBKIT=no
39295
646b6ec1
VS
39296fi
39297
07bea8f0
VS
39298
39299 CPPFLAGS="$old_CPPFLAGS"
39300 elif test "$wxUSE_COCOA" = 1; then
39301 cat >>confdefs.h <<\_ACEOF
39302#define wxUSE_WEBKIT 1
39303_ACEOF
39304
39305 else
39306 wxUSE_WEBKIT=no
39307 fi
39308fi
39309
9a8f0513
VS
39310USE_XRC=0
39311if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39312 if test "$wxUSE_XML" != "yes"; then
39313 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39314echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39315 wxUSE_XRC=no
39316 else
39317 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39318#define wxUSE_XRC 1
39319_ACEOF
39320
d2ebf0b7
VS
39321 USE_XRC=1
39322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39323 fi
9a8f0513 39324fi
07bea8f0 39325
a848cd7e
SC
39326if test "$wxUSE_MENUS" = "yes"; then
39327 cat >>confdefs.h <<\_ACEOF
39328#define wxUSE_MENUS 1
39329_ACEOF
39330
39331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39332fi
39333
39334if test "$wxUSE_METAFILE" = "yes"; then
39335 cat >>confdefs.h <<\_ACEOF
39336#define wxUSE_METAFILE 1
39337_ACEOF
39338
39339fi
39340
39341if test "$wxUSE_MIMETYPE" = "yes"; then
39342 cat >>confdefs.h <<\_ACEOF
39343#define wxUSE_MIMETYPE 1
39344_ACEOF
39345
39346fi
39347
39348if test "$wxUSE_MINIFRAME" = "yes"; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define wxUSE_MINIFRAME 1
39351_ACEOF
39352
39353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39354fi
39355
39356if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39357 cat >>confdefs.h <<\_ACEOF
39358#define wxUSE_SYSTEM_OPTIONS 1
39359_ACEOF
39360
39361 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39362 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39364 fi
39365fi
39366
39367
39368if test "$wxUSE_VALIDATORS" = "yes"; then
39369 cat >>confdefs.h <<\_ACEOF
39370#define wxUSE_VALIDATORS 1
39371_ACEOF
39372
39373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39374fi
39375
39376if test "$wxUSE_PALETTE" = "yes" ; then
39377 cat >>confdefs.h <<\_ACEOF
39378#define wxUSE_PALETTE 1
39379_ACEOF
39380
39381fi
39382
39383if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39384 LIBS=" -lunicows $LIBS"
39385fi
39386
39387
39388if test "$wxUSE_IMAGE" = "yes" ; then
39389 cat >>confdefs.h <<\_ACEOF
39390#define wxUSE_IMAGE 1
39391_ACEOF
39392
39393
39394 if test "$wxUSE_GIF" = "yes" ; then
39395 cat >>confdefs.h <<\_ACEOF
39396#define wxUSE_GIF 1
39397_ACEOF
39398
39399 fi
39400
39401 if test "$wxUSE_PCX" = "yes" ; then
39402 cat >>confdefs.h <<\_ACEOF
39403#define wxUSE_PCX 1
39404_ACEOF
39405
39406 fi
39407
39408 if test "$wxUSE_IFF" = "yes" ; then
39409 cat >>confdefs.h <<\_ACEOF
39410#define wxUSE_IFF 1
39411_ACEOF
39412
39413 fi
39414
39415 if test "$wxUSE_PNM" = "yes" ; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_PNM 1
39418_ACEOF
39419
39420 fi
39421
39422 if test "$wxUSE_XPM" = "yes" ; then
39423 cat >>confdefs.h <<\_ACEOF
39424#define wxUSE_XPM 1
39425_ACEOF
39426
39427 fi
39428
39429 if test "$wxUSE_ICO_CUR" = "yes" ; then
39430 cat >>confdefs.h <<\_ACEOF
39431#define wxUSE_ICO_CUR 1
39432_ACEOF
39433
39434 fi
39435fi
39436
39437
39438if test "$wxUSE_CHOICEDLG" = "yes"; then
39439 cat >>confdefs.h <<\_ACEOF
39440#define wxUSE_CHOICEDLG 1
39441_ACEOF
39442
39443fi
39444
39445if test "$wxUSE_COLOURDLG" = "yes"; then
39446 cat >>confdefs.h <<\_ACEOF
39447#define wxUSE_COLOURDLG 1
39448_ACEOF
39449
39450fi
39451
39452if test "$wxUSE_FILEDLG" = "yes"; then
39453 cat >>confdefs.h <<\_ACEOF
39454#define wxUSE_FILEDLG 1
39455_ACEOF
39456
39457fi
39458
39459if test "$wxUSE_FINDREPLDLG" = "yes"; then
39460 cat >>confdefs.h <<\_ACEOF
39461#define wxUSE_FINDREPLDLG 1
39462_ACEOF
39463
39464fi
39465
39466if test "$wxUSE_FONTDLG" = "yes"; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define wxUSE_FONTDLG 1
39469_ACEOF
39470
39471fi
39472
39473if test "$wxUSE_DIRDLG" = "yes"; then
39474 if test "$wxUSE_TREECTRL" != "yes"; then
39475 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39476echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39477 else
39478 cat >>confdefs.h <<\_ACEOF
39479#define wxUSE_DIRDLG 1
39480_ACEOF
39481
39482 fi
39483fi
39484
39485if test "$wxUSE_MSGDLG" = "yes"; then
39486 cat >>confdefs.h <<\_ACEOF
39487#define wxUSE_MSGDLG 1
39488_ACEOF
39489
39490fi
39491
39492if test "$wxUSE_NUMBERDLG" = "yes"; then
39493 cat >>confdefs.h <<\_ACEOF
39494#define wxUSE_NUMBERDLG 1
39495_ACEOF
39496
39497fi
39498
39499if test "$wxUSE_PROGRESSDLG" = "yes"; then
39500 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39501 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39502echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39503 else
39504 cat >>confdefs.h <<\_ACEOF
39505#define wxUSE_PROGRESSDLG 1
39506_ACEOF
39507
39508 fi
39509fi
39510
39511if test "$wxUSE_SPLASH" = "yes"; then
39512 cat >>confdefs.h <<\_ACEOF
39513#define wxUSE_SPLASH 1
39514_ACEOF
39515
2057db16 39516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39517fi
39518
39519if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39520 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39521 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39522echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39523 else
39524 cat >>confdefs.h <<\_ACEOF
39525#define wxUSE_STARTUP_TIPS 1
39526_ACEOF
39527
39528 fi
39529fi
39530
39531if test "$wxUSE_TEXTDLG" = "yes"; then
39532 cat >>confdefs.h <<\_ACEOF
39533#define wxUSE_TEXTDLG 1
39534_ACEOF
39535
39536fi
39537
39538if test "$wxUSE_WIZARDDLG" = "yes"; then
39539 cat >>confdefs.h <<\_ACEOF
39540#define wxUSE_WIZARDDLG 1
39541_ACEOF
39542
39543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39544fi
39545
39546
ce756cb0
RN
39547if test "$wxUSE_MEDIACTRL" = "yes"; then
39548 if test "$wxUSE_MSW" = 1; then
39549 wxUSE_DIRECTSHOW="yes"
39550
39551for ac_header in dshow.h
39552do
39553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39554echo "$as_me:$LINENO: checking for $ac_header" >&5
39555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39556if eval "test \"\${$as_ac_Header+set}\" = set"; then
39557 echo $ECHO_N "(cached) $ECHO_C" >&6
39558else
39559 cat >conftest.$ac_ext <<_ACEOF
39560/* confdefs.h. */
39561_ACEOF
39562cat confdefs.h >>conftest.$ac_ext
39563cat >>conftest.$ac_ext <<_ACEOF
39564/* end confdefs.h. */
39565#include <windows.h>
39566
39567#include <$ac_header>
39568_ACEOF
39569rm -f conftest.$ac_objext
39570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39571 (eval $ac_compile) 2>conftest.er1
39572 ac_status=$?
39573 grep -v '^ *+' conftest.er1 >conftest.err
39574 rm -f conftest.er1
39575 cat conftest.err >&5
39576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577 (exit $ac_status); } &&
9dd0f6c2 39578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39580 (eval $ac_try) 2>&5
39581 ac_status=$?
39582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39583 (exit $ac_status); }; } &&
39584 { ac_try='test -s conftest.$ac_objext'
39585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39586 (eval $ac_try) 2>&5
39587 ac_status=$?
39588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589 (exit $ac_status); }; }; then
39590 eval "$as_ac_Header=yes"
39591else
39592 echo "$as_me: failed program was:" >&5
39593sed 's/^/| /' conftest.$ac_ext >&5
39594
39595eval "$as_ac_Header=no"
39596fi
39597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39598fi
39599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39601if test `eval echo '${'$as_ac_Header'}'` = yes; then
39602 cat >>confdefs.h <<_ACEOF
39603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39604_ACEOF
39605
39606else
39607
39608 wxUSE_DIRECTSHOW="no"
39609 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39610echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39611
39612fi
39613
39614done
39615
39616
39617 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39618 cat >>confdefs.h <<\_ACEOF
39619#define wxUSE_DIRECTSHOW 1
39620_ACEOF
39621
39622 LIBS="$LIBS -lstrmiids"
39623 fi
39624 fi
39625
39626 if test "$wxUSE_GTK" = 1; then
39627 wxUSE_GSTREAMER="yes"
39628
ce756cb0 39629
dae87f93 39630 succeeded=no
ce756cb0 39631
dae87f93
RN
39632 if test -z "$PKG_CONFIG"; then
39633 # Extract the first word of "pkg-config", so it can be a program name with args.
39634set dummy pkg-config; ac_word=$2
39635echo "$as_me:$LINENO: checking for $ac_word" >&5
39636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39637if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39638 echo $ECHO_N "(cached) $ECHO_C" >&6
39639else
39640 case $PKG_CONFIG in
39641 [\\/]* | ?:[\\/]*)
39642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39643 ;;
39644 *)
39645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39646for as_dir in $PATH
39647do
39648 IFS=$as_save_IFS
39649 test -z "$as_dir" && as_dir=.
39650 for ac_exec_ext in '' $ac_executable_extensions; do
39651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39654 break 2
39655 fi
39656done
39657done
39658
39659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39660 ;;
39661esac
39662fi
39663PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39664
39665if test -n "$PKG_CONFIG"; then
39666 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39667echo "${ECHO_T}$PKG_CONFIG" >&6
39668else
39669 echo "$as_me:$LINENO: result: no" >&5
39670echo "${ECHO_T}no" >&6
39671fi
39672
39673 fi
39674
39675 if test "$PKG_CONFIG" = "no" ; then
39676 echo "*** The pkg-config script could not be found. Make sure it is"
39677 echo "*** in your path, or set the PKG_CONFIG environment variable"
39678 echo "*** to the full path to pkg-config."
39679 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39680 else
39681 PKG_CONFIG_MIN_VERSION=0.9.0
39682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39683 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39684echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39685
39686 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39687 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39688echo "${ECHO_T}yes" >&6
dae87f93 39689 succeeded=yes
ce756cb0 39690
dae87f93
RN
39691 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39692echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39693 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39694 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39695echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39696
39697 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39698echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39699 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39700 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39701echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39702 else
39703 GSTREAMER_CFLAGS=""
39704 GSTREAMER_LIBS=""
39705 ## If we have a custom action on failure, don't print errors, but
39706 ## do set a variable so people can do so.
39707 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39708
dae87f93
RN
39709 fi
39710
39711
39712
39713 else
39714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39716 fi
39717 fi
39718
39719 if test $succeeded = yes; then
39720
39721 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39722 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39723
ce756cb0 39724 else
dae87f93
RN
39725
39726 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39727echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39728 wxUSE_GSTREAMER="no"
39729
39730 fi
39731
39732
39733
39734
39735
39736 if test "x$GST_INSPECT" == "x"; then
39737 # Extract the first word of "gst-inspect", so it can be a program name with args.
39738set dummy gst-inspect; ac_word=$2
39739echo "$as_me:$LINENO: checking for $ac_word" >&5
39740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39741if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39742 echo $ECHO_N "(cached) $ECHO_C" >&6
39743else
39744 if test -n "$GST_INSPECT"; then
39745 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39746else
39747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39748for as_dir in $PATH
39749do
39750 IFS=$as_save_IFS
39751 test -z "$as_dir" && as_dir=.
39752 for ac_exec_ext in '' $ac_executable_extensions; do
39753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39754 ac_cv_prog_GST_INSPECT="gst-inspect"
39755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39756 break 2
ce756cb0 39757 fi
dae87f93
RN
39758done
39759done
39760
39761fi
39762fi
39763GST_INSPECT=$ac_cv_prog_GST_INSPECT
39764if test -n "$GST_INSPECT"; then
39765 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39766echo "${ECHO_T}$GST_INSPECT" >&6
39767else
39768 echo "$as_me:$LINENO: result: no" >&5
39769echo "${ECHO_T}no" >&6
39770fi
39771
39772 fi
39773
39774 if test "x$GST_INSPECT" != "x"; then
39775 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39776echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39777 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39778 echo "$as_me:$LINENO: result: found." >&5
39779echo "${ECHO_T}found." >&6
ce756cb0 39780
ce756cb0 39781 else
dae87f93
RN
39782 echo "$as_me:$LINENO: result: not found." >&5
39783echo "${ECHO_T}not found." >&6
39784
39785 wxUSE_GSTREAMER="no"
39786 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39787echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39788
39789 fi
39790 fi
39791
39792
39793 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39794echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39795if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39796 echo $ECHO_N "(cached) $ECHO_C" >&6
39797else
39798 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39799/* confdefs.h. */
39800_ACEOF
39801cat confdefs.h >>conftest.$ac_ext
39802cat >>conftest.$ac_ext <<_ACEOF
39803/* end confdefs.h. */
dae87f93 39804#include <gst/gst.h>
ce756cb0 39805
dae87f93 39806#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39807_ACEOF
39808rm -f conftest.$ac_objext
39809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39810 (eval $ac_compile) 2>conftest.er1
39811 ac_status=$?
39812 grep -v '^ *+' conftest.er1 >conftest.err
39813 rm -f conftest.er1
39814 cat conftest.err >&5
39815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816 (exit $ac_status); } &&
9dd0f6c2 39817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39819 (eval $ac_try) 2>&5
39820 ac_status=$?
39821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822 (exit $ac_status); }; } &&
39823 { ac_try='test -s conftest.$ac_objext'
39824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39825 (eval $ac_try) 2>&5
39826 ac_status=$?
39827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); }; }; then
dae87f93 39829 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39830else
39831 echo "$as_me: failed program was:" >&5
39832sed 's/^/| /' conftest.$ac_ext >&5
39833
dae87f93 39834ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39835fi
39836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39837fi
39838echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39839echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39840if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39841 :
39842else
ce756cb0 39843
dae87f93
RN
39844 wxUSE_GSTREAMER="no"
39845 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39846echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39847
dae87f93 39848fi
ce756cb0 39849
dae87f93
RN
39850
39851
39852 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39853echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39854
39855ac_find_libraries=
39856for ac_dir in $SEARCH_LIB /usr/lib;
39857 do
39858 for ac_extension in a so sl dylib; do
39859 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39860 ac_find_libraries=$ac_dir
39861 break 2
39862 fi
39863 done
39864 done
39865
ce756cb0 39866
dae87f93
RN
39867 if test "$ac_find_libraries" = "" ; then
39868 echo "$as_me:$LINENO: result: no" >&5
39869echo "${ECHO_T}no" >&6
39870 wxUSE_GSTREAMER="no"
39871 else
39872 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39873echo "${ECHO_T}yes" >&6
dae87f93 39874 fi
ce756cb0 39875
dae87f93
RN
39876 if test "$wxUSE_GSTREAMER" = "yes"; then
39877 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39878#define wxUSE_GSTREAMER 1
39879_ACEOF
39880
dae87f93
RN
39881 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39882echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39883 fi
39884 fi
39885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39886 cat >>confdefs.h <<\_ACEOF
39887#define wxUSE_MEDIACTRL 1
39888_ACEOF
39889
39890fi
39891
39892
a848cd7e
SC
39893if test "$cross_compiling" = "yes"; then
39894 OSINFO="\"$host\""
39895else
39896 OSINFO=`uname -s -r -m`
39897 OSINFO="\"$OSINFO\""
39898fi
39899
39900cat >>confdefs.h <<_ACEOF
39901#define WXWIN_OS_DESCRIPTION $OSINFO
39902_ACEOF
39903
39904
39905
39906if test "x$prefix" != "xNONE"; then
39907 wxPREFIX=$prefix
39908else
39909 wxPREFIX=$ac_default_prefix
39910fi
39911
39912cat >>confdefs.h <<_ACEOF
39913#define wxINSTALL_PREFIX "$wxPREFIX"
39914_ACEOF
39915
39916
a848cd7e
SC
39917
39918
39919CORE_BASE_LIBS="net base"
39920CORE_GUI_LIBS="adv core"
39921
39922if test "$wxUSE_XML" = "yes" ; then
39923 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39924fi
39925if test "$wxUSE_ODBC" != "no" ; then
39926 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39927 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39928fi
39929if test "$wxUSE_HTML" = "yes" ; then
39930 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39931fi
61639efb
VZ
39932if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39933 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39934fi
9a8f0513
VS
39935if test "$wxUSE_XRC" = "yes" ; then
39936 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39937fi
a848cd7e
SC
39938
39939if test "$wxUSE_GUI" != "yes"; then
39940 CORE_GUI_LIBS=""
39941fi
39942
39943
39944
39945
39946
39947
39948
39949
39950if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39951 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39952 if test "$USE_DARWIN" = 1; then
39953 LDFLAGS="$LDFLAGS -framework QuickTime"
39954 else
39955 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39956 fi
07bea8f0 39957 fi
5dcf30a0 39958 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39959 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39960 else
39961 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39962 fi
59746b65
MW
39963elif test "$USE_DARWIN" = 1; then
39964 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
39965fi
39966if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39967 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39968 if test "$wxUSE_MEDIACTRL" = "yes"; then
39969 LDFLAGS="$LDFLAGS -framework QuickTime"
39970 fi
a848cd7e
SC
39971fi
39972
39973
39974LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39975
39976have_cos=0
39977have_floor=0
39978
39979for ac_func in cos
39980do
39981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39982echo "$as_me:$LINENO: checking for $ac_func" >&5
39983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39984if eval "test \"\${$as_ac_var+set}\" = set"; then
39985 echo $ECHO_N "(cached) $ECHO_C" >&6
39986else
39987 cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h. */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h. */
ac1cb8d3
VS
39993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39995#define $ac_func innocuous_$ac_func
39996
a848cd7e
SC
39997/* System header to define __stub macros and hopefully few prototypes,
39998 which can conflict with char $ac_func (); below.
39999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40001
a848cd7e
SC
40002#ifdef __STDC__
40003# include <limits.h>
40004#else
40005# include <assert.h>
40006#endif
ac1cb8d3
VS
40007
40008#undef $ac_func
40009
a848cd7e
SC
40010/* Override any gcc2 internal prototype to avoid an error. */
40011#ifdef __cplusplus
40012extern "C"
40013{
40014#endif
40015/* We use char because int might match the return type of a gcc2
40016 builtin and then its argument prototype would still apply. */
40017char $ac_func ();
40018/* The GNU C library defines this for functions which it implements
40019 to always fail with ENOSYS. Some functions are actually named
40020 something starting with __ and the normal name is an alias. */
40021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40022choke me
40023#else
40024char (*f) () = $ac_func;
40025#endif
40026#ifdef __cplusplus
40027}
40028#endif
40029
40030int
40031main ()
40032{
40033return f != $ac_func;
40034 ;
40035 return 0;
40036}
40037_ACEOF
40038rm -f conftest.$ac_objext conftest$ac_exeext
40039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40040 (eval $ac_link) 2>conftest.er1
a848cd7e 40041 ac_status=$?
ac1cb8d3
VS
40042 grep -v '^ *+' conftest.er1 >conftest.err
40043 rm -f conftest.er1
40044 cat conftest.err >&5
a848cd7e
SC
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); } &&
9dd0f6c2 40047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049 (eval $ac_try) 2>&5
40050 ac_status=$?
40051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052 (exit $ac_status); }; } &&
40053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055 (eval $ac_try) 2>&5
40056 ac_status=$?
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); }; }; then
40059 eval "$as_ac_var=yes"
40060else
40061 echo "$as_me: failed program was:" >&5
40062sed 's/^/| /' conftest.$ac_ext >&5
40063
40064eval "$as_ac_var=no"
40065fi
ac1cb8d3
VS
40066rm -f conftest.err conftest.$ac_objext \
40067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40068fi
40069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40071if test `eval echo '${'$as_ac_var'}'` = yes; then
40072 cat >>confdefs.h <<_ACEOF
40073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40074_ACEOF
40075 have_cos=1
40076fi
40077done
40078
40079
40080for ac_func in floor
40081do
40082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40083echo "$as_me:$LINENO: checking for $ac_func" >&5
40084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40085if eval "test \"\${$as_ac_var+set}\" = set"; then
40086 echo $ECHO_N "(cached) $ECHO_C" >&6
40087else
40088 cat >conftest.$ac_ext <<_ACEOF
40089/* confdefs.h. */
40090_ACEOF
40091cat confdefs.h >>conftest.$ac_ext
40092cat >>conftest.$ac_ext <<_ACEOF
40093/* end confdefs.h. */
ac1cb8d3
VS
40094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40096#define $ac_func innocuous_$ac_func
40097
a848cd7e
SC
40098/* System header to define __stub macros and hopefully few prototypes,
40099 which can conflict with char $ac_func (); below.
40100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40101 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40102
a848cd7e
SC
40103#ifdef __STDC__
40104# include <limits.h>
40105#else
40106# include <assert.h>
40107#endif
ac1cb8d3
VS
40108
40109#undef $ac_func
40110
a848cd7e
SC
40111/* Override any gcc2 internal prototype to avoid an error. */
40112#ifdef __cplusplus
40113extern "C"
40114{
40115#endif
40116/* We use char because int might match the return type of a gcc2
40117 builtin and then its argument prototype would still apply. */
40118char $ac_func ();
40119/* The GNU C library defines this for functions which it implements
40120 to always fail with ENOSYS. Some functions are actually named
40121 something starting with __ and the normal name is an alias. */
40122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40123choke me
40124#else
40125char (*f) () = $ac_func;
40126#endif
40127#ifdef __cplusplus
40128}
40129#endif
40130
40131int
40132main ()
40133{
40134return f != $ac_func;
40135 ;
40136 return 0;
40137}
40138_ACEOF
40139rm -f conftest.$ac_objext conftest$ac_exeext
40140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40141 (eval $ac_link) 2>conftest.er1
a848cd7e 40142 ac_status=$?
ac1cb8d3
VS
40143 grep -v '^ *+' conftest.er1 >conftest.err
40144 rm -f conftest.er1
40145 cat conftest.err >&5
a848cd7e
SC
40146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147 (exit $ac_status); } &&
9dd0f6c2 40148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40150 (eval $ac_try) 2>&5
40151 ac_status=$?
40152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153 (exit $ac_status); }; } &&
40154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; }; then
40160 eval "$as_ac_var=yes"
40161else
40162 echo "$as_me: failed program was:" >&5
40163sed 's/^/| /' conftest.$ac_ext >&5
40164
40165eval "$as_ac_var=no"
40166fi
ac1cb8d3
VS
40167rm -f conftest.err conftest.$ac_objext \
40168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40169fi
40170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40172if test `eval echo '${'$as_ac_var'}'` = yes; then
40173 cat >>confdefs.h <<_ACEOF
40174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40175_ACEOF
40176 have_floor=1
40177fi
40178done
40179
40180echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40181echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40182if test "$have_cos" = 1 -a "$have_floor" = 1; then
40183 echo "$as_me:$LINENO: result: yes" >&5
40184echo "${ECHO_T}yes" >&6
40185else
40186 echo "$as_me:$LINENO: result: no" >&5
40187echo "${ECHO_T}no" >&6
40188 LIBS="$LIBS -lm"
40189 # use different functions to avoid configure caching
40190 have_sin=0
40191 have_ceil=0
40192
40193for ac_func in sin
40194do
40195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40196echo "$as_me:$LINENO: checking for $ac_func" >&5
40197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40198if eval "test \"\${$as_ac_var+set}\" = set"; then
40199 echo $ECHO_N "(cached) $ECHO_C" >&6
40200else
40201 cat >conftest.$ac_ext <<_ACEOF
40202/* confdefs.h. */
40203_ACEOF
40204cat confdefs.h >>conftest.$ac_ext
40205cat >>conftest.$ac_ext <<_ACEOF
40206/* end confdefs.h. */
ac1cb8d3
VS
40207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40209#define $ac_func innocuous_$ac_func
40210
a848cd7e
SC
40211/* System header to define __stub macros and hopefully few prototypes,
40212 which can conflict with char $ac_func (); below.
40213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40215
a848cd7e
SC
40216#ifdef __STDC__
40217# include <limits.h>
40218#else
40219# include <assert.h>
40220#endif
ac1cb8d3
VS
40221
40222#undef $ac_func
40223
a848cd7e
SC
40224/* Override any gcc2 internal prototype to avoid an error. */
40225#ifdef __cplusplus
40226extern "C"
40227{
40228#endif
40229/* We use char because int might match the return type of a gcc2
40230 builtin and then its argument prototype would still apply. */
40231char $ac_func ();
40232/* The GNU C library defines this for functions which it implements
40233 to always fail with ENOSYS. Some functions are actually named
40234 something starting with __ and the normal name is an alias. */
40235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40236choke me
40237#else
40238char (*f) () = $ac_func;
40239#endif
40240#ifdef __cplusplus
40241}
40242#endif
40243
40244int
40245main ()
40246{
40247return f != $ac_func;
40248 ;
40249 return 0;
40250}
40251_ACEOF
40252rm -f conftest.$ac_objext conftest$ac_exeext
40253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40254 (eval $ac_link) 2>conftest.er1
a848cd7e 40255 ac_status=$?
ac1cb8d3
VS
40256 grep -v '^ *+' conftest.er1 >conftest.err
40257 rm -f conftest.er1
40258 cat conftest.err >&5
a848cd7e
SC
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); } &&
9dd0f6c2 40261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40263 (eval $ac_try) 2>&5
40264 ac_status=$?
40265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266 (exit $ac_status); }; } &&
40267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40269 (eval $ac_try) 2>&5
40270 ac_status=$?
40271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272 (exit $ac_status); }; }; then
40273 eval "$as_ac_var=yes"
40274else
40275 echo "$as_me: failed program was:" >&5
40276sed 's/^/| /' conftest.$ac_ext >&5
40277
40278eval "$as_ac_var=no"
40279fi
ac1cb8d3
VS
40280rm -f conftest.err conftest.$ac_objext \
40281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40282fi
40283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40285if test `eval echo '${'$as_ac_var'}'` = yes; then
40286 cat >>confdefs.h <<_ACEOF
40287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40288_ACEOF
40289 have_sin=1
40290fi
40291done
40292
40293
40294for ac_func in ceil
40295do
40296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40297echo "$as_me:$LINENO: checking for $ac_func" >&5
40298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40299if eval "test \"\${$as_ac_var+set}\" = set"; then
40300 echo $ECHO_N "(cached) $ECHO_C" >&6
40301else
40302 cat >conftest.$ac_ext <<_ACEOF
40303/* confdefs.h. */
40304_ACEOF
40305cat confdefs.h >>conftest.$ac_ext
40306cat >>conftest.$ac_ext <<_ACEOF
40307/* end confdefs.h. */
ac1cb8d3
VS
40308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40310#define $ac_func innocuous_$ac_func
40311
a848cd7e
SC
40312/* System header to define __stub macros and hopefully few prototypes,
40313 which can conflict with char $ac_func (); below.
40314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40316
a848cd7e
SC
40317#ifdef __STDC__
40318# include <limits.h>
40319#else
40320# include <assert.h>
40321#endif
ac1cb8d3
VS
40322
40323#undef $ac_func
40324
a848cd7e
SC
40325/* Override any gcc2 internal prototype to avoid an error. */
40326#ifdef __cplusplus
40327extern "C"
40328{
40329#endif
40330/* We use char because int might match the return type of a gcc2
40331 builtin and then its argument prototype would still apply. */
40332char $ac_func ();
40333/* The GNU C library defines this for functions which it implements
40334 to always fail with ENOSYS. Some functions are actually named
40335 something starting with __ and the normal name is an alias. */
40336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40337choke me
40338#else
40339char (*f) () = $ac_func;
40340#endif
40341#ifdef __cplusplus
40342}
40343#endif
40344
40345int
40346main ()
40347{
40348return f != $ac_func;
40349 ;
40350 return 0;
40351}
40352_ACEOF
40353rm -f conftest.$ac_objext conftest$ac_exeext
40354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40355 (eval $ac_link) 2>conftest.er1
a848cd7e 40356 ac_status=$?
ac1cb8d3
VS
40357 grep -v '^ *+' conftest.er1 >conftest.err
40358 rm -f conftest.er1
40359 cat conftest.err >&5
a848cd7e
SC
40360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40361 (exit $ac_status); } &&
9dd0f6c2 40362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40364 (eval $ac_try) 2>&5
40365 ac_status=$?
40366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367 (exit $ac_status); }; } &&
40368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40370 (eval $ac_try) 2>&5
40371 ac_status=$?
40372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); }; }; then
40374 eval "$as_ac_var=yes"
40375else
40376 echo "$as_me: failed program was:" >&5
40377sed 's/^/| /' conftest.$ac_ext >&5
40378
40379eval "$as_ac_var=no"
40380fi
ac1cb8d3
VS
40381rm -f conftest.err conftest.$ac_objext \
40382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40383fi
40384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40386if test `eval echo '${'$as_ac_var'}'` = yes; then
40387 cat >>confdefs.h <<_ACEOF
40388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40389_ACEOF
40390 have_ceil=1
40391fi
40392done
40393
40394 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40395echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40396 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40397 echo "$as_me:$LINENO: result: yes" >&5
40398echo "${ECHO_T}yes" >&6
40399 else
40400 echo "$as_me:$LINENO: result: no" >&5
40401echo "${ECHO_T}no" >&6
40402 # not sure we should warn the user, crash, etc.
40403 fi
40404fi
40405
40406if test "$wxUSE_GUI" = "yes"; then
40407
40408
8bce5cda
MW
40409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40410 dynamic erase event exec font image minimal mobile \
40411 mobile/wxedit mobile/styles propsize render \
40412 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40413
40414 if test "$wxUSE_MONOLITHIC" != "yes"; then
40415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40416 fi
0b78747f 40417 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40419 if test "$wxUSE_UNIVERSAL" != "yes"; then
40420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40421 fi
40422 fi
40423 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40425 fi
a848cd7e
SC
40426else
40427 SAMPLES_SUBDIRS="console"
40428fi
40429
40430
ceec2216 40431INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40432-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40433
40434if test "$GXX" = yes ; then
5294a27e
VZ
40435 CWARNINGS="-Wall"
40436 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40437 fi
40438
40439EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40440
0c3c69fc 40441CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40442CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40443CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40444
95986553
DE
40445if test "x$MWCC" = "xyes"; then
40446
40447 CC="$CC -cwd source -I-"
40448 CXX="$CXX -cwd source -I-"
40449fi
40450
a848cd7e 40451
0c3c69fc 40452LIBS=`echo $LIBS`
a848cd7e
SC
40453EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40454EXTRALIBS_XML="$EXPAT_LINK"
40455EXTRALIBS_HTML="$MSPACK_LINK"
40456EXTRALIBS_ODBC="$ODBC_LINK"
40457if test "$wxUSE_GUI" = "yes"; then
2e350179 40458 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40459fi
40460if test "$wxUSE_OPENGL" = "yes"; then
40461 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40462fi
40463
40464LDFLAGS="$LDFLAGS $PROFILE"
40465
40466if test "$wxUSE_GTK" = 1; then
40467 WXCONFIG_INCLUDE=
40468else
40469 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40470fi
40471
40472WXCONFIG_EXTRALIBS="$LIBS"
40473
40474if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40475 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40476fi
40477if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40478 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40479fi
40480if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40481 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40482fi
40483if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40484 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40485fi
40486if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40487 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40488fi
40489if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40490 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40491fi
40492if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40493 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40494fi
40495
40496for i in $wxconfig_3rdparty ; do
74802184 40497 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40498done
40499
40500
40501if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40502 WXUNIV=1
40503else
40504 WXUNIV=0
40505fi
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515if test $wxUSE_MONOLITHIC = "yes" ; then
40516 MONOLITHIC=1
40517else
40518 MONOLITHIC=0
40519fi
40520
40521if test $wxUSE_PLUGINS = "yes" ; then
40522 USE_PLUGINS=1
40523else
40524 USE_PLUGINS=0
40525fi
40526
40527if test $wxUSE_ODBC != "no" ; then
40528 USE_ODBC=1
40529else
40530 USE_ODBC=0
40531fi
40532
16358932
VZ
40533if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40534 USE_QA=1
40535else
40536 USE_QA=0
40537fi
40538
a848cd7e
SC
40539if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40540 OFFICIAL_BUILD=1
40541else
40542 OFFICIAL_BUILD=0
40543fi
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
ceec2216 40563
d1c38808 40564
a848cd7e
SC
40565
40566
40567TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40568
40569
40570
40571
40572
40573
40574
40575
4d4ff94c
VZ
40576case "$TOOLKIT" in
40577 GTK)
40578 TOOLKIT_USER="GTK+"
40579 if test "$WXGTK20" = 1; then
40580 TOOLKIT_USER="$TOOLKIT_USER 2"
40581 fi
9a8f0513 40582 ;;
4d4ff94c
VZ
40583
40584 *)
40585 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40586 ;;
4d4ff94c 40587esac
a848cd7e 40588
9a8f0513 40589
1e9e8aba
DE
40590
40591
a848cd7e
SC
40592 if test "x$BAKEFILE_HOST" = "x"; then
40593 BAKEFILE_HOST="${host}"
40594 fi
40595
40596 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40597
40598 if test -n "$ac_tool_prefix"; then
40599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40600set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40601echo "$as_me:$LINENO: checking for $ac_word" >&5
40602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40603if test "${ac_cv_prog_RANLIB+set}" = set; then
40604 echo $ECHO_N "(cached) $ECHO_C" >&6
40605else
40606 if test -n "$RANLIB"; then
40607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40608else
40609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40610for as_dir in $PATH
40611do
40612 IFS=$as_save_IFS
40613 test -z "$as_dir" && as_dir=.
40614 for ac_exec_ext in '' $ac_executable_extensions; do
40615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40618 break 2
40619 fi
40620done
40621done
40622
40623fi
40624fi
40625RANLIB=$ac_cv_prog_RANLIB
40626if test -n "$RANLIB"; then
40627 echo "$as_me:$LINENO: result: $RANLIB" >&5
40628echo "${ECHO_T}$RANLIB" >&6
40629else
40630 echo "$as_me:$LINENO: result: no" >&5
40631echo "${ECHO_T}no" >&6
40632fi
40633
40634fi
40635if test -z "$ac_cv_prog_RANLIB"; then
40636 ac_ct_RANLIB=$RANLIB
40637 # Extract the first word of "ranlib", so it can be a program name with args.
40638set dummy ranlib; ac_word=$2
40639echo "$as_me:$LINENO: checking for $ac_word" >&5
40640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40641if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40642 echo $ECHO_N "(cached) $ECHO_C" >&6
40643else
40644 if test -n "$ac_ct_RANLIB"; then
40645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40646else
40647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40648for as_dir in $PATH
40649do
40650 IFS=$as_save_IFS
40651 test -z "$as_dir" && as_dir=.
40652 for ac_exec_ext in '' $ac_executable_extensions; do
40653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40654 ac_cv_prog_ac_ct_RANLIB="ranlib"
40655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40656 break 2
40657 fi
40658done
40659done
40660
40661 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40662fi
40663fi
40664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40665if test -n "$ac_ct_RANLIB"; then
40666 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40667echo "${ECHO_T}$ac_ct_RANLIB" >&6
40668else
40669 echo "$as_me:$LINENO: result: no" >&5
40670echo "${ECHO_T}no" >&6
40671fi
40672
40673 RANLIB=$ac_ct_RANLIB
40674else
40675 RANLIB="$ac_cv_prog_RANLIB"
40676fi
40677
40678 # Find a good install program. We prefer a C program (faster),
40679# so one script is as good as another. But avoid the broken or
40680# incompatible versions:
40681# SysV /etc/install, /usr/sbin/install
40682# SunOS /usr/etc/install
40683# IRIX /sbin/install
40684# AIX /bin/install
40685# AmigaOS /C/install, which installs bootblocks on floppy discs
40686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40689# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40690# ./install, which can be erroneously created by make from ./install.sh.
40691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40693if test -z "$INSTALL"; then
40694if test "${ac_cv_path_install+set}" = set; then
40695 echo $ECHO_N "(cached) $ECHO_C" >&6
40696else
40697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40698for as_dir in $PATH
40699do
40700 IFS=$as_save_IFS
40701 test -z "$as_dir" && as_dir=.
40702 # Account for people who put trailing slashes in PATH elements.
40703case $as_dir/ in
40704 ./ | .// | /cC/* | \
40705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40707 /usr/ucb/* ) ;;
40708 *)
40709 # OSF1 and SCO ODT 3.0 have their own names for install.
40710 # Don't use installbsd from OSF since it installs stuff as root
40711 # by default.
40712 for ac_prog in ginstall scoinst install; do
40713 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40715 if test $ac_prog = install &&
40716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40717 # AIX install. It has an incompatible calling convention.
40718 :
40719 elif test $ac_prog = install &&
40720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40721 # program-specific install script used by HP pwplus--don't use.
40722 :
40723 else
40724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40725 break 3
40726 fi
40727 fi
a848cd7e
SC
40728 done
40729 done
40730 ;;
40731esac
40732done
40733
40734
40735fi
40736 if test "${ac_cv_path_install+set}" = set; then
40737 INSTALL=$ac_cv_path_install
40738 else
40739 # As a last resort, use the slow shell script. We don't cache a
40740 # path for INSTALL within a source directory, because that will
40741 # break other packages using the cache if that directory is
40742 # removed, or if the path is relative.
40743 INSTALL=$ac_install_sh
40744 fi
40745fi
40746echo "$as_me:$LINENO: result: $INSTALL" >&5
40747echo "${ECHO_T}$INSTALL" >&6
40748
40749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40750# It thinks the first close brace ends the variable substitution.
40751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40752
40753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40754
40755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40756
40757 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40758echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40759LN_S=$as_ln_s
40760if test "$LN_S" = "ln -s"; then
40761 echo "$as_me:$LINENO: result: yes" >&5
40762echo "${ECHO_T}yes" >&6
40763else
40764 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40765echo "${ECHO_T}no, using $LN_S" >&6
40766fi
40767
40768
40769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40773 echo $ECHO_N "(cached) $ECHO_C" >&6
40774else
40775 cat >conftest.make <<\_ACEOF
40776all:
40777 @echo 'ac_maketemp="$(MAKE)"'
40778_ACEOF
40779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40781if test -n "$ac_maketemp"; then
40782 eval ac_cv_prog_make_${ac_make}_set=yes
40783else
40784 eval ac_cv_prog_make_${ac_make}_set=no
40785fi
40786rm -f conftest.make
40787fi
40788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40789 echo "$as_me:$LINENO: result: yes" >&5
40790echo "${ECHO_T}yes" >&6
40791 SET_MAKE=
40792else
40793 echo "$as_me:$LINENO: result: no" >&5
40794echo "${ECHO_T}no" >&6
40795 SET_MAKE="MAKE=${MAKE-make}"
40796fi
40797
40798
40799
40800 if test -n "$ac_tool_prefix"; then
40801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40802set dummy ${ac_tool_prefix}ar; ac_word=$2
40803echo "$as_me:$LINENO: checking for $ac_word" >&5
40804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40805if test "${ac_cv_prog_AR+set}" = set; then
40806 echo $ECHO_N "(cached) $ECHO_C" >&6
40807else
40808 if test -n "$AR"; then
40809 ac_cv_prog_AR="$AR" # Let the user override the test.
40810else
40811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40812for as_dir in $PATH
40813do
40814 IFS=$as_save_IFS
40815 test -z "$as_dir" && as_dir=.
40816 for ac_exec_ext in '' $ac_executable_extensions; do
40817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40818 ac_cv_prog_AR="${ac_tool_prefix}ar"
40819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40820 break 2
40821 fi
40822done
40823done
40824
40825fi
40826fi
40827AR=$ac_cv_prog_AR
40828if test -n "$AR"; then
40829 echo "$as_me:$LINENO: result: $AR" >&5
40830echo "${ECHO_T}$AR" >&6
40831else
40832 echo "$as_me:$LINENO: result: no" >&5
40833echo "${ECHO_T}no" >&6
40834fi
40835
40836fi
40837if test -z "$ac_cv_prog_AR"; then
40838 ac_ct_AR=$AR
40839 # Extract the first word of "ar", so it can be a program name with args.
40840set dummy ar; ac_word=$2
40841echo "$as_me:$LINENO: checking for $ac_word" >&5
40842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40843if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40844 echo $ECHO_N "(cached) $ECHO_C" >&6
40845else
40846 if test -n "$ac_ct_AR"; then
40847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40848else
40849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40850for as_dir in $PATH
40851do
40852 IFS=$as_save_IFS
40853 test -z "$as_dir" && as_dir=.
40854 for ac_exec_ext in '' $ac_executable_extensions; do
40855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40856 ac_cv_prog_ac_ct_AR="ar"
40857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40858 break 2
40859 fi
40860done
40861done
40862
40863 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40864fi
40865fi
40866ac_ct_AR=$ac_cv_prog_ac_ct_AR
40867if test -n "$ac_ct_AR"; then
40868 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40869echo "${ECHO_T}$ac_ct_AR" >&6
40870else
40871 echo "$as_me:$LINENO: result: no" >&5
40872echo "${ECHO_T}no" >&6
40873fi
40874
40875 AR=$ac_ct_AR
40876else
40877 AR="$ac_cv_prog_AR"
40878fi
40879
40880 if test -n "$ac_tool_prefix"; then
40881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40882set dummy ${ac_tool_prefix}strip; ac_word=$2
40883echo "$as_me:$LINENO: checking for $ac_word" >&5
40884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40885if test "${ac_cv_prog_STRIP+set}" = set; then
40886 echo $ECHO_N "(cached) $ECHO_C" >&6
40887else
40888 if test -n "$STRIP"; then
40889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40890else
40891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40892for as_dir in $PATH
40893do
40894 IFS=$as_save_IFS
40895 test -z "$as_dir" && as_dir=.
40896 for ac_exec_ext in '' $ac_executable_extensions; do
40897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40900 break 2
40901 fi
40902done
40903done
40904
40905fi
40906fi
40907STRIP=$ac_cv_prog_STRIP
40908if test -n "$STRIP"; then
40909 echo "$as_me:$LINENO: result: $STRIP" >&5
40910echo "${ECHO_T}$STRIP" >&6
40911else
40912 echo "$as_me:$LINENO: result: no" >&5
40913echo "${ECHO_T}no" >&6
40914fi
40915
40916fi
40917if test -z "$ac_cv_prog_STRIP"; then
40918 ac_ct_STRIP=$STRIP
40919 # Extract the first word of "strip", so it can be a program name with args.
40920set dummy strip; ac_word=$2
40921echo "$as_me:$LINENO: checking for $ac_word" >&5
40922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40923if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40924 echo $ECHO_N "(cached) $ECHO_C" >&6
40925else
40926 if test -n "$ac_ct_STRIP"; then
40927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40928else
40929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40930for as_dir in $PATH
40931do
40932 IFS=$as_save_IFS
40933 test -z "$as_dir" && as_dir=.
40934 for ac_exec_ext in '' $ac_executable_extensions; do
40935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40936 ac_cv_prog_ac_ct_STRIP="strip"
40937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40938 break 2
40939 fi
40940done
40941done
40942
40943 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40944fi
40945fi
40946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40947if test -n "$ac_ct_STRIP"; then
40948 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40949echo "${ECHO_T}$ac_ct_STRIP" >&6
40950else
40951 echo "$as_me:$LINENO: result: no" >&5
40952echo "${ECHO_T}no" >&6
40953fi
40954
40955 STRIP=$ac_ct_STRIP
40956else
40957 STRIP="$ac_cv_prog_STRIP"
40958fi
40959
40960 if test -n "$ac_tool_prefix"; then
40961 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40962set dummy ${ac_tool_prefix}nm; ac_word=$2
40963echo "$as_me:$LINENO: checking for $ac_word" >&5
40964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40965if test "${ac_cv_prog_NM+set}" = set; then
40966 echo $ECHO_N "(cached) $ECHO_C" >&6
40967else
40968 if test -n "$NM"; then
40969 ac_cv_prog_NM="$NM" # Let the user override the test.
40970else
40971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40972for as_dir in $PATH
40973do
40974 IFS=$as_save_IFS
40975 test -z "$as_dir" && as_dir=.
40976 for ac_exec_ext in '' $ac_executable_extensions; do
40977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40978 ac_cv_prog_NM="${ac_tool_prefix}nm"
40979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40980 break 2
40981 fi
40982done
40983done
40984
40985fi
40986fi
40987NM=$ac_cv_prog_NM
40988if test -n "$NM"; then
40989 echo "$as_me:$LINENO: result: $NM" >&5
40990echo "${ECHO_T}$NM" >&6
40991else
40992 echo "$as_me:$LINENO: result: no" >&5
40993echo "${ECHO_T}no" >&6
40994fi
40995
40996fi
40997if test -z "$ac_cv_prog_NM"; then
40998 ac_ct_NM=$NM
40999 # Extract the first word of "nm", so it can be a program name with args.
41000set dummy nm; ac_word=$2
41001echo "$as_me:$LINENO: checking for $ac_word" >&5
41002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41003if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41004 echo $ECHO_N "(cached) $ECHO_C" >&6
41005else
41006 if test -n "$ac_ct_NM"; then
41007 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41008else
41009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41010for as_dir in $PATH
41011do
41012 IFS=$as_save_IFS
41013 test -z "$as_dir" && as_dir=.
41014 for ac_exec_ext in '' $ac_executable_extensions; do
41015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41016 ac_cv_prog_ac_ct_NM="nm"
41017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41018 break 2
41019 fi
41020done
41021done
41022
41023 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41024fi
41025fi
41026ac_ct_NM=$ac_cv_prog_ac_ct_NM
41027if test -n "$ac_ct_NM"; then
41028 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41029echo "${ECHO_T}$ac_ct_NM" >&6
41030else
41031 echo "$as_me:$LINENO: result: no" >&5
41032echo "${ECHO_T}no" >&6
41033fi
41034
41035 NM=$ac_ct_NM
41036else
41037 NM="$ac_cv_prog_NM"
41038fi
41039
41040
41041 case ${BAKEFILE_HOST} in
41042 *-hp-hpux* )
1e9e8aba 41043 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41044 ;;
41045 *) INSTALL_DIR="$INSTALL -d"
41046 ;;
41047 esac
41048
41049
41050 LDFLAGS_GUI=
41051 case ${BAKEFILE_HOST} in
41052 *-*-cygwin* | *-*-mingw32* )
41053 LDFLAGS_GUI="-mwindows"
41054 esac
41055
41056
41057 fi
41058
41059 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41060echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41061if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41062 echo $ECHO_N "(cached) $ECHO_C" >&6
41063else
41064
41065 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41066 egrep -s GNU > /dev/null); then
41067 bakefile_cv_prog_makeisgnu="yes"
41068 else
41069 bakefile_cv_prog_makeisgnu="no"
41070 fi
41071
41072fi
41073echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41074echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41075
41076 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41077 IF_GNU_MAKE=""
41078 else
41079 IF_GNU_MAKE="#"
41080 fi
41081
41082
41083
41084 PLATFORM_UNIX=0
41085 PLATFORM_WIN32=0
41086 PLATFORM_MSDOS=0
41087 PLATFORM_MAC=0
1e9e8aba 41088 PLATFORM_MACOS=0
a848cd7e
SC
41089 PLATFORM_MACOSX=0
41090 PLATFORM_OS2=0
1e9e8aba 41091 PLATFORM_BEOS=0
a848cd7e
SC
41092
41093 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41094 case "${BAKEFILE_HOST}" in
41095 *-*-cygwin* | *-*-mingw32* )
41096 PLATFORM_WIN32=1
41097 ;;
41098 *-pc-msdosdjgpp )
41099 PLATFORM_MSDOS=1
41100 ;;
41101 *-pc-os2_emx | *-pc-os2-emx )
41102 PLATFORM_OS2=1
41103 ;;
41104 powerpc-*-darwin* )
41105 PLATFORM_MAC=1
41106 PLATFORM_MACOSX=1
41107 ;;
1e9e8aba
DE
41108 *-*-beos* )
41109 PLATFORM_BEOS=1
41110 ;;
41111 powerpc-apple-macos* )
41112 PLATFORM_MAC=1
41113 PLATFORM_MACOS=1
41114 ;;
a848cd7e
SC
41115 * )
41116 PLATFORM_UNIX=1
41117 ;;
41118 esac
41119 else
41120 case "$BAKEFILE_FORCE_PLATFORM" in
41121 win32 )
41122 PLATFORM_WIN32=1
41123 ;;
41124 msdos )
41125 PLATFORM_MSDOS=1
41126 ;;
41127 os2 )
41128 PLATFORM_OS2=1
41129 ;;
41130 darwin )
41131 PLATFORM_MAC=1
41132 PLATFORM_MACOSX=1
41133 ;;
41134 unix )
41135 PLATFORM_UNIX=1
41136 ;;
1e9e8aba
DE
41137 beos )
41138 PLATFORM_BEOS=1
41139 ;;
a848cd7e
SC
41140 * )
41141 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41142echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41143 { (exit 1); exit 1; }; }
41144 ;;
41145 esac
41146 fi
41147
41148
41149
41150
41151
41152
41153
41154
41155
1e9e8aba
DE
41156
41157
a848cd7e
SC
41158 # Check whether --enable-omf or --disable-omf was given.
41159if test "${enable_omf+set}" = set; then
41160 enableval="$enable_omf"
41161 bk_os2_use_omf="$enableval"
41162fi;
41163
41164 case "${BAKEFILE_HOST}" in
41165 *-*-darwin* )
41166 CFLAGS="$CFLAGS -fno-common"
41167 CXXFLAGS="$CXXFLAGS -fno-common"
41168 ;;
41169
41170 *-pc-os2_emx | *-pc-os2-emx )
41171 if test "x$bk_os2_use_omf" = "xyes" ; then
41172 AR=emxomfar
41173 RANLIB=:
41174 LDFLAGS="-Zomf $LDFLAGS"
41175 CFLAGS="-Zomf $CFLAGS"
41176 CXXFLAGS="-Zomf $CXXFLAGS"
41177 OS2_LIBEXT="lib"
41178 else
41179 OS2_LIBEXT="a"
41180 fi
41181 ;;
1e9e8aba
DE
41182
41183 i*86-*-beos* )
41184 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41185 ;;
a848cd7e
SC
41186 esac
41187
41188
41189 SO_SUFFIX="so"
41190 SO_SUFFIX_MODULE="so"
41191 EXEEXT=""
41192 LIBPREFIX="lib"
41193 LIBEXT=".a"
41194 DLLPREFIX="lib"
41195 DLLPREFIX_MODULE=""
41196 DLLIMP_SUFFIX=""
41197
41198 case "${BAKEFILE_HOST}" in
41199 *-hp-hpux* )
41200 SO_SUFFIX="sl"
41201 SO_SUFFIX_MODULE="sl"
41202 ;;
41203 *-*-aix* )
41204 SO_SUFFIX="a"
41205 SO_SUFFIX_MODULE="a"
41206 ;;
41207 *-*-cygwin* | *-*-mingw32* )
41208 SO_SUFFIX="dll"
41209 SO_SUFFIX_MODULE="dll"
41210 DLLIMP_SUFFIX="dll.a"
41211 EXEEXT=".exe"
41212 DLLPREFIX=""
41213 ;;
41214 *-pc-msdosdjgpp )
41215 EXEEXT=".exe"
41216 DLLPREFIX=""
41217 ;;
41218 *-pc-os2_emx | *-pc-os2-emx )
41219 SO_SUFFIX="dll"
41220 SO_SUFFIX_MODULE="dll"
41221 DLLIMP_SUFFIX=$OS2_LIBEXT
41222 EXEEXT=".exe"
41223 DLLPREFIX=""
41224 LIBPREFIX=""
41225 LIBEXT=".$OS2_LIBEXT"
41226 ;;
41227 powerpc-*-darwin* )
41228 SO_SUFFIX="dylib"
41229 SO_SUFFIX_MODULE="bundle"
41230 ;;
41231 esac
41232
41233 if test "x$DLLIMP_SUFFIX" = "x" ; then
41234 DLLIMP_SUFFIX="$SO_SUFFIX"
41235 fi
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
1e9e8aba
DE
41247 PIC_FLAG=""
41248 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41249 PIC_FLAG="-fPIC"
41250 fi
41251
1e9e8aba
DE
41252 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41253 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41254
a848cd7e
SC
41255 case "${BAKEFILE_HOST}" in
41256 *-hp-hpux* )
1e9e8aba 41257 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41258 LDFLAGS="$LDFLAGS -L/usr/lib"
41259
41260 SHARED_LD_CC="${CC} -b -o"
41261 SHARED_LD_CXX="${CXX} -b -o"
41262 PIC_FLAG="+Z"
41263 fi
41264 ;;
41265
41266 *-*-linux* )
41267 if test "x$GCC" != "xyes"; then
41268 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41269echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41270if test "${bakefile_cv_prog_icc+set}" = set; then
41271 echo $ECHO_N "(cached) $ECHO_C" >&6
41272else
41273
41274 cat >conftest.$ac_ext <<_ACEOF
41275/* confdefs.h. */
41276_ACEOF
41277cat confdefs.h >>conftest.$ac_ext
41278cat >>conftest.$ac_ext <<_ACEOF
41279/* end confdefs.h. */
41280
41281int
41282main ()
41283{
41284
41285 #ifndef __INTEL_COMPILER
41286 #error Not icc
41287 #endif
41288
41289 ;
41290 return 0;
41291}
41292_ACEOF
41293rm -f conftest.$ac_objext
41294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41295 (eval $ac_compile) 2>conftest.er1
a848cd7e 41296 ac_status=$?
ac1cb8d3
VS
41297 grep -v '^ *+' conftest.er1 >conftest.err
41298 rm -f conftest.er1
41299 cat conftest.err >&5
a848cd7e
SC
41300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301 (exit $ac_status); } &&
9dd0f6c2 41302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41304 (eval $ac_try) 2>&5
41305 ac_status=$?
41306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307 (exit $ac_status); }; } &&
41308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41310 (eval $ac_try) 2>&5
41311 ac_status=$?
41312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); }; }; then
41314 bakefile_cv_prog_icc=yes
41315else
41316 echo "$as_me: failed program was:" >&5
41317sed 's/^/| /' conftest.$ac_ext >&5
41318
41319bakefile_cv_prog_icc=no
41320
41321fi
ac1cb8d3 41322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41323
41324fi
41325echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41326echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41327 if test "$bakefile_cv_prog_icc" = "yes"; then
41328 PIC_FLAG="-KPIC"
41329 fi
41330 fi
41331 ;;
41332
41333 *-*-solaris2* )
41334 if test "x$GCC" != xyes ; then
41335 SHARED_LD_CC="${CC} -G -o"
41336 SHARED_LD_CXX="${CXX} -G -o"
41337 PIC_FLAG="-KPIC"
41338 fi
41339 ;;
41340
41341 *-*-darwin* )
41342
41343 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41344echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41345if test "${wx_cv_gcc31+set}" = set; then
41346 echo $ECHO_N "(cached) $ECHO_C" >&6
41347else
41348
41349 cat >conftest.$ac_ext <<_ACEOF
41350/* confdefs.h. */
41351_ACEOF
41352cat confdefs.h >>conftest.$ac_ext
41353cat >>conftest.$ac_ext <<_ACEOF
41354/* end confdefs.h. */
41355
41356int
41357main ()
41358{
41359
41360 #if (__GNUC__ < 3) || \
41361 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41362 #error old gcc
41363 #endif
41364
41365 ;
41366 return 0;
41367}
41368_ACEOF
41369rm -f conftest.$ac_objext
41370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41371 (eval $ac_compile) 2>conftest.er1
a848cd7e 41372 ac_status=$?
ac1cb8d3
VS
41373 grep -v '^ *+' conftest.er1 >conftest.err
41374 rm -f conftest.er1
41375 cat conftest.err >&5
a848cd7e
SC
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); } &&
9dd0f6c2 41378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380 (eval $ac_try) 2>&5
41381 ac_status=$?
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); }; } &&
41384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41386 (eval $ac_try) 2>&5
41387 ac_status=$?
41388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41389 (exit $ac_status); }; }; then
41390
41391 wx_cv_gcc31=yes
41392
41393else
41394 echo "$as_me: failed program was:" >&5
41395sed 's/^/| /' conftest.$ac_ext >&5
41396
41397
41398 wx_cv_gcc31=no
41399
41400
41401fi
ac1cb8d3 41402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41403
41404fi
41405echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41406echo "${ECHO_T}$wx_cv_gcc31" >&6
41407 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41408
41409D='$'
41410cat <<EOF >shared-ld-sh
a848cd7e
SC
41411#!/bin/sh
41412#-----------------------------------------------------------------------------
41413#-- Name: distrib/mac/shared-ld-sh
41414#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41415#-- Author: Gilles Depeyrot
41416#-- Copyright: (c) 2002 Gilles Depeyrot
41417#-- Licence: any use permitted
41418#-----------------------------------------------------------------------------
41419
41420verbose=0
41421args=""
41422objects=""
41423linking_flag="-dynamiclib"
41424
473276a9
VS
41425while test ${D}# -gt 0; do
41426 case ${D}1 in
a848cd7e
SC
41427
41428 -v)
41429 verbose=1
41430 ;;
41431
41432 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41433 # collect these options and values
473276a9 41434 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41435 shift
41436 ;;
41437
41438 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41439 # collect these options
473276a9 41440 args="${D}{args} ${D}1"
a848cd7e
SC
41441 ;;
41442
41443 -dynamiclib|-bundle)
473276a9 41444 linking_flag="${D}1"
a848cd7e
SC
41445 ;;
41446
41447 -*)
473276a9 41448 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41449 exit 1
41450 ;;
41451
41452 *.o | *.a | *.dylib)
41453 # collect object files
473276a9 41454 objects="${D}{objects} ${D}1"
a848cd7e
SC
41455 ;;
41456
41457 *)
473276a9 41458 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41459 exit 1
41460 ;;
41461
41462 esac
41463 shift
41464done
41465
41466#
41467# Link one module containing all the others
41468#
473276a9
VS
41469if test ${D}{verbose} = 1; then
41470 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41471fi
473276a9
VS
41472c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41473status=${D}?
41474if test ${D}{status} != 0; then
41475 exit ${D}{status}
a848cd7e
SC
41476fi
41477
41478#
41479# Link the shared library from the single module created
41480#
473276a9
VS
41481if test ${D}{verbose} = 1; then
41482 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41483fi
473276a9
VS
41484c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41485status=${D}?
41486if test ${D}{status} != 0; then
41487 exit ${D}{status}
a848cd7e
SC
41488fi
41489
41490#
41491# Remove intermediate module
41492#
473276a9 41493rm -f master.${D}${D}.o
a848cd7e
SC
41494
41495exit 0
41496EOF
473276a9 41497
a848cd7e
SC
41498 chmod +x shared-ld-sh
41499
41500 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41501 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41502 SHARED_LD_CXX="$SHARED_LD_CC"
41503 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41504 else
41505 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41506 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41507 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41508 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41509 fi
41510
41511 PIC_FLAG="-dynamic -fPIC"
41512 ;;
41513
41514 *-*-aix* )
41515 if test "x$GCC" != "xyes"; then
41516 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41517set dummy makeC++SharedLib; ac_word=$2
41518echo "$as_me:$LINENO: checking for $ac_word" >&5
41519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41520if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41521 echo $ECHO_N "(cached) $ECHO_C" >&6
41522else
41523 if test -n "$AIX_CXX_LD"; then
41524 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41525else
41526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41527for as_dir in $PATH
41528do
41529 IFS=$as_save_IFS
41530 test -z "$as_dir" && as_dir=.
41531 for ac_exec_ext in '' $ac_executable_extensions; do
41532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41533 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41535 break 2
41536 fi
41537done
41538done
41539
41540 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41541fi
41542fi
41543AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41544if test -n "$AIX_CXX_LD"; then
41545 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41546echo "${ECHO_T}$AIX_CXX_LD" >&6
41547else
41548 echo "$as_me:$LINENO: result: no" >&5
41549echo "${ECHO_T}no" >&6
41550fi
41551
41552 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41553 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41554 fi
41555 ;;
41556
41557 *-*-beos* )
1e9e8aba
DE
41558 SHARED_LD_CC="${LD} -nostart -o"
41559 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41560 ;;
41561
41562 *-*-irix* )
41563 if test "x$GCC" != "xyes"; then
41564 PIC_FLAG="-KPIC"
41565 fi
41566 ;;
41567
41568 *-*-cygwin* | *-*-mingw32* )
41569 PIC_FLAG=""
1e9e8aba
DE
41570 SHARED_LD_CC="\$(CC) -shared -o"
41571 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41572 ;;
41573
41574 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41575 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41576 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41577 PIC_FLAG=""
473276a9
VS
41578
41579D='$'
41580cat <<EOF >dllar.sh
41581#!/bin/sh
41582#
41583# dllar - a tool to build both a .dll and an .a file
41584# from a set of object (.o) files for EMX/OS2.
41585#
41586# Written by Andrew Zabolotny, bit@freya.etu.ru
41587# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41588#
41589# This script will accept a set of files on the command line.
41590# All the public symbols from the .o files will be exported into
41591# a .DEF file, then linker will be run (through gcc) against them to
41592# build a shared library consisting of all given .o files. All libraries
41593# (.a) will be first decompressed into component .o files then act as
41594# described above. You can optionally give a description (-d "description")
41595# which will be put into .DLL. To see the list of accepted options (as well
41596# as command-line format) simply run this program without options. The .DLL
41597# is built to be imported by name (there is no guarantee that new versions
41598# of the library you build will have same ordinals for same symbols).
41599#
41600# dllar is free software; you can redistribute it and/or modify
41601# it under the terms of the GNU General Public License as published by
41602# the Free Software Foundation; either version 2, or (at your option)
41603# any later version.
41604#
41605# dllar is distributed in the hope that it will be useful,
41606# but WITHOUT ANY WARRANTY; without even the implied warranty of
41607# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41608# GNU General Public License for more details.
41609#
41610# You should have received a copy of the GNU General Public License
41611# along with dllar; see the file COPYING. If not, write to the Free
41612# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41613# 02111-1307, USA.
41614
41615# To successfuly run this program you will need:
41616# - Current drive should have LFN support (HPFS, ext2, network, etc)
41617# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41618# - gcc
41619# (used to build the .dll)
41620# - emxexp
41621# (used to create .def file from .o files)
41622# - emximp
41623# (used to create .a file from .def file)
41624# - GNU text utilites (cat, sort, uniq)
41625# used to process emxexp output
41626# - GNU file utilities (mv, rm)
41627# - GNU sed
41628# - lxlite (optional, see flag below)
41629# (used for general .dll cleanup)
41630#
41631
41632flag_USE_LXLITE=1;
41633
41634#
41635# helper functions
41636# basnam, variant of basename, which does _not_ remove the path, _iff_
41637# second argument (suffix to remove) is given
41638basnam(){
41639 case ${D}# in
41640 1)
1e9e8aba 41641 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41642 ;;
41643 2)
41644 echo ${D}1 | sed 's/'${D}2'${D}//'
41645 ;;
41646 *)
41647 echo "error in basnam ${D}*"
41648 exit 8
41649 ;;
41650 esac
41651}
41652
41653# Cleanup temporary files and output
41654CleanUp() {
41655 cd ${D}curDir
41656 for i in ${D}inputFiles ; do
41657 case ${D}i in
41658 *!)
41659 rm -rf \`basnam ${D}i !\`
41660 ;;
41661 *)
41662 ;;
41663 esac
41664 done
41665
41666 # Kill result in case of failure as there is just to many stupid make/nmake
41667 # things out there which doesn't do this.
1e9e8aba 41668 if [ ${D}# -eq 0 ]; then
473276a9
VS
41669 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41670 fi
41671}
41672
41673# Print usage and exit script with rc=1.
41674PrintHelp() {
b1d22ded
DE
41675 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41676 echo ' [-name-mangler-script script.sh]'
41677 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41678 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41679 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41680 echo ' [*.o] [*.a]'
473276a9
VS
41681 echo '*> "output_file" should have no extension.'
41682 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41683 echo ' The import library name is derived from this and is set to "name".a,'
41684 echo ' unless overridden by -import'
41685 echo '*> "importlib_name" should have no extension.'
41686 echo ' If it has the .o, or .a extension, it is automatically removed.'
41687 echo ' This name is used as the import library name and may be longer and'
41688 echo ' more descriptive than the DLL name which has to follow the old '
41689 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41690 echo '*> "script.sh may be given to override the output_file name by a'
41691 echo ' different name. It is mainly useful if the regular make process'
41692 echo ' of some package does not take into account OS/2 restriction of'
41693 echo ' DLL name lengths. It takes the importlib name as input and is'
41694 echo ' supposed to procude a shorter name as output. The script should'
41695 echo ' expect to get importlib_name without extension and should produce'
41696 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41697 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41698 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41699 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41700 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41701 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41702 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41703 echo ' If the last character of a symbol is "*", all symbols beginning'
41704 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41705 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41706 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41707 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41708 echo ' C runtime DLLs.'
b1d22ded 41709 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41710 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41711 echo ' unchanged to GCC at the end of command line.'
41712 echo '*> If you create a DLL from a library and you do not specify -o,'
41713 echo ' the basename for DLL and import library will be set to library name,'
41714 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41715 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41716 echo ' library will be renamed into gcc_s.a.'
41717 echo '--------'
41718 echo 'Example:'
41719 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41720 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41721 CleanUp
41722 exit 1
41723}
41724
41725# Execute a command.
41726# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41727# @Uses Whatever CleanUp() uses.
41728doCommand() {
41729 echo "${D}*"
41730 eval ${D}*
41731 rcCmd=${D}?
41732
1e9e8aba 41733 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41734 echo "command failed, exit code="${D}rcCmd
41735 CleanUp
41736 exit ${D}rcCmd
41737 fi
41738}
41739
41740# main routine
41741# setup globals
41742cmdLine=${D}*
41743outFile=""
41744outimpFile=""
41745inputFiles=""
b1d22ded 41746renameScript=""
473276a9
VS
41747description=""
41748CC=gcc.exe
41749CFLAGS="-s -Zcrtdll"
41750EXTRA_CFLAGS=""
41751EXPORT_BY_ORDINALS=0
41752exclude_symbols=""
41753library_flags=""
41754curDir=\`pwd\`
41755curDirS=curDir
41756case ${D}curDirS in
41757*/)
41758 ;;
41759*)
41760 curDirS=${D}{curDirS}"/"
41761 ;;
41762esac
41763# Parse commandline
41764libsToLink=0
b1d22ded 41765omfLinking=0
1e9e8aba 41766while [ ${D}1 ]; do
473276a9
VS
41767 case ${D}1 in
41768 -ord*)
41769 EXPORT_BY_ORDINALS=1;
41770 ;;
41771 -o*)
41772 shift
41773 outFile=${D}1
41774 ;;
41775 -i*)
41776 shift
41777 outimpFile=${D}1
41778 ;;
b1d22ded
DE
41779 -name-mangler-script)
41780 shift
41781 renameScript=${D}1
41782 ;;
473276a9
VS
41783 -d*)
41784 shift
41785 description=${D}1
41786 ;;
41787 -f*)
41788 shift
41789 CFLAGS=${D}1
41790 ;;
41791 -c*)
41792 shift
41793 CC=${D}1
41794 ;;
41795 -h*)
41796 PrintHelp
41797 ;;
41798 -ex*)
41799 shift
41800 exclude_symbols=${D}{exclude_symbols}${D}1" "
41801 ;;
41802 -libf*)
41803 shift
41804 library_flags=${D}{library_flags}${D}1" "
41805 ;;
41806 -nocrt*)
41807 CFLAGS="-s"
41808 ;;
41809 -nolxl*)
41810 flag_USE_LXLITE=0
41811 ;;
41812 -* | /*)
41813 case ${D}1 in
41814 -L* | -l*)
41815 libsToLink=1
41816 ;;
b1d22ded
DE
41817 -Zomf)
41818 omfLinking=1
41819 ;;
473276a9
VS
41820 *)
41821 ;;
41822 esac
41823 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41824 ;;
b1d22ded
DE
41825 *.dll)
41826 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41827 if [ ${D}omfLinking -eq 1 ]; then
41828 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41829 else
41830 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41831 fi
41832 ;;
473276a9
VS
41833 *)
41834 found=0;
1e9e8aba 41835 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41836 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41837 else
41838 for file in ${D}1 ; do
1e9e8aba 41839 if [ -f ${D}file ]; then
473276a9
VS
41840 inputFiles="${D}{inputFiles} ${D}file"
41841 found=1
41842 fi
41843 done
1e9e8aba 41844 if [ ${D}found -eq 0 ]; then
473276a9
VS
41845 echo "ERROR: No file(s) found: "${D}1
41846 exit 8
41847 fi
41848 fi
41849 ;;
41850 esac
41851 shift
41852done # iterate cmdline words
41853
41854#
1e9e8aba 41855if [ -z "${D}inputFiles" ]; then
473276a9
VS
41856 echo "dllar: no input files"
41857 PrintHelp
41858fi
41859
41860# Now extract all .o files from .a files
41861newInputFiles=""
41862for file in ${D}inputFiles ; do
41863 case ${D}file in
41864 *.a | *.lib)
41865 case ${D}file in
41866 *.a)
41867 suffix=".a"
41868 AR="ar"
41869 ;;
41870 *.lib)
41871 suffix=".lib"
41872 AR="emxomfar"
41873 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41874 ;;
41875 *)
41876 ;;
41877 esac
41878 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41879 mkdir ${D}dirname
1e9e8aba 41880 if [ ${D}? -ne 0 ]; then
473276a9
VS
41881 echo "Failed to create subdirectory ./${D}dirname"
41882 CleanUp
41883 exit 8;
41884 fi
41885 # Append '!' to indicate archive
41886 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41887 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41888 cd ${D}curDir
41889 found=0;
41890 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41891 if [ -f ${D}subfile ]; then
473276a9 41892 found=1
1e9e8aba 41893 if [ -s ${D}subfile ]; then
473276a9
VS
41894 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41895 newInputFiles="${D}newInputFiles ${D}subfile"
41896 fi
41897 fi
41898 done
1e9e8aba
DE
41899 if [ ${D}found -eq 0 ]; then
41900 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41901 fi
41902 ;;
41903 *)
41904 newInputFiles="${D}{newInputFiles} ${D}file"
41905 ;;
41906 esac
41907done
41908inputFiles="${D}newInputFiles"
41909
41910# Output filename(s).
41911do_backup=0;
1e9e8aba 41912if [ -z ${D}outFile ]; then
473276a9
VS
41913 do_backup=1;
41914 set outFile ${D}inputFiles; outFile=${D}2
41915fi
41916
41917# If it is an archive, remove the '!' and the '_%' suffixes
41918case ${D}outFile in
41919*_%!)
41920 outFile=\`basnam ${D}outFile _%!\`
41921 ;;
41922*)
41923 ;;
41924esac
41925case ${D}outFile in
41926*.dll)
41927 outFile=\`basnam ${D}outFile .dll\`
41928 ;;
41929*.DLL)
41930 outFile=\`basnam ${D}outFile .DLL\`
41931 ;;
41932*.o)
41933 outFile=\`basnam ${D}outFile .o\`
41934 ;;
41935*.obj)
41936 outFile=\`basnam ${D}outFile .obj\`
41937 ;;
41938*.a)
41939 outFile=\`basnam ${D}outFile .a\`
41940 ;;
41941*.lib)
41942 outFile=\`basnam ${D}outFile .lib\`
41943 ;;
41944*)
41945 ;;
41946esac
41947case ${D}outimpFile in
41948*.a)
41949 outimpFile=\`basnam ${D}outimpFile .a\`
41950 ;;
41951*.lib)
41952 outimpFile=\`basnam ${D}outimpFile .lib\`
41953 ;;
41954*)
41955 ;;
41956esac
1e9e8aba 41957if [ -z ${D}outimpFile ]; then
473276a9
VS
41958 outimpFile=${D}outFile
41959fi
41960defFile="${D}{outFile}.def"
41961arcFile="${D}{outimpFile}.a"
41962arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41963
41964#create ${D}dllFile as something matching 8.3 restrictions,
41965if [ -z ${D}renameScript ] ; then
41966 dllFile="${D}outFile"
41967else
41968 dllFile=\`${D}renameScript ${D}outimpFile\`
41969fi
473276a9 41970
1e9e8aba
DE
41971if [ ${D}do_backup -ne 0 ] ; then
41972 if [ -f ${D}arcFile ] ; then
473276a9
VS
41973 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41974 fi
1e9e8aba 41975 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41976 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41977 fi
41978fi
41979
41980# Extract public symbols from all the object files.
41981tmpdefFile=${D}{defFile}_%
41982rm -f ${D}tmpdefFile
41983for file in ${D}inputFiles ; do
41984 case ${D}file in
41985 *!)
41986 ;;
41987 *)
41988 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41989 ;;
41990 esac
41991done
41992
41993# Create the def file.
41994rm -f ${D}defFile
41995echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41996dllFile="${D}{dllFile}.dll"
41997if [ ! -z ${D}description ]; then
1e9e8aba 41998 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41999fi
42000echo "EXPORTS" >> ${D}defFile
42001
42002doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42003grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42004
42005# Checks if the export is ok or not.
42006for word in ${D}exclude_symbols; do
42007 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42008 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42009done
42010
42011
1e9e8aba
DE
42012if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42013 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42014 sed '
42015 N
42016 : loop
1e9e8aba 42017 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42018 t loop
42019 ' > ${D}{tmpdefFile}%
42020 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42021else
42022 rm -f ${D}{tmpdefFile}%
42023fi
42024cat ${D}tmpdefFile >> ${D}defFile
42025rm -f ${D}tmpdefFile
42026
42027# Do linking, create implib, and apply lxlite.
42028gccCmdl="";
42029for file in ${D}inputFiles ; do
42030 case ${D}file in
42031 *!)
42032 ;;
42033 *)
42034 gccCmdl="${D}gccCmdl ${D}file"
42035 ;;
42036 esac
42037done
42038doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42039touch "${D}{outFile}.dll"
42040
42041doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42042if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42043 add_flags="";
1e9e8aba 42044 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42045 add_flags="-ynd"
42046 fi
42047 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42048fi
42049doCommand "emxomf -s -l ${D}arcFile"
42050
42051# Successful exit.
42052CleanUp 1
42053exit 0
42054EOF
42055
42056 chmod +x dllar.sh
a848cd7e
SC
42057 ;;
42058
1e9e8aba 42059 powerpc-apple-macos* | \
a848cd7e
SC
42060 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42061 *-*-sunos4* | \
42062 *-*-osf* | \
42063 *-*-dgux5* | \
42064 *-*-sysv5* )
42065 ;;
42066
42067 *)
42068 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42069echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42070 { (exit 1); exit 1; }; }
42071 esac
42072
2057db16
VS
42073 if test "x$PIC_FLAG" != "x" ; then
42074 PIC_FLAG="$PIC_FLAG -DPIC"
42075 fi
42076
a848cd7e
SC
42077 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42078 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42079 fi
42080 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42081 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42082 fi
42083
42084
42085
42086
42087
42088
42089
42090
42091 USE_SOVERSION=0
42092 USE_SOVERLINUX=0
42093 USE_SOVERSOLARIS=0
42094 USE_SOSYMLINKS=0
42095 USE_MACVERSION=0
42096 SONAME_FLAG=
42097
42098 case "${BAKEFILE_HOST}" in
b1d22ded 42099 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42100 SONAME_FLAG="-Wl,-soname,"
42101 USE_SOVERSION=1
42102 USE_SOVERLINUX=1
42103 USE_SOSYMLINKS=1
42104 ;;
42105
a848cd7e
SC
42106 *-*-solaris2* )
42107 SONAME_FLAG="-h "
42108 USE_SOVERSION=1
42109 USE_SOVERSOLARIS=1
42110 USE_SOSYMLINKS=1
42111 ;;
42112
42113 *-*-darwin* )
42114 USE_MACVERSION=1
42115 USE_SOVERSION=1
42116 USE_SOSYMLINKS=1
42117 ;;
42118 esac
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42129echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42130 DEPS_TRACKING=0
42131
42132 if test "x$GCC" = "xyes"; then
42133 DEPSMODE=gcc
42134 DEPS_TRACKING=1
42135 case "${BAKEFILE_HOST}" in
42136 powerpc-*-darwin* )
42137 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42138 ;;
42139 * )
42140 DEPSFLAG_GCC="-MMD"
42141 ;;
42142 esac
42143 echo "$as_me:$LINENO: result: gcc" >&5
42144echo "${ECHO_T}gcc" >&6
b1d22ded 42145 elif test "x$MWCC" = "xyes"; then
81f90336 42146 DEPSMODE=mwcc
b1d22ded 42147 DEPS_TRACKING=1
81f90336 42148 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42149 echo "$as_me:$LINENO: result: mwcc" >&5
42150echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42151 else
42152 echo "$as_me:$LINENO: result: none" >&5
42153echo "${ECHO_T}none" >&6
42154 fi
42155
42156 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42157
42158D='$'
42159cat <<EOF >bk-deps
a848cd7e
SC
42160#!/bin/sh
42161
42162# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42163# script. It is used to track C/C++ files dependencies in portable way.
42164#
42165# Permission is given to use this file in any way.
42166
473276a9 42167DEPSMODE=${DEPSMODE}
a848cd7e 42168DEPSDIR=.deps
473276a9 42169DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42170DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42171
473276a9 42172mkdir -p ${D}DEPSDIR
a848cd7e 42173
473276a9
VS
42174if test ${D}DEPSMODE = gcc ; then
42175 ${D}* ${D}{DEPSFLAG_GCC}
42176 status=${D}?
42177 if test ${D}{status} != 0 ; then
42178 exit ${D}{status}
a848cd7e
SC
42179 fi
42180 # move created file to the location we want it in:
473276a9
VS
42181 while test ${D}# -gt 0; do
42182 case "${D}1" in
a848cd7e
SC
42183 -o )
42184 shift
473276a9 42185 objfile=${D}1
a848cd7e
SC
42186 ;;
42187 -* )
42188 ;;
42189 * )
473276a9 42190 srcfile=${D}1
a848cd7e
SC
42191 ;;
42192 esac
42193 shift
42194 done
1e9e8aba
DE
42195 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42196 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42197 if test -f ${D}depfile ; then
42198 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42199 rm -f ${D}depfile
a848cd7e 42200 else
1e9e8aba 42201 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42202 if test -f ${D}depfile ; then
42203 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42204 rm -f ${D}depfile
a848cd7e
SC
42205 fi
42206 fi
42207 exit 0
81f90336
MW
42208elif test ${D}DEPSMODE = mwcc ; then
42209 ${D}*
42210 status=${D}?
42211 if test ${D}{status} != 0 ; then
42212 exit ${D}{status}
42213 fi
42214 # Run mwcc again with -MM and redirect into the dep file we want
42215 # NOTE: We can't use shift here because we need ${D}* to be valid
42216 prevarg=
42217 for arg in ${D}* ; do
42218 if test "${D}prevarg" = "-o"; then
42219 objfile=${D}arg
42220 else
42221 case "${D}arg" in
42222 -* )
42223 ;;
42224 * )
42225 srcfile=${D}arg
42226 ;;
42227 esac
42228 fi
42229 prevarg="${D}arg"
42230 done
42231 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42232 exit 0
a848cd7e 42233else
473276a9
VS
42234 ${D}*
42235 exit ${D}?
a848cd7e
SC
42236fi
42237EOF
473276a9 42238
a848cd7e
SC
42239 chmod +x bk-deps
42240 fi
42241
42242
42243
42244
42245 RESCOMP=
42246 SETFILE=
42247
42248 case ${BAKEFILE_HOST} in
42249 *-*-cygwin* | *-*-mingw32* )
42250 if test "$build" != "$host" ; then
42251 RESCOMP=$host_alias-windres
42252 else
42253 # Extract the first word of "windres", so it can be a program name with args.
42254set dummy windres; ac_word=$2
42255echo "$as_me:$LINENO: checking for $ac_word" >&5
42256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42257if test "${ac_cv_prog_RESCOMP+set}" = set; then
42258 echo $ECHO_N "(cached) $ECHO_C" >&6
42259else
42260 if test -n "$RESCOMP"; then
42261 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42262else
42263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42264for as_dir in $PATH
42265do
42266 IFS=$as_save_IFS
42267 test -z "$as_dir" && as_dir=.
42268 for ac_exec_ext in '' $ac_executable_extensions; do
42269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42270 ac_cv_prog_RESCOMP="windres"
42271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42272 break 2
42273 fi
42274done
42275done
42276
42277 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42278fi
42279fi
42280RESCOMP=$ac_cv_prog_RESCOMP
42281if test -n "$RESCOMP"; then
42282 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42283echo "${ECHO_T}$RESCOMP" >&6
42284else
42285 echo "$as_me:$LINENO: result: no" >&5
42286echo "${ECHO_T}no" >&6
42287fi
42288
42289 fi
42290 ;;
42291
1e9e8aba 42292 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42293 # Extract the first word of "Rez", so it can be a program name with args.
42294set dummy Rez; ac_word=$2
42295echo "$as_me:$LINENO: checking for $ac_word" >&5
42296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42297if test "${ac_cv_prog_RESCOMP+set}" = set; then
42298 echo $ECHO_N "(cached) $ECHO_C" >&6
42299else
42300 if test -n "$RESCOMP"; then
42301 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42302else
42303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42304for as_dir in $PATH
42305do
42306 IFS=$as_save_IFS
42307 test -z "$as_dir" && as_dir=.
42308 for ac_exec_ext in '' $ac_executable_extensions; do
42309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42310 ac_cv_prog_RESCOMP="Rez"
42311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42312 break 2
42313 fi
42314done
42315done
42316
42317 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42318fi
42319fi
42320RESCOMP=$ac_cv_prog_RESCOMP
42321if test -n "$RESCOMP"; then
42322 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42323echo "${ECHO_T}$RESCOMP" >&6
42324else
42325 echo "$as_me:$LINENO: result: no" >&5
42326echo "${ECHO_T}no" >&6
42327fi
42328
42329 # Extract the first word of "SetFile", so it can be a program name with args.
42330set dummy SetFile; ac_word=$2
42331echo "$as_me:$LINENO: checking for $ac_word" >&5
42332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42333if test "${ac_cv_prog_SETFILE+set}" = set; then
42334 echo $ECHO_N "(cached) $ECHO_C" >&6
42335else
42336 if test -n "$SETFILE"; then
42337 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42338else
42339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42340for as_dir in $PATH
42341do
42342 IFS=$as_save_IFS
42343 test -z "$as_dir" && as_dir=.
42344 for ac_exec_ext in '' $ac_executable_extensions; do
42345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42346 ac_cv_prog_SETFILE="SetFile"
42347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42348 break 2
42349 fi
42350done
42351done
42352
42353 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42354fi
42355fi
42356SETFILE=$ac_cv_prog_SETFILE
42357if test -n "$SETFILE"; then
42358 echo "$as_me:$LINENO: result: $SETFILE" >&5
42359echo "${ECHO_T}$SETFILE" >&6
42360else
42361 echo "$as_me:$LINENO: result: no" >&5
42362echo "${ECHO_T}no" >&6
42363fi
42364
42365 ;;
42366 esac
42367
42368
42369
42370
42371
fbb7dfff 42372 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42373
dcc1b6ad 42374
fbb7dfff 42375BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42376
646b6ec1 42377
74b84332 42378
a848cd7e
SC
42379 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42380if test "${enable_precomp_headers+set}" = set; then
42381 enableval="$enable_precomp_headers"
42382 bk_use_pch="$enableval"
42383fi;
42384
42385 GCC_PCH=0
42386
42387 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42388 if test "x$GCC" = "xyes"; then
42389 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42390echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42391 cat >conftest.$ac_ext <<_ACEOF
42392/* confdefs.h. */
42393_ACEOF
42394cat confdefs.h >>conftest.$ac_ext
42395cat >>conftest.$ac_ext <<_ACEOF
42396/* end confdefs.h. */
42397
42398int
42399main ()
42400{
42401
42402 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42403 #error "no pch support"
42404 #endif
42405 #if (__GNUC__ < 3)
42406 #error "no pch support"
42407 #endif
42408 #if (__GNUC__ == 3) && \
42409 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42410 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42411 #error "no pch support"
42412 #endif
42413
42414 ;
42415 return 0;
42416}
42417_ACEOF
42418rm -f conftest.$ac_objext
42419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42420 (eval $ac_compile) 2>conftest.er1
a848cd7e 42421 ac_status=$?
ac1cb8d3
VS
42422 grep -v '^ *+' conftest.er1 >conftest.err
42423 rm -f conftest.er1
42424 cat conftest.err >&5
a848cd7e
SC
42425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426 (exit $ac_status); } &&
9dd0f6c2 42427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429 (eval $ac_try) 2>&5
42430 ac_status=$?
42431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432 (exit $ac_status); }; } &&
42433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42435 (eval $ac_try) 2>&5
42436 ac_status=$?
42437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438 (exit $ac_status); }; }; then
42439
42440 echo "$as_me:$LINENO: result: yes" >&5
42441echo "${ECHO_T}yes" >&6
a848cd7e
SC
42442 GCC_PCH=1
42443
42444else
42445 echo "$as_me: failed program was:" >&5
42446sed 's/^/| /' conftest.$ac_ext >&5
42447
42448
42449 echo "$as_me:$LINENO: result: no" >&5
42450echo "${ECHO_T}no" >&6
42451
42452fi
ac1cb8d3 42453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42454 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42455
42456D='$'
42457cat <<EOF >bk-make-pch
a848cd7e
SC
42458#!/bin/sh
42459
42460# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42461# script. It is used to generated precompiled headers.
42462#
42463# Permission is given to use this file in any way.
42464
1e9e8aba
DE
42465outfile="${D}{1}"
42466header="${D}{2}"
a848cd7e
SC
42467shift
42468shift
42469
42470compiler=
42471headerfile=
1e9e8aba
DE
42472while test ${D}{#} -gt 0; do
42473 case "${D}{1}" in
a848cd7e 42474 -I* )
1e9e8aba
DE
42475 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42476 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42477 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42478 fi
42479 ;;
42480 esac
1e9e8aba 42481 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42482 shift
42483done
42484
1e9e8aba
DE
42485if test "x${D}{headerfile}" = "x" ; then
42486 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42487else
1e9e8aba
DE
42488 if test -f ${D}{outfile} ; then
42489 rm -f ${D}{outfile}
a848cd7e 42490 else
1e9e8aba 42491 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42492 fi
1e9e8aba 42493 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42494 mkdir -p .deps
42495 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42496 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42497 exit ${D}{?}
a848cd7e
SC
42498fi
42499EOF
1e9e8aba 42500
a848cd7e
SC
42501 chmod +x bk-make-pch
42502 fi
42503 fi
42504 fi
42505
42506
42507
a848cd7e
SC
42508 COND_BUILD_DEBUG="#"
42509 if test "x$BUILD" = "xdebug" ; then
42510 COND_BUILD_DEBUG=""
42511 fi
42512
42513 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42514 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42515 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42516 fi
42517
42518 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42519 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42520 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42521 fi
42522
42523 COND_BUILD_DEBUG_UNICODE_0="#"
42524 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42525 COND_BUILD_DEBUG_UNICODE_0=""
42526 fi
42527
42528 COND_BUILD_DEBUG_UNICODE_1="#"
42529 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42530 COND_BUILD_DEBUG_UNICODE_1=""
42531 fi
42532
42533 COND_BUILD_RELEASE="#"
42534 if test "x$BUILD" = "xrelease" ; then
42535 COND_BUILD_RELEASE=""
42536 fi
42537
42538 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42539 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42540 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42541 fi
42542
42543 COND_BUILD_RELEASE_UNICODE_0="#"
42544 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42545 COND_BUILD_RELEASE_UNICODE_0=""
42546 fi
42547
42548 COND_BUILD_RELEASE_UNICODE_1="#"
42549 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42550 COND_BUILD_RELEASE_UNICODE_1=""
42551 fi
42552
42553 COND_DEBUG_FLAG_1="#"
42554 if test "x$DEBUG_FLAG" = "x1" ; then
42555 COND_DEBUG_FLAG_1=""
42556 fi
42557
42558 COND_DEBUG_INFO_0="#"
42559 if test "x$DEBUG_INFO" = "x0" ; then
42560 COND_DEBUG_INFO_0=""
42561 fi
42562
42563 COND_DEBUG_INFO_1="#"
42564 if test "x$DEBUG_INFO" = "x1" ; then
42565 COND_DEBUG_INFO_1=""
42566 fi
42567
42568 COND_DEPS_TRACKING_0="#"
42569 if test "x$DEPS_TRACKING" = "x0" ; then
42570 COND_DEPS_TRACKING_0=""
42571 fi
42572
42573 COND_DEPS_TRACKING_1="#"
42574 if test "x$DEPS_TRACKING" = "x1" ; then
42575 COND_DEPS_TRACKING_1=""
42576 fi
42577
42578 COND_GCC_PCH_1="#"
42579 if test "x$GCC_PCH" = "x1" ; then
42580 COND_GCC_PCH_1=""
42581 fi
42582
42583 COND_MONOLITHIC_0="#"
42584 if test "x$MONOLITHIC" = "x0" ; then
42585 COND_MONOLITHIC_0=""
42586 fi
42587
42588 COND_MONOLITHIC_0_SHARED_0="#"
42589 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42590 COND_MONOLITHIC_0_SHARED_0=""
42591 fi
42592
42593 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42594 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42595 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42596 fi
42597
90970d69
DE
42598 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42599 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42600 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42601 fi
42602
a848cd7e
SC
42603 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42604 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42605 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42606 fi
42607
6671c68b
VZ
42608 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42609 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42610 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42611 fi
42612
a848cd7e
SC
42613 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42614 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42615 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42616 fi
42617
ceec2216
RL
42618 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42619 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42620 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42621 fi
42622
a848cd7e
SC
42623 COND_MONOLITHIC_0_SHARED_1="#"
42624 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42625 COND_MONOLITHIC_0_SHARED_1=""
42626 fi
42627
42628 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42629 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42630 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42631 fi
42632
90970d69
DE
42633 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42634 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42635 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42636 fi
42637
a848cd7e
SC
42638 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42639 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42640 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42641 fi
42642
6671c68b
VZ
42643 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42644 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42645 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42646 fi
42647
a848cd7e
SC
42648 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42649 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42650 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42651 fi
42652
ceec2216
RL
42653 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42654 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42655 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42656 fi
42657
a848cd7e
SC
42658 COND_MONOLITHIC_0_USE_ODBC_1="#"
42659 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42660 COND_MONOLITHIC_0_USE_ODBC_1=""
42661 fi
42662
42663 COND_MONOLITHIC_1="#"
42664 if test "x$MONOLITHIC" = "x1" ; then
42665 COND_MONOLITHIC_1=""
42666 fi
42667
42668 COND_MONOLITHIC_1_SHARED_0="#"
42669 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42670 COND_MONOLITHIC_1_SHARED_0=""
42671 fi
42672
42673 COND_MONOLITHIC_1_SHARED_1="#"
42674 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42675 COND_MONOLITHIC_1_SHARED_1=""
42676 fi
42677
42678 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42679 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42680 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42681 fi
42682
42683 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42684 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42685 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42686 fi
42687
42688 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42689 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42690 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42691 fi
42692
42693 COND_PLATFORM_MACOSX_1="#"
42694 if test "x$PLATFORM_MACOSX" = "x1" ; then
42695 COND_PLATFORM_MACOSX_1=""
42696 fi
42697
a30f955f
VS
42698 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42699 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42700 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42701 fi
42702
a848cd7e
SC
42703 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42704 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42705 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42706 fi
42707
42708 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42709 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42710 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42711 fi
42712
42713 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42714 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42715 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42716 fi
42717
fc480dc1
DE
42718 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42719 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42720 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42721 fi
42722
1e9e8aba
DE
42723 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42724 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42725 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42726 fi
42727
ebee3cd0
VS
42728 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42729 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42730 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42731 fi
42732
42733 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42734 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42735 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42736 fi
42737
a848cd7e
SC
42738 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42739 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42740 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42741 fi
42742
42743 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42744 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42745 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42746 fi
42747
b48a2016
DE
42748 COND_PLATFORM_MACOS_1="#"
42749 if test "x$PLATFORM_MACOS" = "x1" ; then
42750 COND_PLATFORM_MACOS_1=""
42751 fi
42752
a848cd7e
SC
42753 COND_PLATFORM_MAC_1="#"
42754 if test "x$PLATFORM_MAC" = "x1" ; then
42755 COND_PLATFORM_MAC_1=""
42756 fi
42757
42758 COND_PLATFORM_OS2_1="#"
42759 if test "x$PLATFORM_OS2" = "x1" ; then
42760 COND_PLATFORM_OS2_1=""
42761 fi
42762
42763 COND_PLATFORM_UNIX_0="#"
42764 if test "x$PLATFORM_UNIX" = "x0" ; then
42765 COND_PLATFORM_UNIX_0=""
42766 fi
42767
42768 COND_PLATFORM_UNIX_1="#"
42769 if test "x$PLATFORM_UNIX" = "x1" ; then
42770 COND_PLATFORM_UNIX_1=""
42771 fi
42772
42773 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42774 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42775 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42776 fi
42777
42778 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42779 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42780 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42781 fi
42782
42783 COND_PLATFORM_WIN32_0="#"
42784 if test "x$PLATFORM_WIN32" = "x0" ; then
42785 COND_PLATFORM_WIN32_0=""
42786 fi
42787
42788 COND_PLATFORM_WIN32_1="#"
42789 if test "x$PLATFORM_WIN32" = "x1" ; then
42790 COND_PLATFORM_WIN32_1=""
42791 fi
42792
42793 COND_SHARED_0="#"
42794 if test "x$SHARED" = "x0" ; then
42795 COND_SHARED_0=""
42796 fi
42797
ceec2216
RL
42798 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42799 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42800 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42801 fi
42802
42803 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42804 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42805 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42806 fi
42807
42808 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42809 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42810 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42811 fi
42812
a848cd7e
SC
42813 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42814 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42815 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42816 fi
42817
42818 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42819 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42820 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42821 fi
42822
42823 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42824 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42825 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42826 fi
42827
42828 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42829 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42830 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42831 fi
42832
42833 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42834 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42835 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42836 fi
42837
42838 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42839 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42840 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42841 fi
42842
42843 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42844 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42845 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42846 fi
42847
42848 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42849 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42850 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42851 fi
42852
42853 COND_SHARED_1="#"
42854 if test "x$SHARED" = "x1" ; then
42855 COND_SHARED_1=""
42856 fi
42857
42858 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42859 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42860 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42861 fi
42862
a30f955f
VS
42863 COND_TOOLKIT_="#"
42864 if test "x$TOOLKIT" = "x" ; then
42865 COND_TOOLKIT_=""
42866 fi
42867
a848cd7e
SC
42868 COND_TOOLKIT_COCOA="#"
42869 if test "x$TOOLKIT" = "xCOCOA" ; then
42870 COND_TOOLKIT_COCOA=""
42871 fi
42872
a49baeab
DE
42873 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42874 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42875 COND_TOOLKIT_COCOA_USE_GUI_1=""
42876 fi
42877
a848cd7e
SC
42878 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42879 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42880 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42881 fi
42882
42883 COND_TOOLKIT_GTK="#"
42884 if test "x$TOOLKIT" = "xGTK" ; then
42885 COND_TOOLKIT_GTK=""
42886 fi
42887
42888 COND_TOOLKIT_GTK_USE_GUI_1="#"
42889 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42890 COND_TOOLKIT_GTK_USE_GUI_1=""
42891 fi
42892
42893 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42894 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42895 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42896 fi
42897
42898 COND_TOOLKIT_MAC="#"
42899 if test "x$TOOLKIT" = "xMAC" ; then
42900 COND_TOOLKIT_MAC=""
42901 fi
42902
42903 COND_TOOLKIT_MAC_USE_GUI_1="#"
42904 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42905 COND_TOOLKIT_MAC_USE_GUI_1=""
42906 fi
42907
42908 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42909 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42910 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42911 fi
42912
42913 COND_TOOLKIT_MGL="#"
42914 if test "x$TOOLKIT" = "xMGL" ; then
42915 COND_TOOLKIT_MGL=""
42916 fi
42917
42918 COND_TOOLKIT_MGL_USE_GUI_1="#"
42919 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42920 COND_TOOLKIT_MGL_USE_GUI_1=""
42921 fi
42922
42923 COND_TOOLKIT_MOTIF="#"
42924 if test "x$TOOLKIT" = "xMOTIF" ; then
42925 COND_TOOLKIT_MOTIF=""
42926 fi
42927
42928 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42929 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42930 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42931 fi
42932
42933 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42934 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42935 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42936 fi
42937
42938 COND_TOOLKIT_MSW="#"
42939 if test "x$TOOLKIT" = "xMSW" ; then
42940 COND_TOOLKIT_MSW=""
42941 fi
42942
42943 COND_TOOLKIT_MSW_USE_GUI_1="#"
42944 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42945 COND_TOOLKIT_MSW_USE_GUI_1=""
42946 fi
42947
42948 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42949 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42950 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42951 fi
42952
42953 COND_TOOLKIT_PM="#"
42954 if test "x$TOOLKIT" = "xPM" ; then
42955 COND_TOOLKIT_PM=""
42956 fi
42957
42958 COND_TOOLKIT_PM_USE_GUI_1="#"
42959 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42960 COND_TOOLKIT_PM_USE_GUI_1=""
42961 fi
42962
42963 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42964 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42965 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42966 fi
42967
3fd9c298
DE
42968 COND_TOOLKIT_WINCE="#"
42969 if test "x$TOOLKIT" = "xWINCE" ; then
42970 COND_TOOLKIT_WINCE=""
42971 fi
42972
42973 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42974 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42975 COND_TOOLKIT_WINCE_USE_GUI_1=""
42976 fi
42977
42978 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42979 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42980 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42981 fi
42982
a848cd7e
SC
42983 COND_TOOLKIT_X11="#"
42984 if test "x$TOOLKIT" = "xX11" ; then
42985 COND_TOOLKIT_X11=""
42986 fi
42987
42988 COND_TOOLKIT_X11_USE_GUI_1="#"
42989 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42990 COND_TOOLKIT_X11_USE_GUI_1=""
42991 fi
42992
42993 COND_UNICODE_1="#"
42994 if test "x$UNICODE" = "x1" ; then
42995 COND_UNICODE_1=""
42996 fi
42997
42998 COND_USE_EXCEPTIONS_0="#"
42999 if test "x$USE_EXCEPTIONS" = "x0" ; then
43000 COND_USE_EXCEPTIONS_0=""
43001 fi
43002
43003 COND_USE_EXCEPTIONS_1="#"
43004 if test "x$USE_EXCEPTIONS" = "x1" ; then
43005 COND_USE_EXCEPTIONS_1=""
43006 fi
43007
43008 COND_USE_GUI_0="#"
43009 if test "x$USE_GUI" = "x0" ; then
43010 COND_USE_GUI_0=""
43011 fi
43012
43013 COND_USE_GUI_1="#"
43014 if test "x$USE_GUI" = "x1" ; then
43015 COND_USE_GUI_1=""
43016 fi
43017
43018 COND_USE_GUI_1_WXUNIV_0="#"
43019 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43020 COND_USE_GUI_1_WXUNIV_0=""
43021 fi
43022
43023 COND_USE_GUI_1_WXUNIV_1="#"
43024 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43025 COND_USE_GUI_1_WXUNIV_1=""
43026 fi
43027
43028 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43029 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43030 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43031 fi
43032
43033 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43034 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43035 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43036 fi
43037
43038 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43039 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43040 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43041 fi
43042
ceec2216
RL
43043 COND_USE_ODBC_1="#"
43044 if test "x$USE_ODBC" = "x1" ; then
43045 COND_USE_ODBC_1=""
43046 fi
43047
ffa0583f
RL
43048 COND_USE_OPENGL_1="#"
43049 if test "x$USE_OPENGL" = "x1" ; then
43050 COND_USE_OPENGL_1=""
43051 fi
43052
a848cd7e
SC
43053 COND_USE_PLUGINS_0="#"
43054 if test "x$USE_PLUGINS" = "x0" ; then
43055 COND_USE_PLUGINS_0=""
43056 fi
43057
0b78747f
MW
43058 COND_USE_RTTI_0="#"
43059 if test "x$USE_RTTI" = "x0" ; then
43060 COND_USE_RTTI_0=""
43061 fi
43062
43063 COND_USE_RTTI_1="#"
43064 if test "x$USE_RTTI" = "x1" ; then
43065 COND_USE_RTTI_1=""
43066 fi
43067
a848cd7e
SC
43068 COND_USE_SOSYMLINKS_1="#"
43069 if test "x$USE_SOSYMLINKS" = "x1" ; then
43070 COND_USE_SOSYMLINKS_1=""
43071 fi
43072
43073 COND_USE_SOVERLINUX_1="#"
43074 if test "x$USE_SOVERLINUX" = "x1" ; then
43075 COND_USE_SOVERLINUX_1=""
43076 fi
43077
43078 COND_USE_SOVERSION_0="#"
43079 if test "x$USE_SOVERSION" = "x0" ; then
43080 COND_USE_SOVERSION_0=""
43081 fi
43082
43083 COND_USE_SOVERSOLARIS_1="#"
43084 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43085 COND_USE_SOVERSOLARIS_1=""
43086 fi
43087
0b78747f
MW
43088 COND_USE_THREADS_0="#"
43089 if test "x$USE_THREADS" = "x0" ; then
43090 COND_USE_THREADS_0=""
43091 fi
43092
43093 COND_USE_THREADS_1="#"
43094 if test "x$USE_THREADS" = "x1" ; then
43095 COND_USE_THREADS_1=""
43096 fi
43097
a13a7f89
RL
43098 COND_USE_XRC_1="#"
43099 if test "x$USE_XRC" = "x1" ; then
43100 COND_USE_XRC_1=""
43101 fi
43102
a848cd7e
SC
43103 COND_WITH_PLUGIN_SDL_1="#"
43104 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43105 COND_WITH_PLUGIN_SDL_1=""
43106 fi
43107
1e6eb025
VZ
43108 COND_WXUNIV_0="#"
43109 if test "x$WXUNIV" = "x0" ; then
43110 COND_WXUNIV_0=""
43111 fi
43112
a848cd7e
SC
43113 COND_WXUNIV_1="#"
43114 if test "x$WXUNIV" = "x1" ; then
43115 COND_WXUNIV_1=""
43116 fi
43117
43118 COND_WXUSE_EXPAT_BUILTIN="#"
43119 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43120 COND_WXUSE_EXPAT_BUILTIN=""
43121 fi
43122
43123 COND_WXUSE_LIBJPEG_BUILTIN="#"
43124 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43125 COND_WXUSE_LIBJPEG_BUILTIN=""
43126 fi
43127
43128 COND_WXUSE_LIBPNG_BUILTIN="#"
43129 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43130 COND_WXUSE_LIBPNG_BUILTIN=""
43131 fi
43132
43133 COND_WXUSE_LIBTIFF_BUILTIN="#"
43134 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43135 COND_WXUSE_LIBTIFF_BUILTIN=""
43136 fi
43137
43138 COND_WXUSE_ODBC_BUILTIN="#"
43139 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43140 COND_WXUSE_ODBC_BUILTIN=""
43141 fi
43142
43143 COND_WXUSE_REGEX_BUILTIN="#"
43144 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43145 COND_WXUSE_REGEX_BUILTIN=""
43146 fi
43147
43148 COND_WXUSE_ZLIB_BUILTIN="#"
43149 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43150 COND_WXUSE_ZLIB_BUILTIN=""
43151 fi
43152
43153
43154
2057db16
VS
43155 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43156 { { 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
43157echo "$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;}
43158 { (exit 1); exit 1; }; }
43159 fi
43160
a848cd7e 43161
ceec2216
RL
43162if test "$wxUSE_SHARED" = "yes"; then
43163
43164 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43165 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43166
5b674b9d
DE
43167 case "${host}" in
43168 *-pc-os2_emx | *-pc-os2-emx )
43169 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43170 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43171 cp -p ${srcdir}/src/os2/dllnames.sh .
43172 cp -p ${srcdir}/src/os2/dllar.sh .
43173 ;;
43174 esac
ceec2216
RL
43175else
43176
43177 EXE_LINKER="$CXX -o"
43178
43179fi
69120ee4
VZ
43180if test "$wxUSE_OMF" = "yes"; then
43181 case "${host}" in
43182 *-pc-os2_emx | *-pc-os2-emx )
43183 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43184 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43185 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43186 ;;
43187 esac
43188fi
a848cd7e 43189
74b84332 43190GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43191PCH_FLAGS=""
43192if test $GCC_PCH = 1 ; then
43193 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43194 PCH_FLAGS="-DWX_PRECOMP"
43195else
a848cd7e
SC
43196 case "${host}" in
43197 powerpc-*-darwin* )
74b84332 43198 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43199 ;;
bea8e651 43200 *-*-mingw32* )
1f344abf
VS
43201 if test "$wxUSE_STL" = "yes" -o \
43202 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43203 "$wxUSE_NO_RTTI" != "yes"; then
43204 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43205echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43206 cat >conftest.$ac_ext <<_ACEOF
43207/* confdefs.h. */
43208_ACEOF
43209cat confdefs.h >>conftest.$ac_ext
43210cat >>conftest.$ac_ext <<_ACEOF
43211/* end confdefs.h. */
43212
3314e67b
RR
43213int
43214main ()
43215{
43216#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43217 #error "Not GCC 3.2 or greater"
43218 #endif
43219
43220 ;
43221 return 0;
43222}
43223_ACEOF
43224rm -f conftest.$ac_objext
43225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43226 (eval $ac_compile) 2>conftest.er1
43227 ac_status=$?
43228 grep -v '^ *+' conftest.er1 >conftest.err
43229 rm -f conftest.er1
43230 cat conftest.err >&5
43231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232 (exit $ac_status); } &&
9dd0f6c2 43233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43236 ac_status=$?
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; } &&
43239 { ac_try='test -s conftest.$ac_objext'
43240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241 (eval $ac_try) 2>&5
43242 ac_status=$?
43243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244 (exit $ac_status); }; }; then
43245 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43246 echo "$as_me:$LINENO: result: yes" >&5
43247echo "${ECHO_T}yes" >&6
43248else
43249 echo "$as_me: failed program was:" >&5
43250sed 's/^/| /' conftest.$ac_ext >&5
43251
43252echo "$as_me:$LINENO: result: no" >&5
43253echo "${ECHO_T}no" >&6
43254fi
43255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43256 fi
43257 ;;
43258 *-pc-os2_emx | *-pc-os2-emx )
43259 if test "$wxUSE_STL" = "yes"; then
43260 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43261echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43262 cat >conftest.$ac_ext <<_ACEOF
43263/* confdefs.h. */
43264_ACEOF
43265cat confdefs.h >>conftest.$ac_ext
43266cat >>conftest.$ac_ext <<_ACEOF
43267/* end confdefs.h. */
43268
bea8e651
MB
43269int
43270main ()
43271{
1f344abf 43272#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43273 #error "Not GCC 3.2 or greater"
43274 #endif
43275
43276 ;
43277 return 0;
43278}
43279_ACEOF
43280rm -f conftest.$ac_objext
43281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43282 (eval $ac_compile) 2>conftest.er1
bea8e651 43283 ac_status=$?
ac1cb8d3
VS
43284 grep -v '^ *+' conftest.er1 >conftest.err
43285 rm -f conftest.er1
43286 cat conftest.err >&5
bea8e651
MB
43287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288 (exit $ac_status); } &&
9dd0f6c2 43289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43291 (eval $ac_try) 2>&5
43292 ac_status=$?
43293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294 (exit $ac_status); }; } &&
43295 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43297 (eval $ac_try) 2>&5
43298 ac_status=$?
43299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300 (exit $ac_status); }; }; then
74b84332 43301 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43302 echo "$as_me:$LINENO: result: yes" >&5
43303echo "${ECHO_T}yes" >&6
43304else
43305 echo "$as_me: failed program was:" >&5
43306sed 's/^/| /' conftest.$ac_ext >&5
43307
43308echo "$as_me:$LINENO: result: no" >&5
43309echo "${ECHO_T}no" >&6
43310fi
ac1cb8d3 43311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43312 fi
43313 ;;
a848cd7e
SC
43314 esac
43315fi
d2083416 43316CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43317
43318
43319SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43320
43321
43322
43323
43324
43325
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356
43357
43358
43359
43360
43361
a848cd7e
SC
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
74b84332 43380
a848cd7e
SC
43381
43382
43383echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43384echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43385set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43386if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43387 echo $ECHO_N "(cached) $ECHO_C" >&6
43388else
43389 cat >conftest.make <<\_ACEOF
43390all:
43391 @echo 'ac_maketemp="$(MAKE)"'
43392_ACEOF
43393# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43394eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43395if test -n "$ac_maketemp"; then
43396 eval ac_cv_prog_make_${ac_make}_set=yes
43397else
43398 eval ac_cv_prog_make_${ac_make}_set=no
43399fi
43400rm -f conftest.make
43401fi
43402if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43403 echo "$as_me:$LINENO: result: yes" >&5
43404echo "${ECHO_T}yes" >&6
43405 SET_MAKE=
43406else
43407 echo "$as_me:$LINENO: result: no" >&5
43408echo "${ECHO_T}no" >&6
43409 SET_MAKE="MAKE=${MAKE-make}"
43410fi
43411
43412
a848cd7e 43413
ceec2216
RL
43414 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43415
a848cd7e 43416
ceec2216 43417 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43418
a848cd7e 43419
ceec2216 43420 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43421
ceec2216
RL
43422
43423 ac_config_files="$ac_config_files version-script Makefile"
43424
43425
43426 ac_config_commands="$ac_config_commands wx-config
43427 "
a848cd7e
SC
43428
43429
9103d280
RL
43430
43431
a848cd7e
SC
43432if test "$wxUSE_GUI" = "yes"; then
43433 SUBDIRS="samples demos utils contrib"
43434else SUBDIRS="samples utils"
43435fi
43436
43437
43438
43439# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43440if test "${with_cppunit_prefix+set}" = set; then
43441 withval="$with_cppunit_prefix"
43442 cppunit_config_prefix="$withval"
43443else
43444 cppunit_config_prefix=""
43445fi;
43446
43447# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43448if test "${with_cppunit_exec_prefix+set}" = set; then
43449 withval="$with_cppunit_exec_prefix"
43450 cppunit_config_exec_prefix="$withval"
43451else
43452 cppunit_config_exec_prefix=""
43453fi;
43454
43455 if test x$cppunit_config_exec_prefix != x ; then
43456 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43457 if test x${CPPUNIT_CONFIG+set} != xset ; then
43458 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43459 fi
43460 fi
43461 if test x$cppunit_config_prefix != x ; then
43462 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43463 if test x${CPPUNIT_CONFIG+set} != xset ; then
43464 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43465 fi
43466 fi
43467
43468 # Extract the first word of "cppunit-config", so it can be a program name with args.
43469set dummy cppunit-config; ac_word=$2
43470echo "$as_me:$LINENO: checking for $ac_word" >&5
43471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43472if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43473 echo $ECHO_N "(cached) $ECHO_C" >&6
43474else
43475 case $CPPUNIT_CONFIG in
43476 [\\/]* | ?:[\\/]*)
43477 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43478 ;;
43479 *)
43480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43481for as_dir in $PATH
43482do
43483 IFS=$as_save_IFS
43484 test -z "$as_dir" && as_dir=.
43485 for ac_exec_ext in '' $ac_executable_extensions; do
43486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43487 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43489 break 2
43490 fi
43491done
43492done
43493
43494 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43495 ;;
43496esac
43497fi
43498CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43499
43500if test -n "$CPPUNIT_CONFIG"; then
43501 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43502echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43503else
43504 echo "$as_me:$LINENO: result: no" >&5
43505echo "${ECHO_T}no" >&6
43506fi
43507
43508 cppunit_version_min=1.8.0
43509
43510 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43511echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43512 no_cppunit=""
43513 if test "$CPPUNIT_CONFIG" = "no" ; then
43514 no_cppunit=yes
43515 else
43516 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43517 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43518 cppunit_version=`$CPPUNIT_CONFIG --version`
43519
43520 cppunit_major_version=`echo $cppunit_version | \
43521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43522 cppunit_minor_version=`echo $cppunit_version | \
43523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43524 cppunit_micro_version=`echo $cppunit_version | \
43525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43526
43527 cppunit_major_min=`echo $cppunit_version_min | \
43528 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43529 cppunit_minor_min=`echo $cppunit_version_min | \
43530 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43531 cppunit_micro_min=`echo $cppunit_version_min | \
43532 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43533
43534 cppunit_version_proper=`expr \
43535 $cppunit_major_version \> $cppunit_major_min \| \
43536 $cppunit_major_version \= $cppunit_major_min \& \
43537 $cppunit_minor_version \> $cppunit_minor_min \| \
43538 $cppunit_major_version \= $cppunit_major_min \& \
43539 $cppunit_minor_version \= $cppunit_minor_min \& \
43540 $cppunit_micro_version \>= $cppunit_micro_min `
43541
43542 if test "$cppunit_version_proper" = "1" ; then
43543 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43544echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43545 else
43546 echo "$as_me:$LINENO: result: no" >&5
43547echo "${ECHO_T}no" >&6
43548 no_cppunit=yes
43549 fi
43550 fi
43551
43552 if test "x$no_cppunit" = x ; then
c2218763 43553 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43554 else
43555 CPPUNIT_CFLAGS=""
43556 CPPUNIT_LIBS=""
c2218763 43557 :
a848cd7e
SC
43558 fi
43559
43560
43561
43562
43563
43564for subdir in `echo $SUBDIRS`; do
43565 if test -d ${srcdir}/${subdir} ; then
43566 if test "$wxUSE_GUI" = "yes"; then
43567 if test ${subdir} = "samples"; then
43568 makefiles="samples/Makefile.in $makefiles"
43569 for sample in `echo $SAMPLES_SUBDIRS`; do
43570 if test -d $srcdir/samples/$sample; then
43571 makefiles="samples/$sample/Makefile.in $makefiles"
43572 fi
43573 done
43574 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43575 fi
43576 else if test ${subdir} = "samples"; then
43577 makefiles="samples/Makefile.in samples/console/Makefile.in"
43578 elif test ${subdir} = "utils"; then
6537ccf8
VS
43579 makefiles=""
43580 for util in HelpGen tex2rtf ; do
43581 if test -d $srcdir/utils/$util ; then
43582 makefiles="utils/$util/Makefile.in \
43583 utils/$util/src/Makefile.in \
43584 $makefiles"
43585 fi
43586 done
a848cd7e
SC
43587 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43588 fi
43589 fi
43590
43591 for mkin in $makefiles ; do
43592 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43593 ac_config_files="$ac_config_files $mk"
43594
43595 done
43596 fi
43597done
43598
43599
43600cat >confcache <<\_ACEOF
43601# This file is a shell script that caches the results of configure
43602# tests run on this system so they can be shared between configure
43603# scripts and configure runs, see configure's option --config-cache.
43604# It is not useful on other systems. If it contains results you don't
43605# want to keep, you may remove or edit it.
43606#
43607# config.status only pays attention to the cache file if you give it
43608# the --recheck option to rerun configure.
43609#
43610# `ac_cv_env_foo' variables (set or unset) will be overridden when
43611# loading this file, other *unset* `ac_cv_foo' will be assigned the
43612# following values.
43613
43614_ACEOF
43615
43616# The following way of writing the cache mishandles newlines in values,
43617# but we know of no workaround that is simple, portable, and efficient.
43618# So, don't put newlines in cache variables' values.
43619# Ultrix sh set writes to stderr and can't be redirected directly,
43620# and sets the high bit in the cache file unless we assign to the vars.
43621{
43622 (set) 2>&1 |
43623 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43624 *ac_space=\ *)
43625 # `set' does not quote correctly, so add quotes (double-quote
43626 # substitution turns \\\\ into \\, and sed turns \\ into \).
43627 sed -n \
ac1cb8d3
VS
43628 "s/'/'\\\\''/g;
43629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43630 ;;
43631 *)
43632 # `set' quotes correctly as required by POSIX, so do not add quotes.
43633 sed -n \
ac1cb8d3 43634 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43635 ;;
43636 esac;
43637} |
43638 sed '
43639 t clear
43640 : clear
43641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43642 t end
43643 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43644 : end' >>confcache
43645if diff $cache_file confcache >/dev/null 2>&1; then :; else
43646 if test -w $cache_file; then
43647 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43648 cat confcache >$cache_file
43649 else
43650 echo "not updating unwritable cache $cache_file"
43651 fi
43652fi
43653rm -f confcache
43654
43655test "x$prefix" = xNONE && prefix=$ac_default_prefix
43656# Let make expand exec_prefix.
43657test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43658
43659# VPATH may cause trouble with some makes, so we remove $(srcdir),
43660# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43661# trailing colons and then remove the whole line if VPATH becomes empty
43662# (actually we leave an empty line to preserve line numbers).
43663if test "x$srcdir" = x.; then
ac1cb8d3 43664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43665s/:*\$(srcdir):*/:/;
43666s/:*\${srcdir}:*/:/;
43667s/:*@srcdir@:*/:/;
ac1cb8d3 43668s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43669s/:*$//;
ac1cb8d3 43670s/^[^=]*=[ ]*$//;
a848cd7e
SC
43671}'
43672fi
43673
43674DEFS=-DHAVE_CONFIG_H
43675
43676ac_libobjs=
43677ac_ltlibobjs=
43678for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43679 # 1. Remove the extension, and $U if already installed.
43680 ac_i=`echo "$ac_i" |
ac1cb8d3 43681 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43682 # 2. Add them.
43683 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43684 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43685done
43686LIBOBJS=$ac_libobjs
43687
43688LTLIBOBJS=$ac_ltlibobjs
43689
43690
43691
43692: ${CONFIG_STATUS=./config.status}
43693ac_clean_files_save=$ac_clean_files
43694ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43695{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43696echo "$as_me: creating $CONFIG_STATUS" >&6;}
43697cat >$CONFIG_STATUS <<_ACEOF
43698#! $SHELL
43699# Generated by $as_me.
43700# Run this file to recreate the current configuration.
43701# Compiler output produced by configure, useful for debugging
43702# configure, is in config.log if it exists.
43703
43704debug=false
43705ac_cs_recheck=false
43706ac_cs_silent=false
43707SHELL=\${CONFIG_SHELL-$SHELL}
43708_ACEOF
43709
43710cat >>$CONFIG_STATUS <<\_ACEOF
43711## --------------------- ##
43712## M4sh Initialization. ##
43713## --------------------- ##
43714
43715# Be Bourne compatible
43716if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43717 emulate sh
43718 NULLCMD=:
43719 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43720 # is contrary to our usage. Disable this feature.
43721 alias -g '${1+"$@"}'='"$@"'
43722elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43723 set -o posix
43724fi
ac1cb8d3 43725DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43726
43727# Support unset when possible.
ac1cb8d3 43728if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43729 as_unset=unset
43730else
43731 as_unset=false
43732fi
43733
43734
43735# Work around bugs in pre-3.0 UWIN ksh.
43736$as_unset ENV MAIL MAILPATH
43737PS1='$ '
43738PS2='> '
43739PS4='+ '
43740
43741# NLS nuisances.
43742for as_var in \
43743 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43744 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43745 LC_TELEPHONE LC_TIME
43746do
ac1cb8d3 43747 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43748 eval $as_var=C; export $as_var
43749 else
43750 $as_unset $as_var
43751 fi
43752done
43753
43754# Required to use basename.
43755if expr a : '\(a\)' >/dev/null 2>&1; then
43756 as_expr=expr
43757else
43758 as_expr=false
43759fi
43760
43761if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43762 as_basename=basename
43763else
43764 as_basename=false
43765fi
43766
43767
43768# Name of the executable.
43769as_me=`$as_basename "$0" ||
43770$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43771 X"$0" : 'X\(//\)$' \| \
43772 X"$0" : 'X\(/\)$' \| \
43773 . : '\(.\)' 2>/dev/null ||
43774echo X/"$0" |
43775 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43776 /^X\/\(\/\/\)$/{ s//\1/; q; }
43777 /^X\/\(\/\).*/{ s//\1/; q; }
43778 s/.*/./; q'`
43779
43780
43781# PATH needs CR, and LINENO needs CR and PATH.
43782# Avoid depending upon Character Ranges.
43783as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43784as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43785as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43786as_cr_digits='0123456789'
43787as_cr_alnum=$as_cr_Letters$as_cr_digits
43788
43789# The user is always right.
43790if test "${PATH_SEPARATOR+set}" != set; then
43791 echo "#! /bin/sh" >conf$$.sh
43792 echo "exit 0" >>conf$$.sh
43793 chmod +x conf$$.sh
43794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43795 PATH_SEPARATOR=';'
43796 else
43797 PATH_SEPARATOR=:
43798 fi
43799 rm -f conf$$.sh
43800fi
43801
43802
43803 as_lineno_1=$LINENO
43804 as_lineno_2=$LINENO
43805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43806 test "x$as_lineno_1" != "x$as_lineno_2" &&
43807 test "x$as_lineno_3" = "x$as_lineno_2" || {
43808 # Find who we are. Look in the path if we contain no path at all
43809 # relative or not.
43810 case $0 in
43811 *[\\/]* ) as_myself=$0 ;;
43812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43813for as_dir in $PATH
43814do
43815 IFS=$as_save_IFS
43816 test -z "$as_dir" && as_dir=.
43817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43818done
43819
43820 ;;
43821 esac
43822 # We did not find ourselves, most probably we were run as `sh COMMAND'
43823 # in which case we are not to be found in the path.
43824 if test "x$as_myself" = x; then
43825 as_myself=$0
43826 fi
43827 if test ! -f "$as_myself"; then
43828 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43829echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43830 { (exit 1); exit 1; }; }
43831 fi
43832 case $CONFIG_SHELL in
43833 '')
43834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43835for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43836do
43837 IFS=$as_save_IFS
43838 test -z "$as_dir" && as_dir=.
43839 for as_base in sh bash ksh sh5; do
43840 case $as_dir in
43841 /*)
43842 if ("$as_dir/$as_base" -c '
43843 as_lineno_1=$LINENO
43844 as_lineno_2=$LINENO
43845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43846 test "x$as_lineno_1" != "x$as_lineno_2" &&
43847 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43848 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43849 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43850 CONFIG_SHELL=$as_dir/$as_base
43851 export CONFIG_SHELL
43852 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43853 fi;;
43854 esac
43855 done
43856done
43857;;
43858 esac
43859
43860 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43861 # uniformly replaced by the line number. The first 'sed' inserts a
43862 # line-number line before each line; the second 'sed' does the real
43863 # work. The second script uses 'N' to pair each line-number line
43864 # with the numbered line, and appends trailing '-' during
43865 # substitution so that $LINENO is not a special case at line end.
43866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43867 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43868 sed '=' <$as_myself |
43869 sed '
43870 N
43871 s,$,-,
43872 : loop
43873 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43874 t loop
43875 s,-$,,
43876 s,^['$as_cr_digits']*\n,,
43877 ' >$as_me.lineno &&
43878 chmod +x $as_me.lineno ||
43879 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43880echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43881 { (exit 1); exit 1; }; }
43882
43883 # Don't try to exec as it changes $[0], causing all sort of problems
43884 # (the dirname of $[0] is not the place where we might find the
43885 # original and so on. Autoconf is especially sensible to this).
43886 . ./$as_me.lineno
43887 # Exit status is that of the last command.
43888 exit
43889}
43890
43891
43892case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43893 *c*,-n*) ECHO_N= ECHO_C='
43894' ECHO_T=' ' ;;
43895 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43896 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43897esac
43898
43899if expr a : '\(a\)' >/dev/null 2>&1; then
43900 as_expr=expr
43901else
43902 as_expr=false
43903fi
43904
43905rm -f conf$$ conf$$.exe conf$$.file
43906echo >conf$$.file
43907if ln -s conf$$.file conf$$ 2>/dev/null; then
43908 # We could just check for DJGPP; but this test a) works b) is more generic
43909 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43910 if test -f conf$$.exe; then
43911 # Don't use ln at all; we don't have any links
43912 as_ln_s='cp -p'
43913 else
43914 as_ln_s='ln -s'
43915 fi
43916elif ln conf$$.file conf$$ 2>/dev/null; then
43917 as_ln_s=ln
43918else
43919 as_ln_s='cp -p'
43920fi
43921rm -f conf$$ conf$$.exe conf$$.file
43922
43923if mkdir -p . 2>/dev/null; then
43924 as_mkdir_p=:
43925else
ac1cb8d3 43926 test -d ./-p && rmdir ./-p
a848cd7e
SC
43927 as_mkdir_p=false
43928fi
43929
43930as_executable_p="test -f"
43931
43932# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43933as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43934
43935# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43936as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43937
43938
43939# IFS
43940# We need space, tab and new line, in precisely that order.
43941as_nl='
43942'
43943IFS=" $as_nl"
43944
43945# CDPATH.
43946$as_unset CDPATH
43947
43948exec 6>&1
43949
43950# Open the log real soon, to keep \$[0] and so on meaningful, and to
43951# report actual input values of CONFIG_FILES etc. instead of their
43952# values after options handling. Logging --version etc. is OK.
43953exec 5>>config.log
43954{
43955 echo
43956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43957## Running $as_me. ##
43958_ASBOX
43959} >&5
43960cat >&5 <<_CSEOF
43961
63c4f6da 43962This file was extended by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 43963generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43964
43965 CONFIG_FILES = $CONFIG_FILES
43966 CONFIG_HEADERS = $CONFIG_HEADERS
43967 CONFIG_LINKS = $CONFIG_LINKS
43968 CONFIG_COMMANDS = $CONFIG_COMMANDS
43969 $ $0 $@
43970
43971_CSEOF
43972echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43973echo >&5
43974_ACEOF
43975
43976# Files that config.status was made for.
43977if test -n "$ac_config_files"; then
43978 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43979fi
43980
43981if test -n "$ac_config_headers"; then
43982 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43983fi
43984
43985if test -n "$ac_config_links"; then
43986 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43987fi
43988
43989if test -n "$ac_config_commands"; then
43990 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43991fi
43992
43993cat >>$CONFIG_STATUS <<\_ACEOF
43994
43995ac_cs_usage="\
43996\`$as_me' instantiates files from templates according to the
43997current configuration.
43998
43999Usage: $0 [OPTIONS] [FILE]...
44000
44001 -h, --help print this help, then exit
44002 -V, --version print version number, then exit
44003 -q, --quiet do not print progress messages
44004 -d, --debug don't remove temporary files
44005 --recheck update $as_me by reconfiguring in the same conditions
44006 --file=FILE[:TEMPLATE]
ac1cb8d3 44007 instantiate the configuration file FILE
a848cd7e 44008 --header=FILE[:TEMPLATE]
ac1cb8d3 44009 instantiate the configuration header FILE
a848cd7e
SC
44010
44011Configuration files:
44012$config_files
44013
44014Configuration headers:
44015$config_headers
44016
44017Configuration commands:
44018$config_commands
44019
44020Report bugs to <bug-autoconf@gnu.org>."
44021_ACEOF
44022
44023cat >>$CONFIG_STATUS <<_ACEOF
44024ac_cs_version="\\
63c4f6da 44025wxWidgets config.status 2.5.5
ac1cb8d3 44026configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44027 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44028
ac1cb8d3 44029Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44030This config.status script is free software; the Free Software Foundation
44031gives unlimited permission to copy, distribute and modify it."
44032srcdir=$srcdir
44033INSTALL="$INSTALL"
44034_ACEOF
44035
44036cat >>$CONFIG_STATUS <<\_ACEOF
44037# If no file are specified by the user, then we need to provide default
44038# value. By we need to know if files were specified by the user.
44039ac_need_defaults=:
44040while test $# != 0
44041do
44042 case $1 in
44043 --*=*)
44044 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44045 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44046 ac_shift=:
44047 ;;
44048 -*)
44049 ac_option=$1
44050 ac_optarg=$2
44051 ac_shift=shift
44052 ;;
44053 *) # This is not an option, so the user has probably given explicit
44054 # arguments.
44055 ac_option=$1
44056 ac_need_defaults=false;;
44057 esac
44058
44059 case $ac_option in
44060 # Handling of the options.
44061_ACEOF
44062cat >>$CONFIG_STATUS <<\_ACEOF
44063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44064 ac_cs_recheck=: ;;
44065 --version | --vers* | -V )
44066 echo "$ac_cs_version"; exit 0 ;;
44067 --he | --h)
44068 # Conflict between --help and --header
44069 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44070Try \`$0 --help' for more information." >&5
44071echo "$as_me: error: ambiguous option: $1
44072Try \`$0 --help' for more information." >&2;}
44073 { (exit 1); exit 1; }; };;
44074 --help | --hel | -h )
44075 echo "$ac_cs_usage"; exit 0 ;;
44076 --debug | --d* | -d )
44077 debug=: ;;
44078 --file | --fil | --fi | --f )
44079 $ac_shift
44080 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44081 ac_need_defaults=false;;
44082 --header | --heade | --head | --hea )
44083 $ac_shift
44084 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44085 ac_need_defaults=false;;
44086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44088 ac_cs_silent=: ;;
44089
44090 # This is an error.
44091 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44092Try \`$0 --help' for more information." >&5
44093echo "$as_me: error: unrecognized option: $1
44094Try \`$0 --help' for more information." >&2;}
44095 { (exit 1); exit 1; }; } ;;
44096
44097 *) ac_config_targets="$ac_config_targets $1" ;;
44098
44099 esac
44100 shift
44101done
44102
44103ac_configure_extra_args=
44104
44105if $ac_cs_silent; then
44106 exec 6>/dev/null
44107 ac_configure_extra_args="$ac_configure_extra_args --silent"
44108fi
44109
44110_ACEOF
44111cat >>$CONFIG_STATUS <<_ACEOF
44112if \$ac_cs_recheck; then
44113 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44114 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44115fi
44116
44117_ACEOF
44118
44119cat >>$CONFIG_STATUS <<_ACEOF
44120#
44121# INIT-COMMANDS section.
44122#
44123
ceec2216
RL
44124 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44125 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44126 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44127 LN_S="${LN_S}"
a848cd7e
SC
44128
44129
44130_ACEOF
44131
44132
44133
44134cat >>$CONFIG_STATUS <<\_ACEOF
44135for ac_config_target in $ac_config_targets
44136do
44137 case "$ac_config_target" in
44138 # Handling of arguments.
ceec2216
RL
44139 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44140 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44141 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44142 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44143 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44144 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44145 "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
44146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44147echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44148 { (exit 1); exit 1; }; };;
44149 esac
44150done
44151
44152# If the user did not use the arguments to specify the items to instantiate,
44153# then the envvar interface is used. Set only those that are not.
44154# We use the long form for the default assignment because of an extremely
44155# bizarre bug on SunOS 4.1.3.
44156if $ac_need_defaults; then
44157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44160fi
44161
44162# Have a temporary directory for convenience. Make it in the build tree
44163# simply because there is no reason to put it here, and in addition,
44164# creating and moving files from /tmp can sometimes cause problems.
44165# Create a temporary directory, and hook for its removal unless debugging.
44166$debug ||
44167{
44168 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44169 trap '{ (exit 1); exit 1; }' 1 2 13 15
44170}
44171
44172# Create a (secure) tmp directory for tmp files.
44173
44174{
44175 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44176 test -n "$tmp" && test -d "$tmp"
44177} ||
44178{
44179 tmp=./confstat$$-$RANDOM
44180 (umask 077 && mkdir $tmp)
44181} ||
44182{
44183 echo "$me: cannot create a temporary directory in ." >&2
44184 { (exit 1); exit 1; }
44185}
44186
44187_ACEOF
44188
44189cat >>$CONFIG_STATUS <<_ACEOF
44190
44191#
44192# CONFIG_FILES section.
44193#
44194
44195# No need to generate the scripts if there are no CONFIG_FILES.
44196# This happens for instance when ./config.status config.h
44197if test -n "\$CONFIG_FILES"; then
44198 # Protect against being on the right side of a sed subst in config.status.
44199 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44200 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44201s,@SHELL@,$SHELL,;t t
44202s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44203s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44204s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44205s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44206s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44207s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44208s,@exec_prefix@,$exec_prefix,;t t
44209s,@prefix@,$prefix,;t t
44210s,@program_transform_name@,$program_transform_name,;t t
44211s,@bindir@,$bindir,;t t
44212s,@sbindir@,$sbindir,;t t
44213s,@libexecdir@,$libexecdir,;t t
44214s,@datadir@,$datadir,;t t
44215s,@sysconfdir@,$sysconfdir,;t t
44216s,@sharedstatedir@,$sharedstatedir,;t t
44217s,@localstatedir@,$localstatedir,;t t
44218s,@libdir@,$libdir,;t t
44219s,@includedir@,$includedir,;t t
44220s,@oldincludedir@,$oldincludedir,;t t
44221s,@infodir@,$infodir,;t t
44222s,@mandir@,$mandir,;t t
44223s,@build_alias@,$build_alias,;t t
44224s,@host_alias@,$host_alias,;t t
44225s,@target_alias@,$target_alias,;t t
44226s,@DEFS@,$DEFS,;t t
44227s,@ECHO_C@,$ECHO_C,;t t
44228s,@ECHO_N@,$ECHO_N,;t t
44229s,@ECHO_T@,$ECHO_T,;t t
44230s,@LIBS@,$LIBS,;t t
44231s,@build@,$build,;t t
44232s,@build_cpu@,$build_cpu,;t t
44233s,@build_vendor@,$build_vendor,;t t
44234s,@build_os@,$build_os,;t t
44235s,@host@,$host,;t t
44236s,@host_cpu@,$host_cpu,;t t
44237s,@host_vendor@,$host_vendor,;t t
44238s,@host_os@,$host_os,;t t
44239s,@target@,$target,;t t
44240s,@target_cpu@,$target_cpu,;t t
44241s,@target_vendor@,$target_vendor,;t t
44242s,@target_os@,$target_os,;t t
44243s,@CC@,$CC,;t t
44244s,@CFLAGS@,$CFLAGS,;t t
44245s,@LDFLAGS@,$LDFLAGS,;t t
44246s,@CPPFLAGS@,$CPPFLAGS,;t t
44247s,@ac_ct_CC@,$ac_ct_CC,;t t
44248s,@EXEEXT@,$EXEEXT,;t t
44249s,@OBJEXT@,$OBJEXT,;t t
44250s,@CPP@,$CPP,;t t
44251s,@EGREP@,$EGREP,;t t
44252s,@CXX@,$CXX,;t t
44253s,@CXXFLAGS@,$CXXFLAGS,;t t
44254s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44255s,@RANLIB@,$RANLIB,;t t
44256s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44257s,@AR@,$AR,;t t
44258s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44259s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44260s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44261s,@STRIP@,$STRIP,;t t
44262s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44263s,@LN_S@,$LN_S,;t t
44264s,@CXXCPP@,$CXXCPP,;t t
44265s,@subdirs@,$subdirs,;t t
44266s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44267s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44268s,@GTK_LIBS@,$GTK_LIBS,;t t
44269s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44270s,@X_CFLAGS@,$X_CFLAGS,;t t
44271s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44272s,@X_LIBS@,$X_LIBS,;t t
44273s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44274s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44275s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44276s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44277s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44278s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44279s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44280s,@RESCOMP@,$RESCOMP,;t t
44281s,@DEREZ@,$DEREZ,;t t
44282s,@SETFILE@,$SETFILE,;t t
44283s,@LIBICONV@,$LIBICONV,;t t
44284s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44285s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44286s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44287s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44288s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44289s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44290s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44291s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44292s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44293s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44294s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44295s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44296s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44297s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44298s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44299s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44300s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44301s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44302s,@VENDOR@,$VENDOR,;t t
44303s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44304s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44305s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44306s,@WXUNIV@,$WXUNIV,;t t
44307s,@MONOLITHIC@,$MONOLITHIC,;t t
44308s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44309s,@EXTRALIBS@,$EXTRALIBS,;t t
44310s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44311s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44312s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44313s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44314s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44315s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44316s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44317s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44318s,@UNICODE@,$UNICODE,;t t
44319s,@BUILD@,$BUILD,;t t
44320s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44321s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44322s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44323s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44324s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44325s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44326s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44327s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44328s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44329s,@SET_MAKE@,$SET_MAKE,;t t
44330s,@MAKE_SET@,$MAKE_SET,;t t
44331s,@ac_ct_AR@,$ac_ct_AR,;t t
44332s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44333s,@NM@,$NM,;t t
44334s,@ac_ct_NM@,$ac_ct_NM,;t t
44335s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44336s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44337s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44338s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44339s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44340s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44341s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44342s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44343s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44344s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44345s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44346s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44347s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44348s,@LIBPREFIX@,$LIBPREFIX,;t t
44349s,@LIBEXT@,$LIBEXT,;t t
44350s,@DLLPREFIX@,$DLLPREFIX,;t t
44351s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44352s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44353s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44354s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44355s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44356s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44357s,@PIC_FLAG@,$PIC_FLAG,;t t
44358s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44359s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44360s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44361s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44362s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44363s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44364s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44365s,@GCC_PCH@,$GCC_PCH,;t t
44366s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44367s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44368s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44369s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44370s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44371s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44372s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44373s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44374s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44375s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44376s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44377s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44378s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44379s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44380s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44381s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44382s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44383s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44384s,@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 44385s,@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 44386s,@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 44387s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44388s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44389s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44390s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44391s,@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 44392s,@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 44393s,@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 44394s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44395s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44396s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44397s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44398s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44399s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44400s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44401s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44402s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44403s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44404s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44405s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44406s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44407s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44408s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44409s,@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
44410s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44411s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44412s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44413s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44414s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44415s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44416s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44417s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44418s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44419s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44420s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44421s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44422s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44423s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44424s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44425s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44426s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44427s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44428s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44429s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44430s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44431s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44432s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44433s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44434s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44435s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44436s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44437s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44438s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44439s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44440s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44441s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44442s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44443s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44444s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44445s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44446s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44447s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44448s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44449s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44450s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44451s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44452s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44453s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44454s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44455s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44456s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44457s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44458s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44459s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44460s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44461s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44462s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44463s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44464s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44465s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44466s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44467s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44468s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44469s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44470s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44471s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44472s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44473s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44474s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44475s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44476s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44477s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44478s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44479s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44480s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44481s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44482s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44483s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44484s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44485s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44486s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44487s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44488s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44489s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44490s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44491s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44492s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44493s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44494s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44495s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44496s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44497s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44498s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44499s,@USE_GUI@,$USE_GUI,;t t
44500s,@AFMINSTALL@,$AFMINSTALL,;t t
44501s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44502s,@TOOLKIT@,$TOOLKIT,;t t
44503s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44504s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44505s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44506s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44507s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44508s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44509s,@WIDGET_SET@,$WIDGET_SET,;t t
44510s,@WX_RELEASE@,$WX_RELEASE,;t t
44511s,@WX_VERSION@,$WX_VERSION,;t t
44512s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44513s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44514s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44515s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44516s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44517s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44518s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44519s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44520s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44521s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44522s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44523s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44524s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44525s,@DISTDIR@,$DISTDIR,;t t
44526s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44527s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44528s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44529s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44530s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44531s,@RESFLAGS@,$RESFLAGS,;t t
44532s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44533s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44534s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44535s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44536s,@MACRESCOMP@,$MACRESCOMP,;t t
44537s,@MACSETFILE@,$MACSETFILE,;t t
44538s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44539s,@GCC@,$GCC,;t t
a848cd7e 44540s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44541s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44542s,@LIBOBJS@,$LIBOBJS,;t t
44543s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44544CEOF
44545
44546_ACEOF
44547
44548 cat >>$CONFIG_STATUS <<\_ACEOF
44549 # Split the substitutions into bite-sized pieces for seds with
44550 # small command number limits, like on Digital OSF/1 and HP-UX.
44551 ac_max_sed_lines=48
44552 ac_sed_frag=1 # Number of current file.
44553 ac_beg=1 # First line for current file.
44554 ac_end=$ac_max_sed_lines # Line after last line for current file.
44555 ac_more_lines=:
44556 ac_sed_cmds=
44557 while $ac_more_lines; do
44558 if test $ac_beg -gt 1; then
44559 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44560 else
44561 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44562 fi
44563 if test ! -s $tmp/subs.frag; then
44564 ac_more_lines=false
44565 else
44566 # The purpose of the label and of the branching condition is to
44567 # speed up the sed processing (if there are no `@' at all, there
44568 # is no need to browse any of the substitutions).
44569 # These are the two extra sed commands mentioned above.
44570 (echo ':t
44571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44572 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44573 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44574 else
ac1cb8d3 44575 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44576 fi
44577 ac_sed_frag=`expr $ac_sed_frag + 1`
44578 ac_beg=$ac_end
44579 ac_end=`expr $ac_end + $ac_max_sed_lines`
44580 fi
44581 done
44582 if test -z "$ac_sed_cmds"; then
44583 ac_sed_cmds=cat
44584 fi
44585fi # test -n "$CONFIG_FILES"
44586
44587_ACEOF
44588cat >>$CONFIG_STATUS <<\_ACEOF
44589for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44591 case $ac_file in
44592 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44593 cat >$tmp/stdin
44594 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44596 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44598 * ) ac_file_in=$ac_file.in ;;
44599 esac
44600
44601 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44602 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44603$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44604 X"$ac_file" : 'X\(//\)[^/]' \| \
44605 X"$ac_file" : 'X\(//\)$' \| \
44606 X"$ac_file" : 'X\(/\)' \| \
44607 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44608echo X"$ac_file" |
44609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44611 /^X\(\/\/\)$/{ s//\1/; q; }
44612 /^X\(\/\).*/{ s//\1/; q; }
44613 s/.*/./; q'`
44614 { if $as_mkdir_p; then
44615 mkdir -p "$ac_dir"
44616 else
44617 as_dir="$ac_dir"
44618 as_dirs=
44619 while test ! -d "$as_dir"; do
44620 as_dirs="$as_dir $as_dirs"
44621 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44623 X"$as_dir" : 'X\(//\)[^/]' \| \
44624 X"$as_dir" : 'X\(//\)$' \| \
44625 X"$as_dir" : 'X\(/\)' \| \
44626 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44627echo X"$as_dir" |
44628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44630 /^X\(\/\/\)$/{ s//\1/; q; }
44631 /^X\(\/\).*/{ s//\1/; q; }
44632 s/.*/./; q'`
44633 done
44634 test ! -n "$as_dirs" || mkdir $as_dirs
44635 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44636echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44637 { (exit 1); exit 1; }; }; }
44638
44639 ac_builddir=.
44640
44641if test "$ac_dir" != .; then
44642 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44643 # A "../" for each directory in $ac_dir_suffix.
44644 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44645else
44646 ac_dir_suffix= ac_top_builddir=
44647fi
44648
44649case $srcdir in
44650 .) # No --srcdir option. We are building in place.
44651 ac_srcdir=.
44652 if test -z "$ac_top_builddir"; then
44653 ac_top_srcdir=.
44654 else
44655 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44656 fi ;;
44657 [\\/]* | ?:[\\/]* ) # Absolute path.
44658 ac_srcdir=$srcdir$ac_dir_suffix;
44659 ac_top_srcdir=$srcdir ;;
44660 *) # Relative path.
44661 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44662 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44663esac
ac1cb8d3
VS
44664
44665# Do not use `cd foo && pwd` to compute absolute paths, because
44666# the directories may not exist.
44667case `pwd` in
44668.) ac_abs_builddir="$ac_dir";;
44669*)
44670 case "$ac_dir" in
44671 .) ac_abs_builddir=`pwd`;;
44672 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44673 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44674 esac;;
44675esac
44676case $ac_abs_builddir in
44677.) ac_abs_top_builddir=${ac_top_builddir}.;;
44678*)
44679 case ${ac_top_builddir}. in
44680 .) ac_abs_top_builddir=$ac_abs_builddir;;
44681 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44682 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44683 esac;;
44684esac
44685case $ac_abs_builddir in
44686.) ac_abs_srcdir=$ac_srcdir;;
44687*)
44688 case $ac_srcdir in
44689 .) ac_abs_srcdir=$ac_abs_builddir;;
44690 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44691 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44692 esac;;
44693esac
44694case $ac_abs_builddir in
44695.) ac_abs_top_srcdir=$ac_top_srcdir;;
44696*)
44697 case $ac_top_srcdir in
44698 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44699 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44700 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44701 esac;;
44702esac
a848cd7e
SC
44703
44704
44705 case $INSTALL in
44706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44707 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44708 esac
44709
a848cd7e
SC
44710 # Let's still pretend it is `configure' which instantiates (i.e., don't
44711 # use $as_me), people would be surprised to read:
44712 # /* config.h. Generated by config.status. */
44713 if test x"$ac_file" = x-; then
44714 configure_input=
44715 else
44716 configure_input="$ac_file. "
44717 fi
44718 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44719 sed 's,.*/,,'` by configure."
a848cd7e
SC
44720
44721 # First look for the input files in the build tree, otherwise in the
44722 # src tree.
44723 ac_file_inputs=`IFS=:
44724 for f in $ac_file_in; do
44725 case $f in
44726 -) echo $tmp/stdin ;;
44727 [\\/$]*)
ac1cb8d3
VS
44728 # Absolute (can't be DOS-style, as IFS=:)
44729 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44730echo "$as_me: error: cannot find input file: $f" >&2;}
44731 { (exit 1); exit 1; }; }
ac1cb8d3 44732 echo "$f";;
a848cd7e 44733 *) # Relative
ac1cb8d3
VS
44734 if test -f "$f"; then
44735 # Build tree
44736 echo "$f"
44737 elif test -f "$srcdir/$f"; then
44738 # Source tree
44739 echo "$srcdir/$f"
44740 else
44741 # /dev/null tree
44742 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44743echo "$as_me: error: cannot find input file: $f" >&2;}
44744 { (exit 1); exit 1; }; }
ac1cb8d3 44745 fi;;
a848cd7e
SC
44746 esac
44747 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44748
44749 if test x"$ac_file" != x-; then
44750 { echo "$as_me:$LINENO: creating $ac_file" >&5
44751echo "$as_me: creating $ac_file" >&6;}
44752 rm -f "$ac_file"
44753 fi
a848cd7e
SC
44754_ACEOF
44755cat >>$CONFIG_STATUS <<_ACEOF
44756 sed "$ac_vpsub
44757$extrasub
44758_ACEOF
44759cat >>$CONFIG_STATUS <<\_ACEOF
44760:t
44761/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44762s,@configure_input@,$configure_input,;t t
44763s,@srcdir@,$ac_srcdir,;t t
44764s,@abs_srcdir@,$ac_abs_srcdir,;t t
44765s,@top_srcdir@,$ac_top_srcdir,;t t
44766s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44767s,@builddir@,$ac_builddir,;t t
44768s,@abs_builddir@,$ac_abs_builddir,;t t
44769s,@top_builddir@,$ac_top_builddir,;t t
44770s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44771s,@INSTALL@,$ac_INSTALL,;t t
44772" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44773 rm -f $tmp/stdin
44774 if test x"$ac_file" != x-; then
44775 mv $tmp/out $ac_file
44776 else
44777 cat $tmp/out
44778 rm -f $tmp/out
44779 fi
44780
ceec2216
RL
44781 # Run the commands associated with the file.
44782 case $ac_file in
44783 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44784 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44785 esac
a848cd7e
SC
44786done
44787_ACEOF
44788cat >>$CONFIG_STATUS <<\_ACEOF
44789
44790#
44791# CONFIG_HEADER section.
44792#
44793
44794# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44795# NAME is the cpp macro being defined and VALUE is the value it is being given.
44796#
44797# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44798ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44799ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44800ac_dC=' '
44801ac_dD=',;t'
44802# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44803ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44804ac_uB='$,\1#\2define\3'
44805ac_uC=' '
44806ac_uD=',;t'
44807
44808for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44810 case $ac_file in
44811 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44812 cat >$tmp/stdin
44813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44817 * ) ac_file_in=$ac_file.in ;;
44818 esac
44819
44820 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44821echo "$as_me: creating $ac_file" >&6;}
44822
44823 # First look for the input files in the build tree, otherwise in the
44824 # src tree.
44825 ac_file_inputs=`IFS=:
44826 for f in $ac_file_in; do
44827 case $f in
44828 -) echo $tmp/stdin ;;
44829 [\\/$]*)
ac1cb8d3
VS
44830 # Absolute (can't be DOS-style, as IFS=:)
44831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44832echo "$as_me: error: cannot find input file: $f" >&2;}
44833 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44834 # Do quote $f, to prevent DOS paths from being IFS'd.
44835 echo "$f";;
a848cd7e 44836 *) # Relative
ac1cb8d3
VS
44837 if test -f "$f"; then
44838 # Build tree
44839 echo "$f"
44840 elif test -f "$srcdir/$f"; then
44841 # Source tree
44842 echo "$srcdir/$f"
44843 else
44844 # /dev/null tree
44845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44846echo "$as_me: error: cannot find input file: $f" >&2;}
44847 { (exit 1); exit 1; }; }
ac1cb8d3 44848 fi;;
a848cd7e
SC
44849 esac
44850 done` || { (exit 1); exit 1; }
44851 # Remove the trailing spaces.
ac1cb8d3 44852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44853
44854_ACEOF
44855
44856# Transform confdefs.h into two sed scripts, `conftest.defines' and
44857# `conftest.undefs', that substitutes the proper values into
44858# config.h.in to produce config.h. The first handles `#define'
44859# templates, and the second `#undef' templates.
44860# And first: Protect against being on the right side of a sed subst in
44861# config.status. Protect against being in an unquoted here document
44862# in config.status.
44863rm -f conftest.defines conftest.undefs
44864# Using a here document instead of a string reduces the quoting nightmare.
44865# Putting comments in sed scripts is not portable.
44866#
44867# `end' is used to avoid that the second main sed command (meant for
44868# 0-ary CPP macros) applies to n-ary macro definitions.
44869# See the Autoconf documentation for `clear'.
44870cat >confdef2sed.sed <<\_ACEOF
44871s/[\\&,]/\\&/g
44872s,[\\$`],\\&,g
44873t clear
44874: clear
ac1cb8d3 44875s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44876t end
ac1cb8d3 44877s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44878: end
44879_ACEOF
44880# If some macros were called several times there might be several times
44881# the same #defines, which is useless. Nevertheless, we may not want to
44882# sort them, since we want the *last* AC-DEFINE to be honored.
44883uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44884sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44885rm -f confdef2sed.sed
44886
44887# This sed command replaces #undef with comments. This is necessary, for
44888# example, in the case of _POSIX_SOURCE, which is predefined and required
44889# on some systems where configure will not decide to define it.
44890cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44891s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44892_ACEOF
44893
44894# Break up conftest.defines because some shells have a limit on the size
44895# of here documents, and old seds have small limits too (100 cmds).
44896echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44897echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44898echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44899echo ' :' >>$CONFIG_STATUS
44900rm -f conftest.tail
44901while grep . conftest.defines >/dev/null
44902do
44903 # Write a limited-size here document to $tmp/defines.sed.
44904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44905 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44907 # Work around the forget-to-reset-the-flag bug.
44908 echo 't clr' >>$CONFIG_STATUS
44909 echo ': clr' >>$CONFIG_STATUS
44910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44911 echo 'CEOF
44912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44913 rm -f $tmp/in
44914 mv $tmp/out $tmp/in
44915' >>$CONFIG_STATUS
44916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44917 rm -f conftest.defines
44918 mv conftest.tail conftest.defines
44919done
44920rm -f conftest.defines
44921echo ' fi # grep' >>$CONFIG_STATUS
44922echo >>$CONFIG_STATUS
44923
44924# Break up conftest.undefs because some shells have a limit on the size
44925# of here documents, and old seds have small limits too (100 cmds).
44926echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44927rm -f conftest.tail
44928while grep . conftest.undefs >/dev/null
44929do
44930 # Write a limited-size here document to $tmp/undefs.sed.
44931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44932 # Speed up: don't consider the non `#undef'
ac1cb8d3 44933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44934 # Work around the forget-to-reset-the-flag bug.
44935 echo 't clr' >>$CONFIG_STATUS
44936 echo ': clr' >>$CONFIG_STATUS
44937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44938 echo 'CEOF
44939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44940 rm -f $tmp/in
44941 mv $tmp/out $tmp/in
44942' >>$CONFIG_STATUS
44943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44944 rm -f conftest.undefs
44945 mv conftest.tail conftest.undefs
44946done
44947rm -f conftest.undefs
44948
44949cat >>$CONFIG_STATUS <<\_ACEOF
44950 # Let's still pretend it is `configure' which instantiates (i.e., don't
44951 # use $as_me), people would be surprised to read:
44952 # /* config.h. Generated by config.status. */
44953 if test x"$ac_file" = x-; then
44954 echo "/* Generated by configure. */" >$tmp/config.h
44955 else
44956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44957 fi
44958 cat $tmp/in >>$tmp/config.h
44959 rm -f $tmp/in
44960 if test x"$ac_file" != x-; then
44961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44963echo "$as_me: $ac_file is unchanged" >&6;}
44964 else
44965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44966$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44967 X"$ac_file" : 'X\(//\)[^/]' \| \
44968 X"$ac_file" : 'X\(//\)$' \| \
44969 X"$ac_file" : 'X\(/\)' \| \
44970 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44971echo X"$ac_file" |
44972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44974 /^X\(\/\/\)$/{ s//\1/; q; }
44975 /^X\(\/\).*/{ s//\1/; q; }
44976 s/.*/./; q'`
44977 { if $as_mkdir_p; then
44978 mkdir -p "$ac_dir"
44979 else
44980 as_dir="$ac_dir"
44981 as_dirs=
44982 while test ! -d "$as_dir"; do
44983 as_dirs="$as_dir $as_dirs"
44984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44986 X"$as_dir" : 'X\(//\)[^/]' \| \
44987 X"$as_dir" : 'X\(//\)$' \| \
44988 X"$as_dir" : 'X\(/\)' \| \
44989 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44990echo X"$as_dir" |
44991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44993 /^X\(\/\/\)$/{ s//\1/; q; }
44994 /^X\(\/\).*/{ s//\1/; q; }
44995 s/.*/./; q'`
44996 done
44997 test ! -n "$as_dirs" || mkdir $as_dirs
44998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44999echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45000 { (exit 1); exit 1; }; }; }
45001
45002 rm -f $ac_file
45003 mv $tmp/config.h $ac_file
45004 fi
45005 else
45006 cat $tmp/config.h
45007 rm -f $tmp/config.h
45008 fi
45009done
45010_ACEOF
45011cat >>$CONFIG_STATUS <<\_ACEOF
45012
45013#
45014# CONFIG_COMMANDS section.
45015#
45016for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45017 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45018 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45019 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45020$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45021 X"$ac_dest" : 'X\(//\)[^/]' \| \
45022 X"$ac_dest" : 'X\(//\)$' \| \
45023 X"$ac_dest" : 'X\(/\)' \| \
45024 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45025echo X"$ac_dest" |
45026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45028 /^X\(\/\/\)$/{ s//\1/; q; }
45029 /^X\(\/\).*/{ s//\1/; q; }
45030 s/.*/./; q'`
ac1cb8d3
VS
45031 { if $as_mkdir_p; then
45032 mkdir -p "$ac_dir"
45033 else
45034 as_dir="$ac_dir"
45035 as_dirs=
45036 while test ! -d "$as_dir"; do
45037 as_dirs="$as_dir $as_dirs"
45038 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45039$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45040 X"$as_dir" : 'X\(//\)[^/]' \| \
45041 X"$as_dir" : 'X\(//\)$' \| \
45042 X"$as_dir" : 'X\(/\)' \| \
45043 . : '\(.\)' 2>/dev/null ||
45044echo X"$as_dir" |
45045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45047 /^X\(\/\/\)$/{ s//\1/; q; }
45048 /^X\(\/\).*/{ s//\1/; q; }
45049 s/.*/./; q'`
45050 done
45051 test ! -n "$as_dirs" || mkdir $as_dirs
45052 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45053echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45054 { (exit 1); exit 1; }; }; }
45055
a848cd7e
SC
45056 ac_builddir=.
45057
45058if test "$ac_dir" != .; then
45059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45060 # A "../" for each directory in $ac_dir_suffix.
45061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45062else
45063 ac_dir_suffix= ac_top_builddir=
45064fi
45065
45066case $srcdir in
45067 .) # No --srcdir option. We are building in place.
45068 ac_srcdir=.
45069 if test -z "$ac_top_builddir"; then
45070 ac_top_srcdir=.
45071 else
45072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45073 fi ;;
45074 [\\/]* | ?:[\\/]* ) # Absolute path.
45075 ac_srcdir=$srcdir$ac_dir_suffix;
45076 ac_top_srcdir=$srcdir ;;
45077 *) # Relative path.
45078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45080esac
ac1cb8d3
VS
45081
45082# Do not use `cd foo && pwd` to compute absolute paths, because
45083# the directories may not exist.
45084case `pwd` in
45085.) ac_abs_builddir="$ac_dir";;
45086*)
45087 case "$ac_dir" in
45088 .) ac_abs_builddir=`pwd`;;
45089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45091 esac;;
45092esac
45093case $ac_abs_builddir in
45094.) ac_abs_top_builddir=${ac_top_builddir}.;;
45095*)
45096 case ${ac_top_builddir}. in
45097 .) ac_abs_top_builddir=$ac_abs_builddir;;
45098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45100 esac;;
45101esac
45102case $ac_abs_builddir in
45103.) ac_abs_srcdir=$ac_srcdir;;
45104*)
45105 case $ac_srcdir in
45106 .) ac_abs_srcdir=$ac_abs_builddir;;
45107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45109 esac;;
45110esac
45111case $ac_abs_builddir in
45112.) ac_abs_top_srcdir=$ac_top_srcdir;;
45113*)
45114 case $ac_top_srcdir in
45115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45118 esac;;
45119esac
a848cd7e
SC
45120
45121
45122 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45123echo "$as_me: executing $ac_dest commands" >&6;}
45124 case $ac_dest in
ceec2216
RL
45125 wx-config ) rm -f wx-config
45126 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45127 ;;
a848cd7e
SC
45128 esac
45129done
45130_ACEOF
45131
45132cat >>$CONFIG_STATUS <<\_ACEOF
45133
45134{ (exit 0); exit 0; }
45135_ACEOF
45136chmod +x $CONFIG_STATUS
45137ac_clean_files=$ac_clean_files_save
45138
45139
45140# configure is writing to config.log, and then calls config.status.
45141# config.status does its own redirection, appending to config.log.
45142# Unfortunately, on DOS this fails, as config.log is still kept open
45143# by configure, so config.status won't be able to write to it; its
45144# output is simply discarded. So we exec the FD to /dev/null,
45145# effectively closing config.log, so it can be properly (re)opened and
45146# appended to by config.status. When coming back to configure, we
45147# need to make the FD available again.
45148if test "$no_create" != yes; then
45149 ac_cs_success=:
45150 ac_config_status_args=
45151 test "$silent" = yes &&
45152 ac_config_status_args="$ac_config_status_args --quiet"
45153 exec 5>/dev/null
45154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45155 exec 5>>config.log
45156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45157 # would make configure fail if this is the last instruction.
45158 $ac_cs_success || { (exit 1); exit 1; }
45159fi
45160
45161#
45162# CONFIG_SUBDIRS section.
45163#
45164if test "$no_recursion" != yes; then
45165
45166 # Remove --cache-file and --srcdir arguments so they do not pile up.
45167 ac_sub_configure_args=
45168 ac_prev=
45169 for ac_arg in $ac_configure_args; do
45170 if test -n "$ac_prev"; then
45171 ac_prev=
45172 continue
45173 fi
45174 case $ac_arg in
45175 -cache-file | --cache-file | --cache-fil | --cache-fi \
45176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45177 ac_prev=cache_file ;;
45178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45180 | --c=*)
45181 ;;
45182 --config-cache | -C)
45183 ;;
45184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45185 ac_prev=srcdir ;;
45186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45187 ;;
45188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45189 ac_prev=prefix ;;
45190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45191 ;;
45192 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45193 esac
45194 done
45195
45196 # Always prepend --prefix to ensure using the same prefix
45197 # in subdir configurations.
45198 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45199
45200 ac_popdir=`pwd`
45201 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45202
45203 # Do not complain, so a configure script can configure whichever
45204 # parts of a large source tree are present.
45205 test -d $srcdir/$ac_dir || continue
45206
45207 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45208echo "$as_me: configuring in $ac_dir" >&6;}
45209 { if $as_mkdir_p; then
45210 mkdir -p "$ac_dir"
45211 else
45212 as_dir="$ac_dir"
45213 as_dirs=
45214 while test ! -d "$as_dir"; do
45215 as_dirs="$as_dir $as_dirs"
45216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45218 X"$as_dir" : 'X\(//\)[^/]' \| \
45219 X"$as_dir" : 'X\(//\)$' \| \
45220 X"$as_dir" : 'X\(/\)' \| \
45221 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45222echo X"$as_dir" |
45223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45225 /^X\(\/\/\)$/{ s//\1/; q; }
45226 /^X\(\/\).*/{ s//\1/; q; }
45227 s/.*/./; q'`
45228 done
45229 test ! -n "$as_dirs" || mkdir $as_dirs
45230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45231echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45232 { (exit 1); exit 1; }; }; }
45233
45234 ac_builddir=.
45235
45236if test "$ac_dir" != .; then
45237 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45238 # A "../" for each directory in $ac_dir_suffix.
45239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45240else
45241 ac_dir_suffix= ac_top_builddir=
45242fi
45243
45244case $srcdir in
45245 .) # No --srcdir option. We are building in place.
45246 ac_srcdir=.
45247 if test -z "$ac_top_builddir"; then
45248 ac_top_srcdir=.
45249 else
45250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45251 fi ;;
45252 [\\/]* | ?:[\\/]* ) # Absolute path.
45253 ac_srcdir=$srcdir$ac_dir_suffix;
45254 ac_top_srcdir=$srcdir ;;
45255 *) # Relative path.
45256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45258esac
ac1cb8d3
VS
45259
45260# Do not use `cd foo && pwd` to compute absolute paths, because
45261# the directories may not exist.
45262case `pwd` in
45263.) ac_abs_builddir="$ac_dir";;
45264*)
45265 case "$ac_dir" in
45266 .) ac_abs_builddir=`pwd`;;
45267 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45268 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45269 esac;;
45270esac
45271case $ac_abs_builddir in
45272.) ac_abs_top_builddir=${ac_top_builddir}.;;
45273*)
45274 case ${ac_top_builddir}. in
45275 .) ac_abs_top_builddir=$ac_abs_builddir;;
45276 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45277 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45278 esac;;
45279esac
45280case $ac_abs_builddir in
45281.) ac_abs_srcdir=$ac_srcdir;;
45282*)
45283 case $ac_srcdir in
45284 .) ac_abs_srcdir=$ac_abs_builddir;;
45285 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45286 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45287 esac;;
45288esac
45289case $ac_abs_builddir in
45290.) ac_abs_top_srcdir=$ac_top_srcdir;;
45291*)
45292 case $ac_top_srcdir in
45293 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45294 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45295 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45296 esac;;
45297esac
a848cd7e
SC
45298
45299
45300 cd $ac_dir
45301
45302 # Check for guested configure; otherwise get Cygnus style configure.
45303 if test -f $ac_srcdir/configure.gnu; then
45304 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45305 elif test -f $ac_srcdir/configure; then
45306 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45307 elif test -f $ac_srcdir/configure.in; then
45308 ac_sub_configure=$ac_configure
45309 else
45310 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45311echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45312 ac_sub_configure=
45313 fi
45314
45315 # The recursion is here.
45316 if test -n "$ac_sub_configure"; then
45317 # Make the cache file name correct relative to the subdirectory.
45318 case $cache_file in
45319 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45320 *) # Relative path.
ac1cb8d3 45321 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45322 esac
45323
45324 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45325echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45326 # The eval makes quoting arguments work.
45327 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45328 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45329 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45330echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45331 { (exit 1); exit 1; }; }
45332 fi
45333
9dd0f6c2 45334 cd "$ac_popdir"
a848cd7e
SC
45335 done
45336fi
45337
45338
45339echo
77ffb593 45340echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45341echo ""
4d4ff94c 45342echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45343echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45344
77ffb593
JS
45345echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45346echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45347echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45348
77ffb593
JS
45349echo " What level of wxWidgets compatibility should be enabled?"
45350echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45351echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45352
77ffb593 45353echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45354echo " jpeg ${wxUSE_LIBJPEG-none}"
45355echo " png ${wxUSE_LIBPNG-none}"
45356echo " regex ${wxUSE_REGEX}"
45357echo " tiff ${wxUSE_LIBTIFF-none}"
45358if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45359echo " xpm ${wxUSE_LIBXPM-none}"
45360fi
45361echo " zlib ${wxUSE_ZLIB}"
45362echo " odbc ${wxUSE_ODBC}"
45363echo " expat ${wxUSE_EXPAT}"
45364echo " libmspack ${wxUSE_LIBMSPACK}"
45365echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45366echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45367
45368echo ""
45369